/* =====================================================================
   Waitlist v5 (Producto/waitlist-v5.html)
   Página nueva, sólo depende de global.css (tokens) y del Punto.
   Esqueleto: hero + lista · problema · circuito · familia · tú decides ·
   médicos · hay algo más · por qué una lista · preguntas · cierre.
   Lenguaje visual de las piezas de Anna (BEPP Pre-launch): fondos azul
   noche con luz lima difusa y grano, píldora lima animada sobre una
   palabra, reel "caos → orden", chat familiar, fotos con velo azul.
   El verde nunca es fondo de texto blanco: los CTA llevan texto navy.
   ===================================================================== */

.wl {
  --wl-night-1: #0f3550;
  --wl-night-2: #123f5c;
  --wl-night-3: #0a2638;
  --wl-ink: var(--primary-dark);
  --wl-ink-2: #3d5a6c;
  --wl-lime-soft: #C6E06A;
  --wl-glow: radial-gradient(34% 30% at 72% 30%, rgba(164, 198, 52, .5), transparent 70%),
             radial-gradient(40% 36% at 22% 78%, rgba(74, 122, 154, .6), transparent 70%);
  --wl-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --wl-ease: cubic-bezier(.16, 1, .3, 1);
  margin: 0;
  background: var(--bg);
  color: var(--wl-ink);
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.wl ::selection { background: var(--accent-soft); color: var(--wl-ink); }
.wl input { caret-color: var(--primary); }
.wl svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wl-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-40); }
.wl-wrap--narrow { max-width: 760px; }
.wl-center, .wl-h2.wl-center, .wl-lead.wl-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- tipografía ---------- */

.wl-h1 {
  margin: 0 0 var(--space-14);
  font-size: clamp(2.1rem, 3.9vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
  color: var(--white);
  text-wrap: balance;
}

.wl-h2 {
  margin: 0 0 var(--space-16);
  max-width: 22ch;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

.wl-lead {
  margin: 0 0 var(--space-24);
  max-width: 52ch;
  font-size: var(--font-md);
  line-height: 1.55;
  color: var(--wl-ink-2);
  text-wrap: pretty;
}

.wl-accent { color: var(--accent-hover); }

/* la píldora de Anna: el "subrayado" lima que se redibuja cada 6 s */
.wl-pill { position: relative; display: inline-block; padding: 0 .14em; margin: 0 .16em 0 .04em; white-space: nowrap; }
.wl-pill::before {
  content: "";
  position: absolute;
  inset: -.06em -.16em;
  border: .09em solid var(--accent);
  border-radius: 99px;
  animation: wl-pill 6s cubic-bezier(.65, 0, .35, 1) infinite;
}
.wl-pill--dark::before { border-color: var(--accent-hover); }

@keyframes wl-pill {
  0%, 70% { clip-path: inset(0 0 0 0); }
  84% { clip-path: inset(0 0 0 100%); }
  85% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* ---------- botones ---------- */

.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 48px;
  padding: var(--space-12) var(--space-28);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-size: var(--font-base);
  font-weight: var(--fw-bold);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(164, 198, 52, .6);
  transition: transform 150ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
}
.wl-btn svg { width: 18px; height: 18px; flex: none; stroke-width: 2.4; }
.wl-btn:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(164, 198, 52, .7); }
.wl-btn:active { transform: none; }
.wl-btn:focus-visible { outline: 3px solid var(--wl-ink); outline-offset: 3px; }
.wl-btn--block { width: 100%; }
.wl-btn--sm { min-height: 42px; padding: var(--space-8) var(--space-20); font-size: var(--font-sm); box-shadow: none; }
.wl-btn--wa { background: #25D366; color: var(--white); box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .6); }
.wl-btn--wa:hover { background: #3ee07a; }
.wl-btn--ghost { background: transparent; color: var(--primary); } .wl-btn--ghost:hover { color: var(--primary); box-shadow: none; border: 1.5px solid var(--border); min-height: 44px; }
.wl-btn--ghost:hover { background: var(--surface-alt); transform: none; box-shadow: none; }
.wl-btn:disabled { opacity: .7; cursor: progress; transform: none; }

.wl-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--font-sm);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wl-link svg { width: 16px; height: 16px; }
.wl-link:focus-visible { outline: 2px solid var(--wl-ink); outline-offset: 2px; border-radius: 4px; }

/* ---------- nav ---------- */

.wl-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  padding: 0 var(--space-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 53, 80, .92);
  backdrop-filter: blur(12px);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 300ms var(--wl-ease), visibility 0s 300ms;
}
.wl-nav.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.wl-nav-logo img { height: 22px; display: block; }

/* ---------- hero ---------- */

.wl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-32) var(--space-40) var(--space-40);
  background: linear-gradient(165deg, var(--wl-night-1) 0%, var(--wl-night-2) 45%, var(--wl-night-3) 100%);
  color: var(--white);
}
.wl-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.wl-hero-bg::before { content: ""; position: absolute; inset: -25%; background: var(--wl-glow); animation: wl-drift 14s ease-in-out infinite alternate; }
.wl-hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; background-image: var(--wl-grain); }

@keyframes wl-drift { to { transform: translate(-6%, 4%) scale(1.08); } }

.wl-hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--space-64);
  align-items: center;
}

.wl-hero-logo { height: 24px; display: block; margin-bottom: var(--space-20); }

.wl-hero-sub {
  margin: 0 0 var(--space-20);
  max-width: 54ch;
  font-size: var(--font-base);
  line-height: 1.55;
  color: rgba(243, 248, 251, .86);
  text-wrap: pretty;
}
.wl-hero-sub strong { color: var(--wl-lime-soft); font-weight: var(--fw-semibold); }

/* la tarjeta de la lista */
.wl-card {
  background: var(--white);
  color: var(--wl-ink);
  border-radius: 22px;
  padding: var(--space-20);
  max-width: 560px;
  box-shadow: 0 30px 70px rgba(5, 25, 40, .45), 0 2px 8px rgba(5, 25, 40, .2);
  transition: min-height var(--duration-slow) var(--ease-out);
}
.wl-card form { display: grid; gap: var(--space-12); }
.wl-card-head { display: grid; gap: var(--space-4); line-height: 1.3; }
.wl-card-head strong { font-size: var(--font-md); letter-spacing: -0.01em; }
.wl-card-head span { font-size: var(--font-sm); color: var(--wl-ink-2); }

.wl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); }
.wl-field { display: grid; gap: var(--space-6); min-width: 0; }
.wl-field > span { font-size: var(--font-xs); font-weight: var(--fw-semibold); letter-spacing: .3px; color: var(--wl-ink-2); }
.wl-field > span small { font-weight: var(--fw-regular); color: #5f6b7e; margin-left: var(--space-4); }
.wl-field input {
  width: 100%;
  min-height: 44px;
  padding: var(--space-8) var(--space-14);
  border: 1.5px solid #cfd8e2;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  font: inherit;
  font-size: var(--font-base);
  color: var(--wl-ink);
  transition: border-color 150ms, box-shadow 150ms;
}
.wl-field input::placeholder { color: #6f7f92; }
.wl-field input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 92, 128, .25); }
.wl-field input:user-invalid { border-color: #D5544F; }

.wl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-alt); border-radius: var(--radius-md); }
.wl-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wl-seg label { display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-size: var(--font-sm); font-weight: var(--fw-semibold); color: var(--wl-ink-2); cursor: pointer; }
.wl-seg input:checked + label { background: var(--white); color: var(--wl-ink); box-shadow: var(--shadow-xs); }
.wl-seg input:focus-visible + label { outline: 2px solid var(--wl-ink); outline-offset: 1px; }

.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wl-legal { display: flex; gap: var(--space-8); margin: 0; font-size: var(--font-xs); line-height: 1.45; color: #5f6b7e; }
.wl-legal svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--accent-hover); }
.wl-legal a { color: inherit; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 3px; }

.wl-card .mkt-form-error { margin: 0; font-size: var(--font-sm); color: #B3423D; }

/* paso 2 */
.wl-paso2 { display: grid; gap: var(--space-16); }
.wl-paso2-head { display: flex; align-items: center; gap: var(--space-14); }
.wl-paso2-head .bepp-punto { flex: none; margin: var(--space-12) var(--space-16) var(--space-12) var(--space-12); }
.wl-paso2-head div { display: grid; gap: var(--space-2); line-height: 1.3; }
.wl-paso2-head strong { font-size: var(--font-lg); }
.wl-paso2-head span { font-size: var(--font-sm); color: var(--wl-ink-2); }
.wl-paso2-note { margin: calc(-1 * var(--space-8)) 0 0; font-size: var(--font-sm); line-height: 1.45; color: var(--wl-ink-2); }
.wl-paso2-form { display: grid; gap: var(--space-12); padding-top: var(--space-12); border-top: 1px solid var(--border); }
.wl-paso2-opt { margin: 0; font-size: var(--font-xs); font-weight: var(--fw-semibold); color: #5f6b7e; }
.wl-check { display: flex; gap: var(--space-8); font-size: var(--font-xs); line-height: 1.45; color: #5f6b7e; }
.wl-check input { margin: 2px 0 0; accent-color: var(--primary); }
.wl-paso3 { margin: 0; font-size: var(--font-sm); color: var(--accent-hover); font-weight: var(--fw-semibold); }

/* ---------- reel "caos → orden" ---------- */

.wl-hero-visual { display: grid; place-items: center; }
.wl-reel {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, #2f6f93 100%);
  box-shadow: 0 30px 70px rgba(5, 25, 40, .45);
  isolation: isolate;
}
.wl-reel::before { content: ""; position: absolute; inset: -25%; z-index: -1; background: radial-gradient(30% 26% at 24% 74%, rgba(164, 198, 52, .42), transparent 70%), radial-gradient(42% 36% at 80% 18%, rgba(136, 178, 206, .55), transparent 70%); animation: wl-drift 14s ease-in-out infinite alternate; }
.wl-reel::after { content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; background-image: var(--wl-grain); pointer-events: none; }

.wl-reel .cb { position: absolute; left: var(--x); top: var(--y); animation: wl-gather 9s cubic-bezier(.7, 0, .3, 1) infinite; z-index: 1; }
.wl-reel .cb > span { display: block; rotate: var(--rot, 0deg); animation: wl-bob 1.4s ease-in-out infinite alternate; animation-delay: var(--dl); }
.wl-reel .msg { background: #fff; border-radius: 3cqw 3cqw 3cqw .8cqw; padding: 2cqw 3.2cqw; font-size: 3.2cqw; color: #2c4a5c; white-space: nowrap; box-shadow: 0 .6cqw 2cqw rgba(24, 77, 108, .18); }
.wl-reel .file { background: #E3EDF4; border-radius: 1.6cqw; padding: 1.8cqw 2.8cqw; font-size: 2.9cqw; color: #3d5a6c; white-space: nowrap; display: flex; gap: 1.4cqw; align-items: center; box-shadow: 0 .6cqw 2cqw rgba(24, 77, 108, .14); }
.wl-reel .file::before { content: ""; width: 2.4cqw; height: 3cqw; border-radius: .4cqw; background: #88B2CE; }
.wl-reel .tag { display: inline-block; padding: 1.4cqw 2.8cqw; border-radius: 99px; border: .3cqw solid rgba(243, 248, 251, .55); font-size: 2.9cqw; color: rgba(243, 248, 251, .9); white-space: nowrap; }

@keyframes wl-gather {
  0%, 33% { transform: translate(0, 0) scale(1); opacity: 1; }
  47% { transform: translate(var(--gx), var(--gy)) scale(.1); opacity: 0; }
  99% { transform: translate(var(--gx), var(--gy)) scale(.1); opacity: 0; }
  100% { transform: none; opacity: 0; }
}
@keyframes wl-bob { from { transform: translate(-1cqw, 1cqw) rotate(-1.5deg); } to { transform: translate(1.2cqw, -1.6cqw) rotate(1.5deg); } }

.wl-reel-cpt { position: absolute; left: 50%; top: 50%; --punto-d: 24cqw; animation: wl-cpt 9s var(--wl-ease) infinite; z-index: 2; }
@keyframes wl-cpt {
  0%, 40% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  54%, 94% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(.9); }
}

.wl-reel-hilo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.wl-reel-hilo path { opacity: 0; fill: none; stroke: #7ED3F3; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 240; stroke-dashoffset: 240; animation: wl-hilo 9s cubic-bezier(.65, 0, .35, 1) infinite; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(126, 211, 243, .8)); }
@keyframes wl-hilo {
  0%, 32% { stroke-dashoffset: 240; opacity: 0; }
  34% { opacity: 1; }
  46% { stroke-dashoffset: 0; opacity: 1; }
  56% { stroke-dashoffset: 0; opacity: 0; }
  100% { opacity: 0; stroke-dashoffset: 240; }
}

.wl-reel-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 16cqw); width: 42cqw; animation: wl-logo 9s var(--wl-ease) infinite; z-index: 3; }
@keyframes wl-logo { 0%, 54% { opacity: 0; transform: translate(-50%, 21cqw); } 60%, 94% { opacity: 1; transform: translate(-50%, 16cqw); } 100% { opacity: 0; transform: translate(-50%, 16cqw); } }

/* ---------- el problema ---------- */

.wl-problema { padding: var(--space-112) 0 var(--space-80); }
.wl-problema-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-64); align-items: center; }

.wl-pairs { list-style: none; margin: var(--space-32) 0 var(--space-20); padding: 0; display: grid; gap: var(--space-12); max-width: 520px; }
.wl-pairs li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-14); padding-bottom: var(--space-12); border-bottom: 1px solid var(--border); font-size: var(--font-md); }
.wl-pairs b { color: var(--wl-ink); }
.wl-pairs i { display: block; height: 2px; background: var(--accent); transform-origin: left; }
.wl-pairs em { font-style: normal; color: var(--wl-ink-2); text-align: right; }
.wl-problema-cierre { margin: 0; max-width: 46ch; font-size: var(--font-md); line-height: 1.5; color: var(--wl-ink); font-weight: var(--fw-semibold); text-wrap: pretty; }

/* fotos con el tratamiento BEPP: velo azul, luz lima y degradado noche para el texto */
.wl-foto { position: relative; margin: 0; overflow: hidden; border-radius: 28px; background: var(--primary-dark); isolation: isolate; aspect-ratio: 4 / 5; }
.wl-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; animation: wl-kb 20s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.wl-foto::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--primary); mix-blend-mode: soft-light; opacity: .55; }
.wl-foto::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(30% 22% at 84% 12%, rgba(164, 198, 52, .42), transparent 70%); mix-blend-mode: screen; }
@keyframes wl-kb { to { transform: scale(1.07) translate(-1%, -1%); } }

.wl-foto figcaption { position: absolute; inset: auto 0 0; z-index: 2; padding: var(--space-96) var(--space-28) var(--space-28); background: linear-gradient(180deg, rgba(10, 38, 56, 0) 0%, rgba(10, 38, 56, .65) 35%, rgba(10, 38, 56, .92) 100%); color: #F3F8FB; }
.wl-foto figcaption p { margin: 0 0 var(--space-10); font-size: var(--font-sm); line-height: 1.5; text-wrap: pretty; }
.wl-foto figcaption p:last-child { margin: 0; }
.wl-foto figcaption b { color: var(--wl-lime-soft); }
.wl-foto-eyebrow { display: block; margin-bottom: var(--space-10); font-size: var(--font-xs); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

.wl-dato { display: flex; align-items: center; gap: var(--space-24); margin-top: var(--space-64); padding-top: var(--space-32); border-top: 1px solid var(--border); }
.wl-dato strong { font-size: clamp(3rem, 7vw, 5rem); line-height: .9; letter-spacing: -0.05em; font-weight: 400; color: transparent; -webkit-text-stroke: 2px var(--primary-dark); font-variant-numeric: tabular-nums; }
.wl-dato p { margin: 0; max-width: 34ch; font-size: var(--font-md); line-height: 1.4; color: var(--wl-ink); }
.wl-dato small { display: block; margin-top: var(--space-6); font-size: var(--font-xs); color: #5f6b7e; }

/* ---------- circuito ---------- */

.wl-circuito { padding: var(--space-96) 0; background: var(--surface-alt); }
.wl-circuito .wl-lead { margin-bottom: var(--space-56); }

.wl-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
.wl-paso { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-16); padding: var(--space-28); background: var(--white); border-radius: 28px; box-shadow: var(--shadow-sm); }
.wl-paso-n { font-size: 3.5rem; line-height: 1; font-weight: 400; color: transparent; -webkit-text-stroke: 1.5px var(--primary); letter-spacing: -0.04em; }
.wl-paso-time { display: block; margin-bottom: var(--space-6); font-size: var(--font-xs); font-weight: var(--fw-semibold); color: var(--accent-hover); font-variant-numeric: tabular-nums; }
.wl-paso h3 { margin: 0 0 var(--space-8); font-size: var(--font-lg); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.wl-paso p { margin: 0; font-size: var(--font-sm); line-height: 1.55; color: var(--wl-ink-2); }

/* teléfono: marco + captura (placeholder hasta que llegue la real) */
.wl-phone { position: relative; align-self: end; margin: var(--space-8) auto 0; width: min(100%, 240px); aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 8px; background: #0c1a24; box-shadow: 0 24px 48px -16px rgba(5, 25, 40, .5); overflow: hidden; }
.wl-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; display: block; background: var(--sky-soft); }
.wl-phone::after { content: attr(data-placeholder); position: absolute; left: 8px; right: 8px; bottom: 8px; padding: var(--space-8) var(--space-10); border-radius: 0 0 26px 26px; background: rgba(224, 163, 47, .95); color: #2a1d02; font-size: 10px; line-height: 1.3; font-weight: var(--fw-bold); letter-spacing: .02em; }
.wl-phone--solo { margin: 0 auto; width: min(100%, 300px); }

/* ---------- familia ---------- */

.wl-familia { padding: var(--space-112) 0; }
.wl-familia-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-64); align-items: center; }

.wl-chat { margin-top: var(--space-8); max-width: 440px; border-radius: 22px; overflow: hidden; background: var(--sky-soft); box-shadow: var(--shadow-md); }
.wl-chat-hdr { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-14) var(--space-18); background: var(--primary-dark); color: var(--white); }
.wl-chat-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #88B2CE; color: var(--primary-dark); font-weight: var(--fw-bold); }
.wl-chat-hdr b { display: block; font-size: var(--font-sm); }
.wl-chat-hdr small { font-size: var(--font-xs); opacity: .8; }
.wl-chat-body { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-16); }
.wl-chat-m { max-width: 80%; padding: var(--space-8) var(--space-12); border-radius: 14px 14px 14px 4px; background: var(--white); font-size: var(--font-sm); line-height: 1.4; color: #163f59; box-shadow: var(--shadow-xs); animation: wl-pop 9s var(--wl-ease) infinite both; animation-delay: calc(var(--i) * .45s); }
.wl-chat-m small { display: block; font-size: var(--font-xs); font-weight: var(--fw-bold); color: var(--primary-soft); }
.wl-chat-m--me { align-self: flex-end; background: #DDEBC0; border-radius: 14px 14px 4px 14px; }
.wl-chat-m--bepp { display: flex; gap: var(--space-6); align-items: flex-start; background: var(--white); border: 1.5px solid var(--accent); }
.wl-chat-m--bepp svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-hover); }
@keyframes wl-pop { 0%, 84% { opacity: 1; transform: none; } 92% { opacity: 0; transform: translateY(8px) scale(.96); } 100% { opacity: 1; transform: none; } }

/* ---------- tú decides ---------- */

.wl-privacidad { padding: var(--space-96) 0; background: linear-gradient(165deg, var(--wl-night-1) 0%, var(--wl-night-2) 45%, var(--wl-night-3) 100%); color: var(--white); position: relative; isolation: isolate; overflow: hidden; }
.wl-privacidad::before { content: ""; position: absolute; inset: -25%; z-index: -1; background: var(--wl-glow); animation: wl-drift 14s ease-in-out infinite alternate; }
.wl-privacidad-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-64); align-items: center; }
.wl-privacidad .wl-h2 { color: var(--white); }
.wl-privacidad .wl-lead { color: rgba(243, 248, 251, .86); }
.wl-privacidad .wl-accent { color: var(--wl-lime-soft); }
.wl-lista { list-style: none; margin: 0 0 var(--space-20); padding: 0; display: grid; gap: var(--space-10); }
.wl-lista li { display: flex; align-items: center; gap: var(--space-10); font-size: var(--font-base); }
.wl-lista svg { flex: none; width: 18px; height: 18px; color: var(--accent); stroke-width: 2.6; }
.wl-nota { margin: 0; font-size: var(--font-sm); color: rgba(243, 248, 251, .75); }
.wl-nota a { color: var(--white); text-underline-offset: 3px; }

/* ---------- médicos ---------- */

.wl-medicos { padding: var(--space-112) 0; }
.wl-medicos-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-64); align-items: center; }
.wl-doctores { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-12); margin-bottom: var(--space-20); position: relative; }
.wl-doctores::after { content: attr(data-placeholder); position: absolute; inset: auto 0 -22px; font-size: 10px; font-weight: var(--fw-bold); color: #8a5a00; }
.wl-doc { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-16) var(--space-10); border: 1.5px dashed #e0a32f; border-radius: 18px; text-align: center; font-size: var(--font-xs); color: var(--wl-ink-2); }
.wl-doc b { font-size: var(--font-sm); color: var(--wl-ink); }
.wl-doc-av { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-alt); border: 1.5px dashed #e0a32f; }

/* ---------- hay algo más ---------- */

.wl-secreto { position: relative; isolation: isolate; overflow: hidden; max-width: 1120px; margin: 0 auto; padding: var(--space-80) var(--space-40); border-radius: 28px; background: var(--primary-dark); color: var(--white); text-align: center; display: grid; justify-items: center; gap: var(--space-12); }
.wl-secreto-bg { position: absolute; inset: -25%; z-index: -1; background: radial-gradient(34% 30% at 72% 30%, rgba(126, 211, 243, .35), transparent 70%), radial-gradient(40% 36% at 22% 78%, rgba(164, 198, 52, .3), transparent 70%); animation: wl-drift 14s ease-in-out infinite alternate; }
.wl-secreto .bepp-punto { margin: var(--space-24) 0 var(--space-40); }
.wl-secreto .wl-h2 { color: var(--white); margin: 0; }
.wl-secreto p { margin: 0 0 var(--space-12); max-width: 34ch; font-size: var(--font-md); line-height: 1.5; color: rgba(243, 248, 251, .88); }
.wl-secreto p b { color: var(--wl-lime-soft); }

/* ---------- por qué una lista + roadmap ---------- */

.wl-porque { padding: var(--space-112) 0 var(--space-96); }
.wl-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-20); margin: var(--space-48) 0 var(--space-80); }
.wl-3-card { display: grid; gap: var(--space-10); padding: var(--space-28); border-radius: 22px; background: var(--surface-alt); }
.wl-3-card svg { width: 28px; height: 28px; color: var(--accent-hover); }
.wl-3-card b { font-size: var(--font-md); color: var(--wl-ink); }
.wl-3-card p { margin: 0; font-size: var(--font-sm); line-height: 1.5; color: var(--wl-ink-2); }

.wl-roadmap { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: grid; gap: var(--space-28); position: relative; }
.wl-roadmap::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--border); }
.wl-roadmap li { position: relative; padding-left: var(--space-40); display: grid; gap: var(--space-2); }
.wl-rm-dot { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); }
.wl-roadmap li.is-now .wl-rm-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(164, 198, 52, .2); }
.wl-roadmap small { font-size: var(--font-xs); font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--wl-ink-2); }
.wl-roadmap li.is-now small { color: var(--accent-hover); }
.wl-roadmap b { font-size: var(--font-lg); letter-spacing: -0.01em; }
.wl-roadmap p { margin: 0; font-size: var(--font-sm); color: var(--wl-ink-2); }

/* ---------- preguntas ---------- */

.wl-faq { padding: var(--space-96) 0; background: var(--surface-alt); }
.wl-faq-list { margin-top: var(--space-40); border-top: 1px solid var(--border); }
.wl-faq details { border-bottom: 1px solid var(--border); }
.wl-faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-16); padding: var(--space-20) 0; font-size: var(--font-md); font-weight: var(--fw-semibold); cursor: pointer; list-style: none; }
.wl-faq summary::-webkit-details-marker { display: none; }
.wl-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); font-size: 20px; font-weight: 400; color: var(--primary); transition: transform 200ms var(--wl-ease), background-color 200ms; }
.wl-faq details[open] summary::after { transform: rotate(45deg); background: var(--white); }
.wl-faq summary:focus-visible { outline: 2px solid var(--wl-ink); outline-offset: 2px; border-radius: 6px; }
.wl-faq details p { margin: 0 0 var(--space-20); max-width: 62ch; font-size: var(--font-base); line-height: 1.55; color: var(--wl-ink-2); }

/* ---------- cierre + footer ---------- */

.wl-cierre { padding: var(--space-112) 0 var(--space-96); text-align: center; }
.wl-cierre .wl-h2 { margin-left: auto; margin-right: auto; }
.wl-cierre p { margin: 0 auto var(--space-28); max-width: 46ch; font-size: var(--font-md); line-height: 1.55; color: var(--wl-ink-2); }

.wl-footer { padding: var(--space-56) 0; background: var(--wl-night-3); color: rgba(243, 248, 251, .8); text-align: center; }
.wl-footer-logo { height: 22px; display: block; margin: 0 auto var(--space-16); }
.wl-footer p { margin: 0 0 var(--space-8); font-size: var(--font-sm); }
.wl-footer-links a { color: var(--white); font-weight: var(--fw-semibold); text-underline-offset: 3px; }
.wl-footer-small { font-size: var(--font-xs); color: rgba(243, 248, 251, .6); }

/* ---------- entradas suaves al hacer scroll (sin JS todo se ve) ---------- */

.wl-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease-out, transform 600ms var(--wl-ease); }
.wl-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .wl-hero-grid { grid-template-columns: 1fr; gap: var(--space-48); }
  .wl-hero-visual { order: 2; }
  .wl-reel { width: min(100%, 420px); }
  .wl-problema-grid, .wl-familia-grid, .wl-privacidad-grid, .wl-medicos-grid { grid-template-columns: 1fr; gap: var(--space-40); }
  .wl-foto { aspect-ratio: 4 / 3; }
  .wl-pasos { grid-template-columns: 1fr; }
  .wl-paso { grid-template-columns: auto 1fr; grid-template-rows: auto; }
  .wl-paso .wl-phone { grid-column: 1 / -1; }
  .wl-3 { grid-template-columns: 1fr; }
  .wl-doctores { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wl-wrap { padding: 0 var(--space-16); }
  .wl-hero { padding: var(--space-32) var(--space-16) var(--space-64); }
  .wl-hero-logo { margin-bottom: var(--space-24); }
  .wl-card { padding: var(--space-18) var(--space-16) var(--space-20); border-radius: 18px; }
  .wl-fields { grid-template-columns: 1fr; }
  .wl-problema, .wl-familia, .wl-medicos, .wl-porque { padding: var(--space-72) 0; }
  .wl-circuito, .wl-privacidad, .wl-faq { padding: var(--space-64) 0; }
  .wl-pairs li { grid-template-columns: 1fr; gap: var(--space-4); }
  .wl-pairs i { display: none; }
  .wl-pairs em { text-align: left; }
  .wl-dato { flex-direction: column; align-items: flex-start; gap: var(--space-12); }
  .wl-paso { padding: var(--space-20); }
  .wl-secreto { margin: 0 var(--space-16); padding: var(--space-56) var(--space-20); border-radius: 22px; }
  .wl-cierre { padding: var(--space-72) 0 var(--space-64); }
  .wl-nav { padding: 0 var(--space-16); }
}

@media (prefers-reduced-motion: reduce) {
  .wl *, .wl *::before, .wl *::after { animation: none !important; transition: none !important; }
  .wl-js [data-reveal] { opacity: 1; transform: none; }
  .wl-reel .cb { display: none; }
  .wl-reel-logo { opacity: 1; }
  .wl-reel-cpt { opacity: 1; transform: translate(-50%, -58%); }
}

/* =====================================================================
   Cambios de la segunda ronda
   ===================================================================== */

/* ---------- formulario: 5 campos, validación visible ---------- */

.wl-field--full { grid-column: 1 / -1; }
.wl-field select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-8) var(--space-40) var(--space-8) var(--space-14);
  border: 1.5px solid #cfd8e2;
  border-radius: var(--radius-md);
  background: var(--surface-alt) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d5c80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 14px center;
  font: inherit;
  font-size: var(--font-base);
  color: var(--wl-ink);
  appearance: none;
}
.wl-field select:invalid { color: #6f7f92; }
.wl-field select:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 92, 128, .25); }
.wl-field-err { display: none; font-size: var(--font-xs); font-weight: var(--fw-semibold); color: #B3423D; }
.wl-field input:user-invalid ~ .wl-field-err { display: block; }
.wl-field.is-invalid input { border-color: #D5544F; }
.wl-field.is-invalid .wl-field-err { display: block; }

/* ---------- circuito: lo que pasa encima de cada teléfono ---------- */

.wl-over { position: absolute; left: 14px; right: 14px; z-index: 2; display: grid; gap: 6px; pointer-events: none; }
.wl-over--push { top: 44px; }
.wl-push { display: grid; gap: 2px; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 20px rgba(5, 25, 40, .22); color: var(--wl-ink); animation: wl-push 8s var(--wl-ease) infinite both; animation-delay: calc(var(--i) * 1.6s); }
.wl-push-src { display: flex; align-items: center; gap: 4px; font-size: 9px; color: #587385; }
.wl-push-src img { width: 11px; height: 11px; }
.wl-push b { font-size: 11px; line-height: 1.2; }
.wl-push small { font-size: 9.5px; color: var(--wl-ink-2); }
@keyframes wl-push { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 6%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-6px); } }

.wl-over--precios { top: 38%; }
.wl-precio { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 6px 16px rgba(5, 25, 40, .18); font-size: 11px; color: var(--wl-ink); animation: wl-precio 8s var(--wl-ease) infinite both; animation-delay: calc(var(--i) * .7s); }
.wl-precio b { font-variant-numeric: tabular-nums; }
.wl-precio em { display: block; font-style: normal; font-size: 9px; font-weight: var(--fw-bold); color: #5C7A12; }
.wl-precio.is-mejor { border: 1.5px solid var(--accent); }
.wl-precio--cta { justify-content: flex-start; background: var(--accent); color: var(--wl-ink); font-weight: var(--fw-bold); }
.wl-precio--cta svg { width: 13px; height: 13px; stroke-width: 3; }
@keyframes wl-precio { 0% { opacity: 0; transform: translateY(10px); } 8%, 70% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: translateY(-4px); } }

.wl-over--toggles { top: 30%; padding: 10px 12px 12px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 20px rgba(5, 25, 40, .2); animation: wl-push 9s var(--wl-ease) infinite both; }
.wl-tg-title { font-size: 11px; color: var(--wl-ink); margin-bottom: 2px; }
.wl-tg { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--wl-ink); }
.wl-tg i { position: relative; width: 28px; height: 16px; border-radius: 99px; background: #CBD9E3; animation: wl-tg 9s steps(1) infinite; animation-delay: calc(var(--i) * .5s); }
.wl-tg i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left 250ms var(--wl-ease); }
.wl-tg--off i { animation: none; }
@keyframes wl-tg { 0%, 20% { background: #CBD9E3; } 22%, 100% { background: var(--accent); } }
.wl-tg i.is-on, .wl-tg:not(.wl-tg--off) i { }
.wl-tg:not(.wl-tg--off) i::after { animation: wl-knob 9s steps(1) infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes wl-knob { 0%, 20% { left: 2px; } 22%, 100% { left: 14px; } }

/* el problema: la lista entra como mensajes */
.wl-js .wl-pairs li { opacity: 0; transform: translateY(8px); transition: opacity 400ms ease-out, transform 500ms var(--wl-ease); transition-delay: calc(var(--i, 0) * 180ms); }
.wl-js .wl-pairs.is-in li { opacity: 1; transform: none; }

/* ---------- Pregúntale a Bepp: demo de conversación ---------- */

.wl-secreto { text-align: left; justify-items: stretch; }
.wl-secreto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-56); align-items: center; }
.wl-secreto-copy { display: grid; gap: var(--space-16); justify-items: start; }
.wl-secreto-copy p { margin: 0; max-width: 40ch; }

.wl-bepp { max-width: 440px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--sky-soft); color: var(--wl-ink); box-shadow: 0 30px 70px rgba(5, 25, 40, .45); }
.wl-bepp-hdr { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); background: var(--white); border-bottom: 1px solid var(--border); }
.wl-bepp-hdr .bepp-punto { margin: var(--space-4) var(--space-8) var(--space-4) var(--space-4); }
.wl-bepp-hdr b { display: block; font-size: var(--font-sm); }
.wl-bepp-hdr small { font-size: var(--font-xs); color: var(--accent-hover); font-weight: var(--fw-semibold); }
.wl-bepp-body { display: flex; flex-direction: column; gap: var(--space-8); min-height: 300px; padding: var(--space-16); justify-content: flex-end; }
.wl-bepp-m { max-width: 86%; padding: var(--space-10) var(--space-14); border-radius: 16px 16px 16px 4px; background: var(--white); font-size: var(--font-sm); line-height: 1.45; box-shadow: var(--shadow-xs); animation: wl-bubble 350ms var(--wl-ease) both; }
.wl-bepp-m--yo { align-self: flex-end; background: #DDEBC0; border-radius: 16px 16px 4px 16px; }
.wl-bepp-m b { color: var(--wl-ink); }
.wl-bepp-m small { display: block; margin-top: var(--space-6); font-size: var(--font-xs); color: var(--wl-ink-2); }
.wl-bepp-m .wl-bepp-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-8); padding: 4px 10px; border-radius: 99px; border: 1.5px solid var(--accent); font-size: var(--font-xs); font-weight: var(--fw-bold); color: #5C7A12; }
.wl-bepp-m--dots { display: inline-flex; gap: 4px; padding: var(--space-12) var(--space-14); }
.wl-bepp-m--dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-soft); animation: wl-dot 1s ease-in-out infinite; }
.wl-bepp-m--dots i:nth-child(2) { animation-delay: .15s; }
.wl-bepp-m--dots i:nth-child(3) { animation-delay: .3s; }
@keyframes wl-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes wl-bubble { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.wl-bepp-input { display: flex; align-items: center; gap: var(--space-8); margin: 0 var(--space-12) var(--space-12); min-height: 46px; padding: 0 var(--space-14); border-radius: 99px; background: var(--white); border: 1.5px solid var(--border); font-size: var(--font-sm); color: var(--wl-ink); }
.wl-bepp-input span:empty::before { content: "Preg\00fantale a Bepp\2026"; color: #6f7f92; }
.wl-bepp-caret { width: 1.5px; height: 18px; background: var(--primary); animation: wl-caret 1s steps(1) infinite; }
@keyframes wl-caret { 50% { opacity: 0; } }
.wl-bepp-input svg { margin-left: auto; width: 18px; height: 18px; color: var(--accent-hover); }

@media (max-width: 1024px) {
  .wl-secreto-grid { grid-template-columns: 1fr; gap: var(--space-32); }
  .wl-secreto-copy { justify-items: center; text-align: center; }
}

/* =====================================================================
   Tercera ronda
   ===================================================================== */

/* ---------- chat familiar → árbol familiar (mismo recuadro) ---------- */

.wl-chat { position: relative; height: 380px; display: flex; flex-direction: column; }
.wl-chat-body { flex: 1; justify-content: flex-end; overflow: hidden; transition: opacity 400ms ease-out; }
.wl-chat-m { animation: wl-bubble 350ms var(--wl-ease) both; }
.wl-chat.is-fam .wl-chat-body, .wl-chat.is-fam .wl-chat-hdr { opacity: 0; }
.wl-chat-hdr { transition: opacity 400ms ease-out; }

.wl-fam { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-16); background: var(--sky-soft); opacity: 0; visibility: hidden; transition: opacity 500ms ease-out 200ms, visibility 0s 700ms; }
.wl-chat.is-fam .wl-fam { opacity: 1; visibility: visible; transition-delay: 200ms, 0s; }
.wl-fam-hdr { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-4) var(--space-8); font-size: var(--font-sm); font-weight: var(--fw-bold); color: var(--wl-ink); }
.wl-fam-hdr img { height: 16px; }
.wl-fam-row { display: flex; align-items: center; gap: var(--space-10); padding: var(--space-10) var(--space-12); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-xs); opacity: 0; transform: translateY(10px); transition: opacity 350ms ease-out, transform 450ms var(--wl-ease); transition-delay: calc(350ms + var(--i) * 140ms); }
.wl-chat.is-fam .wl-fam-row { opacity: 1; transform: none; }
.wl-fam-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--white); font-size: var(--font-sm); font-weight: var(--fw-bold); }
.wl-fam-av.is-me { background: var(--primary-dark); }
.wl-fam-row div { min-width: 0; flex: 1; }
.wl-fam-row b { display: block; font-size: var(--font-sm); color: var(--wl-ink); }
.wl-fam-row small { display: block; font-size: var(--font-xs); color: var(--wl-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-fam-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.wl-fam-foot { margin-top: auto; text-align: center; font-size: var(--font-xs); font-weight: var(--fw-semibold); color: var(--wl-ink-2); }

/* ---------- Pregúntale a Bepp: tamaño fijo + intro ---------- */

.wl-bepp { position: relative; height: 440px; display: flex; flex-direction: column; }
.wl-bepp-body { flex: 1; min-height: 0; overflow: hidden; }
.wl-bepp-hdr, .wl-bepp-body, .wl-bepp-input { opacity: 0; transition: opacity 500ms ease-out 350ms; }
.wl-bepp.is-open .wl-bepp-hdr, .wl-bepp.is-open .wl-bepp-body, .wl-bepp.is-open .wl-bepp-input { opacity: 1; }
.wl-bepp-hdr .bepp-punto { opacity: 0; transition: opacity 200ms 700ms; }
.wl-bepp.is-open .wl-bepp-hdr .bepp-punto { opacity: 1; }
.wl-bepp-intro { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.wl-bepp-intro .bepp-punto { transform-origin: center; }

/* ---------- roadmap horizontal ---------- */

.wl-roadmap { max-width: none; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
.wl-roadmap::before { left: 16.6%; right: 16.6%; top: 11px; bottom: auto; width: auto; height: 2px; }
.wl-roadmap li { padding-left: 0; padding-top: var(--space-40); text-align: center; justify-items: center; }
.wl-rm-dot { left: 50%; top: 0; transform: translateX(-50%); }

@media (max-width: 900px) {
  .wl-roadmap { grid-template-columns: 1fr; gap: var(--space-28); max-width: 640px; }
  .wl-roadmap::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .wl-roadmap li { padding-left: var(--space-40); padding-top: 0; text-align: left; justify-items: start; }
  .wl-rm-dot { left: 0; top: 2px; transform: none; }
}

@media (max-width: 640px) {
  .wl-chat { height: 360px; }
  .wl-bepp { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .wl-bepp-hdr, .wl-bepp-body, .wl-bepp-input, .wl-bepp-hdr .bepp-punto { opacity: 1; }
}

/* =====================================================================
   Cuarta ronda
   ===================================================================== */

/* 2 · el hero llena la pantalla, con el contenido centrado */
.wl-hero { min-height: 100svh; display: grid; align-items: center; }

/* 5 · Bepp: la ventana aparece completa mientras el Punto viaja; el de la esquina se enciende al aterrizar */
.wl-bepp-hdr, .wl-bepp-body, .wl-bepp-input { transition: opacity 450ms ease-out; }
.wl-bepp-hdr .bepp-punto { transition: none; }
.wl-bepp.is-open .wl-bepp-hdr .bepp-punto { opacity: 0; }
.wl-bepp.is-landed .wl-bepp-hdr .bepp-punto { opacity: 1; }
.wl-bepp-intro .bepp-punto { will-change: transform; }

/* 6 · otra vez: video con velo y copy */
.wl-otravez { position: relative; isolation: isolate; overflow: hidden; min-height: 78vh; display: grid; align-items: center; padding: var(--space-112) 0; color: var(--white); background: var(--wl-night-3); }
.wl-otravez-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.wl-otravez-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 38, 56, .94) 0%, rgba(10, 38, 56, .78) 45%, rgba(10, 38, 56, .25) 100%), radial-gradient(40% 50% at 85% 20%, rgba(164, 198, 52, .28), transparent 70%); backdrop-filter: blur(2px); }
.wl-otravez-copy { display: grid; gap: var(--space-16); justify-items: start; max-width: 1120px; }
.wl-otravez .wl-h2 { color: var(--white); margin: 0; }
.wl-otravez .wl-lead { color: rgba(243, 248, 251, .86); margin: 0 0 var(--space-8); }
.wl-otravez-eco { display: flex; flex-wrap: wrap; gap: var(--space-10); margin: 0 0 var(--space-8); font-size: clamp(1.5rem, 3.6vw, 2.6rem); font-weight: var(--fw-bold); letter-spacing: -0.02em; color: rgba(243, 248, 251, .22); }
.wl-otravez-eco span { animation: wl-eco 6s ease-in-out infinite; animation-delay: calc(var(--i) * .9s); }
@keyframes wl-eco { 0%, 8% { color: rgba(243, 248, 251, .22); } 14%, 30% { color: rgba(243, 248, 251, .95); } 44%, 100% { color: rgba(243, 248, 251, .22); } }

@media (max-width: 640px) {
  .wl-hero { min-height: 0; display: block; }
  .wl-otravez { min-height: 0; padding: var(--space-80) 0; }
  .wl-otravez-velo { background: linear-gradient(180deg, rgba(10, 38, 56, .55) 0%, rgba(10, 38, 56, .92) 60%); }
}

/* la barra de escritura de Bepp nunca crece: una línea, altura fija */
.wl-bepp-input { height: 46px; min-height: 46px; flex: none; overflow: hidden; white-space: nowrap; }
.wl-bepp-input span { overflow: hidden; text-overflow: clip; white-space: nowrap; min-width: 0; }
.wl-bepp-hdr { flex: none; }

/* =====================================================================
   Quinta ronda
   ===================================================================== */

/* 3 · "otra vez" llena la pantalla al centrarla */
.wl-otravez { min-height: 100svh; }

/* 4 · Bepp: la ventana blanca completa (barra, cuerpo, campo) está desde el principio y nunca cambia;
   el Punto vive en el cuerpo y sólo se encoge hacia la esquina */
.wl-bepp-hdr, .wl-bepp-body, .wl-bepp-input { opacity: 1; transition: none; }
.wl-bepp-body { position: relative; }
.wl-bepp-intro { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: var(--sky-soft); }
.wl-bepp.is-landed .wl-bepp-intro { display: none; }

@media (max-width: 640px) {
  .wl-otravez { min-height: 0; }
}

/* =====================================================================
   Sexta ronda
   ===================================================================== */

/* 1 · el dato 2.9 vuelve a tener aire abajo */
.wl-problema { padding-bottom: 96px; }

/* 2 · Pregúntale a Bepp, paso a paso:
   recuadro blanco cuadrado con el Punto grande → guiña (saludo) → se encoge a su esquina
   mientras se desvanecen hacia adentro el título, "en línea" y la barra de escritura.
   El recuadro nunca cambia de tamaño. */
.wl-bepp { width: min(100%, 440px); height: 440px; aspect-ratio: 1 / 1; background: var(--white); }
.wl-bepp-body { background: var(--white); }
.wl-bepp-hdr { border-bottom-color: transparent; transition: border-color 600ms ease-out; }
.wl-bepp.is-open .wl-bepp-hdr { border-bottom-color: var(--border); }
.wl-bepp-hdr > div, .wl-bepp-input, .wl-bepp-body { opacity: 0; transition: opacity 650ms ease-out; }
.wl-bepp.is-open .wl-bepp-hdr > div, .wl-bepp.is-open .wl-bepp-input, .wl-bepp.is-open .wl-bepp-body { opacity: 1; }
.wl-bepp-hdr .bepp-punto { opacity: 0; transition: none; }
.wl-bepp.is-landed .wl-bepp-hdr .bepp-punto { opacity: 1; }
.wl-bepp-intro { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: transparent; pointer-events: none; }
.wl-bepp.is-landed .wl-bepp-intro { display: none; }
.wl-bepp-m { background: var(--surface-alt); box-shadow: none; }
.wl-bepp-m--yo { background: #DDEBC0; }

@media (max-width: 640px) { .wl-bepp { height: auto; min-height: 400px; } }


/* ---------- séptima ronda: CTAs blancos, pasos 01/02 nuevos ---------- */

.wl-over--receta { top: 44px; }
.wl-push--una { animation: wl-push-una 9s var(--wl-ease) infinite both; }
@keyframes wl-push-una { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); } }
.wl-receta { display: grid; gap: 6px; padding: 10px 11px 11px; border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 10px 24px rgba(5, 25, 40, .24); color: var(--wl-ink); animation: wl-receta 9s var(--wl-ease) infinite both; }
@keyframes wl-receta { 0%, 34% { opacity: 0; transform: translateY(14px) scale(.94); } 42%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-6px); } }
.wl-receta-hdr { display: flex; align-items: center; gap: 7px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.wl-receta-hdr svg { flex: none; width: 18px; height: 18px; color: var(--primary); }
.wl-receta-hdr b { display: block; font-size: 11px; line-height: 1.2; }
.wl-receta-hdr small { font-size: 9px; color: #587385; }
.wl-receta-med { display: grid; gap: 1px; }
.wl-receta-med b { font-size: 10.5px; line-height: 1.2; }
.wl-receta-med small { font-size: 9px; color: var(--wl-ink-2); }
.wl-receta-ok { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 9.5px; font-weight: var(--fw-bold); color: #5C7A12; }
.wl-receta-ok svg { width: 12px; height: 12px; stroke-width: 3; }

.wl-over--dm { top: 26%; gap: 7px; }
.wl-dm { max-width: 86%; padding: 7px 10px; border-radius: 12px 12px 12px 3px; background: rgba(255, 255, 255, .97); box-shadow: 0 6px 16px rgba(5, 25, 40, .18); font-size: 10.5px; line-height: 1.35; color: #163f59; animation: wl-dm 9s var(--wl-ease) infinite both; animation-delay: calc(var(--i) * 1.1s); }
.wl-dm small { display: block; margin-bottom: 1px; font-size: 8.5px; font-weight: var(--fw-bold); color: var(--primary-soft); }
.wl-dm--yo { justify-self: end; background: #DDEBC0; border-radius: 12px 12px 3px 12px; }
.wl-dm--sys { justify-self: center; display: flex; align-items: center; gap: 5px; max-width: none; padding: 5px 9px; border-radius: 99px; background: rgba(24, 77, 108, .92); color: var(--white); font-size: 9px; font-weight: var(--fw-bold); }
.wl-dm--sys svg { width: 11px; height: 11px; }
@keyframes wl-dm { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 5%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-4px); } }


/* ---------- octava ronda: tarjeta cerrada + el Punto en cinco lugares ---------- */

.wl-card-head { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-12); }
.wl-card-head > div { display: grid; gap: var(--space-4); }
.wl-card-punto { margin-top: 2px; }
.wl-card-campos { display: grid; gap: var(--space-12); }
.wl-card-campos[hidden] { display: none; }
.wl-card.is-abierta .wl-card-abrir { display: none; }
.wl-card-campos { animation: wl-campos 450ms var(--wl-ease) both; }
@keyframes wl-campos { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* guiño: el ojo derecho se cierra un instante (una vez) */
.bepp-punto[data-state="guino"] .bepp-punto__eyes i:last-child { animation: wl-guino 900ms cubic-bezier(.4, 0, .2, 1) both; }
@keyframes wl-guino { 0%, 20% { transform: scaleY(1); } 35%, 60% { transform: scaleY(0.08); } 75%, 100% { transform: scaleY(1); } }

/* Punto blanco con ojos calados, para ir sobre el video (regla 7 del Punto) */
.wl-punto-blanco { --punto-core: #FFFFFF; --punto-hl: #FFFFFF; --punto-sh: #D6E4EE; --punto-halo: rgba(255, 255, 255, .8); --punto-eye: #0a2638; }
.wl-otravez-punto { align-self: center; margin-left: var(--space-6); }

.wl-faq-titulo { display: flex; align-items: center; justify-content: center; gap: var(--space-14); flex-wrap: wrap; }
.wl-faq-punto { flex: none; }

.wl-fam-av { overflow: hidden; }
.wl-fam-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-fam-hdr-r { display: inline-flex; align-items: center; gap: var(--space-8); }

.wl-cierre-punto { display: inline-grid; margin: 0 auto var(--space-20); }


/* ---------- novena ronda: logos más grandes, sin Punto blanco ---------- */
.wl-nav-logo img { height: 42px; }
.wl-hero-logo { height: 56px; }
.wl-footer-logo { height: 52px; }
@media (max-width: 640px) { .wl-hero-logo { height: 44px; } .wl-nav-logo img { height: 34px; } .wl-footer-logo { height: 44px; } }


/* ---------- décima ronda: pasos solo número + título; teléfonos listos para video ---------- */
.wl-paso-txt h3 { margin-bottom: 0; }
.wl-phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; display: block; background: var(--sky-soft); }

.wl-paso { grid-template-rows: auto auto 1fr auto; }
.wl-paso .wl-clip-cap { margin-top: 0; }
@media (max-width: 900px) { .wl-paso { grid-template-rows: auto auto auto; } .wl-paso .wl-clip-cap { grid-column: 1 / -1; } }


/* ---------- undécima ronda: detalles vistos en iPhone ---------- */
/* WebKit a veces no recorta las esquinas de un contenedor con hijos animados
   (blend, transform): forzar capa propia para que el border-radius sí recorte. */
.wl-reel, .wl-foto { transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(#fff, #000); }
.wl-reel { box-shadow: none; }
.wl-hero-visual { filter: drop-shadow(0 30px 40px rgba(5, 25, 40, .45)); }
@media (max-width: 640px) {
  .wl-hero { padding-top: calc(var(--space-48) + env(safe-area-inset-top, 0px)); }
  .wl-dato { margin-top: var(--space-32); padding-top: var(--space-24); }
}

/* Safari iOS pinta la barra de estado y el rebote del scroll con el fondo del documento.
   El documento (html y body) es azul noche; el contenido claro vive en <main>. */
html, body.wl { background: #0f3550; }
.wl main { background: var(--bg); }
/* El footer termina en el mismo azul que el lienzo para que el rebote de abajo sea del mismo color */
.wl-footer { background: linear-gradient(180deg, var(--wl-night-3) 0%, #0f3550 100%); }

/* ---------- iPhone: el hero empieza plano en el azul del lienzo y se difumina hacia el brillo ---------- */
.wl-hero-bg { z-index: -2; }
.wl-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 260px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #0f3550 0%, rgba(15, 53, 80, .85) 35%, rgba(15, 53, 80, 0) 100%); }
/* La barra fija cubre también el área segura (notch / barra de estado) */
.wl-nav { height: calc(var(--header-height) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
