/* ========================================================================
   AQUAMIA CR — Fase 1: Estilos Base
   Stack: CSS3, mobile-first, breakpoints 480/768/1024
   Paleta: #0F69B4 · #1E50A2 · #6BA4E8 · #FFFFFF
   Tipografía: Montserrat 400/600/700/800
   ======================================================================== */

/* --- RESET & BASE ---------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- CSS VARIABLES --------------------------------------------------- */
:root {
  --azul-principal: #0F69B4;
  --azul-profundo: #1E50A2;
  --celeste-brillo: #6BA4E8;
  --blanco: #FFFFFF;
  --gris-claro: #f4f7fb;
  --gris-texto: #4a5568;
  --sombra-suave: 0 2px 12px rgba(15, 105, 180, 0.08);
  --sombra-media: 0 4px 24px rgba(15, 105, 180, 0.12);
  --sombra-navbar: 0 2px 16px rgba(30, 80, 162, 0.10);
  --radio-sm: 8px;
  --radio-md: 12px;
  --radio-lg: 20px;
  --radio-full: 50px;
  --transicion: 0.3s ease;
}

/* --- UTILIDADES ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--celeste-brillo);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--azul-profundo);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gris-texto);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

/* --- BOTONES --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radio-full);
  cursor: pointer;
  transition: background var(--transicion), transform var(--transicion), box-shadow var(--transicion);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--azul-principal);
  color: var(--blanco);
  box-shadow: 0 4px 20px rgba(15, 105, 180, 0.35);
}

.btn-primary:hover {
  background: var(--azul-profundo);
  box-shadow: 0 6px 28px rgba(15, 105, 180, 0.45);
}

.btn-white {
  background: var(--blanco);
  color: var(--azul-principal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #f0f6ff;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--blanco);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

/* =====================================================================
   0. PANTALLA DE CARGA (Para 3D)
   ===================================================================== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--blanco);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gris-claro);
  border-top-color: var(--azul-principal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 24px;
}

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

/* =====================================================================
   0.5 CAPA 3D (THREE.JS)
   ===================================================================== */
.canvas-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* Let clicks pass through to UI */
  overflow: hidden;
}

/* Organic noise/grain overlay to make 3D feel less artificial */
.canvas-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Fallbacks CSS para cuando el 3D está apagado (mobile/low-end) */
.fallback-gradient {
  background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--celeste-brillo) 100%);
  animation: bg-shift 10s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% { background-position: 0% 50%; background-size: 200% 200%; }
  100% { background-position: 100% 50%; background-size: 200% 200%; }
}

/* =====================================================================
   1. NAVBAR
   ===================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background var(--transicion), box-shadow var(--transicion);
}

/* Scrolled state: solid white with shadow */
.navbar--scrolled {
  background: var(--blanco);
  box-shadow: var(--sombra-navbar);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo img {
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Logo swap: white logo visible by default (transparent navbar on hero) */
.navbar__logo-white {
  display: block;
}

.navbar__logo-blue {
  display: none;
}

/* When scrolled, swap to blue logo on white background */
.navbar--scrolled .navbar__logo-white {
  display: none;
}

.navbar--scrolled .navbar__logo-blue {
  display: block;
}

/* Hamburger */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform var(--transicion), opacity var(--transicion), background var(--transicion);
}

.navbar--scrolled .navbar__toggle span {
  background: var(--azul-profundo);
}

.navbar__toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Links — Mobile drawer */
.navbar__links {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--blanco);
  box-shadow: var(--sombra-media);
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  gap: 8px;
  display: none;
}

.navbar__links.open {
  display: flex;
}

/* Base links (Mobile drawer & Default) */
.navbar__links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul-profundo);
  padding: 10px 20px;
  border-radius: var(--radio-sm);
  transition: background var(--transicion), color var(--transicion);
}

.navbar__links a:hover {
  background: rgba(15, 105, 180, 0.08);
  color: var(--azul-principal);
}

/* CTA button base (Scrolled & Mobile) -> Blue bg, White text */
.navbar__links a.navbar__cta {
  color: var(--blanco);
}
.navbar__links a.navbar__cta:hover {
  color: var(--blanco);
}

/* --- Desktop specific colors --- */
@media (min-width: 768px) {
  /* Transparent state (at top) */
  .navbar:not(.navbar--scrolled) .navbar__links a {
    color: rgba(255, 255, 255, 0.9);
  }
  .navbar:not(.navbar--scrolled) .navbar__links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--blanco);
  }
  
  /* CTA in transparent state -> White bg, Blue text */
  .navbar:not(.navbar--scrolled) .navbar__links a.navbar__cta {
    background: var(--blanco);
    color: var(--azul-principal);
  }
  .navbar:not(.navbar--scrolled) .navbar__links a.navbar__cta:hover {
    background: #f0f6ff;
    color: var(--azul-profundo);
  }

  /* Scrolled state -> explicitly enforce dark blue links */
  .navbar--scrolled .navbar__links a {
    color: var(--azul-profundo);
  }
  .navbar--scrolled .navbar__links a:hover {
    color: var(--azul-principal);
  }

  /* CTA in scrolled state -> enforce white text */
  .navbar--scrolled .navbar__links a.navbar__cta {
    color: var(--blanco);
    background: var(--azul-principal);
  }
  .navbar--scrolled .navbar__links a.navbar__cta:hover {
    background: var(--azul-profundo);
  }
}

/* Mobile drawer always has white background regardless of navbar state */
.navbar__links {
  background: var(--blanco);
}

/* Hamburger lines: white when transparent, blue when scrolled */
.navbar__toggle span {
  background: var(--blanco);
}

.navbar--scrolled .navbar__toggle span {
  background: var(--azul-profundo);
}

.navbar__cta {
  margin-top: 8px;
}

/* =====================================================================
   2. HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--celeste-brillo) 100%);
  overflow: hidden;
}

/* Decorative circles */
.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  top: -100px;
  right: -100px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  bottom: 60px;
  left: -80px;
}

.hero .container {
  position: relative;
  z-index: 1; /* Above canvas */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 20px;
  border-radius: var(--radio-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blanco);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero__badge::before {
  content: '💧';
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--blanco);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__shelf-wrapper {
  position: relative;
  margin: 32px auto 0;
  width: 100%;
  max-width: 400px;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* we want items to fade out beyond edges */
  z-index: 10; /* Ensures shelf is above the text block */
}

.hero__shelf-halo {
  position: absolute;
  width: 120%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(107, 164, 232, 0.45) 0%, rgba(107, 164, 232, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero__shelf-items {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.hero__shelf-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* initial state, controlled by JS */
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.hero__shelf-item img {
  height: 55vh;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.5);
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* =====================================================================
   3. LÍNEA DE PRODUCTOS — Desktop Showcase + Mobile Carousel
   ===================================================================== */

/* --- Desktop: Sticky showcase (hidden on mobile) --- */
.productos-showcase {
  display: none;  /* shown at 768px+ */
  background: var(--gris-claro);
  height: 100vh;
  flex-direction: column;
}

.productos-showcase__header {
  padding: 80px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex: 0 0 auto;
}

.productos-showcase__stage {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.productos-showcase__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 40px;
  max-width: 1000px;
  margin: 0 auto;
  pointer-events: none;
}

.productos-showcase__item:first-child {
  pointer-events: auto;
}

/* Items 2-4 start invisible; GSAP animates them */
.productos-showcase__item:not(:first-child) .productos-showcase__img,
.productos-showcase__item:not(:first-child) .productos-showcase__text {
  opacity: 0;
}

.productos-showcase__img {
  flex: 0 0 45%;
  max-width: 320px;
  display: flex;
  justify-content: center;
  will-change: transform, opacity;
}

.productos-showcase__img img {
  width: auto;
  max-width: 100%;
  max-height: 45vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.productos-showcase__text {
  flex: 1;
  max-width: 400px;
  will-change: transform, opacity;
}

.productos-showcase__name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--azul-profundo);
  margin-bottom: 8px;
}

.productos-showcase__desc {
  font-size: 0.95rem;
  color: var(--gris-texto);
  line-height: 1.5;
  margin-bottom: 12px;
}

.productos-showcase__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--azul-principal);
}

/* Alternate text side: even items reverse the flex direction */
.productos-showcase__item:nth-child(even) {
  flex-direction: row-reverse;
}

/* --- Mobile: Horizontal scroll carousel (shown <768px) --- */
.productos-mobile {
  display: block;
  padding: 60px 0 40px;
  background: var(--gris-claro);
  overflow: hidden;
}

.productos-mobile__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 20px;
  scrollbar-width: none;
}

.productos-mobile__track::-webkit-scrollbar {
  display: none;
}

.productos-mobile__track .producto-card {
  flex: 0 0 75%;
  max-width: 260px;
  scroll-snap-align: center;
}

/* --- Shared producto-card styles (used by mobile carousel) --- */
.producto-card {
  background: var(--blanco);
  border-radius: var(--radio-md);
  padding: 24px 16px 20px;
  text-align: center;
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicion), box-shadow var(--transicion);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-media);
}

.producto-card__img {
  width: 100%;
  max-width: 140px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 16px;
}

.producto-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 6px;
}

.producto-card__desc {
  font-size: 0.8rem;
  color: var(--gris-texto);
  margin-bottom: 12px;
  line-height: 1.4;
}

.producto-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--azul-principal);
}

/* =====================================================================
   4. BENEFICIOS / FEATURES
   ===================================================================== */
.beneficios {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Watermark logo */
.beneficios__watermark {
  position: absolute;
  width: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
}

.beneficios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.beneficio-card {
  background: var(--blanco);
  border: 1px solid rgba(15, 105, 180, 0.08);
  border-radius: var(--radio-md);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.beneficio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-media);
}

.beneficio-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 105, 180, 0.1), rgba(107, 164, 232, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.beneficio-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--azul-principal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beneficio-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 8px;
}

.beneficio-card__text {
  font-size: 0.85rem;
  color: var(--gris-texto);
  line-height: 1.5;
}

/* =====================================================================
   5. NUESTRO MANANTIAL
   ===================================================================== */
.manantial {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--celeste-brillo) 100%);
  position: relative;
  overflow: hidden;
}

/* Liquid GSAP Transition container for Beneficios */
.beneficios-liquid-wrapper {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  will-change: clip-path;
}

.manantial::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  top: -80px;
  left: -100px;
}

.manantial .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.manantial__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.manantial__title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--blanco);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.manantial__text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.manantial__logo {
  width: 120px;
  margin: 32px auto 0;
  opacity: 0.3;
}

/* =====================================================================
   6. CONTADORES / MÉTRICAS
   ===================================================================== */
.metricas {
  padding: 60px 0;
  background: var(--azul-profundo);
  position: relative;
  overflow: hidden;
}

.metricas__logo {
  position: absolute;
  width: 200px;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.metricas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
  position: relative;
  z-index: 1;
}

.metrica {
  text-align: center;
}

.metrica__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1;
  margin-bottom: 6px;
}

.metrica__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

/* =====================================================================
   7. ZONAS DE ENTREGA
   ===================================================================== */
.zonas {
  padding: 80px 0;
  background: var(--gris-claro);
}

.zonas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.zona-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--blanco);
  padding: 16px 20px;
  border-radius: var(--radio-sm);
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.zona-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-media);
}

.zona-item__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-principal), var(--celeste-brillo));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zona-item__check svg {
  width: 14px;
  height: 14px;
  stroke: var(--blanco);
  stroke-width: 3;
  fill: none;
}

.zona-item__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul-profundo);
}

/* =====================================================================
   8. TESTIMONIOS
   ===================================================================== */
.testimonios {
  padding: 80px 0;
}

.testimonios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonio-card {
  background: var(--blanco);
  border: 1px solid rgba(15, 105, 180, 0.08);
  border-radius: var(--radio-md);
  padding: 24px;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-media);
}

.testimonio-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.testimonio-card__stars svg {
  width: 18px;
  height: 18px;
  fill: #f5a623;
}

.testimonio-card__text {
  font-size: 0.9rem;
  color: var(--gris-texto);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonio-card__author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--azul-profundo);
}

.testimonio-card__location {
  font-size: 0.75rem;
  color: var(--gris-texto);
  margin-top: 2px;
}

/* =====================================================================
   9. FORMULARIO DE PEDIDO
   ===================================================================== */
.pedido {
  padding: 80px 0;
  background: var(--gris-claro);
}

.pedido__wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--blanco);
  border-radius: var(--radio-lg);
  padding: 32px 24px;
  box-shadow: var(--sombra-media);
}

.pedido__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--azul-profundo);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 2px solid rgba(15, 105, 180, 0.15);
  border-radius: var(--radio-sm);
  background: var(--blanco);
  color: #1a1a2e;
  transition: border-color var(--transicion), box-shadow var(--transicion);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--azul-principal);
  box-shadow: 0 0 0 3px rgba(15, 105, 180, 0.1);
}

.form-group input::placeholder {
  color: #a0aec0;
}

.form-group input.error,
.form-group select.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pedido__submit {
  margin-top: 8px;
  width: 100%;
}

/* =====================================================================
   10. FOOTER
   ===================================================================== */
.footer {
  padding: 48px 0 24px;
  background: var(--azul-profundo);
  color: var(--blanco);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__logo img {
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transicion);
}

.footer__links a:hover {
  color: var(--blanco);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transicion);
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--blanco);
}

.footer__contact {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transicion);
}

.footer__contact a:hover {
  color: var(--blanco);
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* =====================================================================
   11. BOTÓN FLOTANTE WHATSAPP
   ===================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--blanco);
}

/* =====================================================================
   RESPONSIVE — 480px+
   ===================================================================== */
@media (min-width: 480px) {
  .hero__title {
    font-size: 2.4rem;
  }

  .hero__image {
    width: 260px;
  }

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

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

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

/* =====================================================================
   RESPONSIVE — 768px+
   ===================================================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  /* Navbar desktop */
  .navbar__toggle {
    display: none;
  }

  .navbar__links {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 4px;
    width: auto;
  }

  .navbar__cta {
    margin-top: 0;
    margin-left: 8px;
  }

  /* Hero side-by-side */
  .hero .container {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }

  .hero__content {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 20px;
    position: relative;
    z-index: 5; /* Lower than shelf wrapper */
  }

  .hero__shelf-wrapper {
    flex: 0 0 50%;
    width: 50%;
    height: 70vh;
    margin: 0;
    z-index: 10; /* Above the text block */
  }

  .hero__shelf-item img {
    height: 65vh;
    width: auto;
    object-fit: contain;
  }

  .hero__title {
    font-size: 2.6rem;
  }

  /* Productos: show desktop showcase, hide mobile carousel */
  .productos-showcase {
    display: flex;
  }

  .productos-mobile {
    display: none;
  }

  /* Beneficios 4 columns */
  .beneficios__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  /* Manantial */
  .manantial__title {
    font-size: 2.2rem;
  }

  /* Metricas 4 columns */
  .metricas__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .metrica__number {
    font-size: 2.5rem;
  }

  /* Zonas 3 columns */
  .zonas__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Pedido */
  .pedido__wrapper {
    padding: 48px 40px;
  }

  /* Footer */
  .footer .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer__copyright {
    text-align: center;
  }
}

/* =====================================================================
   RESPONSIVE — 1024px+
   ===================================================================== */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .hero__image {
    width: 400px;
  }

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

  .manantial__title {
    font-size: 2.5rem;
  }

  .productos-showcase__img {
    max-width: 400px;
  }

  .productos-showcase__name {
    font-size: 2.2rem;
  }

  .beneficios__grid {
    gap: 28px;
  }

  .beneficio-card {
    padding: 36px 24px;
  }

  .testimonios__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .metrica__number {
    font-size: 3rem;
  }
}

/* =====================================================================
   ANIMATIONS: will-change hints for GSAP-animated elements
   ===================================================================== */
.hero__content,
.hero__image,
.hero__badge,
.beneficio-card,
.testimonio-card,
.zona-item,
.metrica,
.pedido__wrapper,
.manantial .container {
  will-change: transform, opacity;
}

/* =====================================================================
   ACCESSIBILITY: prefers-reduced-motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__scroll-indicator svg {
    animation: none;
  }

  .hero__shelf-wrapper, .hero__shelf-items {
    transform: none !important;
  }
  
  .hero__shelf-item {
    opacity: 0 !important;
    transform: none !important;
    left: 0 !important;
  }
  
  .hero__shelf-item:first-child {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}
