@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- variables del sistema de diseño --- */
:root {
  /* paleta de colores obligatoria */
  --color-fondo: #F5F2EB;     /* crema perlado */
  --color-primario: #C8525B;  /* rosa coral (marca/cta) */
  --color-secundario: #A4B465;/* verde pistacho */
  --color-detalles: #D1A751;  /* dorado miel */
  --color-texto: #361F27;     /* mora oscura */
  
  /* variantes para efectos interactivos y transparencias */
  --color-primario-rgb: 200, 82, 91;
  --color-secundario-rgb: 164, 180, 101;
  --color-texto-rgb: 54, 31, 39;
  
  /* tipografía */
  --fuente-titulos: 'Fraunces', serif;
  --fuente-cuerpo: 'Outfit', sans-serif;
  
  /* sombras suaves y cálidas (sin base negra) */
  --sombra-suave: 0 10px 30px rgba(54, 31, 39, 0.05);
  --sombra-media: 0 20px 40px rgba(54, 31, 39, 0.08);
  --sombra-boton: 0 8px 20px rgba(200, 82, 91, 0.25);
  --sombra-tarjeta: 0 15px 35px rgba(54, 31, 39, 0.06);

  /* transiciones estándar */
  --transicion-suave: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transicion-rapida: all 0.2s ease;
}

/* --- estilos globales y reseteo --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: rgba(200, 82, 91, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-fondo);
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--color-texto);
  background-color: var(--color-fondo);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- tipografía y títulos (mayúsculas correctas en español) --- */
h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-texto);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  color: rgba(54, 31, 39, 0.85); /* suavizado de mora oscura */
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--color-texto);
  transition: var(--transicion-rapida);
}

/* --- componentes comunes --- */

/* botones con forma de píldora y micro-animación */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transicion-suave);
  border: none;
  outline: none;
  gap: 0.5rem;
}

.btn-primario {
  background-color: var(--color-primario);
  color: var(--color-fondo);
  box-shadow: var(--sombra-boton);
}

.btn-primario:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 25px rgba(200, 82, 91, 0.4);
  background-color: #b3424a; /* oscurecer levemente el rosa coral */
}

.btn-primario:active {
  transform: translateY(-1px) scale(1);
}

.btn-secundario {
  background-color: transparent;
  color: var(--color-texto);
  border: 2px solid rgba(54, 31, 39, 0.2);
}

.btn-secundario:hover {
  border-color: var(--color-texto);
  background-color: rgba(54, 31, 39, 0.03);
  transform: translateY(-2px);
}

/* formas orgánicas decorativas y fondos del kéfir */
.forma-organica {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.forma-kefir-1 {
  border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
}

.forma-kefir-2 {
  border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
}

/* separadores elegantes con dorado miel */
.separador-miel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.separador-miel::before,
.separador-miel::after {
  content: '';
  height: 2px;
  width: 50px;
  background-color: var(--color-detalles);
  border-radius: 2px;
}

.separador-miel .gota-miel {
  width: 10px;
  height: 10px;
  background-color: var(--color-detalles);
  border-radius: 50%;
  position: relative;
}

/* --- cabecera de la página --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 5%;
  padding-top: calc(1.5rem + env(safe-area-inset-top));
  padding-left: calc(5% + env(safe-area-inset-left));
  padding-right: calc(5% + env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transicion-suave);
}

header.scroll-scrolled {
  background-color: rgba(245, 242, 235, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  padding-top: calc(1rem + env(safe-area-inset-top));
  padding-left: calc(5% + env(safe-area-inset-left));
  padding-right: calc(5% + env(safe-area-inset-right));
  box-shadow: var(--sombra-suave);
}

.logo {
  font-family: var(--fuente-titulos);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-texto);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--fuente-cuerpo);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primario);
  transition: var(--transicion-suave);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-texto);
  border-radius: 2px;
  transition: var(--transicion-suave);
}

/* --- sección hero / portada con video --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 5rem 5%;
  overflow: hidden;
  background-color: var(--color-fondo);
}

/* contenedor del video de fondo */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85; /* Aumentado a 0.85 para evitar el efecto lavado o neblina */
  filter: sepia(5%) saturate(105%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, transparent 50%, var(--color-fondo) 95%);
  z-index: 2;
  opacity: 0.15; /* Reducido a 0.15 para que no opaque la nitidez del video */
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px; /* Centrado y enfocado */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text {
  max-width: 100%;
}

.tagline {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primario);
  background-color: rgba(200, 82, 91, 0.08);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 2.5rem;
}

.hero h1 span {
  font-style: italic;
  font-weight: 400;
  color: var(--color-primario);
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.hero-blob-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  background-color: rgba(164, 180, 101, 0.15); /* verde pistacho muy suave */
  z-index: 1;
  filter: blur(10px);
  animation: flotarBlob 15s infinite ease-in-out alternate;
}

.hero-image {
  position: relative;
  z-index: 2;
  max-width: 85%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(54, 31, 39, 0.15));
  animation: flotarBotella 5s infinite ease-in-out;
}

/* --- sección sobre el kéfir (introducción) --- */
.intro {
  padding: 8rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columnas */
  gap: 3rem;
  align-items: center;
}

.intro-image-container {
  position: relative;
}

/* Animación de entrada especial para la botella del centro al hacer scroll */
.intro-image-container.revelar.entrada-especial {
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.intro-image-container.revelar.entrada-especial.revelar-activo {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.intro-circle-decoration {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  border: 2px dashed rgba(209, 167, 81, 0.3); /* dorado miel */
  border-radius: 58% 42% 45% 55% / 50% 48% 52% 50%;
  animation: rotar 25s infinite linear;
  z-index: 1;
}

/* Animación flotante continua suave */
@keyframes flotarSuave {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.intro-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  display: block;
  animation: flotarSuave 6s infinite ease-in-out;
}

.destaque-origen {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  background-color: rgba(209, 167, 81, 0.08); /* dorado miel transparente */
  padding: 1.5rem;
  border-radius: 20px;
  border-left: 4px solid var(--color-detalles);
}

.destaque-origen svg {
  color: var(--color-detalles);
  flex-shrink: 0;
  margin-top: 3px;
}

.destaque-origen p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--color-texto);
}

.destaque-origen strong {
  font-family: var(--fuente-titulos);
  color: var(--color-detalles);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.2rem;
}

/* --- sección beneficios con fondo pistacho suave --- */
.beneficios {
  padding: 8rem 5%;
  background-color: rgba(164, 180, 101, 0.06); /* sutil toque verde pistacho en el fondo */
  position: relative;
}

.beneficios-container {
  max-width: 1200px;
  margin: 0 auto;
}

.seccion-encabezado {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.seccion-encabezado .tag {
  color: var(--color-secundario);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.tarjeta-beneficio {
  background-color: var(--color-fondo);
  padding: 3rem 2.5rem;
  border-radius: 30px 10px 30px 10px; /* forma orgánica asimétrica */
  box-shadow: var(--sombra-tarjeta);
  border: 1px solid rgba(164, 180, 101, 0.15); /* borde pistacho fino */
  transition: var(--transicion-suave);
  position: relative;
  overflow: hidden;
}

.tarjeta-beneficio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-secundario);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transicion-suave);
}

.tarjeta-beneficio:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-media);
  border-color: var(--color-secundario);
}

.tarjeta-beneficio:hover::before {
  transform: scaleX(1);
}

.icono-beneficio {
  width: 60px;
  height: 60px;
  background-color: rgba(164, 180, 101, 0.12); /* pistacho suave */
  border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%; /* forma kéfir */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secundario);
  margin-bottom: 2rem;
  transition: var(--transicion-suave);
}

.tarjeta-beneficio:hover .icono-beneficio {
  transform: rotate(10deg) scale(1.1);
  background-color: var(--color-secundario);
  color: var(--color-fondo);
}

.tarjeta-beneficio h3 {
  margin-bottom: 1rem;
}

.tarjeta-beneficio p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- sección información nutricional y fórmula --- */
.nutricion {
  padding: 8rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.nutricion-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: center;
}

/* etiqueta nutricional estilizada */
.tabla-nutricional {
  background-color: var(--color-fondo);
  border: 2px solid var(--color-texto);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: var(--sombra-media);
  position: relative;
}

.tabla-nutricional::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
  border: 1px dashed var(--color-detalles);
  border-radius: 30px;
  pointer-events: none;
}

.tabla-nutricional h3 {
  font-family: var(--fuente-titulos);
  font-size: 1.8rem;
  border-bottom: 4px solid var(--color-texto);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.tabla-nutricional .porcion {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-texto);
  padding-bottom: 0.5rem;
}

.nutri-fila {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(54, 31, 39, 0.15);
  font-size: 1rem;
}

.nutri-fila.negrita {
  font-weight: 700;
  border-bottom: 3px solid var(--color-texto);
}

.nutri-fila.sub {
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.nutri-destaque {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(54, 31, 39, 0.7);
}

.nutricion-detalles h2 {
  margin-bottom: 1.5rem;
}

.nutricion-detalles p {
  margin-bottom: 2rem;
}

.lista-ingredientes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lista-ingredientes li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--fuente-cuerpo);
  font-size: 1.05rem;
  font-weight: 500;
}

.lista-ingredientes .check-circulo {
  width: 28px;
  height: 28px;
  background-color: rgba(164, 180, 101, 0.15); /* pistacho suave */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secundario);
  flex-shrink: 0;
}

/* --- sección testimonios --- */
.testimonios {
  padding: 8rem 5%;
  background-color: var(--color-texto); /* mora oscura para contraste dramático y premium */
  color: var(--color-fondo);
  position: relative;
  overflow: hidden;
}

.testimonios .forma-fondo {
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(200, 82, 91, 0.05); /* rosa coral transparente */
  top: -10%;
  right: -5%;
  z-index: 1;
}

.testimonios-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.testimonios h2 {
  color: var(--color-fondo);
}

.testimonios p {
  color: rgba(245, 242, 235, 0.75);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.tarjeta-testimonio {
  background-color: rgba(245, 242, 235, 0.05); /* fondo sutilmente claro sobre mora oscura */
  border: 1px solid rgba(245, 242, 235, 0.1);
  padding: 3rem 2.5rem;
  border-radius: 30px;
  transition: var(--transicion-suave);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarjeta-testimonio:hover {
  background-color: rgba(245, 242, 235, 0.08);
  border-color: rgba(209, 167, 81, 0.4); /* dorado miel */
  transform: translateY(-5px);
}

.estrellas {
  display: flex;
  gap: 0.3rem;
  color: var(--color-detalles); /* dorado miel */
  margin-bottom: 1.5rem;
}

.testimonio-texto {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(245, 242, 235, 0.9) !important;
}

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

.autor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-detalles);
}

.autor-info h4 {
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-fondo);
}

.autor-info span {
  font-size: 0.8rem;
  color: rgba(245, 242, 235, 0.5);
}

/* --- sección llamada a la acción final (cta) --- */
.cta-seccion {
  padding: 8rem 5%;
  position: relative;
  overflow: hidden;
}

.cta-box {
  max-width: 1000px;
  margin: 0 auto;
  background-color: rgba(200, 82, 91, 0.06); /* rosa coral super sutil */
  border: 2px dashed rgba(200, 82, 91, 0.2);
  padding: 5rem 3rem;
  border-radius: 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-box h2 {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.cta-box p {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.15rem;
}

.cta-formulario {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--color-fondo);
  padding: 0.4rem;
  border-radius: 100px;
  border: 1px solid rgba(54, 31, 39, 0.15);
  box-shadow: var(--sombra-suave);
  transition: var(--transicion-suave);
}

.cta-formulario:focus-within {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 4px rgba(200, 82, 91, 0.1);
}

.cta-formulario input[type="email"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 1.5rem;
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  color: var(--color-texto);
  outline: none;
}

.cta-formulario input[type="email"]::placeholder {
  color: rgba(54, 31, 39, 0.5);
}

.cta-formulario button {
  padding: 0.8rem 2rem;
}

/* --- pie de página --- */
footer {
  background-color: #edeae1; /* tono un poco más oscuro que el fondo principal */
  padding: 4rem 5% 2rem 5%;
  border-top: 1px solid rgba(54, 31, 39, 0.05);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(54, 31, 39, 0.1);
}

.footer-logo-box p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links-box h4 {
  font-family: var(--fuente-cuerpo);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-texto);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(54, 31, 39, 0.8);
}

.footer-links a:hover {
  color: var(--color-primario);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(54, 31, 39, 0.6);
}

.redes-sociales {
  display: flex;
  gap: 1.5rem;
}

.redes-sociales a {
  color: var(--color-texto);
  opacity: 0.7;
}

.redes-sociales a:hover {
  color: var(--color-primario);
  opacity: 1;
  transform: translateY(-2px);
}

/* --- animaciones css clave --- */
@keyframes flotarBotella {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes flotarBlob {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 60%;
    transform: rotate(90deg) scale(1.05);
  }
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(180deg) scale(1);
  }
}

@keyframes rotar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- clases de animación para scroll reveal --- */
.revelar {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.revelar.izquierda {
  transform: translateX(-40px);
}

.revelar.derecha {
  transform: translateX(40px);
}

.revelar.escala {
  transform: scale(0.92);
}

.revelar-activo {
  opacity: 1;
  transform: translate(0) scale(1) !important;
}

/* retrasos de animación escalonados */
.retraso-1 { transition-delay: 0.1s; }
.retraso-2 { transition-delay: 0.2s; }
.retraso-3 { transition-delay: 0.3s; }
.retraso-4 { transition-delay: 0.4s; }

/* --- estadísticas rápidas del hero --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4.5rem;
  width: 100%;
}

.stat-badge {
  background-color: rgba(245, 242, 235, 0.85); /* Crema con opacidad para contraste sobre video */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(164, 180, 101, 0.35);
  padding: 1.2rem 1rem;
  border-radius: 24px 8px 24px 8px; /* forma orgánica de kéfir */
  text-align: center;
  box-shadow: 0 8px 20px rgba(54, 31, 39, 0.04);
  transition: var(--transicion-suave);
}

.stat-badge:hover {
  transform: translateY(-5px);
  background-color: var(--color-fondo);
  border-color: var(--color-secundario);
  box-shadow: 0 12px 25px rgba(54, 31, 39, 0.08);
}

.stat-num {
  display: block;
  font-family: var(--fuente-titulos);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primario);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat-desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-texto);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- sección comparación con el mercado --- */
.comparacion-seccion {
  padding: 8rem 5%;
  background-color: var(--color-fondo);
  max-width: 1200px;
  margin: 0 auto;
}

.tabla-comparativa-wrapper {
  overflow-x: auto;
  border-radius: 24px;
  box-shadow: var(--sombra-media);
  border: 1px solid rgba(54, 31, 39, 0.08);
}

.tabla-comparativa {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--color-fondo);
}

.tabla-comparativa th, .tabla-comparativa td {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(54, 31, 39, 0.08);
  font-family: var(--fuente-cuerpo);
}

.tabla-comparativa th {
  background-color: rgba(164, 180, 101, 0.1);
  font-family: var(--fuente-titulos);
  font-size: 1.2rem;
  color: var(--color-texto);
  font-weight: 700;
}

.tabla-comparativa th.destacado {
  background-color: var(--color-secundario);
  color: var(--color-fondo);
}

.tabla-comparativa td.destacado {
  background-color: rgba(164, 180, 101, 0.06);
  border-left: 2px solid var(--color-secundario);
  border-right: 2px solid var(--color-secundario);
}

.tabla-comparativa tr:last-child td {
  border-bottom: none;
}

/* --- mascota flotante interactiva y panel de preguntas --- */
.mascota-widget {
  position: fixed;
  bottom: calc(25px + env(safe-area-inset-bottom));
  right: calc(25px + env(safe-area-inset-right));
  z-index: 1000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: var(--transicion-suave);
}

.mascota-img {
  width: 120px; /* ancho perfecto para cubrir la marca de agua de gemini */
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(54, 31, 39, 0.15));
  transition: var(--transicion-suave);
}

.mascota-widget:hover .mascota-img {
  transform: scale(1.06) rotate(-2deg);
}

.mascota-globo {
  position: absolute;
  top: -45px;
  right: 15px;
  background-color: var(--color-primario);
  color: var(--color-fondo);
  padding: 0.5rem 1rem;
  border-radius: 15px 15px 0 15px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--sombra-suave);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transicion-suave);
  pointer-events: none;
}

.mascota-widget:hover .mascota-globo {
  opacity: 1;
  transform: translateY(0);
}

/* panel faq deslizante */
.faq-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--color-fondo);
  box-shadow: -10px 0 45px rgba(54, 31, 39, 0.12);
  z-index: 2000;
  transition: var(--transicion-suave);
  display: flex;
  flex-direction: column;
}

.faq-drawer.activo {
  right: 0;
}

.faq-header {
  padding: 2rem;
  background-color: var(--color-texto);
  color: var(--color-fondo);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-header h3 {
  font-size: 1.4rem;
  color: var(--color-fondo);
  margin-bottom: 0;
}

.faq-close {
  background: none;
  border: none;
  color: var(--color-fondo);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transicion-rapida);
}

.faq-close:hover {
  color: var(--color-primario);
}

.faq-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* scroll inercial suave para iOS */
  padding: 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(54, 31, 39, 0.08);
  padding-bottom: 1rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--fuente-cuerpo);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-texto);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--color-primario);
  transition: var(--transicion-rapida);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer p {
  font-size: 0.95rem;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  color: rgba(54, 31, 39, 0.8);
}

.faq-item.activo .faq-answer {
  max-height: 250px;
}

.faq-item.activo .faq-icon {
  transform: rotate(45deg);
  color: var(--color-detalles);
}

.faq-footer {
  padding: 1.2rem 2rem;
  background-color: rgba(54, 31, 39, 0.02);
  border-top: 1px solid rgba(54, 31, 39, 0.05);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primario);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(54, 31, 39, 0.35);
  backdrop-filter: blur(3px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transicion-suave);
}

.drawer-overlay.activo {
  opacity: 1;
  pointer-events: auto;
}

/* --- responsividad --- */
@media (max-width: 1024px) {
  .hero-container {
    gap: 2rem;
  }
  .intro-grid, .nutricion-grid {
    gap: 3rem;
  }
  .hero-stats {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1.2rem 5%;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-fondo);
    box-shadow: -10px 0 30px rgba(54, 31, 39, 0.1);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transicion-suave);
    z-index: 999;
  }
  
  .nav-links.activo {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1000;
  }
  
  /* animación del botón de menú */
  .menu-toggle.activo span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.activo span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.activo span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  
  .hero-text {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    margin-top: 3rem;
    order: -1; /* subir la imagen en móviles para captar atención */
  }
  
  .intro-grid, .nutricion-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .intro-image-container {
    order: -1;
  }
  
  .cta-formulario {
    flex-direction: column;
    border-radius: 20px;
    padding: 1rem;
    gap: 1rem;
  }
  
  .cta-formulario input[type="email"] {
    padding: 0.8rem;
    text-align: center;
  }
  
  .cta-formulario button {
    border-radius: 15px;
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }
  
  .mascota-img {
    width: 90px;
  }
  
  .mascota-widget {
    bottom: 15px;
    right: 15px;
  }
  
  .faq-drawer {
    width: 100%;
    right: -100%;
  }
}

