/* ============================================================
   VIDA NATURAL — LANDING PAGE
   Hoja de estilos principal
   ============================================================
   Índice:
   1. Reset & variables (tokens de diseño)
   2. Utilidades base
   3. Botones
   4. Header
   5. Hero
   6. Beneficios
   7. Productos / Carrusel
   8. Testimonios
   9. CTA final
   10. Footer + WhatsApp flotante
   11. Animaciones de scroll (reveal)
   12. Responsive
============================================================= */

/* ------------------------------------------------------------
   1. RESET & VARIABLES
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  /* Paleta — verde natural profundo + acento vivo para conversión */
  --color-bg: #FAF9F5;          /* blanco cálido */
  --color-bg-alt: #F1F2EC;      /* gris muy claro, verdoso */
  --color-surface: #FFFFFF;
  --color-primary: #1F6B45;     /* verde principal, profundo */
  --color-primary-dark: #123B27;
  --color-accent: #35C775;      /* verde vivo — botones de conversión */
  --color-accent-hover: #2AAE64;
  --color-text: #142620;        /* negro verdoso — títulos */
  --color-text-muted: #5C6D63;
  --color-gold: #C9A24B;
  --color-border: #E4E6DD;
  --color-white: #FFFFFF;

  /* Tipografía */
  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(20, 38, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 38, 32, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 38, 32, 0.14);
  --shadow-accent: 0 14px 30px rgba(53, 199, 117, 0.35);

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease);
  --transition-med: 0.4s var(--ease);
  --transition-slow: 0.8s var(--ease);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; }

/* Foco visible accesible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

@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;
  }
}

/* ------------------------------------------------------------
   2. UTILIDADES BASE
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 14px;
}

.section__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}

.section__desc {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 17px;
}

.asterisk { color: var(--color-gold); font-weight: 700; }

/* Placeholders de imagen — listos para reemplazar por fotos reales */
.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(31,107,69,0.06) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #EAF2EC, #F4F5EE);
  color: var(--color-primary);
  border-radius: inherit;
  overflow: hidden;
}
.img-placeholder svg { width: 30%; height: 30%; opacity: 0.55; }
.img-placeholder::after {
  content: attr(data-placeholder-label);
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: rgba(255,255,255,0.85);
  padding: 5px 9px;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition-fast);
  pointer-events: none;
}
.img-placeholder:hover::after { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------
   3. BOTONES
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 18px 38px rgba(53,199,117,0.42); }

.btn--white {
  background: var(--color-white);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn--outline:hover { border-color: var(--color-primary); background: rgba(31,107,69,0.06); }

.btn--large { padding: 19px 38px; font-size: 18px; }
.btn--small { padding: 11px 20px; font-size: 14px; }

.whatsapp-icon { width: 20px; height: 20px; flex-shrink: 0; }
.whatsapp-icon svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------
   4. HEADER
------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(20,38,32,0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--color-primary-dark);
}
.logo__mark { width: 26px; height: 26px; color: var(--color-primary); }
.logo__mark svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------
   5. HERO
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle at 30% 30%, rgba(53,199,117,0.16), transparent 65%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero__subtitle strong { color: var(--color-primary-dark); }

.hero__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.hero__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(53,199,117,0.15);
  color: var(--color-primary);
  font-size: 12px;
  flex-shrink: 0;
}

.hero__media { position: relative; }

.hero__image-frame {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  animation: float 5s ease-in-out infinite;
}
.hero__badge-number { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--color-primary); }
.hero__badge-label { font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ------------------------------------------------------------
   6. BENEFICIOS
------------------------------------------------------------ */
.benefits { background: var(--color-bg-alt); position: relative; }

.benefits__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefits__vine {
  position: absolute;
  top: 34px;
  left: 0;
  width: 100%;
  height: 90px;
  color: var(--color-primary);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.benefits__vine-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.benefits__grid.is-visible .benefits__vine-path { stroke-dashoffset: 0; }

.benefit-card {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.benefit-card__node {
  position: absolute;
  top: -6px;
  left: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-bg-alt);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(31,107,69,0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-card__icon svg { width: 24px; height: 24px; }

.benefit-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.benefit-card p { color: var(--color-text-muted); font-size: 15px; }

.benefits__cta { text-align: center; margin-top: 52px; }

/* ------------------------------------------------------------
   7. PRODUCTOS / CARRUSEL
------------------------------------------------------------ */
.products .section__head { margin-bottom: 44px; }

.carousel { position: relative; padding: 0 24px; }

.carousel__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  padding: 6px 0 26px;
  max-width: var(--container-w);
  margin: 0 auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.product-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 268px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.product-card__image { aspect-ratio: 1 / 0.9; }

.product-card__body { padding: 20px; }
.product-card__body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.product-card__body p { color: var(--color-text-muted); font-size: 14px; margin-bottom: 16px; min-height: 40px; }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.carousel__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow:hover { background: var(--color-primary); color: var(--color-white); transform: scale(1.06); }

.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: var(--transition-fast);
}
.carousel__dot.is-active { background: var(--color-primary); width: 22px; border-radius: 5px; }

/* ------------------------------------------------------------
   8. TESTIMONIOS
------------------------------------------------------------ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testimonial-card__stars { color: var(--color-gold); letter-spacing: 3px; font-size: 15px; margin-bottom: 16px; }

.testimonial-card__quote { font-size: 15.5px; color: var(--color-text); margin-bottom: 24px; }

.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__author strong { display: block; font-size: 14.5px; }
.testimonial-card__author span { font-size: 13px; color: var(--color-text-muted); }

.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   9. CTA FINAL
------------------------------------------------------------ */
.cta-final {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  text-align: center;
}
.cta-final__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 55%, #2E9A5F);
  z-index: -1;
}
.cta-final__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 55%);
}

.cta-final__inner h2 {
  color: var(--color-white);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-final__inner p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ------------------------------------------------------------
   10. FOOTER + WHATSAPP FLOTANTE
------------------------------------------------------------ */
.footer { padding: 40px 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 13.5px;
}
.logo--footer { font-size: 16px; color: var(--color-primary-dark); }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  z-index: 200;
  animation: pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53,199,117,0.45), var(--shadow-accent); }
  50% { box-shadow: 0 0 0 12px rgba(53,199,117,0), var(--shadow-accent); }
}

/* ------------------------------------------------------------
   11. ANIMACIONES DE SCROLL (reveal)
------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal--delay-1.is-visible { transition-delay: 0.12s; }
.reveal--delay-2.is-visible { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   12. RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; margin: 0 auto; }
  .hero { min-height: auto; padding-top: 40px; }
  .benefits__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .benefits__vine { display: none; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .header__inner { padding-top: 12px; padding-bottom: 12px; }
  .header .btn--small { padding: 10px 16px; font-size: 13px; }
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }
  .btn--large { width: 100%; padding: 17px 24px; }
  .hero__badge { left: 12px; bottom: 14px; padding: 12px 16px; }
  .product-card { width: 220px; }
  .cta-final { padding: 76px 0; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}
