/* ==========================================================================
   OASIS MANTENCIONES - SISTEMA DE ESTILOS LIGHT & AQUA CRYSTAL (CSS3)
   ========================================================================== */

/* --- TOKENS Y VARIABLES DE DISEÑO LUMINOSO --- */
:root {
  /* Paleta Limpia: Blancos, Celestes y Azules Cristalinos */
  --bg-body: #f4f9ff;
  --bg-surface-white: #ffffff;
  --bg-glass-light: rgba(255, 255, 255, 0.82);
  --bg-glass-cyan: rgba(224, 242, 254, 0.65);

  --border-glass: rgba(0, 168, 232, 0.18);
  --border-glass-hover: rgba(0, 168, 232, 0.45);

  --primary-blue: #0077b6;
  --primary-cyan: #00a8e8;
  --primary-aqua: #00c4cc;
  --text-dark-navy: #071e3d;
  --text-body: #334155;
  --text-muted: #64748b;

  --accent-green-wa: #25d366;
  --accent-green-wa-hover: #1ebd56;

  /* Gradientes de Agua y Sol */
  --gradient-aqua-light: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
  --gradient-blue-button: linear-gradient(135deg, #00a8e8 0%, #0056b3 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(244, 249, 255, 0.45) 0%, rgba(0, 119, 182, 0.5) 40%, rgba(244, 249, 255, 0.8) 80%, #f4f9ff 100%);
  --gradient-panel: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(224, 242, 254, 0.5) 100%);

  /* Tipografía */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transiciones y Sombras Suaves */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-soft: 0 10px 30px rgba(0, 119, 182, 0.08);
  --shadow-card: 0 18px 40px rgba(0, 80, 140, 0.08);
  --shadow-card-hover: 0 22px 45px rgba(0, 168, 232, 0.2);
  --shadow-wa: 0 10px 25px rgba(37, 211, 102, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

/* --- RESETEO BÁSICO --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* Asegura posicionamiento base para elementos absolutos como el parallax */
}

#bg-parallax-water {
  position: fixed;
  /* Cambiado a fixed para no alterar el tamaño del scroll del body */
  top: 0;
  left: 0;
  width: 100%;
  height: 140vh;
  /* Altura del viewport más margen de reserva para evitar cortes al subir */
  background-image: url('../images/background agua.jpeg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Fijo en pantalla, no requiere repetirse verticalmente */
  opacity: 0;
  /* Oculto inicialmente en el Hero; el script incrementa la opacidad al hacer scroll */
  z-index: -2;
  /* Detrás del fondo del cuerpo y las tarjetas glass */
  pointer-events: none;
  /* No interfiere con clics o interacciones */
  will-change: transform, opacity;
  /* Optimización de hardware en la GPU */
}

/* --- REUTILIZABLES & UTILIDADES --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.max-width-md {
  max-width: 860px;
}

.text-center {
  text-align: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.margin-top-sm {
  margin-top: 16px;
}

.margin-top-md {
  margin-top: 32px;
}

/* Tarjetas y Paneles con Glassmorphism Cristalino */
.glass-card,
.glass-panel {
  background: var(--bg-glass-light);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  max-width: 100%;
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  background: #ffffff;
}

/* --- SECCIONES Y ENCABEZADOS --- */
.section {
  padding: 100px 0;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-blue);
  background: rgba(0, 168, 232, 0.12);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  border: 1px solid rgba(0, 168, 232, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark-navy);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* --- BOTONES DE CONVERSIÓN --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
}

/* Botón Principal WhatsApp */
.btn-whatsapp-primary {
  background: var(--accent-green-wa);
  color: #ffffff;
  box-shadow: var(--shadow-wa);
}

.btn-whatsapp-primary:hover {
  background: var(--accent-green-wa-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-header {
  background: var(--accent-green-wa);
  color: #ffffff;
  padding: 10px 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-header:hover {
  background: var(--accent-green-wa-hover);
  transform: scale(1.03);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark-navy);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 168, 232, 0.3);
  box-shadow: var(--shadow-soft);
}

.btn-glass:hover {
  background: #ffffff;
  border-color: var(--primary-cyan);
  color: var(--primary-blue);
}

.btn-outline-whatsapp {
  background: transparent;
  color: var(--accent-green-wa);
  border: 2px solid var(--accent-green-wa);
  width: 100%;
}

.btn-outline-whatsapp:hover {
  background: var(--accent-green-wa);
  color: #ffffff;
}

.btn-card-action {
  background: rgba(0, 168, 232, 0.08);
  color: var(--primary-blue);
  border: 1px solid rgba(0, 168, 232, 0.25);
  width: 100%;
  font-size: 0.95rem;
}

.btn-card-action:hover {
  background: var(--primary-cyan);
  color: #ffffff;
  border-color: var(--primary-cyan);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-extra-large {
  padding: 20px 48px;
  font-size: 1.25rem;
}

.whatsapp-icon {
  flex-shrink: 0;
}

/* ==================== HEADER STICKY ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 168, 232, 0.15);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 80, 140, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark-navy);
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-blue-button);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 80, 140, 0.08);
  border: 1px solid rgba(0, 168, 232, 0.15);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text-dark-navy);
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--primary-blue);
  font-weight: 700;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 18px;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-blue);
  background: rgba(0, 168, 232, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 1001;
  position: relative;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--text-dark-navy);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-fast), background-color var(--transition-fast);
  transform-origin: center;
}

/* Animación visual del botón hamburguesa transformándose en una X al estar activo */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
}

/* ==================== HERO PRINCIPAL ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #e0f2fe 0%, #f4f9ff 100%);
  overflow-x: hidden;
  max-width: 100vw;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
  0% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 40px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 168, 232, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-cyan);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 168, 232, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 168, 232, 0);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: #ffffff;
  /* Blanco puro para máximo contraste */
  text-shadow: 0 4px 18px rgba(7, 30, 61, 0.45);
  /* Sombra azul marino profundo */
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: #f1f5f9;
  /* Gris/blanco muy claro */
  margin-bottom: 32px;
  max-width: 760px;
  font-weight: 600;
  /* Incrementado para facilitar lectura */
  text-shadow: 0 2px 10px rgba(7, 30, 61, 0.35);
  /* Sombra para mayor separación */
}

.hero-services-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Oculta el scrollbar en Firefox */
  -ms-overflow-style: none;
  /* Oculta el scrollbar en IE y Edge */
  padding-bottom: 4px;
}

.hero-services-chips::-webkit-scrollbar {
  display: none;
  /* Oculta el scrollbar en Chrome, Safari y Opera */
}

.chip {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 168, 232, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark-navy);
  box-shadow: 0 4px 12px rgba(0, 80, 140, 0.04);
  flex-shrink: 0;
  /* Evita que los chips se encojan */
  white-space: nowrap;
  /* Evita que el texto dentro del chip se divida en varias líneas */
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Centrar botones horizontalmente */
  gap: 16px;
  margin-bottom: 28px;
}

.hero-trust-text {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centrar el texto e ícono horizontalmente */
  gap: 8px;
  font-size: 0.95rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--primary-blue);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary-cyan);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ==================== SECCIÓN ¿QUÉ LE PASA A TU PISCINA? ==================== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
}

.card-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.bg-green {
  background: rgba(37, 211, 102, 0.15);
  color: #16a34a;
}

.bg-blue {
  background: rgba(0, 119, 182, 0.15);
  color: #0077b6;
}

.bg-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.bg-cyan {
  background: rgba(0, 168, 232, 0.15);
  color: #00a8e8;
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.problem-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark-navy);
}

.problem-subtitle-bold {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.problem-description {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ==================== SECCIÓN DOLOR / PROBLEMA ==================== */
.pain-banner {
  padding: 48px 40px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.warning-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.pain-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-dark-navy);
}

.pain-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.pain-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text-body);
}

.bullet {
  color: #dc2626;
  font-weight: bold;
}

.pain-warning-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pain-highlight-box {
  background: rgba(0, 168, 232, 0.08);
  border-left: 4px solid var(--primary-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  font-size: 1.1rem;
  color: var(--text-dark-navy);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}

.pain-image-container {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.pain-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pain-image-container:hover .pain-image {
  transform: scale(1.04);
}

@media (max-width: 992px) {
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pain-image-container {
    min-height: 280px;
    height: 280px;
  }
}

@media (max-width: 576px) {
  .pain-image-container {
    min-height: 200px;
    height: 200px;
  }
}

.services-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Oculta el scrollbar en Firefox */
  -ms-overflow-style: none;
  /* Oculta el scrollbar en IE y Edge */
  padding-bottom: 16px;
  /* Espacio para que no se corten las sombras */
}

.services-grid::-webkit-scrollbar {
  display: none;
  /* Oculta el scrollbar en Chrome, Safari y Opera */
}

.service-card {
  flex: 0 0 calc(25% - 18px);
  /* 4 tarjetas por fila en escritorio */
  min-width: 280px;
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.service-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 1200px) {
  .service-card {
    flex: 0 0 calc(33.333% - 16px);
    /* 3 por fila */
  }
}

@media (max-width: 992px) {
  .service-card {
    flex: 0 0 calc(50% - 12px);
    /* 2 por fila */
  }
}

@media (max-width: 640px) {
  .service-card {
    flex: 0 0 85%;
    /* 85% del ancho para revelar el inicio de la siguiente en móviles */
  }
}

.service-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(0, 168, 232, 0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark-navy);
}

.service-tagline {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.service-text {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-extra {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: rgba(0, 168, 232, 0.06);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 3px solid var(--primary-cyan);
}

.service-note-box {
  font-size: 0.875rem;
  color: var(--text-dark-navy);
  background: rgba(255, 193, 7, 0.12);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 3px solid #ffb703;
}

/* ==================== SECCIÓN INFORMACIÓN DE COBERTURA ==================== */
.section-coverage {
  padding: 60px 0;
}

.coverage-card {
  padding: 48px 36px;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 920px;
  margin: 0 auto;
}

/* --- ESCENA ANIMADA CAMIONETA DE SERVICIO OASIS --- */
.van-delivery-scene {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: 165px;
  margin: 28px auto 20px auto;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.5) 0%, rgba(186, 230, 253, 0.25) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 168, 232, 0.25);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Pista / Carretera */
.van-road-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background: #334155;
  border-top: 3px solid #00a8e8;
  overflow: hidden;
  z-index: 1;
}

.road-dashed-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #ffffff, #ffffff 18px, transparent 18px, transparent 36px);
  transform: translateY(-50%);
}

/* Contenedor de la Camioneta */
.van-vehicle-container {
  position: absolute;
  bottom: 20px;
  left: -170px;
  width: 150px;
  height: 80px;
  z-index: 3;
  animation: driveAlongRoad 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.van-body-wrapper {
  width: 100%;
  height: 100%;
  animation: vanSuspension 0.4s ease-in-out infinite alternate;
}

.van-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 8px rgba(7, 30, 61, 0.15));
}

/* Rotación de Ruedas */
.wheel-group {
  transform-origin: center;
  transform-box: fill-box;
  animation: spinWheel 0.35s linear infinite;
}

@keyframes spinWheel {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Suspensión / Rebote de la Camioneta */
@keyframes vanSuspension {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-2.5px);
  }
}

/* Recorrido de la Camioneta: Llega, limpia y sobrepasa la casa */
@keyframes driveAlongRoad {
  0% {
    left: -160px;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  42% {
    /* La camioneta llega frente a la casa y piscina */
    left: calc(100% - 240px);
    opacity: 1;
  }
  52% {
    /* La camioneta sobrepasa la casa y la piscina completamente */
    left: calc(100% - 60px);
    opacity: 1;
  }
  65% {
    left: 100%;
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Casa y Destino */
.destination-house-wrapper {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge Dinámico de Estado */
.animated-status-badge {
  position: relative;
  min-width: 140px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.badge-status-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.badge-text-green {
  background: #65a30d;
  animation: badgeGreenAnim 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes badgeGreenAnim {
  0%, 52% {
    opacity: 1;
    transform: translateY(0);
  }
  56%, 88% {
    opacity: 0;
    transform: translateY(-16px);
  }
  95%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-text-blue {
  background: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
  animation: badgeBlueAnim 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes badgeBlueAnim {
  0%, 52% {
    opacity: 0;
    transform: translateY(16px) scale(0.85);
  }
  56%, 88% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  95%, 100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.85);
  }
}

.house-pool-svg {
  width: 130px;
  height: 100px;
  filter: drop-shadow(0 6px 12px rgba(0, 119, 182, 0.18));
}

/* Transición Agua Verde -> Agua Azul Cristalina (Al sobrepasar la camioneta) */
.pool-green-layer {
  fill: #65a30d;
  animation: poolGreenAnim 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes poolGreenAnim {
  0%, 52% {
    opacity: 1;
  }
  56%, 88% {
    opacity: 0;
  }
  95%, 100% {
    opacity: 1;
  }
}

.pool-blue-layer {
  fill: #00c4cc;
  animation: poolBlueAnim 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes poolBlueAnim {
  0%, 52% {
    opacity: 0;
  }
  56%, 88% {
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
  }
}

/* Icono Checkmark de Éxito sobre la Piscina (Aparece al sobrepasar la camioneta) */
.animated-check-icon {
  transform-origin: 82px 42px;
  transform-box: fill-box;
  animation: checkIconPop 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes checkIconPop {
  0%, 52% {
    opacity: 0;
    transform: scale(0);
  }
  58% {
    opacity: 1;
    transform: scale(1.25);
  }
  62%, 88% {
    opacity: 1;
    transform: scale(1);
  }
  95%, 100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* Destellos de Agua Limpia */
.sparkle-anim {
  animation: sparkleTwinkle 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes sparkleTwinkle {
  0%, 52% {
    opacity: 0;
    transform: scale(0);
  }
  58%, 88% {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
  }
  95%, 100% {
    opacity: 0;
    transform: scale(0);
  }
}

@media (max-width: 640px) {
  .van-delivery-scene {
    height: 145px;
  }
  .van-vehicle-container {
    width: 125px;
    height: 68px;
  }
  .house-pool-svg {
    width: 105px;
    height: 82px;
  }
}

.coverage-badge-wrapper {
  margin-bottom: 12px;
}

.coverage-description {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 12px auto 24px auto;
}

.communes-chips-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.commune-chip {
  display: inline-block;
  padding: 10px 22px;
  background: #ffffff;
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(0, 168, 232, 0.3);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.06);
  transition: all var(--transition-fast);
}

.commune-chip:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 168, 232, 0.15);
}

.coverage-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 620px;
  margin: 0 auto;
}

.service-img-preview {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.service-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== SECCIÓN ANTES / DESPUÉS (SLIDER) ==================== */
.before-after-slider-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 520px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 80, 140, 0.12);
  border: 4px solid #ffffff;
  user-select: none;
  cursor: ew-resize;
}

.img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.before-img {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid #ffffff;
}

.before-img img {
  width: var(--slider-width, 100%);
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.label-tag {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  z-index: 4;
}

.label-before {
  left: 20px;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
}

.label-after {
  right: 20px;
  background: rgba(37, 211, 102, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.handle-line {
  width: 3px;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.handle-button {
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 80, 140, 0.3);
  margin: -25px 0;
  pointer-events: auto;
}

.results-caption {
  font-size: 1.1rem;
  color: var(--text-body);
}

/* ==================== SECCIÓN TEMPORADA ==================== */
.season-card {
  padding: 56px 36px;
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
  border: 1px solid var(--border-glass);
}

.season-description {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 40px auto;
}

.season-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.scenario-box {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.scenario-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.scenario-box h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-dark-navy);
}

.scenario-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== SECCIÓN NO TIENES QUE HACERLO TÚ ==================== */
.time-wrapper {
  position: relative;
  padding: 64px 48px;
  background: #071e3d;
  /* Fondo de respaldo oscuro */
  overflow: hidden;
}

.time-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.time-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  /* Prácticamente visible en su totalidad */
}

.time-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 30, 61, 0.75) 0%, rgba(0, 119, 182, 0.55) 100%);
  /* Gradiente azul profundo semitransparente */
  backdrop-filter: blur(1px);
  /* Desenfoque mínimo para apreciar los detalles del video */
}

.time-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Modificación de colores para que resalten sobre el video oscuro */
.time-wrapper .section-tag {
  color: var(--primary-cyan);
}

.time-wrapper .section-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.time-paragraph {
  font-size: 1.15rem;
  color: #f1f5f9;
  /* Blanco grisáceo para alto contraste */
  margin-bottom: 24px;
  max-width: 760px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.time-highlight-pill {
  display: inline-block;
  background: rgba(37, 211, 102, 0.2);
  /* Verde más contrastado */
  border: 1px solid rgba(37, 211, 102, 0.4);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #4ade80;
  /* Verde brillante */
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .time-wrapper {
    padding: 40px 24px;
  }
}

/* ==================== SECCIÓN CÓMO TRABAJAMOS ==================== */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.timeline-step {
  padding: 32px 24px;
  position: relative;
  background: #ffffff;
}

.step-badge {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--primary-blue);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark-navy);
}

.step-description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== SECCIÓN DE BENEFICIOS ==================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.benefit-card {
  padding: 32px 24px;
  background: #ffffff;
}

.benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.benefit-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-dark-navy);
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== TESTIMONIOS (SLIDER INTERACTIVO) ==================== */
.testimonials-slider-container {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
  /* Espacio lateral para los botones */
}

.testimonials-slider-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  /* Padding para que la sombra no se corte */
}

.testimonials-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 24px;
}

.testimonials-slider-track .testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  /* 3 testimonios por fila */
  box-sizing: border-box;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: var(--bg-glass-light);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
}

.slider-arrow:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-50%) scale(1.08);
}

.arrow-left {
  left: -4px;
}

.arrow-right {
  right: -4px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 119, 182, 0.18);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background: var(--primary-blue);
  width: 24px;
  border-radius: var(--radius-pill);
}

@media (max-width: 992px) {
  .testimonials-slider-track .testimonial-card {
    flex: 0 0 calc(50% - 12px);
    /* 2 por fila en tablets */
  }
}

@media (max-width: 768px) {
  .testimonials-slider-container {
    padding: 0 8px;
  }

  .slider-arrow {
    display: none;
    /* Desactivar flechas en móvil para potenciar navegación táctil */
  }

  .testimonials-slider-track-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .testimonials-slider-track-wrapper::-webkit-scrollbar {
    display: none;
  }

  .testimonials-slider-track {
    transition: none;
    /* Scroll nativo instantáneo en móvil */
  }

  .testimonials-slider-track .testimonial-card {
    flex: 0 0 88%;
    /* 88% del ancho para revelar la siguiente en móvil */
  }
}

.testimonial-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.rating-stars {
  color: #d97706;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-body);
  font-size: 0.975rem;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  background: var(--gradient-blue-button);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

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

.author-info strong {
  font-size: 0.95rem;
  color: var(--text-dark-navy);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==================== PREGUNTAS FRECUENTES (FAQ) ==================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 20px 28px;
  background: #ffffff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark-navy);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-blue);
  transition: transform var(--transition-fast);
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
  border-top: 1px solid rgba(0, 168, 232, 0.12);
  padding-top: 14px;
}

/* ==================== CTA FINAL ==================== */
.section-final-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: #071e3d;
  /* Fondo de respaldo oscuro para negros profundos */
}

.cta-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-bg-img,
.cta-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  /* Ligera reducción de opacidad para mejor contraste */
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 30, 61, 0.45) 0%, rgba(7, 30, 61, 0.88) 100%);
  /* Degradado marino oscuro para evitar el efecto velado blanquecino */
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
  font-size: 1.25rem;
  color: #e0f2fe;
}

.cta-reassurance {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-glass);
  padding-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  padding-bottom: 60px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--primary-blue);
  margin: 12px 0;
  font-weight: 700;
}

.footer-copy-idea {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-dark-navy);
}

.footer-nav ul,
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 168, 232, 0.1);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #f8fafc;
}

/* ==================== BOTÓN FLOTANTE WHATSAPP ==================== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--accent-green-wa);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-wa);
  z-index: 999;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background: var(--accent-green-wa-hover);
}

.tooltip {
  position: absolute;
  right: 72px;
  background: var(--text-dark-navy);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-whatsapp:hover .tooltip {
  opacity: 1;
}

/* ==================== MEDIA QUERIES (RESPONSIVE MOBILE) ==================== */
@media (max-width: 992px) {
  .hero-section {
    padding-top: 100px;
  }

  .before-after-slider-container {
    height: 380px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .season-scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 90px 28px 32px 28px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: transform var(--transition-smooth), opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 80, 140, 0.15);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .header-actions .btn-whatsapp-header {
    display: none;
  }

  .before-after-slider-container {
    height: 300px;
  }

  .before-img img {
    width: var(--slider-width, 100%);
  }

  /* Evitar desbordamiento horizontal en móvil causado por elementos con reveal lateral antes de ser vistos */
  .reveal-left,
  .reveal-right {
    transform: translateY(35px);
  }

  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0);
  }

  .pain-banner {
    padding: 32px 20px;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .tooltip {
    display: none;
  }

  /* --- Tipografía responsive --- */
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  /* --- Chips 2x2 en móvil para que se vean todos --- */
  .hero-services-chips {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 8px;
  }

  .chip {
    flex: 0 0 calc(50% - 6px);
    /* 2 chips por fila con un pequeño gap */
    text-align: center;
    justify-content: center;
    white-space: normal;
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  /* --- Sección problemas: 1 columna --- */
  .problems-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- Pain banner: layout vertical --- */
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .pain-image-container {
    max-height: 250px;
  }

  /* --- Timeline: 1 columna --- */
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- Escenarios temporada: 1 columna --- */
  .season-scenarios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- Beneficios: 1 columna --- */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- CTA hero: vertical --- */
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-cta-group .btn-large {
    width: 100%;
    max-width: 340px;
    text-align: center;
    justify-content: center;
  }

  /* --- Footer: layout vertical --- */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-nav ul,
  .footer-contact ul {
    align-items: center;
  }

  /* --- Section spacing --- */
  .section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* --- CTA final: ajustes móviles --- */
  .section-final-cta .cta-main-title {
    font-size: 1.6rem;
  }

  .section-final-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* --- FAQ: full width --- */
  .faq-question span:first-child {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }

  .brand-title {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }

  .brand-subtitle {
    font-size: 0.55rem;
    letter-spacing: 2px;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .chip {
    font-size: 0.7rem;
    padding: 6px 8px;
  }

  .hero-services-chips {
    gap: 6px;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .problem-card,
  .service-card,
  .testimonial-card {
    padding: 20px;
  }
}

@media (max-width: 360px) {
  .header-container {
    padding: 0 12px;
  }

  .brand-title {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .brand-subtitle {
    font-size: 0.5rem;
    letter-spacing: 1.5px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .brand-logo {
    gap: 8px;
  }
}

/* ==================== EFECTOS DE MOVIMIENTO Y APARICIÓN AL SCROLL ==================== */

/* --- Animación base: Fade + Slide Up (desde abajo) --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animación: Slide desde Izquierda --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* --- Animación: Slide desde Derecha --- */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* --- Animación: Scale Up (zoom suave) --- */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* --- Animación: Fade + Rotate sutil --- */
.reveal-rotate {
  opacity: 0;
  transform: translateY(40px) rotate(-2deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-rotate.active {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* --- Animación de encabezado de sección (título + tag) --- */
.section-header.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Preferencia de accesibilidad: respetar reduced motion --- */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-rotate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}