/* Funnel de la VSL · base común de las 3 versiones.
   Cada versión (a/a.css, b/b.css, c/c.css) define los tokens y el aspecto; aquí solo estructura. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus, #2563EB); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max, 1080px); margin: 0 auto; padding: 0 var(--gut, 20px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Vídeo (VSL de Panda) ---------- */
.vsl { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #000 center / cover no-repeat; }
.vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Testimonios 9:16 ---------- */
.testis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--testi-gap, 12px); }
@media (min-width: 760px) { .testis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--testi-gap-lg, 20px); } }
.testi {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 9 / 16; overflow: hidden; background: #111;
  border-radius: var(--r-testi, 12px);
}
.testi img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.1,1); }
.testi iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.testi__play {
  position: absolute; left: 50%; top: 42%; translate: -50% -50%;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--play-bg, rgba(0,0,0,.55)); color: var(--play-fg, #fff);
  transition: transform .25s;
}
.testi__play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.testi__n { position: absolute; top: 10px; left: 12px; font: 700 .75rem/1 var(--f-body); color: #fff; opacity: .8; letter-spacing: .08em; }
@media (hover: hover) {
  .testi:hover img { transform: scale(1.03); }
  .testi:hover .testi__play { transform: scale(1.08); }
}

/* ---------- Ventana del formulario (dialog nativo) ---------- */
.fm {
  width: min(520px, 100vw); max-width: 100vw; max-height: 100dvh;
  margin: auto; padding: 0; border: 0; background: transparent; color: inherit;
}
.fm::backdrop { background: rgba(8, 8, 7, .72); backdrop-filter: blur(3px); }
.fm[open] { animation: fm-in .28s cubic-bezier(.2,.7,.1,1); }
@keyframes fm-in { from { transform: translateY(16px); opacity: 0; } }
.fm__box { position: relative; padding: 26px 18px 18px; background: var(--fm-bg, #fff); color: var(--fm-ink, #111); border-radius: var(--fm-r, 18px); }
.fm__x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: inherit;
}
.fm__x svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.fm__t { padding-right: 40px; }
.fm__frame { position: relative; margin-top: 14px; min-height: 560px; }
.fm__frame::before { /* reserva mientras carga GHL */
  content: "Cargando el formulario…"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .95rem; opacity: .6;
}
.fm__frame.is-ready::before { display: none; }
.fm__frame iframe { position: relative; z-index: 1; }
.fm__ok { display: none; margin-top: 14px; font-weight: 700; }
.fm.is-sent .fm__ok { display: block; }
@media (max-width: 559px) {
  /* móvil: hoja que sube desde abajo, a pantalla casi completa */
  .fm { margin: auto 0 0; width: 100vw; }
  .fm__box { border-radius: var(--fm-r, 18px) var(--fm-r, 18px) 0 0; max-height: 94dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
html.is-modal { overflow: hidden; }

/* ---------- Cookies ---------- */
.consent {
  position: fixed; z-index: 2147483000; left: 12px; right: 12px; bottom: 12px;
  max-width: 460px; padding: 14px 16px; border-radius: 14px;
  background: var(--consent-bg, #1A1915); color: var(--consent-ink, #F3F0E8);
  font-size: .875rem; line-height: 1.45; box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.consent p { margin: 0 0 10px; }
.consent a { color: inherit; }
.consent__btns { display: flex; gap: 8px; }
.consent__btn {
  flex: 1; min-height: 44px; border-radius: 10px; font-weight: 700; font-size: .9375rem;
  border: 1px solid currentColor; background: transparent; color: inherit;
}
.consent__btn--yes { background: var(--consent-yes, #FFD60A); color: var(--consent-yes-ink, #0A0A09); border-color: transparent; }
/* el banner no tapa la barra fija */
html.has-consent .sticky { display: none; }

/* ---------- Barra fija (solo móvil, paso 2) ---------- */
.sticky {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  padding: 10px var(--gut, 16px) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.1,1);
}
.sticky.is-on { transform: none; }
@media (min-width: 900px) { .sticky { display: none; } }

/* ---------- Pie ---------- */
.foot { padding: 28px 0 40px; font-size: .8125rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Revelado (fuera del hero) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.1,1); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
