/* InmoMatic · Quiz funnel — colores y letras de pro.inmomatic.com */
:root {
  --noche: #050f24;
  --noche-2: #081631;
  --panel: rgba(13, 32, 72, 0.5);
  --panel-borde: rgba(120, 160, 255, 0.16);
  --azul: #0b4da8;
  --luz: #3d7bff;
  --oro: #f5c542;
  --oro-hover: #ffd35f;
  --hielo: #e2f0ff;
  --texto: #eaf2ff;
  --texto-2: #a3b6d8;
  --texto-3: #6f86ad;
  --verde: #34c77b;
  --rojo: #ff5a64;
  --f-titulo: "Unbounded", system-ui, sans-serif;
  --f-texto: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radio: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--noche);
  color: var(--texto);
  font: 400 16px/1.5 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--oro); color: var(--noche); }
a { color: var(--hielo); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 8px; }
h1, h2, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }

/* ---------- fondo: halo azul + rejilla de puntos ---------- */
.fondo {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% -5%, rgba(61, 123, 255, 0.28), transparent 70%),
    radial-gradient(50% 40% at -10% 105%, rgba(245, 197, 66, 0.08), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(226, 240, 255, 0.07) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--noche);
}

/* ---------- cabecera ---------- */
.cabecera {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 600px; margin: 0 auto; padding: 16px 16px 10px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--texto); }
.logo-punto {
  position: relative; width: 20px; height: 20px; border-radius: 50%;
  background: var(--azul); box-shadow: 0 0 14px rgba(61, 123, 255, 0.8);
}
.logo-punto::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--oro); }
.logo-texto { font: 500 16px var(--f-titulo); letter-spacing: -0.01em; }
.logo-texto b { font-weight: 500; color: var(--oro); }
/* El «2.0» del logo, como en el vídeo (21 oct 2026; frontend/src/components/Version20.jsx) */
.logo-version { display: inline-flex; align-items: center; margin-left: 0.3em; padding: 0.12em 0.42em; border-radius: 999px; background: #F5C542; color: #0A1733; font-size: 0.58em; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; vertical-align: middle; white-space: nowrap; }
.contador-paso { font: 500 12px var(--f-mono); letter-spacing: 0.12em; color: var(--texto-3); text-transform: uppercase; }

/* ---------- progreso: P1 ★ P2 ★ … (como en el reel) ---------- */
.progreso {
  display: flex; gap: 4px; max-width: 600px; margin: 0 auto; padding: 0 16px;
}
.pp {
  flex: 1 1 0; max-width: 44px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font: 500 11px var(--f-mono); color: var(--texto-3);
  background: rgba(226, 240, 255, 0.06);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.pp-estrella { flex: 0.7 1 0; font-size: 10px; color: rgba(245, 197, 66, 0.35); }
.pp-fin .i { width: 14px; height: 14px; }
.pp.hecho { background: rgba(61, 123, 255, 0.28); color: var(--hielo); }
.pp-estrella.hecho { background: rgba(245, 197, 66, 0.16); color: var(--oro); }
.pp.actual { background: var(--luz); color: #fff; box-shadow: 0 0 18px rgba(61, 123, 255, 0.65); }
.pp-estrella.actual { background: var(--oro); color: var(--noche); box-shadow: 0 0 18px rgba(245, 197, 66, 0.5); }

/* ---------- pantallas ---------- */
main { max-width: 600px; margin: 0 auto; padding: 26px 16px 120px; }
.pantalla { animation: entra 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--oro);
}
.chip-punto { width: 6px; height: 6px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 10px var(--oro); }
/* «Invita y gana» (25 oct 2026): quién invita, en la portada y junto al precio de la oferta. */
.invitacion {
  margin: 16px auto 0; max-width: 46ch; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(245, 197, 66, 0.45); background: rgba(245, 197, 66, 0.08); font-size: 15.5px; line-height: 1.45;
}
.invitacion b, .oferta-invitacion b { color: var(--oro); font-weight: 600; }
.oferta-invitacion { margin-top: 8px; color: var(--texto-2); font-size: 15px; }
.oferta-invitacion s { opacity: 0.8; }

/* ---------- portada ---------- */
.intro { text-align: center; }
.intro-nucleo { width: 210px; height: 190px; margin: -6px auto 6px; }
.titulo-intro {
  margin-top: 14px;
  font: 500 clamp(28px, 7.6vw, 44px)/1.12 var(--f-titulo); letter-spacing: -0.02em;
}
.titulo-intro em, .titulo-pregunta em { font-style: normal; color: var(--oro); }
.intro-texto { margin: 16px auto 0; max-width: 46ch; color: var(--texto-2); font-size: 17px; line-height: 1.55; }
.intro-pasos { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.intro-pasos li {
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--panel-borde);
  font: 500 12px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-2);
  background: rgba(13, 32, 72, 0.4);
}
.intro-pasos b { color: var(--oro); font-weight: 500; }
.sellos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  margin: 24px 0 0; padding: 0; list-style: none;
  font: 500 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3);
}
.sellos li { display: inline-flex; align-items: center; gap: 7px; }
.sellos li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--luz); }
.enlace {
  display: block; margin: 14px auto 0; padding: 6px 4px; background: none; border: 0; cursor: pointer;
  color: var(--texto-2); font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- núcleo animado ---------- */
.nucleo { width: 100%; height: 100%; overflow: visible; }
.nucleo .orb { fill: none; stroke: rgba(61, 123, 255, 0.45); stroke-width: 1.1; }
.nucleo .sat { fill: #8fb2ff; filter: drop-shadow(0 0 4px rgba(61, 123, 255, 0.9)); }
.nucleo .sat-oro { fill: var(--oro); filter: drop-shadow(0 0 4px rgba(245, 197, 66, 0.9)); }
.nucleo .halo { fill: rgba(61, 123, 255, 0.18); filter: blur(10px); }
.nucleo .esfera { filter: drop-shadow(0 0 18px rgba(61, 123, 255, 0.85)); }
.nucleo .corazon {
  fill: var(--oro); transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.9));
  animation: late 2.2s ease-in-out infinite;
}
@keyframes late { 50% { transform: scale(1.18); } }

/* ---------- preguntas ---------- */
.titulo-pregunta {
  margin-top: 12px; outline: none;
  font: 500 clamp(22px, 6vw, 30px)/1.22 var(--f-titulo); letter-spacing: -0.015em;
}
.titulo-pregunta label { cursor: text; }
.ayuda { margin-top: 10px; color: var(--texto-2); font-size: 15.5px; }
.opciones { display: grid; gap: 10px; margin-top: 24px; }
.opcion {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px;
  padding: 14px 16px; text-align: left; cursor: pointer;
  border-radius: 18px; border: 1px solid var(--panel-borde);
  background: rgba(226, 240, 255, 0.035);
  font: 500 16px/1.35 var(--f-texto); color: var(--texto);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: entra 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.opcion:nth-child(2) { animation-delay: 0.06s; }
.opcion:nth-child(3) { animation-delay: 0.12s; }
.opcion:nth-child(4) { animation-delay: 0.18s; }
.opcion:nth-child(5) { animation-delay: 0.24s; }
@media (hover: hover) {
  .opcion:hover { border-color: rgba(61, 123, 255, 0.6); background: rgba(61, 123, 255, 0.09); transform: translateY(-1px); }
}
.opcion:active { transform: scale(0.99); }
.opcion-letra {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font: 500 13px var(--f-mono); color: var(--texto-2); background: rgba(226, 240, 255, 0.08);
  transition: background 0.2s, color 0.2s;
}
.opcion-texto { flex: 1; }
.opcion-check {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--panel-borde); color: transparent; transition: all 0.2s;
}
.opcion-check .i { width: 16px; height: 16px; }
.opcion.elegida {
  border-color: var(--luz);
  background: linear-gradient(180deg, rgba(61, 123, 255, 0.24), rgba(61, 123, 255, 0.12));
  box-shadow: 0 0 0 1px var(--luz), 0 12px 30px -12px rgba(61, 123, 255, 0.7);
}
.opcion.elegida .opcion-letra { background: var(--oro); color: var(--noche); }
.opcion.elegida .opcion-check { background: var(--luz); border-color: var(--luz); color: #fff; }

.atras {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 8px 2px;
  background: none; border: 0; cursor: pointer; color: var(--texto-3); font-size: 14.5px; font-weight: 500;
}
.atras:hover { color: var(--texto-2); }
.atras .i { width: 18px; height: 18px; }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 16px var(--f-texto); letter-spacing: -0.005em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.boton-oro { background: var(--oro); color: var(--noche); box-shadow: 0 12px 30px -12px rgba(245, 197, 66, 0.75); }
.boton-oro:hover { background: var(--oro-hover); transform: translateY(-1px); }
.boton-oro:active { transform: translateY(0) scale(0.99); }
.boton-fantasma { background: transparent; color: var(--texto); border: 1px solid var(--panel-borde); }
.boton-fantasma:hover { border-color: var(--texto-3); }
.boton-grande { width: 100%; min-height: 58px; margin-top: 22px; padding-inline: 18px; font-size: 16.5px; }
.boton.cargando { opacity: 0.7; cursor: progress; animation: none; }

/* ---------- tarjetas de valor ---------- */
.tarjeta {
  position: relative; margin-top: 8px; padding: 28px 24px 26px; border-radius: 28px;
  animation: reparte 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.05) both;
}
@keyframes reparte { from { opacity: 0; transform: translateY(40px) rotate(-3deg) scale(0.94); } }
/* las dos sombras planas de debajo simulan el mazo de cartas */
.tarjeta-azul {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(111, 157, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #0f56bd 0%, #0a3f8f 55%, #072a63 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 0 -6px rgba(15, 86, 189, 0.55),
    0 20px 0 -12px rgba(15, 86, 189, 0.25),
    0 40px 60px -30px rgba(11, 77, 168, 0.9);
  color: #fff;
}
.tarjeta-oro {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 240, 190, 0.7), transparent 60%),
    linear-gradient(160deg, #f8d264 0%, #f5c542 50%, #e8b52c 100%);
  box-shadow:
    0 10px 0 -6px rgba(245, 197, 66, 0.5),
    0 20px 0 -12px rgba(245, 197, 66, 0.22),
    0 40px 60px -30px rgba(245, 197, 66, 0.5);
  color: var(--noche);
}
.tarjeta-etiqueta {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font: 500 11.5px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
}
.tarjeta-oro .tarjeta-etiqueta { background: rgba(5, 15, 36, 0.1); }
.tarjeta-etiqueta span { color: var(--oro); }
.tarjeta-oro .tarjeta-etiqueta span { color: var(--azul); }
.tarjeta-cifra {
  margin-top: 18px; font: 600 clamp(52px, 16vw, 76px)/1 var(--f-titulo); letter-spacing: -0.03em; color: var(--oro);
}
.tarjeta-oro .tarjeta-cifra { color: var(--azul); }
.tarjeta-titulo {
  margin-top: 16px; outline: none;
  font: 500 clamp(21px, 5.6vw, 27px)/1.25 var(--f-titulo); letter-spacing: -0.015em;
}
.tarjeta-cifra + .tarjeta-titulo { margin-top: 10px; }
.tarjeta-texto { margin-top: 14px; font-size: 16.5px; line-height: 1.55; opacity: 0.88; }
.tarjeta-fuente { margin-top: 16px; font: 400 11.5px/1.5 var(--f-mono); opacity: 0.65; }
.pantalla-tarjeta .boton-grande { margin-top: 34px; }

/* ---------- formularios ---------- */
.formulario { margin-top: 22px; }
.etiqueta-campo {
  display: block; margin: 16px 0 7px;
  font: 500 11.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-2);
}
.etiqueta-campo:first-child { margin-top: 0; }
.campo {
  width: 100%; padding: 15px 16px; border-radius: 14px;
  border: 1px solid var(--panel-borde); background: rgba(226, 240, 255, 0.05);
  color: var(--texto); font: 500 16px var(--f-texto); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo::placeholder { color: var(--texto-3); }
.campo:focus { border-color: var(--luz); box-shadow: 0 0 0 3px rgba(61, 123, 255, 0.3); }
.campo[aria-invalid="true"] { border-color: var(--rojo); }
.campo-grande { padding: 18px; font-size: 18px; }
.error { margin-top: 7px; color: #ff8a92; font-size: 13.5px; }
.consentimiento { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; color: var(--texto-2); font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.consentimiento input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--oro); }
.nota { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; color: var(--texto-3); font-size: 12.5px; text-align: center; }
.nota .i { width: 15px; height: 15px; }

/* ---------- análisis ---------- */
.analisis { text-align: center; padding-top: 10px; }
.analisis-nucleo { width: 240px; height: 220px; margin: 0 auto; }
.titulo-analisis { margin-top: 10px; outline: none; font: 500 22px/1.3 var(--f-titulo); }
.analisis-lista { display: grid; gap: 12px; max-width: 380px; margin: 26px auto 0; padding: 0; list-style: none; text-align: left; }
.analisis-lista li { display: flex; align-items: center; gap: 12px; opacity: 0.3; transition: opacity 0.4s; color: var(--texto); font-size: 15.5px; }
.analisis-lista .i {
  width: 24px; height: 24px; padding: 3px; border-radius: 50%;
  border: 1.5px solid var(--panel-borde); color: transparent; transition: all 0.3s;
}
.analisis-lista li.hecho { opacity: 1; }
.analisis-lista li.hecho .i { background: var(--verde); border-color: var(--verde); color: var(--noche); }

/* ---------- resultado ---------- */
.titulo-res { margin-top: 12px; outline: none; font: 500 clamp(24px, 6.6vw, 34px)/1.18 var(--f-titulo); letter-spacing: -0.02em; }
.bloque {
  margin-top: 16px; padding: 20px; border-radius: var(--radio);
  background: var(--panel); border: 1px solid var(--panel-borde);
}
.res-cabeza + .bloque { margin-top: 22px; }
.bloque-etiqueta {
  margin-bottom: 14px;
  font: 500 11.5px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--oro);
}
.tabla { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.tabla div { padding: 12px 13px; border-radius: 14px; background: rgba(226, 240, 255, 0.045); }
.tabla dt { font: 500 10.5px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3); }
.tabla dd { margin: 5px 0 0; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.bloque-campana {
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(61, 123, 255, 0.3), transparent 60%),
    linear-gradient(160deg, rgba(11, 77, 168, 0.55), rgba(8, 22, 49, 0.6));
  border-color: rgba(61, 123, 255, 0.35);
}
.bloque-titulo { font: 500 19px/1.3 var(--f-titulo); letter-spacing: -0.01em; }
.bloque-texto { margin-top: 10px; color: var(--texto-2); line-height: 1.55; }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checks .i { width: 24px; height: 24px; padding: 3px; margin-top: -1px; border-radius: 50%; background: rgba(52, 199, 123, 0.16); color: var(--verde); }

/* oferta */
.oferta { margin-top: 26px; scroll-margin-top: 20px; }
.oferta-caja {
  position: relative; padding: 26px 22px 22px; border-radius: 28px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(245, 197, 66, 0.14), transparent 60%),
    linear-gradient(170deg, #0f2a5e 0%, #081631 65%);
  border: 1.5px solid var(--oro);
  box-shadow: 0 0 0 6px rgba(245, 197, 66, 0.07), 0 30px 80px -30px rgba(245, 197, 66, 0.4);
  animation: entra 0.6s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.oferta-cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.oferta-etiqueta {
  padding: 6px 11px; border-radius: 999px; background: var(--oro); color: var(--noche);
  font: 500 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.oferta-plan { font: 500 15px var(--f-titulo); color: var(--hielo); }
.oferta-para { margin-top: 12px; color: var(--texto-2); font-size: 14.5px; }
.oferta-precio { margin-top: 16px; font: 600 clamp(30px, 8.8vw, 44px)/1.08 var(--f-titulo); letter-spacing: -0.025em; }
.oferta-precio b { color: var(--oro); font-weight: 600; white-space: nowrap; }
.oferta-despues { margin-top: 10px; color: var(--texto-2); font-size: 14.5px; line-height: 1.5; }
.iva { color: var(--texto-3); }
.incluye { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--panel-borde); }
.incluye li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.incluye .i { color: var(--oro); margin-top: 0; }
.oferta-reloj {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding: 12px 16px; border-radius: 16px;
  background: rgba(5, 15, 36, 0.75); border: 1px dashed rgba(245, 197, 66, 0.5);
  font: 500 12px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-2);
}
.reloj { font: 500 26px var(--f-mono); letter-spacing: 0.04em; color: var(--oro); font-variant-numeric: tabular-nums; text-transform: none; }
.reloj.urgente { color: var(--rojo); animation: parpadeo 1s steps(2) infinite; }
@keyframes parpadeo { 50% { opacity: 0.55; } }
.boton-comprar { animation: pulso 2.4s ease-out infinite; }
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.55); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(245, 197, 66, 0); }
}
.oferta-seguro { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; color: var(--texto-3); font-size: 13px; }
.oferta-seguro .i { width: 15px; height: 15px; }
.enlace-sin-tarjeta { margin-top: 8px; font-size: 14px; text-align: center; }
.aviso-demo {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 90, 100, 0.12); color: #ffb3b8; font: 400 12px/1.4 var(--f-mono); text-align: center;
}
.oferta-caducada { border-color: var(--panel-borde); box-shadow: none; background: var(--panel); }
.oferta-caducada .oferta-etiqueta { background: rgba(255, 90, 100, 0.16); color: #ff9aa1; }
.oferta-caducada .oferta-plan { margin-top: 16px; font-size: 20px; }

/* qué pasa después */
.linea { margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.linea li { position: relative; padding: 0 0 18px 40px; counter-increment: paso; }
.linea li:last-child { padding-bottom: 0; }
.linea li::before {
  content: counter(paso); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--azul); color: #fff; font: 500 12px var(--f-mono);
  box-shadow: 0 0 12px rgba(61, 123, 255, 0.5);
}
.linea li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 28px; bottom: 2px; width: 1px; background: var(--panel-borde); }
.linea b { display: block; font: 500 11.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--oro); }
.linea span { display: block; margin-top: 3px; color: var(--texto-2); line-height: 1.5; }

/* preguntas frecuentes */
.faq details { border-top: 1px solid var(--panel-borde); }
.faq details:first-child { border-top: 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--oro); font: 400 20px var(--f-mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 14px; color: var(--texto-2); line-height: 1.55; }
.faq details:last-child summary { padding-bottom: 4px; }
.faq details[open]:last-child summary { padding-bottom: 14px; }

.pie { margin-top: 30px; text-align: center; color: var(--texto-3); font: 400 11.5px/1.7 var(--f-mono); }
.pie a { color: var(--texto-2); }
.pie .enlace { margin-bottom: 14px; font: 500 14px var(--f-texto); }

/* ---------- barra fija con el botón de compra ---------- */
.barra-fija {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px max(16px, calc((100vw - 600px) / 2 + 16px)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 15, 36, 0.92); border-top: 1px solid var(--panel-borde);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: sube 0.3s ease-out both;
}
@keyframes sube { from { transform: translateY(100%); } }
.barra-reloj { display: flex; flex-direction: column; gap: 1px; }
.barra-reloj-label { font: 500 9.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-3); white-space: nowrap; }
.barra-reloj .reloj { font-size: 21px; line-height: 1.1; }
.barra-fija .boton { flex: 1; min-height: 50px; padding: 12px 14px; font-size: 15.5px; white-space: nowrap; }

/* ---------- cookies ---------- */
.cookies {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 560px; margin: 0 auto; padding: 16px;
  border-radius: 18px; background: #0b1c40; border: 1px solid var(--panel-borde);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); font-size: 13.5px; color: var(--texto-2);
}
.cookies-botones { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.cookies .boton { padding: 10px 18px; font-size: 14px; }

.noscript { max-width: 560px; margin: 40px auto; padding: 0 16px; text-align: center; }

/* ---------- pantallas grandes ---------- */
@media (min-width: 700px) {
  main { padding-top: 40px; }
  .opciones { gap: 12px; }
  .bloque, .oferta-caja { padding: 26px; }
  .tarjeta { padding: 36px 34px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Grupo de WhatsApp del onboarding en la página de gracias (1 nov 2026, backend/pruebas_semana.py). */
.grupo-wa { margin: 22px 0 6px; padding: 18px; border-radius: 16px; border: 1px solid rgba(52, 199, 123, 0.45); background: rgba(52, 199, 123, 0.08); text-align: left; }
.grupo-wa-titulo { margin: 0 0 6px; font-weight: 700; font-size: 17px; color: var(--texto); }
.grupo-wa-texto { margin: 0 0 14px; color: var(--texto-2); line-height: 1.5; }
.grupo-wa .boton { width: 100%; margin-top: 0; }
.boton-wa { background: var(--verde); color: var(--noche); }
.boton-wa:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- embudo: la portada larga antes del test (5 nov 2026) ---------- */
body[data-fase="intro"] main, body[data-fase="intro"] .cabecera { max-width: 1120px; }
.pantalla-embudo .e-hero { max-width: 880px; margin: 0 auto; }
.pantalla-embudo .titulo-intro, .e-titulo { text-wrap: balance; }
.pantalla-embudo .intro-texto { max-width: 58ch; }
.e-vsl { max-width: 680px; margin: 26px auto 0; }
.e-marco { position: relative; }
.e-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--oro); color: var(--noche); box-shadow: 0 0 0 10px rgba(245, 197, 66, 0.22), 0 18px 40px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s, background 0.2s;
}
.e-play svg { width: 34px; height: 34px; margin-left: 4px; }
.e-play:hover { background: var(--oro-hover); transform: scale(1.06); }
@media (max-width: 699px) { .e-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .e-play svg { width: 28px; height: 28px; } }
.e-video {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000;
  border: 1px solid var(--panel-borde); box-shadow: 0 30px 80px -30px rgba(61, 123, 255, 0.6);
}
.e-vsl figcaption { margin-top: 8px; font: 500 11.5px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3); }
.e-cta { max-width: 460px; margin: 0 auto; }
.e-micro { margin-top: 10px; color: var(--texto-3); font-size: 13.5px; text-align: center; }
.boton-test { animation: pulso 2.4s ease-out infinite; }

.e-seccion { margin-top: 64px; }
.e-titulo { margin-top: 12px; max-width: 26ch; font: 500 clamp(24px, 5.6vw, 36px)/1.18 var(--f-titulo); letter-spacing: -0.02em; }
.e-titulo em { font-style: normal; color: var(--oro); }
.e-texto { margin-top: 14px; max-width: 62ch; color: var(--texto-2); font-size: 17px; line-height: 1.6; }
.e-seccion h3 { margin: 0; }

/* cifras de la Academia */
.e-autoridad {
  margin-top: 48px; padding: 26px 18px; border-radius: 28px; text-align: center;
  background: radial-gradient(80% 90% at 50% 0%, rgba(245, 197, 66, 0.12), transparent 70%), var(--panel);
  border: 1px solid rgba(245, 197, 66, 0.35);
}
.e-autoridad-texto { font: 500 11.5px/1.5 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-2); }
.e-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.e-cifras b { display: block; font: 600 clamp(30px, 9vw, 56px)/1 var(--f-titulo); letter-spacing: -0.03em; color: var(--oro); }
.e-cifras span { display: block; margin-top: 8px; color: var(--texto-2); font-size: 13.5px; line-height: 1.35; }

/* el problema */
.e-dolores { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; max-width: 760px; }
.e-dolores li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: rgba(226, 240, 255, 0.035); border: 1px solid var(--panel-borde); line-height: 1.45;
}
.e-x {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 90, 100, 0.14); color: #ff8a92; font-size: 12px;
}
.e-cierre { margin-top: 20px; max-width: 60ch; padding-left: 16px; border-left: 3px solid var(--oro); font-size: 18px; line-height: 1.55; }

/* cómo funciona */
.e-lista-pasos { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.e-lista-pasos li { padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--panel-borde); }
.e-num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--azul); color: #fff; font: 500 13px var(--f-mono); box-shadow: 0 0 14px rgba(61, 123, 255, 0.55);
}
.e-lista-pasos h3 { margin-top: 14px; font: 500 17px/1.3 var(--f-titulo); letter-spacing: -0.01em; }
.e-lista-pasos p { margin-top: 8px; color: var(--texto-2); font-size: 15px; line-height: 1.5; }

/* beneficios */
.e-rejilla { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.e-rejilla li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-borde); }
.e-rejilla .i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: rgba(52, 199, 123, 0.16); color: var(--verde); }
.e-rejilla h3 { font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.e-rejilla p { margin-top: 6px; color: var(--texto-2); font-size: 15px; line-height: 1.5; }
.e-plan {
  display: inline-block; margin-left: 4px; padding: 3px 8px; border-radius: 999px; vertical-align: 2px; white-space: nowrap;
  background: rgba(245, 197, 66, 0.14); color: var(--oro); font: 500 10.5px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
}

/* botón del test a mitad de página */
.e-cta-medio, .e-oferta, .e-final { text-align: center; }
.e-cta-medio .e-titulo, .e-oferta .e-titulo, .e-final .e-titulo, .e-cta-medio .e-texto, .e-oferta .e-texto, .e-final .e-texto { margin-left: auto; margin-right: auto; }
.e-cta-medio .boton-test, .e-oferta .boton-test, .e-final .boton-test { max-width: 460px; }
.e-cta-medio {
  padding: 34px 20px; border-radius: 28px; color: #fff;
  background: radial-gradient(80% 60% at 100% 0%, rgba(111, 157, 255, 0.35), transparent 60%), linear-gradient(160deg, #0f56bd 0%, #0a3f8f 55%, #072a63 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 60px -30px rgba(11, 77, 168, 0.9);
}
.e-cta-medio .e-texto { color: var(--hielo); }

/* para quién */
.e-dos { display: grid; gap: 14px; margin-top: 24px; }
.e-perfil { padding: 24px 20px; border-radius: 24px; background: var(--panel); border: 1px solid var(--panel-borde); }
.e-perfil h3 { font: 500 20px/1.25 var(--f-titulo); letter-spacing: -0.01em; color: var(--oro); }
.e-frase { margin: 10px 0 18px; font-size: 17px; line-height: 1.45; }

/* el método */
.e-metodo {
  padding: 28px 20px; border-radius: 28px; border: 1px solid rgba(61, 123, 255, 0.35);
  background: radial-gradient(80% 70% at 100% 0%, rgba(61, 123, 255, 0.3), transparent 60%), linear-gradient(160deg, rgba(11, 77, 168, 0.55), rgba(8, 22, 49, 0.6));
}
.e-metodo-puntos { margin-top: 22px; max-width: 760px; }

/* comparativa (en el móvil, la tabla se desliza de lado dentro de su caja) */
.e-tabla-envoltorio { margin-top: 24px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--panel-borde); background: var(--panel); }
.e-tabla { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; }
.e-tabla th, .e-tabla td { padding: 14px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--panel-borde); }
.e-tabla tbody tr:last-child th, .e-tabla tbody tr:last-child td { border-bottom: 0; }
.e-tabla thead th { font: 500 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3); }
.e-tabla tbody th { width: 28%; font-weight: 600; color: var(--texto); }
.e-tabla td { color: var(--texto-2); }
.e-tabla .e-nuestra { background: rgba(245, 197, 66, 0.08); color: var(--texto); font-weight: 600; }
.e-tabla thead .e-nuestra { color: var(--oro); }

/* oferta */
.e-oferta {
  padding: 34px 20px; border-radius: 28px; border: 1.5px solid var(--oro);
  background: radial-gradient(90% 60% at 100% 0%, rgba(245, 197, 66, 0.14), transparent 60%), linear-gradient(170deg, #0f2a5e 0%, #081631 65%);
  box-shadow: 0 0 0 6px rgba(245, 197, 66, 0.07), 0 30px 80px -30px rgba(245, 197, 66, 0.4);
}
.e-faq .bloque { margin-top: 20px; max-width: 760px; }
.e-final .e-titulo { max-width: 24ch; }
.pantalla-embudo .pie { margin-top: 56px; }
.barra-test .boton { max-width: 460px; }

@media (min-width: 700px) {
  .e-seccion { margin-top: 96px; }
  .e-autoridad { margin-top: 64px; padding: 34px; }
  .e-rejilla { grid-template-columns: 1fr 1fr; }
  .e-dos { grid-template-columns: 1fr 1fr; }
  .e-cta-medio, .e-oferta, .e-metodo { padding: 48px 40px; }
  .e-perfil { padding: 30px 28px; }
}
@media (min-width: 960px) {
  .e-lista-pasos { grid-template-columns: repeat(4, 1fr); }
  .pantalla-embudo .titulo-intro { font-size: 42px; }
}
