@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
  --primary: #E2001A;
  --primary-dark: #b50015;
  --dark: #1A1A1A;
  --dark-light: #2D2D2D;
  --light: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray: #6C757D;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ==========================================
   Scroll-Driven Video Animation
   ========================================== */
.video-scroll-section {
  position: relative;
  height: 250vh;
  padding: 0;
  margin: 0;
  max-width: 100%;
  overflow: visible;
  background: #0a0a0a;
}

.video-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#video-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero overlay on top of video canvas */
.video-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.35) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
  padding: 0 2rem;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-hero-overlay .hero-content {
  pointer-events: all;
}

.video-hero-overlay .hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 900px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.video-hero-overlay .hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Loading overlay */
.video-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: all;
}

.video-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.video-loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(226, 0, 26, 0.2);
  border-top-color: var(--primary);
  animation: videoSpin 0.8s linear infinite;
}

@keyframes videoSpin {
  to {
    transform: rotate(360deg);
  }
}

.video-loader-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
}

.video-loader-bar {
  width: 220px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.video-loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #ff4d5a);
  border-radius: 4px;
  transition: width 0.15s ease;
}

/* General Loading Spinner */
.loader-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  width: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.05);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: videoSpin 0.8s linear infinite;
}

.video-loader-percent {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .video-scroll-section {
    height: 200vh;
  }

  .video-hero-overlay .hero-content h1 {
    font-size: 2.2rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

.nav-links,
.dropdown-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
  border-top: 3px solid var(--primary);
}

.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
  list-style: none;
}

.dropdown-menu a {
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  display: block;
}

.dropdown-menu a:hover {
  background: var(--gray-light);
  color: var(--primary);
}

#bResena {
  padding-top: 4rem;
  text-align: center;
}

.cta-button {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(226, 0, 26, 0.3);
}

/* Hero */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
  margin-top: 60px;
  max-width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 900px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}


/* Quick Cita Block */
.quick-cita {
  max-width: 1000px;
  margin: -50px auto 4rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.cita-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.mailtoCitroen {
  color: #E2001A
}

.cita-item:hover {
  background: var(--gray-light);
}

.cita-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Sections General */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title .underline {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  font-size: 0.9rem;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Catalog */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters select {
  padding: 0.8rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  font-family: inherit;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.car-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Inventory Preview Mode */
.inventory-preview-container {
  position: relative;
}

.inventory-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(transparent, rgba(249, 250, 251, 0.95) 70%, var(--gray-light));
  display: none;
  /* Hidden by default, shown via JS */
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 3rem;
  z-index: 10;
  pointer-events: none;
}

.inventory-fade-overlay.active {
  display: flex;
  pointer-events: all;
}

.see-more-btn {
  background: var(--primary);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(227, 6, 19, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.see-more-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(227, 6, 19, 0.4);
  background: var(--dark);
}

.car-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.car-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.car-label-small {
  height: 40px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
  margin-left: 25px;
}

.fav-btn-inline {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  margin-right: 5px;
}

.fav-btn-inline:hover {
  transform: scale(1.2);
}

.fav-btn-inline.active {
  color: #e74c3c;
}

.fav-btn-inline.active i {
  font-weight: 900;
}

.car-price-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.modal-fav-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.modal-fav-btn:hover {
  transform: scale(1.2);
}

.modal-fav-btn.active {
  color: #e74c3c;
}

.modal-fav-btn.active i {
  font-weight: 900;
}

/* Status Indicators */
.grayscale {
  filter: grayscale(1);
  opacity: 0.7;
}

.status-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  padding: 1rem 3rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  z-index: 5;
  border: 4px solid white;
  pointer-events: none;
  white-space: nowrap;
}

.banner-sold {
  background: var(--dark);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.banner-reserved {
  background: #f39c12;
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.car-info {
  padding: 1.5rem;
}

.car-info h3 {
  margin-bottom: 0.5rem;
}

.car-details {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.car-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray);
}

/* Reviews */
/* Testimonials Infinite Scroll */
.testimonials-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.testimonials-mask {
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  max-height: 600px;
  overflow: hidden;
}

.testimonials-columns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}

.testimonials-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  /* El JS inyecta la variable --duration */
  animation: scrollVertical var(--duration, 20s) linear infinite;
}

/* Duplicamos el div animado internamente para el loop infinito */
@keyframes scrollVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.testimonial-card {
  background: var(--dark-light);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 0, 26, 0.3); /* Primary hover border */
}

.testimonial-stars {
  color: #FFD700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-date {
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .testimonials-col:nth-child(3) {
    display: none;
  }
}

@media (max-width: 768px) {
  .testimonials-col:nth-child(2) {
    display: none;
  }
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 4rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-section p,
.footer-section li {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  list-style: none;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeIn 1s ease-out;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: white;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 12px;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  padding: 3rem;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition);
  z-index: 10;
}

.close-modal:hover {
  color: var(--primary);
}

/* Detail Content Styles */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.detail-gallery img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.detail-info h3 {
  color: var(--primary);
  margin: 1.5rem 0 0.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.specs-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--gray-light);
}

.specs-table td:first-child {
  font-weight: 700;
  width: 40%;
}



@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .modal-container {
    padding: 2rem 1rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0.8rem 1rem;
    flex-wrap: nowrap;
  }

  .logo {
    font-size: 0; /* Ocultamos el texto PÉREZ Y LLINARES para ganar espacio */
    gap: 5px;
  }

  .logo img {
    height: 35px !important; /* Logos más pequeños */
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .menu-toggle {
    display: block;
    order: 3;
    margin-left: 10px;
    padding: 5px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.05);
  }

  .nav-links.active {
    max-height: 500px;
    padding: 1.5rem 0;
  }

  .nav-links li {
    width: 100%;
    padding: 0;
  }

  .nav-links li a {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links li a:active {
    background: var(--gray-light);
    color: var(--primary);
    padding-left: 3rem;
  }

  .nav-links .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  /* Compact header CTA on mobile */
  nav .cta-button {
    order: 2;
    margin-left: auto;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  nav .cta-button i {
    margin-right: 0;
  }

  .quick-cita {
    margin-top: -30px;
    padding: 1.5rem;
  }
}

/* Promo Cards Grid */
.promo-section {
  padding: 5rem 2rem;
  background: var(--gray-light);
}

.promo-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 calc(50% - 10px);
  min-width: 0;
}

@media (max-width: 768px) {
  .promo-card {
    flex: 0 0 100%;
  }
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.promo-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Ensure aspect ratio for mobile responsiveness */
  overflow: hidden;
}

.promo-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.promo-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.promo-card-title {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.promo-card-desc {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.5;
}

.promo-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.promo-card-list li {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.promo-card-list li i {
  color: #28a745;
  margin-top: 4px;
}

.promo-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--dark);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  margin-top: auto;
}

.promo-card-btn:hover {
  background: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: white;
  z-index: 9999;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 3px solid var(--primary);
}

.cookie-banner.active {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-content i {
  font-size: 2.5rem;
  color: var(--primary);
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.4;
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3s backwards;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20b858;
}

@keyframes bounceIn {
  0% { transform: scale(0.1); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
}

/* Gallery Thumbs & Carousel */
.gallery-thumb {
  opacity: 0.5;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumb:hover, .gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}
.gallery-thumbs::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.nav-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--dark);
  transition: 0.2s;
}
.nav-btn:hover {
  background: var(--gray-light);
  color: var(--primary);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.4);
}
.lightbox-nav.prev {
  left: 30px;
}
.lightbox-nav.next {
  right: 30px;
}
.lightbox-counter {
  color: white;
  margin-top: 15px;
  font-size: 1.1rem;
}

/* ==========================================
   Blog Styles
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.8rem;
  display: flex;
  gap: 1rem;
}

.blog-card-category {
  color: var(--primary);
  font-weight: 700;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-card-btn {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card-btn:hover {
  color: var(--primary-dark);
}

/* Blog Post Specific Styles */
.blog-main h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-post-meta {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  display: flex;
  gap: 1.5rem;
}

.blog-post-cover {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.blog-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.blog-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--gray);
  margin: 2rem 0;
  background: var(--gray-light);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 900px) {
  .blog-layout {
    flex-direction: column;
  }
  .blog-sidebar {
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
  }
  .blog-sidebar .sidebar-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    text-align: left;
    border-top: none;
    border-left: 4px solid var(--primary);
  }
  .blog-sidebar .sidebar-widget i {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .blog-sidebar .sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    flex: 1;
    margin-left: 1rem;
  }
  .blog-sidebar .sidebar-widget p {
    width: 100%;
    font-size: 0.85rem;
    margin: 0.5rem 0;
  }
  .blog-sidebar .sidebar-widget .cta-button {
    width: auto;
    flex: 1;
    margin-top: 0;
    text-align: center;
    padding: 0.6rem;
  }
}

/* ==========================================
   Blog Conversion Hooks
   ========================================== */

/* Sticky Header (Mobile CTA) */
.blog-sticky-header {
  position: fixed;
  top: 70px; /* Below main header */
  left: 0;
  width: 100%;
  background: var(--dark);
  color: white;
  z-index: 998;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.blog-sticky-header .sticky-text {
  font-size: 0.9rem;
  font-weight: 600;
  display: none; /* Hide on very small screens, show on slightly larger */
}

.blog-sticky-header .cta-button {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-sticky-header .cta-button:hover {
  background: var(--primary-dark);
}

@media (min-width: 600px) {
  .blog-sticky-header .sticky-text {
    display: inline-block;
  }
}

@media (min-width: 1025px) {
  /* Hide on desktop since we have the main header button */
  .blog-sticky-header {
    display: none;
  }
}

/* Inline CTA Banner */
.inline-cta-banner {
  position: relative;
  overflow: hidden;
}

.inline-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.inline-cta-banner .cta-button {
  background: var(--primary);
  color: white;
  border-radius: 50px;
  transition: transform 0.2s, background 0.2s;
}

.inline-cta-banner .cta-button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .inline-cta-banner {
    padding: 1.2rem !important;
    margin: 1.5rem 0 !important;
  }
  .inline-cta-banner p {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .inline-cta-banner .cta-button {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    width: 100%;
    text-align: center;
  }
}