/* Copia de los estilos de la portada (index.html) para las páginas de guías. Si cambia el estilo de la portada, copiarlo aquí. */
/* Layout: una guardia de noche. Barra fija arriba; hero en dos columnas (promesa + celular con el juego);
   después bandas alternas: lo que incluye, demo jugable, bestiario, mapa de mundos, planes y preguntas. Mundo único oscuro, como el juego. */
:root {
	--night: #1b1430;      /* fondo, el pasillo del hospital de noche */
	--locker: #251c3c;     /* bandas alternas, los casilleros del menú */
	--card: #2e2349;       /* tarjetas */
	--line: #3c2e5c;       /* bordes */
	--chalk: #f7f0fd;      /* texto principal */
	--muted: #b3a4cf;      /* texto secundario */
	--pink: #f07aa0;       /* botón A LA GUARDIA */
	--pink-deep: #b04d74;
	--gold: #ffd451;       /* SURVIVORS, cofres, súper boost */
	--cyan: #63d3e6;       /* esquivar, XP */
	--brain: #eaa3b0;      /* el mapa cerebral */
	--display: "Pixelify Sans", "Courier New", monospace;
	--body: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--step--1: 0.9rem;
	--step-0: 1.0625rem;
	--step-1: 1.3rem;
	--step-2: clamp(1.9rem, 4.6vw, 2.8rem);
	--step-3: clamp(3rem, 8.4vw, 5.4rem);
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--night); color: var(--chalk); font-family: var(--body); font-size: var(--step-0); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(27,20,48,.92); }
.sprite, img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-2); }
p { margin: 0; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.eyebrow { font-family: var(--display); font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 54ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .05em; text-decoration: none; color: #2a1020; background: var(--pink); border: 0; border-radius: 12px; padding: 16px 30px; box-shadow: 0 6px 0 var(--pink-deep); cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--pink-deep); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-deep); }
.btn.gold { background: var(--gold); color: #2a1a00; box-shadow: 0 6px 0 #b08a1d; }
.btn.gold:hover { box-shadow: 0 8px 0 #b08a1d; }
.btn.gold:active { box-shadow: 0 2px 0 #b08a1d; }
.btn.line { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 2px var(--line); }
.btn.sm { font-size: 1rem; padding: 10px 16px; box-shadow: 0 4px 0 var(--pink-deep); }

/* Barra superior */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(27,20,48,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); font-family: var(--display); font-weight: 700; letter-spacing: .06em; }
.brand { font-size: 1.15rem; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { color: var(--gold); font-weight: 700; }
.brand .bt { word-spacing: -.12em; }
.links { display: flex; gap: 34px; font-size: 1.05rem; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.links a:hover { color: var(--chalk); }

/* Hero */
.hero { position: relative; padding-block: 64px; min-height: calc(100svh - 84px); display: flex; align-items: center; overflow: hidden; }
.hero > .wrap { width: 100%; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; position: relative; z-index: 2; }
.title { font-size: var(--step-3); letter-spacing: .05em; }
.title span { display: block; text-shadow: 0 6px 0 #0d0918; }
.title .m { color: var(--pink); }
.title .s { color: var(--gold); }
.promise { font-family: var(--body); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; margin-top: 22px; max-width: 20ch; }
.hero .lead { margin-top: 14px; }
.xw { display: inline-grid; vertical-align: bottom; overflow: hidden; color: var(--gold); transition: width .35s ease; }
.xw > span { grid-area: 1 / 1; justify-self: start; white-space: nowrap; opacity: 0; transform: translateY(70%); transition: opacity .35s ease, transform .4s cubic-bezier(.3,1.4,.5,1); }
.xw > span.on { opacity: 1; transform: none; }
.xw > span.off { opacity: 0; transform: translateY(-70%); }
@media (prefers-reduced-motion: reduce) { .xw, .xw > span { transition: none; } }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 32px; }
.soon { display: grid; gap: 8px; }
.soon > span { font-size: .9rem; color: var(--muted); letter-spacing: .04em; }
.stores { display: flex; gap: 8px; }
.store { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 10px; border-radius: 9px; background: #000; border: 1px solid #5d5470; color: #fff; }
.store svg { width: 20px; height: 20px; flex: none; }
.store span { display: grid; line-height: 1; }
.store small { font-size: .6rem; letter-spacing: .02em; color: #d7d2df; }
.store b { font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }

/* Celular */
.device { justify-self: center; position: relative; width: min(290px, 74vw); aspect-ratio: 9 / 19.3; max-width: 100%; border-radius: 46px; padding: 11px;
	background: linear-gradient(145deg, #4a4458, #1d1a26 40%, #3a3547 70%, #15131c); box-shadow: inset 0 0 0 1.5px #6c6680, inset 0 0 0 4px #0b0a10, 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px #0b0a10; }
.device::before, .device::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2633, #5a5468); }
.device::before { left: -3px; top: 20%; height: 9%; box-shadow: 0 64px 0 #4a4458, 0 120px 0 #4a4458; }
.device::after { right: -3px; top: 27%; height: 15%; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--brain); container-type: inline-size; box-shadow: 0 0 0 2px #050408; }
.island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 32%; height: 22px; border-radius: 14px; background: #050408; z-index: 6; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene { position: absolute; inset: 0; background: var(--brain); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.xpbar { position: absolute; top: 36px; left: 12px; right: 12px; height: 6px; border-radius: 3px; background: rgba(40,16,40,.55); z-index: 3; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 30%; background: #63d3e6; transition: width .2s ease; }
.hud { position: absolute; top: 46px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 4px; font-family: var(--body); font-weight: 800; color: #fff; font-size: 4.6cqw; text-shadow: 0 1px 0 #3a1830, 0 0 4px rgba(58,24,48,.8); z-index: 3; white-space: nowrap; }
.hud span:nth-child(2) { font-size: 5.6cqw; }
.hud .pause { width: 9cqw; height: 9cqw; border-radius: 2.4cqw; background: #2b1d48; box-shadow: inset 0 0 0 2px #4b3a72; position: relative; flex: none; }
.hud .pause::before { content: ""; position: absolute; inset: 30% 33%; border-inline: 1.3cqw solid #fff; }
.lvup { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--display); font-weight: 700; font-size: 7.4cqw; color: var(--gold); text-shadow: 0 3px 0 #5a2b12; z-index: 3; opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.lvup.on { opacity: 1; transform: none; }
.dash { position: absolute; right: 7%; bottom: 7%; width: 19cqw; height: 19cqw; border-radius: 50%; background: #63d3e6; color: #1a1030; display: grid; place-items: center; font: 800 11cqw/1 var(--body); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 0 0 3px #1a1030; z-index: 3; }
.sprite { position: absolute; background-repeat: no-repeat; }
@keyframes unspin { from { rotate: 0deg; } to { rotate: 360deg; } }
.boost { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; font-family: var(--display); font-weight: 700; font-size: 9cqw; color: var(--gold); text-shadow: 0 3px 0 #5a2b12; animation: flash 3.2s steps(1) infinite; z-index: 3; }
@keyframes flash { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Hojas de sprites (2 cuadros de caminar) */
.men { width: 22px; height: 17px; background-image: url(/img/meningococo.png); background-size: 66px 17px; animation: f2w44 .4s steps(2) infinite; }
.des { width: 18px; height: 20px; background-image: url(/img/descarga.png); background-size: 54px 20px; animation: f2w36 .3s steps(2) infinite; }
.tro { width: 24px; height: 21px; background-image: url(/img/trombo.png); background-size: 72px 21px; animation: f2w48 .6s steps(2) infinite; }
.cis { width: 16px; height: 21px; background-image: url(/img/cisticerco.png); background-size: 48px 21px; animation: f2w32 .5s steps(2) infinite; }
.tox { width: 18px; height: 16px; background-image: url(/img/toxo.png); background-size: 54px 16px; animation: f2w36 .5s steps(2) infinite; }
.ami { width: 22px; height: 21px; background-image: url(/img/amiloide.png); background-size: 88px 21px; animation: f2w44 .8s steps(2) infinite; }
.b-est { width: 56px; height: 56px; background-image: url(/img/boss_estatus.png); background-size: 168px 56px; animation: f2w112 .6s steps(2) infinite; }
.b-acv { width: 56px; height: 56px; background-image: url(/img/boss_acv.png); background-size: 168px 56px; animation: f2w112 .7s steps(2) infinite; }
.b-men { width: 56px; height: 56px; background-image: url(/img/boss_meningitis.png); background-size: 168px 56px; animation: f2w112 .7s steps(2) infinite; }
.c-ldl { width: 24px; height: 24px; background-image: url(/img/c_ldl.png); background-size: 72px 24px; animation: f2w48 .5s steps(2) infinite; }
.c-hta { width: 24px; height: 24px; background-image: url(/img/c_hta.png); background-size: 72px 24px; animation: f2w48 .6s steps(2) infinite; }
.c-reumatica { width: 24px; height: 24px; background-image: url(/img/c_reumatica.png); background-size: 72px 24px; animation: f2w48 .7s steps(2) infinite; }
.c-placa { width: 24px; height: 24px; background-image: url(/img/c_placa.png); background-size: 72px 24px; animation: f2w48 .5s steps(2) infinite; }
.c-endocarditis { width: 24px; height: 24px; background-image: url(/img/c_endocarditis.png); background-size: 72px 24px; animation: f2w48 .6s steps(2) infinite; }
.c-estenosis { width: 24px; height: 24px; background-image: url(/img/c_estenosis.png); background-size: 72px 24px; animation: f2w48 .7s steps(2) infinite; }
.c-pericarditis { width: 24px; height: 24px; background-image: url(/img/c_pericarditis.png); background-size: 72px 24px; animation: f2w48 .5s steps(2) infinite; }
.c-mch { width: 24px; height: 24px; background-image: url(/img/c_mch.png); background-size: 72px 24px; animation: f2w48 .6s steps(2) infinite; }
.b-fa { width: 56px; height: 56px; background-image: url(/img/boss_fa.png); background-size: 168px 56px; animation: f2w112 .6s steps(2) infinite; }
.b-eap { width: 56px; height: 56px; background-image: url(/img/boss_eap.png); background-size: 168px 56px; animation: f2w112 .7s steps(2) infinite; }
.b-taponamiento { width: 56px; height: 56px; background-image: url(/img/boss_taponamiento.png); background-size: 168px 56px; animation: f2w112 .6s steps(2) infinite; }
.b-fv { width: 56px; height: 56px; background-image: url(/img/boss_fv.png); background-size: 168px 56px; animation: f2w112 .7s steps(2) infinite; }
.b-infarto { width: 56px; height: 56px; background-image: url(/img/boss_infarto.png); background-size: 168px 56px; animation: f2w112 .6s steps(2) infinite; }
.doc-i { width: 24px; height: 28px; background-image: url(/img/interno.png); background-size: 96px 28px; animation: f2w48 .5s steps(2) infinite; }
.cir { width: 24px; height: 28px; background-image: url(/img/cirujano.png); background-size: 96px 28px; animation: f2w48 .5s steps(2) infinite; }
.doc-a { width: 24px; height: 28px; background-image: url(/img/interna.png); background-size: 96px 28px; animation: f2w48 .5s steps(2) infinite; }
@keyframes f2w32 { to { background-position: -32px 0; } }
@keyframes f2w36 { to { background-position: -36px 0; } }
@keyframes f2w44 { to { background-position: -44px 0; } }
@keyframes f2w48 { to { background-position: -48px 0; } }
@keyframes f2w112 { to { background-position: -112px 0; } }

/* Horda de fondo, se revienta con un toque */
.swarm { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.foe { position: absolute; pointer-events: auto; cursor: crosshair; border: 0; padding: 0; background-color: transparent; transform: scale(var(--s, 3)); animation: var(--a) var(--ad, .4s) steps(2) infinite; opacity: .42; }
.foe:hover { opacity: .9; }
@keyframes drift { 30% { translate: var(--dx, 30px) var(--dy, -20px); } 55% { translate: var(--dx2, -40px) var(--dy2, 10px); } 80% { translate: calc(var(--dx) * -.6) calc(var(--dy2) * -1); } }
.pop { position: absolute; z-index: 5; pointer-events: none; font-family: var(--display); font-weight: 700; color: var(--cyan); text-shadow: 0 2px 0 #0d0918; animation: rise .8s ease-out forwards; }
@keyframes rise { to { translate: 0 -46px; opacity: 0; } }

section.band { padding-block: 88px; }
.alt { background: var(--locker); }
.head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: 44px; }
.head .lead { text-align: center; }

/* Cifras */
.facts { border-block: 1px solid var(--line); background: linear-gradient(90deg, #160f28, #21183c 50%, #160f28); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-block: 22px; }
.fact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(46,35,73,.6); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; transition: transform .2s ease; }
.fact:hover { transform: translateY(-3px); }
.fi { width: 54px; height: 54px; flex: none; border-radius: 14px; background: var(--night); display: grid; place-items: center; overflow: hidden; }
.fi img { width: 38px; height: 36px; object-fit: contain; animation: bob 2.4s ease-in-out infinite; }
.ft { display: grid; gap: 2px; min-width: 0; }
.fact b { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.05; }
.fact b.word { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--cyan); }
.ft > span { color: var(--muted); font-size: var(--step--1); line-height: 1.3; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* Lo que incluye */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.feat .ic { width: 64px; height: 64px; border-radius: 16px; background: var(--night); display: grid; place-items: center; overflow: hidden; }
.feat .ic img { width: 44px; height: 44px; }
.feat .ic .sprite { position: static; transform: scale(2.2); }
.feat h3 { font-size: 1.4rem; }
.feat p { color: var(--muted); }
.feat .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feat .chips span { font-family: var(--display); font-size: .82rem; padding: 3px 9px; border-radius: 6px; background: var(--night); color: var(--chalk); font-variant-numeric: tabular-nums; }
.feat.big { grid-column: span 2; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.mock-q { background: var(--night); border-radius: 16px; padding: 16px; width: min(300px, 100%); display: grid; gap: 8px; font-size: .92rem; }
.mock-q .stem { font-weight: 500; }
.mock-q .opt { padding: 8px 10px; border-radius: 9px; background: var(--card); color: var(--muted); }
.mock-q .opt.ok { background: rgba(110,220,150,.18); color: #b9f5cc; box-shadow: inset 0 0 0 2px #59c987; }
.mock-q .ref { font-size: .78rem; color: var(--cyan); opacity: 0; transition: opacity .4s ease .2s; }
.soon-tag { font-family: var(--display); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; padding: 3px 7px; border-radius: 6px; background: var(--night); color: var(--cyan); margin-left: 4px; }

/* Carrusel de preguntas: texto a la izquierda, la pregunta animada a la derecha */
.feat.qcar { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; }
.qcopy { display: grid; gap: 12px; align-content: center; }
.qdots { display: flex; gap: 8px; margin-top: 6px; }
.qdots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; transition: width .3s ease, background .3s ease; }
.qdots button[aria-current="true"] { width: 34px; background: var(--gold); }
.qstage { display: grid; }
.qcar .mock-q { width: 100%; height: 100%; align-content: start; padding: 20px; gap: 9px; transition: opacity .45s ease, transform .45s ease; }
.mock-q.out { opacity: 0; transform: translateX(-28px) rotate(-1deg); }
.mock-q.in { opacity: 0; transform: translateX(28px) rotate(1deg); transition: none; }
.mock-q .qtag { justify-self: start; font-family: var(--display); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--card); color: var(--gold); }
.mock-q .opt { transition: background .3s ease, box-shadow .3s ease, color .3s ease, transform .3s ease; }
.mock-q .opt.ok { transform: scale(1.02); }
.mock-q .boostq { margin-top: auto; justify-self: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--gold); text-shadow: 0 2px 0 #5a2b12; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .35s cubic-bezier(.3,1.6,.5,1); }
.mock-q.won .boostq { opacity: 1; transform: none; }
.mock-q.won .ref { opacity: 1; }

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.demo .copy { display: grid; gap: 18px; justify-items: start; }
.demo ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: d; }
.demo li { counter-increment: d; display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.demo li::before { content: counter(d); font-family: var(--display); color: var(--night); background: var(--gold); width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; flex: none; }
.player { justify-self: center; width: min(360px, 88vw); aspect-ratio: 9 / 16; max-width: 100%; position: relative; border-radius: 26px; overflow: hidden; background: #0d0918; box-shadow: 0 0 0 3px var(--line), 0 24px 60px rgba(0,0,0,.45); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .start { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; background: radial-gradient(circle at 50% 40%, #3a2c58, #0d0918 70%); border: 0; color: var(--chalk); cursor: pointer; font: inherit; }
.player .start .sprite { position: static; transform: scale(5); margin-bottom: 40px; }
.player .start[hidden], [hidden] { display: none !important; }
.player .start b { font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.player .start small { color: var(--muted); }
.player .end { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; padding: 28px; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(255,212,81,.25), rgba(13,9,24,.96) 65%); opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.player.done .end { opacity: 1; pointer-events: auto; }
.player.done iframe { filter: blur(6px) brightness(.5); transition: filter .6s ease; }
.end h3 { font-size: 1.9rem; color: var(--gold); }
.end p { color: var(--chalk); }

/* Bestiario */
.worlds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -18px 0 32px; }
.worlds button { font: 600 .95rem var(--body); color: var(--muted); background: var(--night); border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.worlds button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.worlds button[aria-pressed="true"] { color: var(--chalk); border-color: var(--c); background: var(--card); }
.dex-stage.boss { background: radial-gradient(circle at 50% 58%, rgba(255,212,81,.38), transparent 52%), radial-gradient(circle at 50% 45%, #8a2446, #2a0d1e 78%); box-shadow: inset 0 0 0 6px #0d0918, inset 0 0 0 11px rgba(255,212,81,.55); }
.dex-stage.boss::before { background: repeating-conic-gradient(from 0deg at 50% 58%, rgba(255,212,81,.08) 0 10deg, transparent 10deg 20deg); animation: rays 18s linear infinite; }
@keyframes rays { to { rotate: 360deg; } }
.dex-stage.boss .tag { background: var(--gold); color: #2a1a00; }
.dex-stage .tag.mon { color: var(--cyan); }
.dex-stage.boss .shadow { background: rgba(0,0,0,.4); }
.dex-info.boss h3 { color: #ff8fab; }
.dex-info.boss .kind { color: var(--gold); }
.dex-picks button.boss { background: #3a1028; border-color: #6e3150; }
.dex-picks button.boss[aria-pressed="true"] { border-color: var(--gold); background: #5a1838; }
.dex-stage.locked .sprite { filter: brightness(0) opacity(.4); }
.dex-stage.locked::after { content: "?"; position: absolute; font-family: var(--display); font-weight: 700; font-size: 7rem; color: rgba(255,255,255,.9); text-shadow: 0 5px 0 #0d0918; }
.dex { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.dex-stage { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 28px; background: radial-gradient(circle at 50% 62%, rgba(255,255,255,.25), transparent 60%); background-color: var(--wc, var(--brain)); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 6px #0d0918; cursor: pointer; transition: background-color .4s ease; }
.dex-stage::before { content: ""; position: absolute; inset: -30%; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(120,40,70,.08) 46px 52px); }
.dex-stage .sprite { position: relative; transform: scale(var(--big, 9)); animation-duration: .5s; }
.dex-stage .shadow { position: absolute; bottom: 19%; width: 36%; height: 6%; border-radius: 50%; background: rgba(60,20,40,.28); }
.dex-stage .tag { position: absolute; top: 16px; left: 16px; font-family: var(--display); font-size: .85rem; padding: 4px 10px; border-radius: 8px; background: #0d0918; color: var(--gold); }
.dex-info { display: grid; gap: 14px; min-width: 0; }
.dex-info .kind { font-family: var(--display); color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; font-size: var(--step--1); }
.dex-info h3 { font-size: clamp(2.1rem, 6vw, 3.4rem); color: var(--gold); }
.dex-info .row { display: grid; gap: 4px; }
.dex-info .row b { font-family: var(--display); font-weight: 500; color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.dex-info .row p { font-size: 1.12rem; max-width: 40ch; }
.dex-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dex-picks button { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--line); background: var(--night); display: grid; place-items: center; cursor: pointer; overflow: hidden; padding: 0; }
.dex-picks button[aria-pressed="true"] { border-color: var(--gold); background: var(--card); }
.dex-picks .sprite { position: static; transform: scale(var(--mini, 1.8)); }
/* Centrado exacto aunque el sprite sea más grande que su caja (Safari lo pegaba arriba a la izquierda y, al escalar, quedaba abajo a la derecha) */
.dex-picks button { position: relative; }
.dex-stage .sprite, .dex-picks .sprite { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }

/* Mapa de mundos: tres estilos para elegir y el panel del mundo tocado */
.styles { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: -18px auto 26px; padding: 5px; border-radius: 14px; background: var(--locker); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
.styles button { font: 600 .95rem var(--body); color: var(--muted); background: transparent; border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer; }
.styles button[aria-selected="true"] { background: var(--card); color: var(--chalk); box-shadow: 0 3px 0 #0d0918; }
.atlas { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.views { min-width: 0; display: flex; flex-direction: column; }
.views > .view.map { flex: 1; aspect-ratio: auto; min-height: 460px; }
.map { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse at 30% 20%, #2f2552, transparent 55%), radial-gradient(ellipse at 80% 90%, #2a2045, transparent 50%), #140e26; box-shadow: inset 0 0 0 2px var(--line); }
.map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; }
.map svg.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.map svg.route path { fill: none; stroke: #6c5a99; stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map svg.route path.done { stroke: var(--gold); stroke-dasharray: none; }
.isle { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; width: 18%; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; animation: float 4.5s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes float { 50% { translate: 0 -7px; } }
.isle .land { width: 100%; aspect-ratio: 120 / 96; display: grid; place-items: center; position: relative; filter: saturate(.85) brightness(.9); transition: filter .2s ease; }
.isle .land svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.organ { fill: var(--c); stroke: rgba(13,9,24,.55); stroke-width: 3; stroke-linejoin: round; }
.organ-d { fill: none; stroke: rgba(13,9,24,.4); stroke-width: 2.5; stroke-linecap: round; }
.rock { fill: #3a2c58; } .rock-d { fill: #2a1f44; }
.isle .land > .sprite { position: relative; z-index: 1; margin-top: -26%; }
.isle .land > .lock { position: absolute; z-index: 1; right: 6%; bottom: 12%; margin: 0; transform: scale(.8); box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.isle:hover .land { filter: saturate(.8) brightness(.9); }
.isle .land .sprite { transform: scale(2); }
.lock { display: block; width: 24px; height: 20px; border-radius: 5px; background: #120c22; position: relative; margin-top: 8px; }
.lock::before { content: ""; position: absolute; left: 5px; right: 5px; top: -10px; height: 13px; border: 4px solid #120c22; border-bottom: 0; border-radius: 10px 10px 0 0; }
.isle .name { font-family: var(--display); font-weight: 700; font-size: clamp(.78rem, 1.3vw, 1rem); text-align: center; line-height: 1.1; text-shadow: 0 2px 0 #0d0918; }
.isle .st { font-size: .7rem; font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.isle.on .land { filter: none; animation: glow 2.4s ease-in-out infinite; }
.isle.on .st { color: var(--gold); }
@keyframes glow { 50% { filter: drop-shadow(0 0 12px rgba(255,212,81,.6)); } }
.isle[aria-pressed="true"] .land { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 10px rgba(255,255,255,.55)); animation: none; }
.isle[aria-pressed="true"] .name { color: var(--gold); }
.map-list { display: none; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { display: grid; gap: 8px; align-content: start; text-align: left; padding: 14px; border-radius: 16px; background: var(--locker); border: 2px solid var(--line); color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.card[aria-pressed="true"] { border-color: var(--c); background: var(--card); }
.card b { font-family: var(--display); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card b::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.card small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.card .bosses { display: flex; gap: 6px; }
.card .bosses > span { width: 46px; height: 46px; border-radius: 12px; background: #2a0d1e; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255,212,81,.35); }
.card .bosses .sprite { position: static; transform: scale(.75); margin: -5px; } /* 56 px escalado a 42: el margen lo deja ocupar 46 y queda al centro */
.card .bosses .q { font-family: var(--display); color: var(--muted); background: var(--night); box-shadow: inset 0 0 0 2px var(--line); }
.world { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.world.swap { animation: swap .35s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.world .wh { display: flex; align-items: center; gap: 14px; }
.world .wico { width: 60px; height: 60px; flex: none; border-radius: 16px; background: var(--c); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); }
.world .wico .sprite { position: static; transform: scale(1.6); }
.world h3 { font-size: 1.6rem; }
.world .st { font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.world .st.on { color: var(--gold); }
.world > p { color: var(--muted); }
.stops { list-style: none; margin: 0; padding: 0 0 0 28px; display: grid; gap: 10px; position: relative; }
.stops::before { content: ""; position: absolute; left: 9px; top: 14px; bottom: 14px; border-left: 3px dotted #6c5a99; }
.stops li { display: flex; align-items: center; gap: 12px; position: relative; height: 52px; }
.stops li > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.stops li::before { content: ""; position: absolute; left: -24.5px; width: 14px; height: 14px; border-radius: 50%; background: #3c2e5c; box-shadow: 0 0 0 4px var(--card); }
.stops li.boss::before { background: var(--c); }
.stops .sp { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--night); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.stops .sp > * { flex: none; }
.stops .sp .sprite { position: static; transform: scale(.7); }
.stops small { display: block; color: var(--muted); font-size: .8rem; }
.world .btn { width: 100%; font-size: 1.1rem; margin-top: auto; }

/* Planes: misma estructura en las tres tarjetas, alineada fila por fila */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; gap: 14px; justify-items: center; text-align: center; padding: 32px 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; position: relative; min-width: 0; transition: transform .2s ease; }
.plan:hover { transform: translateY(-4px); }
.plan.hot { border: 2px solid var(--gold); background: linear-gradient(180deg, #43336a, var(--card) 70%); box-shadow: 0 0 0 6px rgba(255,212,81,.08), 0 24px 50px rgba(0,0,0,.35); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: #2a1a00; padding: 4px 12px; border-radius: 7px; }
.plan .pic { width: 84px; height: 84px; border-radius: 20px; background: var(--night); display: grid; place-items: center; overflow: hidden; }
.plan .pic .sprite { position: static; transform: scale(2.4); }
.plan.hot .pic .sprite { transform: scale(1.3); }
.pname { display: grid; gap: 2px; }
.pname h3 { font-size: 1.8rem; }
.pname span { color: var(--cyan); font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.price { display: grid; justify-items: center; gap: 2px; }
.price b { font-family: var(--display); font-size: 2.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plan.hot .price b { color: var(--gold); }
.price span { color: var(--muted); font-size: .92rem; }
.per { color: var(--muted); align-self: center; }
.per b { color: var(--chalk); font-weight: 600; }
.plan .btn { width: 100%; align-self: end; font-size: 1.1rem; padding-inline: 12px; }
.incl { list-style: none; margin: 30px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 880px; }
.incl li { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: var(--night); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; }
.incl li::before { content: ""; width: 8px; height: 8px; background: var(--cyan); box-shadow: 2px 2px 0 #2b7f8d; }

/* Preguntas frecuentes */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 64ch; }

/* Cierre: monitor cardiaco, título que late y la guardia corriendo con la horda detrás */
.last { position: relative; overflow: hidden; padding-block: 104px 180px; }
.ecg { position: absolute; left: 0; top: 44%; width: 100%; height: 200px; transform: translateY(-50%); opacity: .55; }
.ecg path { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: .22 .78; animation: trace 3s linear infinite; filter: drop-shadow(0 0 6px rgba(99,211,230,.85)); }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.final { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 22px; }
.final .title { font-size: clamp(2.4rem, 7vw, 4.2rem); animation: beat 1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.05); } 22% { transform: scale(1); } 32% { transform: scale(1.025); } 44% { transform: scale(1); } }
.monitor { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 10px; background: #0d0918; box-shadow: inset 0 0 0 2px #2b7f8d; font-family: var(--display); color: var(--cyan); }
.monitor img { width: 22px; height: 22px; animation: beat 1s ease-in-out infinite; }
.monitor b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.monitor small { font-size: .75rem; letter-spacing: .1em; }
.parade { position: absolute; left: 0; right: 0; bottom: 30px; height: 70px; z-index: 1; pointer-events: none; }
.parade .runner { position: absolute; bottom: 0; left: 0; animation: run 13s linear infinite; }
.parade .sprite { position: relative; display: block; transform: scale(2.4); transform-origin: bottom center; }
.parade .sprite.big { transform: scale(1.1); }
.res { width: 24px; height: 28px; background-image: url(/img/residente.png); background-size: 96px 28px; animation: f2w48 .5s steps(2) infinite; }
@keyframes run { from { translate: -140px 0; } to { translate: calc(100vw + 140px + var(--tail, 0px)) 0; } }

/* Secciones vivas: horda que rebota contra las tarjetas y entre sí, rayo del monitor y brillo al pasar el cursor */
.live { position: relative; overflow: hidden; }
.live > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.foe { left: 0; top: 0; transform-origin: 0 0; }
.deco .foe { opacity: .26; }
.deco .foe:hover { opacity: .8; }
.foe.hit { animation: var(--a) var(--ad) steps(2) infinite, hit .45s ease-out; }
@keyframes hit { 0%, 30% { filter: brightness(0) invert(1) drop-shadow(0 0 6px #63d3e6); rotate: -14deg; opacity: 1; } 15% { rotate: 12deg; } 45% { rotate: -6deg; opacity: .9; } 100% { filter: none; rotate: 0deg; } }
.deco .ecg2 { position: absolute; left: 0; top: 0; width: 100%; height: 140px; opacity: .55; }
.deco .ecg2 path { fill: none; stroke: var(--cyan); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(99,211,230,.8)); }
.zap { display: inline-block; white-space: nowrap; }
.zap i { font-style: normal; transition: color .7s ease, text-shadow .7s ease; }
.zap i.lit { color: #b9f3ff; text-shadow: 0 0 6px #63d3e6, 0 0 16px rgba(99,211,230,.9); transition: none; }
.feat, .plan, .faq details, .player, .dex-stage, .world, .card, .map, .fact { transition: box-shadow .25s ease, transform .2s ease; }
.feat:hover, .plan:hover, .faq details:hover, .player:hover, .dex-stage:hover, .world:hover, .card:hover, .map:hover, .fact:hover { box-shadow: 0 0 0 2px rgba(99,211,230,.7), 0 0 28px rgba(99,211,230,.35); }

/* Nombre y correo antes de jugar */
.gate { border: 0; padding: 0; background: transparent; color: var(--chalk); width: min(420px, calc(100vw - 32px)); max-width: none; }
.gate::backdrop { background: rgba(10,6,20,.74); backdrop-filter: blur(4px); }
.gate form[hidden] { display: none; }
/* Ninguna ventana puede ser más ancha que la pantalla: un correo largo o un input con letter-spacing ensanchaban el grid hacia la derecha en el celular. */
.gate { overflow-x: hidden; }
.gate form, .gate label { grid-template-columns: minmax(0, 1fr); }
.gate form > *, .gate label > * { min-width: 0; }
.gate input { width: 100%; box-sizing: border-box; }
.gate p, .gate b, .gate .who span { overflow-wrap: anywhere; }
.navr { display: flex; align-items: center; gap: 14px; }
/* <button> no hereda el interlineado; así "Iniciar sesión" mide igual que "Jugar demo" */
.navr .btn { line-height: 1.5; }
/* Botón secundario: misma forma, fuente y sombra que los rosados, en el color de las tarjetas */
/* El borde inferior es más claro que el fondo para que se vea y el botón mida lo mismo que los rosados, sombra incluida */
.btn.alt { background: var(--card); color: var(--chalk); box-shadow: inset 0 0 0 2px #4b3a72, 0 6px 0 #3c2e5c; }
.btn.alt:hover { box-shadow: inset 0 0 0 2px var(--gold), 0 8px 0 #3c2e5c; color: var(--gold); }
.btn.alt:active { box-shadow: inset 0 0 0 2px var(--gold), 0 2px 0 #3c2e5c; }
.btn.sm.alt { box-shadow: inset 0 0 0 2px #4b3a72, 0 4px 0 #3c2e5c; }
.btn.sm.alt:hover { box-shadow: inset 0 0 0 2px var(--gold), 0 6px 0 #3c2e5c; }
.acct { white-space: nowrap; }
#me-title:focus { outline: none; }
.nav .btn.acct:has(.ini) { order: 2; padding: 0; background: none; box-shadow: none; }
.navr .short { display: none; }
.gate .lnk.out { justify-self: center; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.gate .lnk.out:hover { color: var(--chalk); }
.gate .opts { margin: 4px 0 0; text-align: center; font-size: .95rem; line-height: 1.3; }
/* Los dos enlaces del final (Restaurar compra y Cerrar sesión) van con el mismo espacio visible (16 px) desde la sombra del botón y entre ellos; medido en píxeles, no en márgenes. */
.gate .opts:has(> :not([hidden])) + .lnk.out { margin-top: -5px; }
#me form { padding-bottom: 19px; }
.gate .opts:not(:has(> :not([hidden]))) { display: none; }
.acct .ini { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 #110b20; font: 700 1.2rem var(--display); color: var(--gold); }
.acct:has(.ini):hover .ini { box-shadow: inset 0 0 0 2px var(--gold), 0 6px 0 #110b20; }
.gate .who { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--night); text-align: left; }
.gate .who b { color: var(--chalk); }
.gate .who span { color: var(--muted); font-size: .9rem; word-break: break-all; }
.gate .sub { padding: 12px 14px; border-radius: 14px; box-shadow: 0 0 0 2px var(--line); text-align: left; color: var(--chalk); }
.gate .sub.on { box-shadow: 0 0 0 2px var(--green, #34d399); }
.player .full { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(10,6,20,.6); color: #fff; font-size: 1.2rem; cursor: pointer; }
.player:fullscreen { width: 100vw; max-width: none; aspect-ratio: auto; border-radius: 0; }
@media (max-width: 900px) { .nav .btn.sm.acct:not(:has(.ini)) { font-size: .9rem; padding: 9px 12px; } .acct .ini { width: 40px; height: 40px; } .navr .long { display: none; } .navr .short { display: inline; } .nav .wrap { padding-block: 12px; gap: 10px; } .navr { gap: 8px; } }
.gate .or { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.gate .or::before, .gate .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate .lnk { font: inherit; color: var(--cyan); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.gate #code-form input { text-align: center; letter-spacing: .4em; font-size: 1.4rem; }
.gate form { position: relative; display: grid; gap: 14px; padding: 30px 24px 22px; border-radius: 24px; background: linear-gradient(180deg, #3a2c58, var(--card)); box-shadow: 0 0 0 2px var(--line), 0 30px 80px rgba(0,0,0,.6); text-align: center; }
.gate[open] form { animation: rise-in .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes rise-in { from { transform: translateY(24px) scale(.96); opacity: 0; } }
.gate .sprite { position: relative; justify-self: center; transform: scale(3); margin: 26px 0 28px; }
.gate h3 { font-size: 1.6rem; color: var(--gold); }
.gate p { color: var(--muted); }
.gate label { display: grid; gap: 6px; text-align: left; font-weight: 500; font-size: .95rem; }
.gate input { font: inherit; font-size: 16px; color: var(--chalk); background: var(--night); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.gate input:focus { outline: none; border-color: var(--cyan); }
.gate .err { color: #ffb4c4; font-size: .9rem; }
.gate .btn { width: 100%; }
.gate small { color: var(--muted); font-size: .8rem; }
.gate .x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem var(--body); color: #1f1f1f; background: #fff; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; }
.gbtn svg { width: 20px; height: 20px; }
/* Pago: Paddle va dentro de nuestra ventana; el resumen lo pintamos nosotros con los datos que manda Paddle */
.gate.pay { width: min(480px, calc(100vw - 16px)); }
.gate.pay { max-height: calc(100svh - 24px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; border-radius: 24px; scrollbar-width: none; }
.gate.pay::-webkit-scrollbar { display: none; }
.gate.pay form { gap: 12px; padding: 26px 14px 16px; min-width: 0; }
.gate.pay .sprite { transform: scale(2.2); margin: 14px 0 12px; }
.gate.pay .sprite.b-est { transform: scale(1.2); margin: 0 0 -4px; }
.gate .bill { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--night); box-shadow: 0 0 0 2px var(--line); text-align: left; }
.gate .bill div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.gate .bill .now b { color: var(--gold); font: 700 1.2rem var(--display); }
.gate .bill .free { color: #6fe3a7; font-weight: 600; }
.gate .bill small { font-size: .85rem; }
.gate .frame { min-height: 450px; min-width: 0; }
.gate .tax { justify-self: center; font-size: .85rem; color: var(--muted); }
@media (max-width: 420px) { .gate.pay form { padding-inline: 6px; } .gate.pay .bill { margin-inline: 8px; } }
.gate.pay .side { display: grid; gap: 12px; }
.gate .perks { display: none; list-style: none; margin: 0; padding: 0; text-align: left; color: var(--muted); }
.gate .perks li { padding: 6px 0 6px 26px; position: relative; }
.gate .safe { display: none; margin: 0; text-align: center; font-size: .9rem; }
.gate .perks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; background: var(--cyan); }
/* En compu: resumen a la izquierda y el pago a la derecha, para que no quede una columna alta y angosta */
@media (min-width: 900px) {
	.gate.pay { width: min(940px, calc(100vw - 48px)); }
	.gate.pay form#pay-form { grid-template-columns: 390px 1fr; gap: 28px; align-items: start; padding: 32px 28px 24px; }
	.gate.pay .side { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 18px 22px; border-radius: 20px; background: rgba(27,20,48,.45); }
	.gate.pay .side .sprite { align-self: center; margin: 34px 0 30px; transform: scale(3.2); }
	.gate.pay .side .sprite.b-est { transform: scale(1.9); margin: 26px 0 22px; }
	.gate.pay .side h3 { font-size: 2rem; }
	.gate .perks { display: grid; gap: 4px; font-size: 1.05rem; }
	.gate .safe { display: block; }
	.gate.pay .frame { margin: 0; }
	.gate .bill div { white-space: nowrap; }
	.gate.pay .tax { grid-column: 2; }
}
/* El documento de Paddle es "light"; si el iframe hereda "dark", el navegador le pone fondo blanco opaco. */
.gate .frame iframe { color-scheme: light; }
.gate .frame.wait { display: grid; place-items: center; color: var(--muted); }
.gate .ok-ic { font-size: 3rem; line-height: 1; }

footer { padding-block: 40px 52px; color: var(--muted); font-size: var(--step--1); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 900px) {
	.links { display: none; }
	.brand { font-size: .82rem; gap: 8px; }
	.brand img { width: 30px; height: 30px; }
	.nav .btn.sm { white-space: nowrap; font-size: .9rem; padding: 9px 12px; }
	.hero { padding-block: 40px; min-height: 0; }
	.hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 40px; }
	.promise { margin-inline: auto; }
	.hero .lead { margin-inline: auto; }
	.hero .actions { justify-content: center; flex-direction: column; }
	.soon { justify-items: center; }
	.facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feats { grid-template-columns: 1fr; }
	.feat.big { grid-column: auto; grid-template-columns: 1fr; }
	.demo, .dex { grid-template-columns: 1fr; }
	.demo .copy { justify-items: center; text-align: center; }
	.dex-info { justify-items: center; text-align: center; }
	.dex-picks { justify-content: center; }
	.dex-stage { --big: 7; }
	.plans { grid-template-columns: 1fr; max-width: 420px; }
	.facts .wrap { gap: 10px; }
	.fact { flex-direction: column; text-align: center; padding: 14px 10px; gap: 8px; }
	.worlds { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -18px; padding: 4px 18px; scrollbar-width: none; }
	.worlds button { flex: none; }
	.feat.qcar { grid-template-columns: 1fr; gap: 20px; }
	.qcopy { justify-items: start; }
	.qstage { min-height: 0; }
	.atlas { grid-template-columns: 1fr; }
	.cards { grid-template-columns: 1fr; }
	.view.map { display: none; }
	.map-list { display: grid; gap: 0; position: relative; padding-left: 40px; }
	.map-list::before { content: ""; position: absolute; left: 15.5px; top: 18px; bottom: 18px; border-left: 3px dotted #6c5a99; }
	.map-list .stop { background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; padding-block: 10px; position: relative; }
	.map-list .stop::before { content: ""; position: absolute; left: -31px; width: 16px; height: 16px; border-radius: 50%; background: #3c2e5c; box-shadow: 0 0 0 4px var(--night); }
	.map-list .stop.on::before { background: var(--gold); }
	.map-list .blob { width: 78px; height: 62px; position: relative; filter: saturate(.85) brightness(.9); display: grid; place-items: center; flex: none; }
	.map-list .blob svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
	.map-list .on .blob, .map-list .stop[aria-pressed="true"] .blob { filter: none; }
	.map-list .stop[aria-pressed="true"] b { color: var(--gold); }
	.map-list .blob .sprite { position: relative; margin-top: -22%; transform: scale(1.3); }
	.map-list b { font-family: var(--display); font-size: 1.1rem; display: block; }
	.map-list small { color: var(--muted); font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
	.map-list .on small { color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
@media (max-width: 900px) {
	/* Celular: nada se sale por la derecha (iOS agrandaba textos y la página quedaba más ancha que la pantalla) */
	html, body { overflow-x: clip; }
	body { margin: 0; }
	.brand .bt { display: grid; line-height: 1.05; word-spacing: 0; }
	.navr { flex: none; }
	.nav .wrap { gap: 16px; }
	.brand { font-size: clamp(.7rem, 3.4vw, .95rem); gap: clamp(6px, 2vw, 9px); letter-spacing: .05em; min-width: 0; }
	.brand img { width: clamp(34px, 11vw, 44px); height: clamp(34px, 11vw, 44px); }
	.navr { gap: clamp(6px, 2vw, 10px); }
	.navr .btn.sm, .nav .btn.sm.acct:not(:has(.ini)) { font-size: clamp(.78rem, 3.6vw, .95rem); padding: 8px clamp(9px, 3vw, 13px); }
	.parade { --tail: 220px; }
	/* La horda pasa por detrás del contenido, así no se queda atrapada arriba y abajo */
	.live > .deco { z-index: 0; }
	.qcar .mock-q { align-content: center; }
	.btn { text-align: center; }
	.plan .btn { font-size: 1.2rem; padding-block: 18px; }
	.incl li { text-align: center; justify-content: center; line-height: 1.3; padding: 9px 16px; }
	footer { padding-block: 28px calc(20px + env(safe-area-inset-bottom, 0px)); }
}
/* "Tu plan": ventana propia de la suscripción, clara y sobria (variante A). En celular ocupa la pantalla; en compu, dos columnas. */
.tp { --ink: #1d1630; --soft: #5f5475; --faint: #6b5f80; --edge: #e7e1f0; --tint: #f4f1f8; --rose: #b04d74; border: 0; padding: 0; margin: auto; color: var(--ink); background: #fff; font-family: var(--body); width: 100vw; max-width: none; height: 100dvh; max-height: none; overflow: hidden; }
.tp::backdrop { background: rgba(10,6,20,.74); backdrop-filter: blur(4px); }
.tp .v { box-sizing: border-box; height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; padding: 16px 20px 28px; }
.tp .v[hidden] { display: none; }
.tp .bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.tp .ib { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--tint); color: #4a3f60; font: 400 22px/1 var(--body); cursor: pointer; }
.tp .ib.x { margin-left: auto; }
.tp .ib svg { width: 20px; height: 20px; }
.tp .step { font-size: 14px; color: var(--soft); }
.tp .ib + .step { margin-left: 14px; }
.tp .hd { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tp .hd.l { align-items: stretch; text-align: left; }
.tp .hd.l img { display: none; }
.tp .hd img { image-rendering: pixelated; height: 100px; width: auto; }
.tp .hd img.chest { height: 85px; }
.tp .hd img.heart { height: 60px; }
.tp h3 { margin: 0; font: 700 27px/1.2 var(--display); color: var(--ink); text-wrap: balance; }
.tp .hd p, .tp .note { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.5; }
.tp .note { font-size: 14px; line-height: 1.45; }
.tp .note.box { background: var(--tint); border-radius: 14px; padding: 14px 16px; color: #4a3f60; }
.tp .bd { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tp .acts { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 8px; }
.tp .pc { border: 1px solid var(--edge); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.tp .pc .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp .pc .top b { display: block; font-size: 20px; font-weight: 600; }
.tp .pc .top span { color: var(--soft); font-size: 15px; }
.tp .badge { flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: #dcf5e8; color: #17633d; }
.tp .badge.warn { background: #fff1d6; color: #7a4b00; }
.tp .badge.off { background: var(--tint); color: #4a3f60; }
.tp .sep { height: 1px; background: #eee9f5; }
.tp .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.tp .row > span:first-child { color: var(--soft); }
.tp .row > span:last-child { font-weight: 500; text-align: right; display: flex; gap: 10px; align-items: center; }
.tp .lk { font: 500 14px var(--body); color: var(--rose); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tp .lk:hover { color: #8a3a5b; }
.tp .list { display: flex; flex-direction: column; border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; }
.tp .list > * + * { border-top: 1px solid #eee9f5; }
.tp .go { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 18px; color: var(--ink); background: #fff; border: 0; font: 500 16px var(--body); cursor: pointer; text-align: left; width: 100%; }
.tp .go:hover { background: #faf8fc; }
.tp .go svg { width: 18px; height: 18px; flex-shrink: 0; }
.tp .inv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; min-height: 56px; }
.tp .inv b { display: block; font-weight: 600; }
.tp .inv small { color: var(--soft); font-size: 14px; }
.tp .opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--edge); border-radius: 14px; padding: 0 16px; min-height: 54px; font-size: 16px; font-weight: 500; cursor: pointer; }
.tp .opt.big { padding: 14px 16px; gap: 14px; }
.tp .opt input { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 22px; height: 22px; margin: 0; padding: 0; flex-shrink: 0; border-radius: 50%; border: 2px solid #cfc6de; background: #fff; display: grid; place-items: center; cursor: pointer; }
.tp .opt input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); transform: scale(0); transition: transform .12s ease; }
.tp .opt input:checked { border-color: var(--rose); }
.tp .opt input:checked::before { transform: scale(1); }
.tp .opt input:disabled { background: var(--tint); border-color: #e2dcec; cursor: default; }
.tp .opt:has(input:checked) { border: 2px solid var(--pink); background: #fff5f8; padding-inline: 15px; }
.tp .opt.big:has(input:checked) { padding: 13px 15px; }
.tp .opt:has(input:disabled) { cursor: default; }
.tp .opt .t { display: flex; flex-direction: column; flex-grow: 1; }
.tp .opt .t b { font-weight: 600; font-size: 17px; }
.tp .opt .t small { color: var(--soft); font-size: 14px; }
.tp .opt .save { color: #17633d; font-size: 13px; font-weight: 600; }
.tp .opt .mine { background: var(--tint); color: #4a3f60; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; }
.tp .b1, .tp .b2, .tp .b3 { min-height: 56px; border: 0; border-radius: 14px; font: 600 18px var(--body); cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 16px; }
.tp .b1 { background: var(--pink); color: #2a1020; box-shadow: 0 5px 0 var(--pink-deep); }
.tp .b1.play { font: 700 22px var(--display); letter-spacing: .05em; }
.tp .b1:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-deep); }
.tp .b2 { background: var(--ink); color: #fff; }
.tp .b3 { min-height: 52px; background: #fff; color: var(--ink); border: 1px solid #d9d2e6; font-size: 16px; font-weight: 500; }
.tp .b1:disabled, .tp .b2:disabled, .tp .b3:disabled { opacity: .45; cursor: default; transform: none; }
.tp .soft { align-self: center; min-height: 44px; display: flex; align-items: center; font: 500 15px var(--body); color: #4a3f60; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tp .soft.dim { font-size: 14px; color: var(--faint); }
.tp .deal { display: flex; align-items: baseline; justify-content: center; gap: 12px; background: #fff8e0; border-radius: 16px; padding: 18px; }
.tp .deal b { font: 700 36px var(--display); }
.tp .deal s { font-size: 18px; color: var(--faint); }
.tp .dates { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 8px; border: 1px solid var(--edge); border-radius: 16px; padding: 16px; text-align: center; }
.tp .dates small { display: block; font-size: 13px; color: var(--faint); }
.tp .dates b { font-size: 17px; font-weight: 600; }
.tp .dates svg { width: 28px; height: 28px; }
.tp .checks { display: flex; flex-direction: column; gap: 12px; background: var(--tint); border-radius: 16px; padding: 18px; font-size: 15px; line-height: 1.45; margin: 0; list-style: none; }
.tp .checks li { display: flex; gap: 10px; }
.tp .checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.tp textarea { box-sizing: border-box; width: 100%; height: 150px; background: #fff; border: 1px solid #d9d2e6; border-radius: 14px; padding: 14px; font: 400 16px var(--body); color: var(--ink); resize: none; }
.tp textarea:focus { outline: 2px solid var(--pink); border-color: transparent; }
.tp label.f { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.tp .cardnow { display: flex; align-items: center; gap: 12px; border: 1px solid var(--edge); border-radius: 16px; padding: 14px 16px; }
.tp .cardnow small { display: block; font-size: 13px; color: var(--soft); }
.tp .cardnow b { font-weight: 600; }
.tp .frame { min-height: 360px; border-radius: 16px; }
.tp .frame.wait { display: grid; place-items: center; color: var(--soft); border: 1px dashed #cfc6de; }
.tp .dp { display: none; margin: 0; color: var(--soft); font-size: 16px; line-height: 1.5; }
.tp .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 1px dashed #d9d2e6; border-radius: 16px; padding: 22px 18px; }
.tp .empty b { font-size: 17px; font-weight: 600; }
.tp .empty span { color: var(--soft); font-size: 15px; }
.tp .acts:empty { display: none; }
.tp .err { margin: 0; color: #a3123a; font-size: 14px; }
.tp .load { margin: auto; color: var(--soft); }
.tp a:focus-visible, .tp button:focus-visible, .tp label:has(input:focus-visible) { outline: 3px solid var(--pink-deep); outline-offset: 2px; }
.tp[open] .v:not([hidden]) { animation: tp-in .25s ease-out; }
@keyframes tp-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .tp[open] .v:not([hidden]) { animation: none; } }
/* Compu: ventana centrada en dos columnas; a la izquierda el personaje y el título, a la derecha el contenido y los botones. */
@media (min-width: 760px) {
	.tp { width: min(820px, calc(100vw - 48px)); height: fit-content; max-height: calc(100dvh - 48px); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
	.tp .v { height: auto; max-height: calc(100dvh - 48px); display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 32px; row-gap: 16px; padding: 20px 28px 28px; }
	.tp .bar { grid-column: 1 / -1; }
	.tp .hd, .tp .hd.l { grid-column: 1; grid-row: 2 / 4; align-self: stretch; justify-content: center; align-items: center; text-align: center; background: #faf8fc; border-radius: 20px; padding: 28px 22px; }
	.tp .hd.l img { display: block; }
	.tp .hd img { height: 130px; }
	.tp .hd img.chest { height: 110px; }
	.tp .hd img.heart { height: 72px; }
	.tp .bd { grid-column: 2; grid-row: 2; align-self: start; }
	.tp .acts { grid-column: 2; grid-row: 3; margin-top: 0; padding-top: 4px; }
	.tp .acts .b1, .tp .acts .b2, .tp .acts .b3 { min-height: 52px; }
	/* Pantallas de "Listo": una sola columna, más angosta, para que no quede un lado vacío. */
	.tp:has(.v.solo) { width: min(460px, calc(100vw - 48px)); }
	.tp .v.solo { grid-template-columns: minmax(0, 1fr); }
	.tp .v.solo .hd { grid-row: 2; background: none; padding: 8px 0 0; }
	.tp .v.solo .bd { display: none; }
	.tp .v.solo .acts { grid-column: 1; grid-row: 3; }
	/* Ofertas: a la izquierda solo imagen y título; la explicación va a la derecha, junto al precio o las fechas. */
	.tp .hd p.hp, .tp .note.mp { display: none; }
	.tp .dp { display: block; }
	/* Sin botones abajo (facturas): el contenido usa toda la altura y el aviso vacío queda centrado. */
	.tp .v:has(.acts:empty) .bd { grid-row: 2 / 4; align-self: stretch; }
	.tp .empty { flex: 1; }
}

/* Panel del suscriptor: reemplaza la landing a quien tiene acceso (has_access). "Ver la web" (?web=1) muestra la landing con botones de suscriptor. */
#panel { display: none; }
html.pn-on body > :not(#panel):not(dialog):not(script) { display: none !important; }
html.pn-on #panel { display: block; }
/* Capa sobre el juego (/jugar/ abre /?capa=1 en un marco transparente): solo las ventanas; el oscurecido lo pone la página del juego. */
html.capa, html.capa body { background: transparent !important; }
html.capa body::before { display: none; }
html.capa body > :not(dialog):not(script) { display: none !important; }
html.capa dialog::backdrop { background: transparent; backdrop-filter: none; }
html.capa dialog[open] { animation: capa-in .2s ease-out; }
@keyframes capa-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.capa dialog[open] { animation: none; } }
#panel { --gap: 20px; min-height: 100vh; }
#panel .pw { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
#panel .ptop { border-bottom: 1px solid var(--line); }
#panel .ptop .pw { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
#panel .pbrand { display: flex; align-items: center; gap: 12px; font: 700 1.15rem var(--display); letter-spacing: .04em; text-decoration: none; color: var(--chalk); }
#panel .pbrand b { color: var(--gold); } #panel .pbrand img { width: 44px; height: 44px; }
#panel .ptabs { display: flex; gap: 6px; margin: 0 auto; }
#panel .ptabs a, #panel .pmob a { color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 8px; }
#panel .ptabs a { padding: 8px 14px; border-radius: 10px; }
#panel .ptabs a[aria-current="page"] { color: var(--chalk); background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
#panel .ico { width: 18px; height: 18px; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
#panel .i-home { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11h3v9h5v-6h4v6h5v-9h3z'/%3E%3C/svg%3E"); }
#panel .i-exp { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6zm3 10h8v2H9zm0 4h8v2H9z'/%3E%3C/svg%3E"); }
#panel .i-web { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
#panel .pright { display: flex; align-items: center; gap: 18px; }
#panel .pright .pweb { color: var(--muted); text-decoration: none; font-size: .95rem; }
#panel .pini { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 0; cursor: pointer; box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 #110b20; font: 700 1.2rem var(--display); color: var(--gold); }
#panel main { padding-block: 32px 64px; display: grid; gap: var(--gap); }
#panel .phi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
#panel h1, #panel .ph { font-size: 2.3rem; line-height: 1.1; } #panel h1 b, #panel .ph b { color: var(--gold); }
#panel .chip { font: 700 .8rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; color: #7ee2a8; white-space: nowrap; }
#panel .chip.warn { color: #ffb067; } #panel .chip.mute { color: var(--muted); }
#panel .tile { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#panel .k { font: 700 .85rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
#panel .big { font: 700 1.6rem var(--display); line-height: 1.15; }
#panel .muted { color: var(--muted); }
#panel p { margin: 0; }
#panel .meter { height: 12px; border-radius: 6px; background: var(--night); overflow: hidden; flex: none; }
#panel .meter i { display: block; height: 100%; background: var(--cyan); }
#panel .nums { display: flex; gap: 26px; flex-wrap: wrap; }
#panel .nums b { display: block; font: 700 1.6rem var(--display); line-height: 1.1; }
#panel .nums span { color: var(--muted); font-size: .92rem; }
#panel .boss { width: 56px; height: 56px; background-repeat: no-repeat; background-size: 168px 56px; animation: f3w168 .75s steps(3) infinite; image-rendering: pixelated; flex: none; }
@keyframes f3w168 { to { background-position: -168px 0; } }
#panel .boss.lg { transform: scale(2.4); }
#panel .boss.off { filter: brightness(0) opacity(.45); animation: none; }
#panel .b-estatus { background-image: url(/img/boss_estatus.png); } #panel .b-acv { background-image: url(/img/boss_acv.png); } #panel .b-glioblastoma { background-image: url(/img/boss_glioblastoma.png); } #panel .b-meningitis { background-image: url(/img/boss_meningitis.png); }
#panel .b-fa { background-image: url(/img/boss_fa.png); } #panel .b-eap { background-image: url(/img/boss_eap.png); } #panel .b-taponamiento { background-image: url(/img/boss_taponamiento.png); } #panel .b-fv { background-image: url(/img/boss_fv.png); } #panel .b-infarto { background-image: url(/img/boss_infarto.png); }
#panel .slot.soon { box-shadow: inset 0 0 0 2px var(--line); background: repeating-linear-gradient(135deg, var(--locker) 0 8px, rgba(255,255,255,.03) 8px 16px); color: var(--muted); font: 700 1.3rem var(--display); }
#panel .wp { align-content: start; } #panel .wp .chip { font-size: .62rem; align-self: start; } #panel .wp.cur { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); } #panel .wp .now { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#panel .pgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
#panel .pside { display: flex; flex-direction: column; gap: var(--gap); }
#panel .pside .tile { flex: 1 1 auto; } #panel .pside .tile > :last-child { margin-top: auto; }
#panel .guard { justify-content: space-between; gap: 18px; }
#panel .stage { display: flex; align-items: center; gap: 28px; background: var(--locker); border-radius: 16px; padding: 26px 24px; }
#panel .stage .pit { width: 140px; height: 140px; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 50% 70%, rgba(240,122,160,.25), transparent 65%); }
#panel .stage p { margin-top: 4px; }
#panel .beaten { display: flex; gap: 10px; flex-wrap: wrap; }
#panel .slot { width: 64px; height: 64px; border-radius: 12px; background: var(--locker); display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); }
#panel .slot.ok { box-shadow: inset 0 0 0 2px #7ee2a8; } #panel .slot .boss { transform: scale(.9); }
#panel .rev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#panel .rev div { background: var(--locker); border-radius: 12px; padding: 10px 12px; } #panel .rev b { display: block; font: 700 1.5rem var(--display); } #panel .rev span { font-size: .85rem; color: var(--muted); }
#panel .rev .now b { color: var(--gold); }
#panel .row2 { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
#panel .lnk2 { color: var(--cyan); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
#panel .btn.line { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 2px var(--line); font-size: 1rem; padding: 10px 16px; }
#panel .btn.sm { font-size: 1rem; padding: 10px 16px; box-shadow: 0 4px 0 var(--pink-deep); }
#panel .wprog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#panel .wp { background: var(--locker); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; justify-items: center; text-align: center; }
#panel .wp img { height: 62px; width: 100%; object-fit: contain; image-rendering: pixelated; } #panel .wp.off img { filter: grayscale(1) brightness(.45); }
#panel .wp b { font-weight: 600; font-size: .95rem; } #panel .wp small { color: var(--muted); font-size: .8rem; } #panel .wp .meter { width: 100%; height: 8px; } #panel .wp.on { border-color: var(--pink); }
#panel .xgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
#panel .xside { display: grid; gap: var(--gap); }
#panel table { width: 100%; border-collapse: collapse; font-size: .95rem; }
#panel th, #panel td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#panel th { font: 500 .8rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#panel tr:last-child td { border-bottom: 0; }
#panel td.n, #panel th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#panel .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
#panel .cal div { background: var(--locker); border-radius: 10px; padding: 8px 4px; text-align: center; } #panel .cal b { display: block; font: 700 1.15rem var(--display); } #panel .cal span { font-size: .75rem; color: var(--muted); }
#panel .cal .today { box-shadow: inset 0 0 0 2px var(--gold); } #panel .cal .today b { color: var(--gold); }
#panel .miss { display: grid; gap: 10px; }
#panel .miss article { background: var(--locker); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
#panel .miss .t { font-size: .8rem; color: var(--cyan); }
#panel .miss p { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#panel .heat { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; }
#panel .heat i { aspect-ratio: 1; border-radius: 3px; background: var(--locker); }
#panel .heat .b1 { background: #7a3550; } #panel .heat .b2 { background: #b04d74; } #panel .heat .b3 { background: #4b8fa0; } #panel .heat .b4 { background: var(--cyan); } #panel .heat .b5 { background: #7ee2a8; }
#panel .leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); } #panel .leg span { display: flex; align-items: center; gap: 6px; } #panel .leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
#panel .pmob { display: none; }
#panel [hidden] { display: none !important; }
@media (max-width: 900px) {
	#panel .pw { padding-inline: 16px; }
	#panel .ptabs, #panel .pright .pweb { display: none; }
	#panel .ptop .pw { justify-content: space-between; padding-block: 12px; }
	#panel .pbrand { font-size: .95rem; } #panel .pbrand img { width: 38px; height: 38px; } #panel .pini { width: 40px; height: 40px; }
	#panel h1, #panel .ph { font-size: 1.75rem; } #panel .big { font-size: 1.35rem; } #panel .tile { padding: 20px; border-radius: 18px; }
	#panel .guard .btn, #panel .miss + .btn { width: 100%; }
	#panel main { padding-block: 22px calc(110px + env(safe-area-inset-bottom, 0px)); --gap: 16px; }
	#panel .pgrid, #panel .xgrid { grid-template-columns: 1fr; }
	#panel .stage { gap: 14px; padding: 18px 14px; } #panel .stage .pit { width: 96px; height: 96px; } #panel .boss.lg { transform: scale(1.6); }
	#panel .slot { width: 54px; height: 54px; }
	#panel .nums { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 18px; } #panel .nums b { font-size: 1.25rem; } #panel .nums span { font-size: .8rem; line-height: 1.25; display: block; }
	#panel .wprog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#panel .hm { display: none; } #panel .cal { gap: 4px; } #panel .cal b { font-size: 1rem; }
	#panel .pmob { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--locker); border-top: 1px solid var(--line); padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); z-index: 9; }
	#panel .pmob a { flex-direction: column; justify-content: center; gap: 3px; font-size: .78rem; padding: 6px 0; border-radius: 10px; }
	#panel .pmob a[aria-current="page"] { color: var(--gold); background: var(--card); }
	#panel .pmob .ico { width: 22px; height: 22px; }
}
/* Landing vista por un suscriptor ("Ver la web"): su plan en lugar de las tarjetas de prueba gratis. */
.myplan { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; justify-items: center; text-align: center; padding: 30px 28px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.myplan h3 { font-size: 1.7rem; } .myplan .meta { color: var(--muted); margin: 0; }
.myplan .acts { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: center; }
/* Pantallas intermedias (901-1100 px, como un iPad): la barra no se parte en dos líneas */
@media (min-width: 901px) and (max-width: 1100px) {
	.nav .wrap { gap: 18px; }
	.brand { font-size: 1rem; white-space: nowrap; flex: none; }
	.links { gap: clamp(14px, 2.2vw, 30px); font-size: 1rem; }
	.links a, .navr .btn { white-space: nowrap; }
	.navr { flex: none; gap: 10px; }
	.navr .long { display: none; }
	.navr .short { display: inline; }
}
/* Pantalla vertical ancha (tablet parada): portada en una columna, sin franjas vacías arriba y abajo */
@media (min-width: 901px) and (orientation: portrait) {
	.hero { padding-block: 56px 72px; min-height: 0; }
	.hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 52px; }
	.promise, .hero .lead { margin-inline: auto; }
	.hero .lead { max-width: 58ch; }
	.hero .actions { justify-content: center; }
	.soon { justify-items: center; }
	.device { width: min(340px, 36vw); }
}
