/* =====================================================================
   Bet Paré · Lactancia con calma — Landing premium (version 2)
   Solo con el contenido real del proyecto.
   Formulario rectangular: Nombre arriba, Email abajo, botón de descarga.
   ===================================================================== */

:root {
  --cream:        #FBF5EA;
  --cream-2:      #F5EAD6;
  --forest:       #37552B;
  --forest-2:     #2C4522;
  --sage:         #7F9F5A;
  --sage-soft:    #E4ECD6;
  --terracotta:   #E08A3C;
  --terracotta-2: #C9722A;
  --coral:        #E45B45;
  --ink:          #34382E;
  --muted:        #6E7364;
  --line:         #E8DEC9;
  --white:        #FFFFFF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 2px 10px -4px rgba(55,85,43,.16);
  --shadow-md: 0 18px 40px -22px rgba(55,85,43,.34);
  --shadow-lg: 0 40px 80px -30px rgba(55,85,43,.40);
  --shadow-cta: 0 14px 30px -8px rgba(224,138,60,.55);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-pill: 999px;

  --maxw: 1180px;
  --section-y: clamp(4rem, 9vw, 8rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Altura del header sticky (72px) + aire. Evita que el header tape
     el destino al saltar a un ancla (#top, #descargar, #final). */
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` en lugar de `hidden`: con `hidden`, overflow-y pasa a `auto` y el
     body se convierte en contenedor de scroll, lo que rompe el header sticky
     en Safari/WebKit. `clip` recorta igual sin crear ese contenedor. */
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.section { padding: var(--section-y) 0; position: relative; }

/* ---------- Tipografía global ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta-2); background: rgba(224,138,60,.10);
  border: 1px solid rgba(224,138,60,.22);
  padding: .5rem 1rem; border-radius: var(--r-pill);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(224,138,60,.2); }
.eyebrow.on-dark { color: #FBE6CC; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }

.tag { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.tag.light { color: #cfe0b6; }

.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.14; letter-spacing: -.015em; color: var(--forest);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,245,234,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(55,85,43,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--forest); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; color: var(--white);
  background: linear-gradient(140deg, var(--terracotta), var(--coral));
  border-radius: 12px; box-shadow: var(--shadow-cta); flex: none;
}
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.05; }
.brand-text em { display: block; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }

/* =====================================================================
   BOTONES
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  border-radius: var(--r-pill); padding: 1.05rem 1.8rem;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn-nav { color: var(--white); background: var(--forest); padding: .7rem 1.3rem; font-size: .92rem; box-shadow: var(--shadow-sm); }
.btn-nav:hover { background: var(--forest-2); transform: translateY(-2px); }

.btn-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--coral) 100%);
  box-shadow: var(--shadow-cta); position: relative; overflow: hidden;
}
.btn-cta svg { transition: transform .3s ease; }
.btn-cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0) 55%);
  opacity: 0; transition: opacity .3s ease;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -8px rgba(224,138,60,.65); }
.btn-cta:hover::after { opacity: 1; }
.btn-cta:hover svg { transform: translateY(2px); }
.btn-cta:active { transform: translateY(-1px) scale(.99); }
.btn:focus-visible { outline: 3px solid rgba(224,138,60,.5); outline-offset: 3px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-glow {
  position: absolute; z-index: 0; top: -25%; right: -10%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at center, rgba(224,138,60,.20), rgba(224,138,60,0) 62%);
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; z-index: 0; bottom: -20%; left: -12%;
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at center, rgba(127,159,90,.18), rgba(127,159,90,0) 60%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-intro { max-width: 820px; margin: 0 auto 2.8rem; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -.02em;
  color: var(--forest); margin: 1.4rem auto 1.1rem; max-width: 15ch;
}
.hero-sub { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 auto; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-note {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.4rem; font-weight: 600; color: var(--forest);
}
.hero-note svg { color: var(--sage); }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}

/* --- Vídeo --- */
.hero-media { position: relative; }
.video-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid var(--white);
  transform: rotate(-1deg); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.video-card:hover { transform: rotate(0deg) scale(1.01); }
.video-card img { width: 100%; }

/* =====================================================================
   FORMULARIO RECTANGULAR (Nombre arriba · Email abajo · Descargar)
   ===================================================================== */
.signup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.signup-card label {
  display: block; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--forest); margin-bottom: .45rem;
}
.signup-card input {
  width: 100%; border: 1.5px solid var(--line); background: var(--cream);
  border-radius: var(--r-sm); padding: 1rem 1.1rem; font-size: 1rem; color: var(--ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.signup-card input::placeholder { color: #9a9d90; }
.signup-card input:focus {
  outline: none; background: var(--white); border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(224,138,60,.15);
}
.signup-card input.invalid { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(228,91,69,.14); }
.btn.is-loading { pointer-events: none; opacity: .75; }

.field-error {
  font-size: .8rem; color: var(--coral); font-weight: 500; margin-top: .4rem;
  opacity: 0; max-height: 0; overflow: hidden; transition: opacity .2s ease, max-height .2s ease;
}
.field-error.show { opacity: 1; max-height: 3em; }

/* =====================================================================
   ¿TE IDENTIFICAS?
   ===================================================================== */
.pain { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.pain-card {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain-emoji { font-size: 1.2rem; line-height: 1.4; flex: none; }
.pain-card p { font-size: 1rem; color: var(--ink); }

.pain-note {
  margin-top: 2.6rem; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--terracotta);
  border-radius: var(--r-md); padding: 2rem clamp(1.4rem, 4vw, 2.8rem); box-shadow: var(--shadow-md);
}
.pain-note p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink); }
.pain-note em { color: var(--terracotta-2); font-style: italic; }
.pain-note strong { color: var(--forest); }
.pain-note strong.yes { color: var(--terracotta-2); font-style: normal; font-weight: 700; }

/* =====================================================================
   EN ESTE VÍDEO DESCUBRIRÁS
   ===================================================================== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.benefit-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2.2rem; box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.benefit-num {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--white);
  background: linear-gradient(140deg, var(--terracotta), var(--coral));
  box-shadow: var(--shadow-cta); margin-bottom: 1.3rem;
}
.benefit-card p { color: var(--ink); font-size: 1.08rem; }

/* =====================================================================
   LO QUE CONSEGUIRÁS (fondo verde)
   ===================================================================== */
.outcome-wrap {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-2) 100%);
  color: #F3F0E6; border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.outcome-wrap::before {
  content: ""; position: absolute; top: -20%; right: -10%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,138,60,.28), transparent 65%);
}
.outcome-wrap > * { position: relative; z-index: 1; }
.outcome-head .section-title { color: var(--white); max-width: 20ch; }
.outcome-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: 2.2rem 0 2.4rem; }
.outcome-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.05rem; color: #EDEBDF; }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--forest); background: var(--sage); margin-top: 2px;
}
.outcome-cta { margin-top: .5rem; }

/* =====================================================================
   PARA TI SI — chips
   ===================================================================== */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.4rem; }
.chip {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .8rem 1.5rem; font-weight: 500; color: var(--forest); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.chip:hover { transform: translateY(-3px); border-color: var(--terracotta); box-shadow: var(--shadow-md); }

/* =====================================================================
   HOLA, SOY BET
   ===================================================================== */
.about { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portrait {
  border-radius: var(--r-lg); overflow: hidden;
  border: 8px solid var(--white); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; background: var(--cream-2);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.about-copy .tag { font-size: 1.6rem; }
.about-copy p { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.signature {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.6rem; color: var(--forest) !important; margin-top: 1.2rem !important;
}

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.final-cta {
  background: linear-gradient(155deg, var(--forest) 0%, var(--forest-2) 55%, #24391b 100%);
  color: #F3F0E6; position: relative; overflow: hidden;
}
.final-glow {
  position: absolute; top: -25%; left: 30%; transform: translateX(-50%);
  width: 70vw; max-width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(224,138,60,.28), transparent 62%);
  pointer-events: none;
}
.final-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.final-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; color: var(--white);
  margin: 1.3rem 0 1rem; letter-spacing: -.015em; max-width: 15ch;
}
.final-sub { color: #d3e0be; font-size: clamp(1.05rem, 2vw, 1.2rem); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: #26301D; color: #cdd6bd; padding: 2.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { color: #F3F0E6; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand .brand-text { font-size: 1.05rem; }
.footer-inner p { font-size: .85rem; color: #91a07c; }
.footer-inner p a { text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.footer-inner p a:hover { color: #F3F0E6; }

/* =====================================================================
   TOAST
   ===================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120%);
  background: var(--forest); color: var(--white);
  padding: .95rem 1.5rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); font-weight: 500; z-index: 200;
  transition: transform .45s cubic-bezier(.2,.9,.3,1.2); max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* =====================================================================
   REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .hero-media { order: 1; }
  .hero-form-col { order: 2; }
  .final-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; text-align: center; }
  .final-copy .eyebrow { margin: 0 auto; }
  .final-title { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-copy { text-align: center; }
  .about-copy p { margin-left: auto; margin-right: auto; }
  .about-copy .tag { display: block; }
}
@media (max-width: 720px) {
  :root { --section-y: clamp(3rem, 10vw, 4.5rem); }
  .pain-grid, .cards-3 { grid-template-columns: 1fr; }
  .outcome-list { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
  .btn-nav { padding: .6rem 1rem; font-size: .85rem; }
  .video-card { transform: none; }
}
@media (max-width: 460px) {
  .header-inner { height: 64px; }
  html { scroll-padding-top: 80px; }
  .footer-inner { flex-direction: column; text-align: center; }
}


.formulario-mailrelay{width:100%;max-width:700px;margin:0 auto;}
.event-date,.trust-line{text-align:center;font-weight:600;margin:10px 0;}

/* =====================================================================
   FORMULARIO MAILRELAY NATIVO
   Mapea las clases propias del form (.form-group, .control-label,
   .form-control, .btn-primary) sobre el estilo ya existente de
   .signup-card, para que el aspecto no varíe.
   ===================================================================== */
.signup-card .form-group { margin-bottom: 1.1rem; position: relative; }
/* .control-label y .form-control ya heredan de `.signup-card label` y
   `.signup-card input`; no necesitan reglas propias. */

/* Aceptación de la política de privacidad (RGPD).
   La casilla debe escapar de `.signup-card input`, pensado para campos de texto. */
.signup-card input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; flex: none; margin: .2rem 0 0;
  padding: 0; border: none; border-radius: 0; background: none; box-shadow: none;
  -webkit-appearance: auto; appearance: auto;
  accent-color: var(--terracotta); cursor: pointer;
}
.signup-card input[type="checkbox"].invalid { outline: 2px solid var(--coral); outline-offset: 2px; }
.signup-card .checkbox label {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-bottom: 0; cursor: pointer;
  font-size: .85rem; font-weight: 500; line-height: 1.5;
  color: var(--muted); letter-spacing: 0;
}
.signup-card .checkbox abbr { display: none; }
.signup-card .checkbox a {
  color: var(--terracotta-2); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.signup-card .checkbox a:hover { color: var(--coral); }

/* Honeypot antispam: fuera de pantalla y sin estilos de campo */
.signup-card input[name="anotheremail"] {
  width: 1px; height: 1px; padding: 0; border: 0;
  background: none; box-shadow: none; opacity: 0;
}

/* El CTA final centra su texto en móvil (.final-grid); la tarjeta no. */
.final-form-col .signup-card { text-align: left; }

.signup-card .submit-wrapper { margin-top: .3rem; }
.signup-card .btn-primary {
  width: 100%;
  border: none; -webkit-appearance: none; appearance: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--coral) 100%);
  box-shadow: var(--shadow-cta);
  padding: 1.05rem 1rem;
  font-size: clamp(.86rem, 3.2vw, .98rem);
  line-height: 1.3; text-align: center;
}
.signup-card .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -8px rgba(224,138,60,.65); }
.signup-card .btn-primary:active { transform: translateY(-1px) scale(.99); }
