/* /entrar — entrar y crear cuenta paso a paso. Marca Cifu: niebla #F4F6F2 + tinta #0B0B0C, acento petróleo #004368
   (palabra en itálica 800). Fondos planos con manchas suaves que se mueven; movimiento lento y fino. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('/vendor/poppins/poppins-v24-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('/vendor/poppins/poppins-v24-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('/vendor/poppins/poppins-v24-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('/vendor/poppins/poppins-v24-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('/vendor/poppins/poppins-v24-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url('/vendor/poppins/poppins-extrabold.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: italic; font-display: swap; src: url('/vendor/poppins/poppins-extrabolditalic.woff2') format('woff2'); }

:root {
  --tinta: #0B0B0C; --grafito: #2A2B2F; --petroleo: #004368; --celeste: #5FA8C7; --hielo: #E8F1F5; --niebla: #F4F6F2;
  --gris: #5d6068; --gris-2: #8a8d94; --linea: #E6E7EA; --blanco: #fff;
  --err: #b42318; --ok: #1f7a4d;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --suave: cubic-bezier(0.65, 0, 0.25, 1); --resorte: cubic-bezier(0.34, 1.5, 0.64, 1);
  --sombra: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 40px -24px rgba(16, 24, 40, 0.22);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--tinta); background: var(--niebla); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- fondo: manchas que respiran y se reacomodan en cada paso ---------- */
.fondo { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fondo i { position: absolute; display: block; transition: transform 2.2s var(--ease); will-change: transform; }
.fondo b { display: block; width: 100%; height: 100%; border-radius: 50%; filter: blur(72px); }
.fondo .m1 { width: 54vw; height: 54vw; left: -16vw; top: -20vw; }
.fondo .m1 b { background: var(--hielo); animation: deriva1 24s var(--suave) infinite alternate; }
.fondo .m2 { width: 46vw; height: 46vw; right: -14vw; bottom: -18vw; }
.fondo .m2 b { background: rgba(0, 67, 104, 0.075); animation: deriva2 30s var(--suave) infinite alternate; }
.fondo .m3 { width: 32vw; height: 32vw; right: 16vw; top: 6vh; }
.fondo .m3 b { background: rgba(255, 255, 255, 0.95); animation: deriva3 20s var(--suave) infinite alternate; }
.fondo .m4 { width: 26vw; height: 26vw; left: 20vw; bottom: -10vw; }
.fondo .m4 b { background: rgba(95, 168, 199, 0.12); animation: deriva2 26s var(--suave) infinite alternate-reverse; }
@keyframes deriva1 { to { transform: translate(9vw, 7vh) scale(1.08); } }
@keyframes deriva2 { to { transform: translate(-8vw, -9vh) scale(1.12); } }
@keyframes deriva3 { to { transform: translate(-12vw, 14vh) scale(0.9); } }
/* cada paso acomoda las manchas en otro lugar: se siente que avanzas */
body[data-paso="codigo"] .m1, body[data-paso="app"] .m1 { transform: translate(18vw, 10vh); }
body[data-paso="codigo"] .m2, body[data-paso="app"] .m2 { transform: translate(-10vw, -6vh); }
body[data-paso="nombre"] .m1 { transform: translate(40vw, -4vh) scale(0.9); }
body[data-paso="nombre"] .m3 { transform: translate(-40vw, 30vh); }
body[data-paso="modo"] .m1 { transform: translate(60vw, 20vh); }
body[data-paso="modo"] .m4 { transform: translate(30vw, -40vh) scale(1.3); }
body[data-paso="constancia"] .m2 { transform: translate(-50vw, -20vh) scale(1.1); }
body[data-paso="constancia"] .m3 { transform: translate(-10vw, 40vh); }
body[data-paso="datos"] .m1 { transform: translate(70vw, 50vh); }
body[data-paso="datos"] .m4 { transform: translate(-10vw, -50vh); }
body[data-paso="pago"] .m2 { transform: translate(-70vw, -40vh) scale(1.2); }
body[data-paso="pago"] .m1 { transform: translate(10vw, 30vh); }
body[data-paso="seguridad"] .m4, body[data-paso="respaldo"] .m4 { transform: translate(40vw, -60vh) scale(1.6); }
body[data-paso="seguridad"] .m2, body[data-paso="respaldo"] .m2 { transform: translate(-30vw, -10vh); }
body[data-paso="bienvenida"] .m1 { transform: translate(45vw, 35vh) scale(1.35); }
body[data-paso="bienvenida"] .m4 { transform: translate(20vw, -45vh) scale(1.8); }
body[data-paso="bienvenida"] .m3 { transform: translate(-20vw, 20vh) scale(1.3); }
/* luz suave que sigue al cursor (solo con mouse) */
.luz { position: fixed; z-index: 0; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); transition: opacity 0.8s; will-change: transform; }
@media (hover: hover) and (pointer: fine) { body.con-mouse .luz { opacity: 1; } }

/* ---------- cabeza ---------- */
.cabeza { position: fixed; z-index: 3; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; padding: 0 clamp(20px, 4vw, 44px); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.marca-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, #2c2d31, var(--tinta)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.35); }
.marca-ico svg { width: 24px; height: 24px; }
.cabeza-der { justify-self: end; font-size: 13px; color: var(--gris); }
.avance { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.avance li { position: relative; width: 34px; height: 4px; border-radius: 4px; background: rgba(11, 11, 12, 0.1); overflow: hidden; }
.avance li::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--tinta); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.avance li.hecho::after { transform: scaleX(1); }
.avance li.actual::after { transform: scaleX(0.5); transition-duration: 1.1s; }
.avance li.actual { box-shadow: 0 0 0 0 rgba(95, 168, 199, 0); animation: brilla-paso 2.6s var(--suave) infinite; }
@keyframes brilla-paso { 50% { box-shadow: 0 0 12px 1px rgba(95, 168, 199, 0.55); } }

/* ---------- escenario y escenas ---------- */
.escenario { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 110px 20px 90px; }
.pila { width: 100%; max-width: 540px; transition: max-width 0.5s var(--ease); }
.escenario.ancho .pila { max-width: 880px; }
.escena { width: 100%; }
.atras { visibility: hidden; opacity: 0; margin: 0 0 22px -10px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: none; color: var(--gris); font-size: 13.5px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.atras:hover { background: rgba(11, 11, 12, 0.05); color: var(--tinta); }
.atras svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.atras.visible { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease) 0.3s; }

h1 { margin: 0; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
h1 em { font-style: italic; font-weight: 800; color: var(--petroleo); letter-spacing: -0.03em; padding-right: 0.04em; }
h1 .p { display: inline-block; white-space: pre; overflow: hidden; padding: 0 0.06em 0.14em; margin: 0 -0.06em -0.14em; vertical-align: top; }
h1 .pi { display: inline-block; }
.sub { margin: 14px 0 0; font-size: 16px; color: var(--gris); max-width: 46ch; text-wrap: pretty; }
.sub b { color: var(--tinta); font-weight: 600; }
.ojo { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; background: var(--hielo); box-shadow: inset 0 0 0 1px rgba(0, 67, 104, 0.14); color: var(--petroleo); font-size: 12.5px; font-weight: 600; }
.ojo:empty { display: none; }
.nota { margin: 22px 0 0; font-size: 13px; color: var(--gris-2); }
.nota a { color: var(--gris); }
.forma { margin-top: 32px; }

/* entrada y salida de cada escena: el título sube palabra por palabra desde una ranura; lo demás en cascada */
.escena .entra { opacity: 0; transform: translateY(26px); filter: blur(8px); }
.escena.viva .entra { animation: entra 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 75ms + 120ms); }
@keyframes entra { to { opacity: 1; transform: none; filter: blur(0); } }
h1 .pi { transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; }
.escena.viva h1 .pi { animation: sube-palabra 1.05s cubic-bezier(0.19, 1, 0.22, 1) forwards; animation-delay: calc(var(--i, 0) * 65ms + 40ms); }
@keyframes sube-palabra { to { transform: none; } }
h1 em .brillo, h1 .pi em { background: linear-gradient(100deg, var(--petroleo) 40%, #2f7fa8 50%, var(--petroleo) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.escena.viva h1 .pi em { animation: barre 2.4s var(--suave) 0.9s; }
@keyframes barre { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* salida: cada pieza se va hacia arriba, un poco antes la de arriba */
.escena.sale .entra, .escena.sale h1 .pi { animation: sale-el 0.5s var(--suave) forwards !important; animation-delay: calc(var(--i, 0) * 22ms) !important; }
.escena.sale.atras-dir .entra, .escena.sale.atras-dir h1 .pi { animation-name: sale-el-atras !important; }
@keyframes sale-el { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateY(-30px); filter: blur(10px); } }
@keyframes sale-el-atras { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateY(30px); filter: blur(10px); } }
.escena.sale { pointer-events: none; }

/* ---------- campos ---------- */
.campo-grande { position: relative; }
.campo-grande input { width: 100%; height: 64px; padding: 0 22px; border: 0; border-radius: 18px; background: var(--blanco); font-size: 19px; box-shadow: 0 0 0 1px var(--linea), var(--sombra); outline: none; transition: box-shadow 0.25s var(--ease); }
.campo-grande input::placeholder { color: #b4b7bd; }
.campo-grande input:focus { box-shadow: 0 0 0 1.5px var(--tinta), 0 0 0 6px rgba(11, 11, 12, 0.06), var(--sombra); }
.campo-grande.mal input { box-shadow: 0 0 0 1.5px var(--err), 0 0 0 6px rgba(180, 35, 24, 0.07); animation: tiembla 0.4s; }
@keyframes tiembla { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.error { min-height: 20px; margin: 10px 2px 0; font-size: 13.5px; color: var(--err); }
.error:empty { min-height: 0; margin: 0; }

.acciones { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.boton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--tinta); color: var(--blanco); font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 24px -12px rgba(11, 11, 12, 0.6); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.boton:hover svg { transform: translateX(4px); }
.boton:active { transform: scale(0.97) !important; }
.boton { transform: translate(var(--mx, 0), var(--my, 0)); }
.boton.claro { background: var(--blanco); color: var(--tinta); box-shadow: 0 0 0 1px var(--linea), var(--sombra); }
.boton.claro::before { background: linear-gradient(110deg, transparent 30%, rgba(11, 11, 12, 0.06) 50%, transparent 70%); }
.boton::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%); transform: translateX(-120%); }
.boton:hover::before { animation: brillo 0.9s var(--ease); }
@keyframes brillo { to { transform: translateX(120%); } }
.boton:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--niebla), 0 0 0 5px var(--tinta); }
.boton.ancho { width: 100%; }
.boton.grande { height: 60px; padding: 0 34px; font-size: 16.5px; }
.boton[disabled] { cursor: wait; }
.boton.cargando > * { opacity: 0; }
.boton.cargando::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: gira 0.7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.tecla { font-size: 13px; color: var(--gris-2); }
kbd { font-family: inherit; font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), 0 1px 0 var(--linea); color: var(--gris); }
.enlace { padding: 0; border: 0; background: none; font-size: 14px; color: var(--gris); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(11, 11, 12, 0.25); cursor: pointer; transition: color 0.2s; }
.enlace:hover { color: var(--tinta); }
.enlace[disabled] { cursor: default; text-decoration: none; color: var(--gris-2); }

/* invitación */
.invita { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), var(--sombra); font-size: 13.5px; color: var(--gris); }
.invita b { color: var(--tinta); font-weight: 600; }
.invita-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tinta); color: #fff; font-size: 11.5px; font-weight: 600; }

/* ---------- código: 6 casillas ---------- */
.sobre, .candado { position: relative; display: block; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 17px; background: linear-gradient(160deg, #2c2d31, var(--tinta)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 14px 26px -14px rgba(0, 0, 0, 0.6); }
.sobre::after, .candado::after { content: ''; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--ic) center / 46% no-repeat; mask: var(--ic) center / 46% no-repeat; }
.sobre { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.candado { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.sobre i { position: absolute; right: -5px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--celeste); box-shadow: 0 0 0 3px var(--niebla); animation: late 1.8s var(--ease) infinite; }
@keyframes late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.casillas { position: relative; display: flex; align-items: center; gap: 10px; }
.casillas .casilla-real { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 2; cursor: text; caret-color: transparent; font-size: 16px; }
.casillas > span { position: relative; display: grid; place-items: center; width: 62px; height: 74px; border-radius: 16px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), var(--sombra); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.casillas > span.lleno { animation: pop 0.38s var(--resorte); }
@keyframes pop { 0% { transform: scale(0.86); } 100% { transform: none; } }
.casillas > span.cursor { box-shadow: 0 0 0 1.5px var(--tinta), 0 0 0 6px rgba(11, 11, 12, 0.06), var(--sombra); }
.casillas > span.cursor::after { content: ''; width: 2px; height: 30px; border-radius: 2px; background: var(--tinta); animation: parpadea 1.1s steps(1) infinite; }
@keyframes parpadea { 50% { opacity: 0; } }
.casillas .guion { width: 12px; height: 2.5px; border-radius: 2px; background: #c8cbd0; }
.casillas.mal > span { box-shadow: 0 0 0 1.5px var(--err), var(--sombra); }
.casillas.mal { animation: tiembla 0.4s; }
/* bien: las casillas se juntan en una palomita */
.casillas.bien > span { animation: junta 0.55s var(--suave) forwards; animation-delay: calc(var(--k, 0) * 30ms); }
.casillas.bien .guion { opacity: 0; transition: opacity 0.2s; }
@keyframes junta { to { transform: translateX(var(--hacia, 0)) scale(0.6); opacity: 0; } }
.casillas .palomita { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--tinta); display: grid; place-items: center; transform: scale(0); animation: brota 0.6s var(--resorte) 0.3s forwards; box-shadow: 0 0 0 10px rgba(11, 11, 12, 0.06); }
.casillas .palomita svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; animation: traza 0.45s var(--ease) 0.6s forwards; }
@keyframes brota { to { transform: scale(1); } }
.casillas .palomita::before, .casillas .palomita::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--celeste); opacity: 0; animation: onda 1.2s var(--ease) 0.55s; }
.casillas .palomita::after { animation-delay: 0.75s; border-color: rgba(11, 11, 12, 0.25); }
.chispa { position: absolute; left: 50%; top: 50%; width: 4px; height: 12px; margin: -6px 0 0 -2px; border-radius: 3px; background: var(--c, var(--tinta)); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: chispa 0.9s var(--ease) var(--d, 0.5s) forwards; }
@keyframes chispa { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-30px) scaleY(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(var(--r, -80px)) scaleY(0.3); } }
@keyframes traza { to { stroke-dashoffset: 0; } }
#respaldo-campo { margin-top: 0; }

/* ---------- casilla del aviso ---------- */
.acepta { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--gris); cursor: pointer; }
.acepta input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.caja { position: relative; width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--blanco); box-shadow: inset 0 0 0 1.5px #c8cbd0; transition: background 0.2s, box-shadow 0.2s; }
.caja::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.3s var(--resorte); }
.acepta input:checked + .caja { background: var(--tinta); box-shadow: none; }
.acepta input:checked + .caja::after { transform: rotate(45deg) scale(1); }
.acepta input:focus-visible + .caja { box-shadow: inset 0 0 0 1.5px var(--tinta), 0 0 0 4px rgba(11, 11, 12, 0.08); }
.acepta.mal .caja { box-shadow: inset 0 0 0 1.5px var(--err); }

/* ---------- explorar o contratar ---------- */
.opciones { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.anillo { position: absolute; z-index: 2; left: 0; top: 0; border-radius: 22px; box-shadow: 0 0 0 2px var(--tinta); pointer-events: none; opacity: 0; transition: transform 0.6s var(--resorte), width 0.6s var(--resorte), height 0.6s var(--resorte), opacity 0.3s; }
.anillo.visible { opacity: 1; }
.anillo.llega { animation: anillo-llega 0.6s var(--ease); }
@keyframes anillo-llega { 40% { box-shadow: 0 0 0 2px var(--tinta), 0 0 0 8px rgba(11, 11, 12, 0.06); } }
.opcion, .ficha, .tarjeta-caja, .zona { --lx: 50%; --ly: 50%; }
.opcion::after, .tarjeta-caja::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--lx) var(--ly), rgba(95, 168, 199, 0.12), transparent 60%); transition: opacity 0.4s; }
.opcion:hover::after, .tarjeta-caja:hover::after { opacity: 1; }
.tarjeta-caja { position: relative; }
.opcion { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 24px; border-radius: 22px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), var(--sombra); cursor: pointer; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.opcion:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #d5d7db, 0 26px 44px -26px rgba(16, 24, 40, 0.35); }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion b { margin-top: 18px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.opcion small { font-size: 14px; color: var(--gris); }
.op-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--niebla); transition: background 0.35s, transform 0.5s var(--resorte); }
.op-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--tinta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.35s; }
.opcion:hover .op-ic { transform: rotate(-6deg); }
.op-check { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #d0d3d8; transition: background 0.3s, box-shadow 0.3s; }
.op-check svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 0.4s var(--ease) 0.08s; }
.opcion:has(input:checked) { box-shadow: 0 0 0 1px transparent, 0 26px 44px -26px rgba(16, 24, 40, 0.35); }
.opcion:has(input:checked) .op-check { background: var(--tinta); box-shadow: none; }
.opcion:has(input:checked) .op-check svg { stroke-dashoffset: 0; }
.opcion:has(input:checked) .op-ic { background: var(--tinta); }
.opcion:has(input:checked) .op-ic svg { stroke: #fff; }
.opcion.apagada { opacity: 0.55; cursor: not-allowed; }
.opcion.apagada:hover { transform: none; }
.opcion.apagada::before { content: 'Pronto'; position: absolute; top: 20px; right: 20px; padding: 3px 10px; border-radius: 999px; background: rgba(11, 11, 12, 0.06); color: var(--gris); font-size: 12px; font-weight: 600; }
.opcion.apagada .op-check { display: none; }
.opcion:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--tinta), 0 0 0 6px rgba(11, 11, 12, 0.08); }

/* ---------- constancia: zona, hoja con láser y sello ---------- */
.zona { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; height: 290px; border-radius: 24px; background: rgba(255, 255, 255, 0.7); cursor: pointer; transition: background 0.3s, transform 0.3s var(--ease); }
.zona:hover, .zona.encima { background: var(--blanco); }
.zona.encima { transform: scale(1.01); }
.zona input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zona-borde { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, #b9bdc3 50%, transparent 0) repeat-x 0 0 / 14px 1.5px, linear-gradient(90deg, #b9bdc3 50%, transparent 0) repeat-x 0 100% / 14px 1.5px,
    linear-gradient(0deg, #b9bdc3 50%, transparent 0) repeat-y 0 0 / 1.5px 14px, linear-gradient(0deg, #b9bdc3 50%, transparent 0) repeat-y 100% 0 / 1.5px 14px;
  animation: hormigas 1.2s linear infinite; }
.zona.encima .zona-borde, .zona.leyendo .zona-borde { animation-duration: 0.5s; }
@keyframes hormigas { to { background-position: 14px 0, -14px 100%, 0 -14px, 100% 14px; } }
.hoja { position: relative; display: block; width: 86px; height: 108px; border-radius: 10px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), 0 22px 36px -22px rgba(16, 24, 40, 0.45); animation: flota 4s var(--suave) infinite alternate; overflow: hidden; }
@keyframes flota { from { transform: translateY(-4px) rotate(-3deg); } to { transform: translateY(5px) rotate(2deg); } }
.hoja i { position: absolute; left: 14px; height: 6px; border-radius: 3px; background: #e3e5e8; }
.h-l1 { top: 18px; width: 40px; background: var(--tinta) !important; } .h-l2 { top: 34px; right: 14px; } .h-l3 { top: 48px; right: 24px; } .h-l4 { top: 62px; right: 18px; }
.laser { left: 0 !important; right: 0; top: 0; height: 3px !important; border-radius: 0 !important; background: var(--celeste) !important; box-shadow: 0 0 14px 3px rgba(95, 168, 199, 0.65); opacity: 0; }
.zona.leyendo .laser { animation: escanea 1.3s var(--suave) infinite alternate; }
@keyframes escanea { 0% { top: 4px; opacity: 1; } 100% { top: 100px; opacity: 1; } }
.zona.leyendo .hoja { animation: none; transform: scale(1.12); transition: transform 0.6s var(--ease); }
.sello { position: absolute; right: 6px; bottom: 10px; padding: 3px 7px; border-radius: 6px; border: 2px solid var(--petroleo); color: var(--petroleo); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; transform: rotate(-12deg) scale(2.4); opacity: 0; }
.zona.sellada .sello { animation: sella 0.5s var(--resorte) forwards; }
.zona.sellada .laser { animation: none; opacity: 0; }
@keyframes sella { to { transform: rotate(-12deg) scale(1); opacity: 1; } }
.zona-t { display: flex; flex-direction: column; align-items: center; text-align: center; }
.zona-t b { font-size: 16px; font-weight: 600; }
.zona-t small { font-size: 13.5px; color: var(--gris); }

/* ---------- ficha de datos ---------- */
.ficha { margin-top: 28px; border-radius: 22px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), var(--sombra); overflow: hidden; }
.ficha-fila { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; padding: 16px 24px; }
.ficha-fila + .ficha-fila { border-top: 1px solid var(--linea); }
.ficha-fila, .ficha-cabeza { opacity: 0; transform: translateY(10px); animation: fila 0.7s var(--ease) forwards; animation-delay: calc(var(--k, 0) * 110ms + 450ms); }
@keyframes fila { to { opacity: 1; transform: none; } }
.ficha .chip { opacity: 0; transform: scale(0.6); animation: chip-sello 0.55s var(--resorte) forwards; animation-delay: 1.3s; }
@keyframes chip-sello { to { opacity: 1; transform: none; } }
.ficha-fila span { font-size: 13px; color: var(--gris); }
.ficha-fila b { font-size: 15.5px; font-weight: 500; overflow-wrap: anywhere; }
.ficha-fila b.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; font-weight: 600; }
.ficha-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: var(--niebla); }
.ficha-cabeza b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--hielo); color: var(--petroleo); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chip.gris { background: rgba(11, 11, 12, 0.06); color: var(--gris); }
.aviso-suave { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--hielo); color: var(--petroleo); font-size: 13.5px; }

/* ---------- pago ---------- */
.pago { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; margin-top: 30px; align-items: start; }
.segmento { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(11, 11, 12, 0.06); }
.segmento button { position: relative; z-index: 1; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 14px; color: var(--gris); cursor: pointer; transition: color 0.3s; white-space: nowrap; }
.segmento button[aria-checked="true"] { color: var(--tinta); }
.segmento .pastilla { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--blanco); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 6px 14px -8px rgba(16, 24, 40, 0.3); transition: transform 0.5s var(--resorte), width 0.5s var(--resorte); }
.ahorro { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--hielo); color: var(--petroleo); font-style: normal; font-size: 11.5px; font-weight: 600; }
.precio { display: flex; align-items: flex-start; margin-top: 26px; font-weight: 700; letter-spacing: -0.05em; }
.signo { font-size: 30px; margin-top: 10px; }
.cifra { font-size: 76px; line-height: 1; font-variant-numeric: tabular-nums; }
.cifra { display: inline-flex; }
.dg { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.dg-col { display: flex; flex-direction: column; transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1); transition-delay: calc(var(--k, 0) * 60ms); }
.dg-col span { height: 1em; line-height: 1; }
.dg.coma { overflow: visible; }
.periodo { align-self: flex-end; margin: 0 0 10px 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--gris); }
.precio-nota { margin: 6px 0 0; font-size: 13.5px; color: var(--gris); }
.incluye { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.incluye li { position: relative; padding-left: 30px; font-size: 14.5px; color: var(--grafito); }
.incluye li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--tinta); }
.incluye li::after { content: ''; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.factura-a { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px var(--linea); }
.fa-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--niebla); }
.fa-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--tinta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fa-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fa-t small { font-size: 11.5px; color: var(--gris-2); }
.fa-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-rfc { flex: none; padding: 4px 9px; border-radius: 8px; background: var(--hielo); color: var(--petroleo); font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }
.tarjeta-caja { padding: 26px; border-radius: 24px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), 0 30px 60px -36px rgba(16, 24, 40, 0.45); }
.tarjeta-t { margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.stripe-elemento { min-height: 10px; }
.stripe-elemento:empty { display: none; }
.tarjeta-caja .boton.ancho { margin-top: 20px; }
.seguro { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; font-size: 12.5px; color: var(--gris-2); }
.seguro svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo { display: grid; gap: 12px; }
.demo-chip { justify-self: start; padding: 4px 10px; border-radius: 999px; background: #fff4e5; color: #8a4b08; font-size: 12px; font-weight: 600; }
.demo-campo { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--linea); }
.demo-campo span { font-size: 12px; color: var(--gris); }
.demo-campo b { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.demo-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- bienvenida: el gran momento ---------- */
.banner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.banner .sub { margin-left: auto; margin-right: auto; }
.bien-ico { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 34px; }
.bien-ico .aro-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bien-ico .aro-svg circle { fill: none; stroke: var(--tinta); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 290; stroke-dashoffset: 290; }
.escena.viva .bien-ico .aro-svg circle { animation: dibuja-aro 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
@keyframes dibuja-aro { to { stroke-dashoffset: 0; } }
.bien-ico .relleno { position: absolute; inset: 0; border-radius: 50%; background: var(--tinta); transform: scale(0); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.6); }
.escena.viva .bien-ico .relleno { animation: llena 0.6s var(--resorte) 1s forwards; }
@keyframes llena { to { transform: scale(1); } }
.bien-ico .pal-svg { position: relative; width: 50px; height: 50px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.escena.viva .bien-ico .pal-svg { animation: traza 0.5s var(--ease) 1.35s forwards; }
.ondas i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--celeste); opacity: 0; }
.escena.viva .ondas i { animation: onda-g 2.2s var(--ease) forwards; }
.escena.viva .ondas i:nth-child(1) { animation-delay: 1.3s; }
.escena.viva .ondas i:nth-child(2) { animation-delay: 1.5s; border-color: rgba(0, 67, 104, 0.35); }
.escena.viva .ondas i:nth-child(3) { animation-delay: 1.7s; border-color: rgba(11, 11, 12, 0.18); }
@keyframes onda-g { from { transform: scale(0.9); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes onda { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
.chispas { position: absolute; inset: 0; pointer-events: none; }
.banner .boton { margin-top: 30px; }
.banner .boton.grande::after { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 1.5px solid rgba(11, 11, 12, 0.18); opacity: 0; }
.escena.viva .banner .boton.grande::after { animation: llama 2.6s var(--suave) 3s infinite; }
@keyframes llama { 0% { transform: scale(0.92); opacity: 0.8; } 70%, 100% { transform: scale(1.15); opacity: 0; } }
.escena.viva .banner .boton.grande::before { animation: brillo 1.4s var(--ease) 2.6s; }
.bien-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.bien-chips:empty { display: none; }
.bien-chips span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea); font-size: 13px; color: var(--grafito); opacity: 0; transform: translateY(8px) scale(0.95); }
.escena.viva .bien-chips span { animation: fila 0.7s var(--resorte) forwards; animation-delay: calc(var(--k, 0) * 120ms + 1.9s); }
.bien-chips b { font-weight: 600; margin-right: 6px; }
.letra { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(4px); }
.escena.viva .letra { animation: letra 0.6s var(--ease) forwards; animation-delay: calc(var(--k, 0) * 55ms + 1.1s); }
@keyframes letra { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- umbral: tinta + isotipo que se dibuja, y la app se abre ---------- */
.umbral { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; pointer-events: none; }
.umbral::before { content: ''; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; border-radius: 50%; background: var(--tinta); transform: translate(-50%, -50%); }
.umbral.activo::before { animation: inunda 0.8s cubic-bezier(0.65, 0, 0.25, 1) forwards; }
@keyframes inunda { to { width: calc(var(--r) * 2); height: calc(var(--r) * 2); } }
.umbral-logo { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 27px; background: linear-gradient(160deg, #2c2d31, #0b0b0c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.9); opacity: 0; transform: scale(0.6); }
.umbral.activo .umbral-logo { animation: logo-entra 0.7s var(--resorte) 0.55s forwards; }
@keyframes logo-entra { to { opacity: 1; transform: none; } }
.umbral-logo svg { width: 64px; height: 64px; }
.umbral-c { stroke-dasharray: 40; stroke-dashoffset: 40; }
.umbral.activo .umbral-c { animation: traza-c 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.8s forwards; }
@keyframes traza-c { to { stroke-dashoffset: 0; } }
.umbral-punto { transform-origin: 23.6px 16px; transform: scale(0); }
.umbral.activo .umbral-punto { animation: punto 0.5s var(--resorte) 1.35s forwards; }
@keyframes punto { 60% { transform: scale(1.5); } to { transform: scale(1); } }
.umbral-t { position: relative; color: rgba(255, 255, 255, 0.7); font-size: 14px; letter-spacing: 0.01em; opacity: 0; }
.umbral.activo .umbral-t { animation: fila 0.6s var(--ease) 1.3s forwards; }

/* paso a la app: el círculo que se abre desde «Empezar» */
.revela { position: fixed; z-index: 50; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; background: var(--tinta); transform: translate(-50%, -50%); pointer-events: none; }
.revela-aro { position: fixed; z-index: 51; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 0 2px rgba(95, 168, 199, 0.9), 0 0 50px 10px rgba(95, 168, 199, 0.35); }

/* ---------- protege tu cuenta ---------- */
.seg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 30px; padding: 28px; border-radius: 26px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea), 0 30px 60px -36px rgba(16, 24, 40, 0.4); }
.seg-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-marco { position: relative; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--linea); overflow: hidden; }
.qr-marco img { display: block; opacity: 0; filter: blur(8px); transform: scale(0.94); transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease); }
.qr-marco.listo img { opacity: 1; filter: none; transform: none; }
.qr-marco::before, .qr-marco::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2.5px solid var(--tinta); }
.qr-marco::before { left: 6px; top: 6px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.qr-marco::after { right: 6px; bottom: 6px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.qr-scan { position: absolute; left: 8px; right: 8px; top: 12px; height: 2px; background: var(--celeste); box-shadow: 0 0 12px 3px rgba(95, 168, 199, 0.55); opacity: 0; }
.qr-marco.listo .qr-scan { animation: escanea-qr 2.4s var(--suave) 0.6s 2; }
@keyframes escanea-qr { 0% { top: 12px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 14px); opacity: 0; } }
#seg-abrir { display: none; }
.clave { display: none; max-width: 210px; padding: 8px 12px; border-radius: 10px; background: var(--niebla); font-size: 12.5px; letter-spacing: 0.08em; text-align: center; word-break: break-all; user-select: all; }
.clave.ver { display: block; animation: fila 0.4s var(--ease); }
.seg-pasos { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 22px; }
.seg-pasos li { position: relative; padding-left: 46px; counter-increment: p; }
.seg-pasos li::before { content: counter(p); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--niebla); font-size: 13px; font-weight: 600; }
.seg-pasos li.hecho::before { content: '✓'; background: var(--tinta); color: #fff; }
.seg-pasos b { display: block; font-size: 15.5px; font-weight: 600; }
.seg-pasos small { font-size: 13.5px; color: var(--gris); }
.seg-pasos form { margin-top: 12px; }
.casillas.chicas { gap: 8px; }
.casillas.chicas > span { width: 46px; height: 56px; font-size: 23px; border-radius: 13px; }
.casillas.chicas .palomita { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.escudo { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 19px; background: linear-gradient(160deg, #2c2d31, var(--tinta)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 14px 26px -14px rgba(0, 0, 0, 0.6); }
.escudo svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.escudo .pal { stroke: var(--celeste); stroke-width: 2.2; stroke-dasharray: 14; stroke-dashoffset: 14; }
.escena.viva .escudo .pal { animation: traza 0.6s var(--ease) 0.7s forwards; }
.escena.viva .escudo { animation: brota-g 0.8s var(--resorte); }
@keyframes brota-g { from { transform: scale(0.3) rotate(-20deg); opacity: 0; } }
.codigos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.codigos li { padding: 12px 0; border-radius: 12px; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea); text-align: center; font: 600 14.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.04em; opacity: 0; transform: translateY(10px) rotateX(70deg); animation: codigo-cae 0.6s var(--ease) forwards; animation-delay: calc(var(--k, 0) * 55ms + 0.5s); }
@keyframes codigo-cae { to { opacity: 1; transform: none; } }

/* ---------- pie ---------- */
.pie { position: fixed; z-index: 2; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--gris-2); }
.pie a { color: var(--gris-2); text-decoration: none; }
.pie a:hover { color: var(--tinta); }

/* ---------- celular ---------- */
@media (max-width: 720px) {
  .cabeza { height: 64px; grid-template-columns: auto 1fr; }
  .avance { justify-self: end; }
  .avance li { width: 22px; }
  .cabeza-der { display: none; }
  .escenario { place-items: start center; padding: 84px 20px 40px; }
  .atras { margin-bottom: 14px; }
  h1 { font-size: 34px; }
  .sub { font-size: 15px; }
  .forma { margin-top: 26px; }
  .acciones { gap: 14px; }
  .acciones .boton:not(.chico) { flex: 1 1 100%; }
  .tecla { display: none; }
  .casillas { gap: 7px; }
  .casillas > span { flex: 1; width: auto; height: 64px; font-size: 26px; }
  .casillas .guion { width: 8px; flex: none; }
  .opciones { grid-template-columns: 1fr; }
  .opcion { padding: 20px; }
  .opcion b { margin-top: 12px; }
  .zona { height: 240px; }
  .ficha-fila { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .ficha-cabeza { padding: 16px 18px; }
  .pago { grid-template-columns: 1fr; gap: 22px; }
  .factura-a { flex-wrap: wrap; }
  .fa-t b { white-space: normal; }
  .seg { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 22px; }
  .seg-pasos li { padding-left: 40px; min-width: 0; }
  .casillas.chicas { gap: 6px; }
  .casillas.chicas > span { flex: 1; width: auto; min-width: 0; height: 52px; font-size: 21px; }
  .casillas.chicas .guion { width: 6px; }
  .qr-marco { display: none; }
  #seg-abrir { display: inline-flex; width: 100%; }
  .seg-qr { align-items: stretch; }
  .clave { max-width: none; }
  .codigos { grid-template-columns: repeat(2, 1fr); }
  .bien-ico { width: 96px; height: 96px; }
  .cifra { font-size: 60px; }
  .tarjeta-caja { padding: 20px; }
  .pie { position: static; padding: 0 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .escena .entra { opacity: 1; transform: none; filter: none; }
}
