/* =============================================================
   MIOLED · Web oficial
   Estética: la ciudad de noche de MIOLED Academy. Neón, cristal,
   degradado azul → violeta → rosa (Moradito) o cian → aurora
   → esmeralda (Hielo). Nunito + Montserrat.
   ============================================================= */

:root {
    --night: #0a0620;
    --night-2: #120a30;
    --night-3: #1b0d3e;
    --ink: #f7f2ff;
    --mist: #cfc3ee;
    --dim: rgba(214, 202, 248, .66);
    --pink: #ff2d95;
    --violet: #7c3aed;
    --purple: #a855f7;
    --cyan: #22d3ee;
    --blue: #2f6bff;
    --gold: #fbbf24;
    --lime: #cfd241;
    --green: #4ade80;
    --red: #fb7185;
    --glass: rgba(255, 255, 255, .055);
    --glass-2: rgba(255, 255, 255, .085);
    --line: rgba(179, 136, 255, .24);
    --neon: linear-gradient(100deg, #ff2d95, #7c3aed 55%, #22d3ee);
    --neon-shadow: #3b0f73;
    --neon-glow: rgba(255, 45, 149, .75);
    --academy: linear-gradient(135deg, #142d9c 0%, #3a26a9 25%, #7f20b6 50%, #d01e8f 75%, #ef1a6c 100%);
    --r-lg: 30px;
    --r-md: 22px;
    --ease-out: cubic-bezier(.2, .9, .25, 1);
    --ease-bounce: cubic-bezier(.3, 1.45, .45, 1);
    --nav-h: 76px;
}

/* Ambiente Hielo (de epico.js en MIOLED Academy) */
html[data-theme="hielo"] {
    --night: #040d1e;
    --night-2: #071830;
    --night-3: #0b2444;
    --mist: #c4edf8;
    --dim: rgba(186, 234, 248, .68);
    --pink: #34d399;
    --violet: #0284c7;
    --purple: #38bdf8;
    --line: rgba(56, 189, 248, .26);
    --neon: linear-gradient(100deg, #22d3ee, #0284c7 52%, #34d399);
    --neon-shadow: #064e6e;
    --neon-glow: rgba(34, 211, 238, .75);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: var(--night);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; overflow-x: clip; max-width: 100%;
    transition: background-color .5s ease;
}
body.is-loading { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(255, 45, 149, .45); color: #fff; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #07041a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#ff2d95, #7c3aed, #22d3ee); border-radius: 10px; border: 2px solid #07041a; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; position: relative; }
.center { text-align: center; }
.c-cyan { color: var(--cyan); } .c-pink { color: var(--pink); } .c-gold { color: var(--gold); }
.c-green { color: var(--green); } .c-red { color: var(--red); }

/* ============ PRELOADER ============ */
#preloader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 22px;
    background: radial-gradient(circle at 50% 45%, #170c3a 0%, #05030f 70%);
    transition: opacity .7s ease, visibility .7s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-ring { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.pre-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.pre-track { fill: none; stroke: rgba(120, 170, 255, .12); stroke-width: 10; }
.pre-arc { fill: none; stroke: url(#g-ring); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 503; stroke-dashoffset: 503; animation: preArc 1.3s var(--ease-out) forwards; }
@keyframes preArc { to { stroke-dashoffset: 0; } }
.pre-word { font: 600 22px/1 'Montserrat', sans-serif; letter-spacing: .22em; padding-left: .22em; color: #e9fbff;
    text-shadow: 0 0 10px rgba(34, 211, 238, .8), 0 0 24px rgba(47, 107, 255, .6); animation: flickOn 1.2s steps(1, end) .4s both; }
.pre-txt { font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.dots i { font-style: normal; animation: dot 1.2s infinite; opacity: 0; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 30%, 70% { opacity: 1; } }

/* ============ MUNDO ============ */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
    position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: -1;
    background: radial-gradient(closest-side, rgba(168, 85, 247, .16), rgba(34, 211, 238, .06) 55%, transparent);
    transform: translate3d(-999px, -999px, 0); transition: opacity .4s; will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ============ BOTONES (el canto 3D de los botones del juego) ============ */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 58px; padding: 0 28px; border-radius: 18px; font: 900 17px/1 'Nunito', sans-serif; letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .15s ease, background-color .2s, filter .2s; white-space: nowrap; will-change: transform;
}
.btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico-fill { fill: currentColor; stroke: none; }
.btn-neon {
    background: var(--neon); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .22);
    box-shadow: 0 5px 0 var(--neon-shadow), 0 14px 30px -10px var(--neon-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-neon:hover { filter: brightness(1.08) saturate(1.1); box-shadow: 0 5px 0 var(--neon-shadow), 0 18px 40px -8px var(--neon-glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-neon:active { transform: translateY(4px) !important; box-shadow: 0 1px 0 var(--neon-shadow), 0 6px 16px -8px var(--neon-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost {
    color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--line), 0 5px 0 rgba(20, 8, 50, .8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--cyan), 0 5px 0 rgba(20, 8, 50, .8), 0 0 26px -6px rgba(34, 211, 238, .6); }
.btn-ghost:active { transform: translateY(4px) !important; box-shadow: inset 0 0 0 1.5px var(--cyan), 0 1px 0 rgba(20, 8, 50, .8); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-duo {
    height: 54px; padding: 0 30px; border-radius: 16px; background: #58cc02; color: #fff; font-size: 17px; text-transform: uppercase; letter-spacing: .04em;
    box-shadow: 0 5px 0 #46a302;
}
.btn-duo:hover { filter: brightness(1.06); }
.btn-duo:active { transform: translateY(4px); box-shadow: 0 1px 0 #46a302; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.mini-btn {
    padding: 6px 12px; border-radius: 11px; font-weight: 900; font-size: 12.5px; color: #fff;
    background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 rgba(15, 6, 38, .85);
    transition: transform .12s, background-color .2s, box-shadow .2s; white-space: nowrap;
}
.mini-btn:hover { background: rgba(255, 255, 255, .15); box-shadow: inset 0 0 0 1.5px var(--cyan), 0 3px 0 rgba(15, 6, 38, .85); }
.mini-btn:active { transform: translateY(2px); }
.mini-btn.pink { background: rgba(255, 45, 149, .2); box-shadow: inset 0 0 0 1.5px rgba(255, 45, 149, .5), 0 3px 0 rgba(60, 10, 40, .8); }
.mini-btn.cyan { background: rgba(34, 211, 238, .18); box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, .5), 0 3px 0 rgba(8, 50, 68, .8); }

/* ============ NAV ============ */
.nav {
    position: fixed; top: 14px; left: 50%; z-index: 100; transform: translateX(-50%);
    width: min(1260px, calc(100% - 24px)); height: 64px; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 10px;
    border-radius: 22px; transition: background-color .35s, box-shadow .35s, top .35s, backdrop-filter .35s;
}
.nav.scrolled {
    background: rgba(13, 6, 36, .76); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -20px rgba(0, 0, 0, .85);
}
.nav.scrolled::after {
    content: ''; position: absolute; left: 30px; right: 30px; bottom: 0; height: 1.5px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--pink) 20%, var(--purple) 50%, var(--cyan) 80%, transparent); opacity: .75;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-logo { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(47, 140, 255, .65)); transition: transform .5s var(--ease-bounce); }
.nav-brand:hover .nav-logo { transform: rotate(-12deg) scale(1.08); }
.nav-word { font: 700 16px/1 'Montserrat', sans-serif; letter-spacing: .24em; color: #fff; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
    position: relative; padding: 9px 12px; border-radius: 12px; font-weight: 800; font-size: 14.5px; color: var(--mist); transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
    content: ''; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px;
    background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.nav-tools { display: flex; align-items: center; gap: 6px; }
.nav-pill {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 999px;
    font-weight: 900; font-size: 12.5px; color: #fff; background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .2s, box-shadow .2s, background-color .2s;
}
.nav-pill:hover { background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.theme-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: linear-gradient(135deg, #ff2d95, #7c3aed); box-shadow: 0 0 8px #ff2d95;
}
html[data-theme="hielo"] .theme-dot {
    background: linear-gradient(135deg, #22d3ee, #34d399); box-shadow: 0 0 8px #22d3ee;
}
.nav-ico-btn {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background-color .2s;
}
.nav-ico-btn:hover { background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.eq i { width: 3px; height: 5px; border-radius: 2px; background: var(--dim); transition: height .2s, background-color .2s; }
.nav-ico-btn.on .eq i { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: eqBar .9s ease-in-out infinite alternate; }
.nav-ico-btn.on .eq i:nth-child(2) { animation-delay: .2s; height: 13px; }
.nav-ico-btn.on .eq i:nth-child(3) { animation-delay: .4s; height: 9px; }
@keyframes eqBar { from { height: 4px; } to { height: 14px; } }

.nav-cta-m { display: none; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 13px; position: relative; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--line); }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-burger span:nth-child(1) { top: 13px; } .nav-burger span:nth-child(2) { top: 20px; } .nav-burger span:nth-child(3) { top: 27px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ ASCENSOR ============ */
.lift {
    position: fixed; left: 22px; top: 50%; z-index: 50; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px;
    opacity: 0; pointer-events: none; transition: opacity .5s;
}
.lift.show { opacity: 1; pointer-events: auto; }
.lift-screen {
    width: 86px; padding: 10px 6px 9px; border-radius: 16px; text-align: center; display: grid; gap: 2px;
    background: rgba(7, 3, 22, .78); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .25), 0 10px 30px -10px rgba(0, 0, 0, .8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-family: 'Montserrat', monospace;
}
.lift-label { font-size: 9px; font-weight: 700; letter-spacing: .25em; color: rgba(251, 191, 36, .6); }
.lift-floor { font-size: 30px; font-weight: 700; line-height: 1; color: var(--gold); text-shadow: 0 0 8px rgba(251, 191, 36, .9), 0 0 20px rgba(251, 191, 36, .5); font-variant-numeric: tabular-nums; }
.lift-name { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: #ffe7a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lift-alt { font-size: 10px; color: rgba(214, 202, 248, .55); font-variant-numeric: tabular-nums; }
.lift-alt b { color: var(--cyan); font-weight: 700; }
.lift-track { list-style: none; display: flex; flex-direction: column-reverse; gap: 9px; padding: 8px 0; position: relative; }
.lift-track::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(179, 136, 255, .18); border-radius: 2px; }
.lift-track li { position: relative; }
.lift-track button {
    position: relative; display: block; width: 14px; height: 14px; border-radius: 50%; background: #1d1042; box-shadow: inset 0 0 0 2px rgba(179, 136, 255, .35);
    transition: transform .3s var(--ease-bounce), background-color .3s, box-shadow .3s;
}
.lift-track button:hover { transform: scale(1.3); }
.lift-track button.passed { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.lift-track button.current { background: var(--gold); box-shadow: 0 0 0 4px rgba(251, 191, 36, .2), 0 0 14px rgba(251, 191, 36, .9); transform: scale(1.25); }
.lift-track button span {
    position: absolute; left: 24px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap; padding: 5px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 800; background: rgba(7, 3, 22, .9); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.lift-track button:hover span { opacity: 1; transform: translate(0, -50%); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============ NEÓN: encendido tipo tubo ============ */
@keyframes flickOn { 0% { opacity: 0; } 12% { opacity: 1; } 18% { opacity: .08; } 30% { opacity: .85; } 36% { opacity: .18; } 52%, 100% { opacity: 1; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 3% { opacity: .2; } 6% { opacity: 1; } 9% { opacity: .35; } 12% { opacity: 1; } }
.tube { opacity: 0; }
.lit .tube { animation: flickOn .8s steps(1, end) var(--d, 0s) both; }
.lit .flicky { animation: flickOn .8s steps(1, end) var(--d, 0s) both, flicker 7s steps(1, end) 4s infinite; }

/* ============ CHIPS / TÍTULOS ============ */
.chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
    font-weight: 800; font-size: 14px; color: var(--mist); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.grad-text {
    background: linear-gradient(100deg, #ff5fb0 0%, #c084fc 40%, #67e8f9 80%); -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% 100%; animation: gradShift 8s ease-in-out infinite;
}
html[data-theme="hielo"] .grad-text {
    background: linear-gradient(100deg, #67e8f9 0%, #34d399 45%, #fde047 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% 100%;
}
@keyframes gradShift { 50% { background-position: 100% 0; } }

.kicker {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
    margin-bottom: 18px;
}
.kicker b { color: var(--gold); text-shadow: 0 0 10px rgba(251, 191, 36, .6); font-weight: 900; }
.kicker::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.center .kicker::after { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-title { font-weight: 900; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.sec-title.sm { font-size: clamp(32px, 4.2vw, 50px); }
.sec-lead { font-size: clamp(17px, 1.6vw, 19.5px); font-weight: 700; color: var(--mist); max-width: 640px; text-wrap: pretty; }
.center .sec-lead, .sec-head.center .sec-lead { margin-inline: auto; }

.neon-word { position: relative; white-space: nowrap; }
.neon-word.pink { color: #ffd9ee; text-shadow: 0 0 .12em #ff40a6, 0 0 .4em rgba(255, 45, 149, .85), 0 0 .9em rgba(255, 45, 149, .5); }
.neon-word.cyan { color: #dcfcff; text-shadow: 0 0 .12em #22d3ee, 0 0 .4em rgba(34, 211, 238, .85), 0 0 .9em rgba(34, 211, 238, .45); }
.neon-word.gold { color: #fff4d2; text-shadow: 0 0 .12em #fbbf24, 0 0 .4em rgba(251, 191, 36, .85), 0 0 .9em rgba(251, 191, 36, .45); }
.reveal.in .neon-word, .in .neon-word { animation: flickOn 1s steps(1, end) .35s both; }

.section { position: relative; padding: clamp(90px, 13vw, 160px) 0; }

/* ============ HERO ============ */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 30px) 0 110px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero-copy .chip { margin-bottom: 26px; }
.hero-title { font-weight: 900; font-size: clamp(44px, 6.6vw, 88px); line-height: .98; letter-spacing: -.035em; margin-bottom: 26px; }
.hero-title .line { display: block; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; color: var(--mist); max-width: 560px; margin-bottom: 34px; }
.hero-sub b { color: #fff; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta div { display: grid; }
.hero-meta b { font-size: 34px; font-weight: 900; line-height: 1; background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hero-meta span { font-size: 13.5px; font-weight: 800; color: var(--dim); margin-top: 6px; }

.reveal:nth-child(2) { --rd: .08s; } .reveal:nth-child(3) { --rd: .16s; } .reveal:nth-child(4) { --rd: .24s; } .reveal:nth-child(5) { --rd: .32s; }

.hero-sign { position: relative; width: min(100%, 600px); aspect-ratio: 1; margin-inline: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.sign-halo {
    position: absolute; inset: 8%; border-radius: 50%; z-index: -1; opacity: 0; transition: opacity 1.4s ease .6s;
    background: radial-gradient(closest-side, rgba(47, 140, 255, .34), rgba(124, 58, 237, .15) 60%, transparent);
}
.hero-sign.lit .sign-halo { opacity: 1; }
.sign-combo {
    position: absolute; right: 10%; top: 10%; z-index: 3; padding: 6px 14px; border-radius: 999px;
    font-weight: 900; font-size: 14px; color: #fff; background: var(--neon);
    box-shadow: 0 4px 0 var(--neon-shadow), 0 0 20px var(--neon-glow);
    animation: pop .35s var(--ease-bounce);
}
.sign-combo[hidden] { display: none; }
.sign-svg { width: 100%; height: 100%; overflow: visible; }
.sign-svg .off-tubes use { fill: none; stroke: rgba(150, 200, 255, .13); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.sign-svg .t-glow { fill: none; stroke: #45b6ff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.sign-svg .t-core { fill: none; stroke: #effcff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sign-sub { font: 700 17px/1 'Montserrat', sans-serif; letter-spacing: .55em; fill: #dcfcff; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .9)); }
.ring-spark { stroke-dasharray: 6 94; stroke-dashoffset: 0; opacity: 0; transform-origin: 300px 300px; }
.hero-sign.lit .ring-spark { opacity: .95; animation: spark 6s linear 1.4s infinite; transition: opacity 1s 1.4s; }
@keyframes spark { to { stroke-dashoffset: -100; } }
.hero-sign.boom .sign-svg { animation: boom .7s var(--ease-bounce); }
@keyframes boom { 30% { transform: scale(.94) rotate(-2deg); } 60% { transform: scale(1.04) rotate(1deg); } }
.sign-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(214, 202, 248, .55); opacity: .75; transition: opacity .4s, color .3s; white-space: nowrap; }
.hero-sign:hover .sign-hint { opacity: 1; color: #fff; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-align: center; }
.mouse { width: 26px; height: 40px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(214, 202, 248, .5); position: relative; }
.mouse i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============ TICKER ============ */
.ticker {
    position: relative; overflow: hidden; padding: 20px 0; transform: rotate(-2deg); margin: -10px -20px 0;
    background: linear-gradient(90deg, rgba(255, 45, 149, .14), rgba(124, 58, 237, .18), rgba(34, 211, 238, .14));
    border-block: 1.5px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ticker-track { display: flex; width: max-content; gap: 30px; align-items: center; animation: tick 38s linear infinite; }
.ticker span { font-weight: 900; font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; letter-spacing: .02em; color: #ffd9ee; text-shadow: 0 0 14px rgba(255, 45, 149, .7); white-space: nowrap; }
.ticker span.c-cyan { color: #dcfcff; text-shadow: 0 0 14px rgba(34, 211, 238, .7); }
.ticker span.c-gold { color: #fff4d2; text-shadow: 0 0 14px rgba(251, 191, 36, .7); }
.ticker i { font-style: normal; color: rgba(255, 255, 255, .5); font-size: 20px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ TARJETAS DE CRISTAL ============ */
.card {
    position: relative; border-radius: var(--r-lg); padding: 32px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
    box-shadow: inset 0 0 0 1.5px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}
.card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .1), transparent 45%);
}
.card:hover::before { opacity: 1; }
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .4s; will-change: transform; }

/* ============ ESTUDIO ============ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value h3 { font-size: 23px; font-weight: 900; margin: 22px 0 10px; }
.value p { color: var(--mist); font-weight: 700; font-size: 16px; }
.value:hover { box-shadow: inset 0 0 0 1.5px rgba(179, 136, 255, .45), 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 50px -20px rgba(168, 85, 247, .7); }
.value-ico, .feat-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; position: relative; flex: 0 0 auto; }
.value-ico svg, .feat-ico svg { width: 34px; height: 34px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-pink { background: rgba(255, 45, 149, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 45, 149, .4), 0 0 30px -8px rgba(255, 45, 149, .7); }
.ico-pink svg { stroke: #ff7ac0; filter: drop-shadow(0 0 4px #ff2d95); }
.ico-gold { background: rgba(251, 191, 36, .12); box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, .4), 0 0 30px -8px rgba(251, 191, 36, .7); }
.ico-gold svg { stroke: #fcd34d; filter: drop-shadow(0 0 4px #fbbf24); }
.ico-cyan { background: rgba(34, 211, 238, .12); box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, .4), 0 0 30px -8px rgba(34, 211, 238, .7); }
.ico-cyan svg { stroke: #67e8f9; filter: drop-shadow(0 0 4px #22d3ee); }

.manifesto { margin-top: clamp(70px, 10vw, 120px); text-align: center; }
.manifesto p { font-size: clamp(28px, 4.4vw, 56px); font-weight: 900; line-height: 1.18; letter-spacing: -.02em; max-width: 1000px; margin: 0 auto; color: rgba(255, 255, 255, .24); text-wrap: balance; }
.manifesto .m-word { color: #fff; cursor: pointer; display: inline-block; transition: transform .25s var(--ease-bounce), color .4s, text-shadow .4s; }
.manifesto .m-word:hover { transform: scale(1.08) translateY(-2px); }
.manifesto .m-word.c-cyan { color: #dcfcff; text-shadow: 0 0 18px rgba(34, 211, 238, .85); }
.manifesto .m-word.c-pink { color: #ffd9ee; text-shadow: 0 0 18px rgba(255, 45, 149, .85); }
.manifesto .m-word.c-gold { color: #fff4d2; text-shadow: 0 0 18px rgba(251, 191, 36, .85); }
.manifesto-hint { display: inline-block; margin-top: 16px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ============ APPS ============ */
.apps-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; align-items: stretch; }
.app-card { position: relative; border-radius: var(--r-lg); padding: 30px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.app-card h3 { font-size: 26px; font-weight: 900; line-height: 1.1; }
.app-card p { color: var(--mist); font-weight: 700; font-size: 16px; }
.app-card p b { color: #fff; }
.app-main {
    background: var(--academy); min-height: 440px; box-shadow: 0 30px 70px -25px rgba(239, 26, 108, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .18);
}
.app-main p { color: rgba(255, 255, 255, .88); }
.app-main::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: radial-gradient(500px circle at var(--mx, 70%) var(--my, 20%), rgba(255, 255, 255, .25), transparent 40%);
}
.app-glow { position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(207, 210, 65, .35), transparent); pointer-events: none; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.app-icon { width: 120px; height: 120px; filter: drop-shadow(0 18px 30px rgba(20, 0, 50, .55)); }
.app-main .app-icon { width: 140px; height: 140px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.status i { width: 8px; height: 8px; border-radius: 50%; }
.status-live { background: rgba(10, 6, 32, .35); color: #d9ffe6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.status-live i { background: var(--green); animation: live 2s infinite; }
.status-soon { background: rgba(251, 191, 36, .1); color: #ffe7a6; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); align-self: flex-start; }
.status-soon i { background: var(--gold); animation: flicker 3s steps(1) infinite; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; background: rgba(10, 6, 32, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.app-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 17px; margin-top: 6px; }
.app-link .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-bounce); }
.app-main:hover .app-link .ico { transform: translateX(6px); }
.app-locked {
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 14px, rgba(255, 255, 255, .0) 14px 28px), rgba(13, 6, 36, .55);
    box-shadow: inset 0 0 0 1.5px var(--line); border: 2px dashed var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.app-locked .btn { align-self: flex-start; margin-top: auto; }
.locked-sign {
    width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 6px;
    background: #e5e5e5; box-shadow: 0 6px 0 #cecece; color: #afafaf; filter: grayscale(1); transition: filter .3s, transform .3s var(--ease-bounce), background .3s;
}
.locked-sign.lit-box { filter: none; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 6px 0 #b45309, 0 0 25px rgba(251, 191, 36, .5); }
.locked-sign .q { font-size: 46px; font-weight: 900; line-height: 1; }
.app-locked:hover .locked-sign { animation: wobble .6s var(--ease-bounce); }
.locked-sign.alt { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); filter: none; }
.locked-sign.alt svg { width: 38px; height: 38px; fill: none; stroke: rgba(214, 202, 248, .55); stroke-width: 3; stroke-linecap: round; }
@keyframes wobble { 25% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }
.lock-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 4px; }
.lock-bar i { display: block; height: 100%; width: var(--w); border-radius: 10px; transition: width .5s var(--ease-out);
    background-size: 30px 30px; background-image: linear-gradient(45deg, rgba(255, 255, 255, .35) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, .35) 75%, transparent 75%), linear-gradient(90deg, #f59e0b, #fbbf24);
    animation: stripes 1.2s linear infinite; }
@keyframes stripes { to { background-position: 30px 0, 0 0; } }

/* ============ ACADEMY ============ */
.academy-hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: 46px; align-items: center; margin-bottom: clamp(80px, 10vw, 130px); }
.academy-sign { display: flex; flex-direction: column; align-items: flex-start; margin: 8px 0 26px; width: min(100%, 420px); }
.ac-cap { width: 82px; height: 66px; overflow: visible; margin: 0 0 -4px 6px; }
.ac-cap use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.off-cap use { stroke: rgba(255, 214, 120, .18); stroke-width: 3.4; }
.cap-glow { stroke: #fbbf24; stroke-width: 3.4; }
.cap-core { stroke: #fff4d2; stroke-width: 1.3; }
.ac-word { width: 100%; height: auto; overflow: visible; }
.ac-word use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.off-pink use { stroke: rgba(255, 150, 205, .15); stroke-width: 7; }
.p-glow { stroke: #ff40a6; stroke-width: 7; }
.p-core { stroke: #ffe8f4; stroke-width: 2.4; }
.ac-academy { display: block; margin: -2px 0 0 4%; font: 900 clamp(16px, 2vw, 21px)/1 'Nunito', sans-serif; letter-spacing: .62em; color: #dcfcff;
    text-shadow: 0 0 .25em rgba(34, 211, 238, .95), 0 0 .8em rgba(34, 211, 238, .7), 0 0 1.8em rgba(34, 211, 238, .45); }

.levels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 32px; }
.lvl { display: grid; place-items: center; width: 52px; height: 46px; border-radius: 14px; font-weight: 900; font-size: 17px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); transition: transform .25s var(--ease-bounce), filter .2s; cursor: pointer; }
.lvl:hover, .lvl.on { transform: translateY(-5px) scale(1.06); filter: brightness(1.1); }
.lvl.on { outline: 2.5px solid #fff; outline-offset: 2px; }
.l-a1 { background: #10b981; box-shadow: 0 4px 0 #047857; } .l-a2 { background: #22c55e; box-shadow: 0 4px 0 #15803d; }
.l-b1 { background: #f59e0b; box-shadow: 0 4px 0 #b45309; } .l-b2 { background: #f97316; box-shadow: 0 4px 0 #c2410c; }
.l-c1 { background: #f43f5e; box-shadow: 0 4px 0 #be123c; } .l-c2 { background: #d946ef; box-shadow: 0 4px 0 #a21caf; }
.levels small { flex-basis: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; color: var(--mist); font-size: 14px; }
.levels small b { color: var(--gold); }

/* --- el móvil: simulador de 5 pantallas --- */
.phone-stage { position: relative; display: grid; justify-items: center; padding: 24px 0; }
.phone-stage::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 45, 149, .35), rgba(124, 58, 237, .2) 55%, transparent);
}
.phone {
    position: relative; width: 320px; height: 656px; border-radius: 50px; padding: 12px;
    background: linear-gradient(145deg, #2a2050, #0e0826 60%, #2a1a4a);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), inset 0 0 0 7px #05030f, 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -20px var(--neon-glow);
    transform-style: preserve-3d;
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 20px; background: #05030f; z-index: 5; }
.phone-screen {
    position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column;
    background: radial-gradient(120% 60% at 50% -12%, #3d1672 0%, rgba(61, 22, 114, 0) 62%), radial-gradient(80% 50% at 108% 96%, rgba(255, 45, 149, .22) 0%, rgba(255, 45, 149, 0) 65%), radial-gradient(70% 45% at -10% 70%, rgba(34, 211, 238, .12) 0%, rgba(34, 211, 238, 0) 65%), linear-gradient(180deg, #0b0420 0%, #130829 55%, #1a0a31 100%);
    padding: 42px 13px 0; font-size: 13px;
}
.ph-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; position: relative; }
.ph-pill { padding: 5px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px rgba(179, 136, 255, .26); transition: transform .2s var(--ease-bounce); }
.ph-pill.bump { transform: scale(1.16); background: rgba(251, 191, 36, .22); }
.ph-guide {
    width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
    filter: drop-shadow(0 4px 8px rgba(239, 26, 108, .45)); transition: transform .3s var(--ease-bounce);
}
.ph-guide svg { width: 30px; height: 30px; }
.ph-guide:hover, .ph-guide.jump { transform: translateY(-4px) rotate(-8deg) scale(1.12); }
.ph-bubble {
    font-size: 10.5px; font-weight: 900; color: #fff; background: rgba(255, 255, 255, .1);
    padding: 4px 8px; border-radius: 10px; max-width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.ph-spacer { flex: 1; }

.ph-views { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.ph-view { display: none; flex-direction: column; flex: 1; animation: slideUp .3s var(--ease-out); overflow-y: auto; scrollbar-width: none; padding-bottom: 8px; }
.ph-view::-webkit-scrollbar { display: none; }
.ph-view.on { display: flex; }

.ph-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ph-stat { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 15px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1.5px rgba(179, 136, 255, .22), 0 3px 0 rgba(30, 10, 70, .8); }
.ph-stat span { font-size: 17px; }
.ph-stat b { font-weight: 900; font-size: 13.5px; white-space: nowrap; }
.ph-stat small { font-size: 10px; font-weight: 800; color: var(--dim); margin-left: auto; white-space: nowrap; }
.ph-card { border-radius: 18px; padding: 10px 12px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1.5px rgba(179, 136, 255, .26); margin-bottom: 8px; }
.ph-mission.ready { background: linear-gradient(135deg, rgba(251, 191, 36, .22), rgba(88, 204, 2, .22)); box-shadow: inset 0 0 0 1.5px var(--gold); cursor: pointer; }
.ph-mission-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ph-mission-top small { display: block; font-size: 9px; font-weight: 900; letter-spacing: .18em; color: var(--dim); }
.ph-mission-top b { font-size: 13.5px; font-weight: 900; }
.ph-emoji { font-size: 24px; }
.ph-bar { height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ph-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #fbbf24, #fde047); box-shadow: 0 0 10px rgba(251, 191, 36, .7); transition: width .5s var(--ease-out); }
.ph-prog { display: block; margin-top: 4px; font-size: 10px; font-weight: 900; color: var(--dim); }

.ph-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px rgba(179, 136, 255, .2); margin-bottom: 8px; }
.ph-switch-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--neon); box-shadow: 0 3px 0 rgba(52, 12, 98, .9), 0 6px 18px -6px rgba(255, 45, 149, .7); transition: transform .42s var(--ease-bounce); }
.ph-switch.math .ph-switch-pill { transform: translateX(100%); }
.ph-switch button { position: relative; z-index: 1; padding: 8px 0; font-weight: 900; font-size: 12.5px; color: var(--dim); transition: color .25s; }
.ph-switch button.on { color: #fff; }

.ph-modes { flex: 1; overflow: hidden; position: relative; }
.ph-hero {
    position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 20px; overflow: hidden; text-align: left; margin-bottom: 7px;
    box-shadow: 0 5px 0 #3b0f73, 0 12px 26px -10px rgba(255, 45, 149, .7);
}
.ph-hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #ff2d95, #7c3aed 50%, #22d3ee); background-size: 220% 220%; animation: heroBg 6s ease infinite; }
.ph-hero-bg::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .08) 18px 20px); mask-image: linear-gradient(transparent 40%, #000); -webkit-mask-image: linear-gradient(transparent 40%, #000); }
.math-mode .ph-hero-bg { background: linear-gradient(120deg, #f59e0b, #ef4444 50%, #a855f7); background-size: 220% 220%; }
@keyframes heroBg { 50% { background-position: 100% 100%; } }
.ph-hero-ico { font-size: 26px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.ph-hero-txt { display: grid; flex: 1; }
.ph-hero-txt b { font-size: 16px; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.ph-hero-txt small { font-size: 10px; font-weight: 800; opacity: .88; }
.ph-hero-arrow { font-size: 26px; font-weight: 900; line-height: 1; }
.ph-list { display: grid; gap: 6px; }
.ph-mode {
    display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 15px; font-weight: 900; font-size: 13.5px;
    background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1.5px rgba(179, 136, 255, .22), 0 3px 0 rgba(30, 10, 70, .8);
    animation: modeIn .4s var(--ease-out) both; transition: transform .18s var(--ease-bounce), background-color .2s;
}
.ph-mode:hover { transform: translateX(4px); background: rgba(255, 255, 255, .1); }
.ph-mode span { font-size: 18px; }
.ph-mode em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--gold); font-weight: 900; }
@keyframes modeIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* Vistas secundarias del móvil (Aprender, Tarjetas, Ligas, Tienda) */
.ph-sec-title { font-weight: 900; font-size: 15px; margin-bottom: 10px; display: grid; gap: 2px; }
.ph-sec-title small { font-size: 11px; font-weight: 700; color: var(--dim); }
.ph-lessons { display: grid; gap: 8px; }
.ph-lesson {
    text-align: left; padding: 11px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1.5px rgba(179, 136, 255, .22), 0 3px 0 rgba(30, 10, 70, .8); transition: background-color .2s;
}
.ph-lesson.done { box-shadow: inset 0 0 0 1.5px rgba(74, 222, 128, .5), 0 3px 0 rgba(10, 50, 30, .8); }
.ph-lesson-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 13.5px; }
.ph-lesson-head span { font-size: 11px; color: var(--cyan); }
.ph-lesson p { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--mist); line-height: 1.4; }

.ph-fc-stage { perspective: 900px; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 230px; margin: 6px 0 12px; cursor: pointer; }
.ph-fc-card { position: relative; width: 100%; height: 220px; transform-style: preserve-3d; transition: transform .6s var(--ease-bounce); }
.ph-fc-card.flipped { transform: rotateY(180deg); }
.ph-fc-face {
    position: absolute; inset: 0; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.ph-fc-front { background: linear-gradient(135deg, #5b21b6, #db2777); box-shadow: 0 6px 0 #3b0f73, inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.ph-fc-back { background: linear-gradient(135deg, #0e7490, #059669); box-shadow: 0 6px 0 #064e3b, inset 0 0 0 1.5px rgba(255, 255, 255, .25); transform: rotateY(180deg); }
.ph-fc-tag { padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; background: rgba(0, 0, 0, .26); text-transform: uppercase; letter-spacing: .08em; }
.ph-fc-face b { font-size: 24px; font-weight: 900; line-height: 1.15; }
.ph-fc-face small { font-size: 11.5px; font-weight: 800; opacity: .85; }
.ph-fc-btns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.ph-fc-btn { padding: 11px 10px; border-radius: 14px; font-weight: 900; font-size: 12.5px; color: #fff; }
.ph-fc-btn.ko { background: rgba(255, 255, 255, .08); box-shadow: 0 3px 0 rgba(20, 8, 50, .8), inset 0 0 0 1.5px var(--line); }
.ph-fc-btn.ok { background: #58cc02; box-shadow: 0 3px 0 #46a302; }

.ph-board { display: grid; gap: 7px; margin-bottom: 10px; }
.ph-row { display: grid; grid-template-columns: 18px 22px 1fr auto; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 14px; background: rgba(255, 255, 255, .055); font-size: 12.5px; font-weight: 800; transition: transform .3s var(--ease-bounce), background-color .3s; }
.ph-row.you { background: rgba(34, 211, 238, .16); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.ph-row em { font-style: normal; font-weight: 900; color: var(--gold); font-size: 11.5px; }
.ph-boost-btn { width: 100%; padding: 12px; border-radius: 16px; font-weight: 900; font-size: 13px; color: #fff; background: var(--neon); box-shadow: 0 4px 0 var(--neon-shadow); margin-top: auto; }
.ph-boost-btn:active { transform: translateY(3px); }

.ph-shop { display: grid; gap: 8px; }
.ph-item { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(179, 136, 255, .22); }
.ph-item-ico { font-size: 24px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.ph-item-txt { flex: 1; display: grid; }
.ph-item-txt b { font-size: 13px; font-weight: 900; }
.ph-item-txt small { font-size: 10.5px; font-weight: 700; color: var(--dim); }
.ph-buy { padding: 7px 11px; border-radius: 12px; font-weight: 900; font-size: 11.5px; background: rgba(251, 191, 36, .18); color: #fde68a; box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, .45), 0 3px 0 rgba(80, 45, 5, .8); }
.ph-buy.owned { background: rgba(74, 222, 128, .2); color: #86efac; box-shadow: inset 0 0 0 1.5px rgba(74, 222, 128, .5); }

.ph-nav {
    display: flex; justify-content: space-around; padding: 9px 4px 14px; margin: auto -13px 0; border-radius: 22px 22px 0 0;
    background: rgba(11, 5, 28, .9); box-shadow: 0 -1.5px 0 rgba(179, 136, 255, .26);
}
.ph-nav button { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; color: var(--dim); padding: 2px 6px; border-radius: 10px; transition: transform .2s var(--ease-bounce), color .2s; }
.ph-nav button:hover { color: #fff; }
.ph-nav button.on { color: var(--cyan); transform: translateY(-3px); text-shadow: 0 0 10px rgba(34, 211, 238, .6); }
.ph-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.phone-hint { margin-top: 20px; font-weight: 800; font-size: 13.5px; color: var(--dim); text-align: center; max-width: 320px; }
.phone-hint b { color: #fff; }
.phone-orbit { position: absolute; z-index: 2; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 28px;
    background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px var(--line), 0 18px 30px -12px rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: orbit 6s ease-in-out infinite; }
.o1 { left: 3%; top: 16%; } .o2 { right: 1%; top: 38%; animation-delay: -2s; } .o3 { left: 6%; bottom: 18%; animation-delay: -4s; }
@keyframes orbit { 50% { transform: translateY(-16px) rotate(6deg); } }

/* --- bento de funciones interactivo --- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 268px; }
.feat h3 { font-size: 21px; font-weight: 900; line-height: 1.15; }
.feat p { font-size: 15px; font-weight: 700; color: var(--mist); }
.feat-row, .feat-top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.feat-tag { align-self: flex-start; padding: 5px 11px; border-radius: 9px; font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.t-pink { color: #ffd9ee; background: rgba(255, 45, 149, .16); box-shadow: inset 0 0 0 1px rgba(255, 45, 149, .4); }
.t-cyan { color: #dcfcff; background: rgba(34, 211, 238, .14); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .4); }
.t-gold { color: #fff4d2; background: rgba(251, 191, 36, .16); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .45); }
.f-odisea { grid-column: span 2; grid-row: span 2; }
.f-apagon { grid-column: span 2; }
.feat-art { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 4px; flex: 1; min-height: 150px; }

.art-city { background: linear-gradient(180deg, #0a0620, #2a1052 70%, #4a1666); min-height: 290px; transition: background .5s; cursor: pointer; }
.art-city[data-zone="1"] { background: linear-gradient(180deg, #090d2a, #1d2268 70%, #3b1d7a); }
.art-city[data-zone="2"] { background: linear-gradient(180deg, #06152d, #0f3866 70%, #166088); }
.art-city[data-zone="3"] { background: linear-gradient(180deg, #1b0c3b, #4c1d95 65%, #be185d); }
.art-city[data-zone="4"] { background: radial-gradient(circle at 50% 120%, #0d2a5c, #030412 75%); }
.art-city .b { position: absolute; bottom: 0; background: #12082c; border-radius: 4px 4px 0 0;
    background-image: radial-gradient(circle, #fde68a 1.4px, transparent 1.8px); background-size: 12px 14px; background-position: 4px 6px; transition: height .45s var(--ease-out), filter .3s; }
.art-city .b1 { left: 4%; width: 15%; height: 48%; } .art-city .b2 { left: 21%; width: 12%; height: 70%; background-image: radial-gradient(circle, #f9a8d4 1.4px, transparent 1.8px); }
.art-city .b3 { left: 40%; width: 16%; height: 92%; background-image: radial-gradient(circle, #67e8f9 1.4px, transparent 1.8px); box-shadow: 0 0 30px rgba(34, 211, 238, .25); }
.art-city .b3::before { content: 'M'; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 18px; color: #ffd9ee; text-shadow: 0 0 8px #ff2d95, 0 0 18px #ff2d95; animation: flicker 5s steps(1) infinite; }
.art-city .b4 { left: 62%; width: 14%; height: 58%; } .art-city .b5 { left: 80%; width: 16%; height: 40%; background-image: radial-gradient(circle, #f9a8d4 1.4px, transparent 1.8px); }
.art-city .moon { position: absolute; right: 10%; top: 12%; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #d6d0ee); box-shadow: 0 0 40px rgba(255, 255, 255, .45); }
.art-city .rocket { position: absolute; left: 10%; bottom: 10%; font-style: normal; font-size: 34px; animation: launch 5s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 150, 50, .8)); }
@keyframes launch { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 80% { transform: translate(250%, -360%) rotate(10deg); opacity: 1; } 100% { transform: translate(300%, -420%); opacity: 0; } }
.f-odisea:hover .art-city .b { filter: brightness(1.35); }
.city-zone-badge {
    position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 900; letter-spacing: .08em; background: rgba(7, 3, 22, .75); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
}
.zone-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.zone-pills button {
    padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: var(--dim);
    background: rgba(255, 255, 255, .05); transition: background-color .2s, color .2s;
}
.zone-pills button.on, .zone-pills button:hover { background: var(--neon); color: #fff; }

/* Apagón interactivo */
.art-rain { background: linear-gradient(180deg, #050816, #0b1430 60%, #13204a); min-height: 130px; display: grid; place-items: center; transition: background .5s; cursor: pointer; }
.art-rain.restored { background: linear-gradient(180deg, #0b1938, #163b6e 60%, #1e6091); }
.art-rain::before { content: ''; position: absolute; inset: -40px 0 0; background-image: linear-gradient(transparent 70%, rgba(150, 200, 255, .45) 70%); background-size: 2px 26px; transform: rotate(12deg); animation: rain .5s linear infinite; opacity: .55; pointer-events: none; }
@keyframes rain { to { background-position: 0 26px; } }
.apagon-skyline { position: absolute; inset: auto 0 0; height: 55%; display: flex; align-items: flex-end; gap: 6px; padding: 0 14px; opacity: .65; pointer-events: none; }
.apagon-skyline i { flex: 1; background: #070b1a; border-radius: 3px 3px 0 0; height: 60%; transition: background .4s, box-shadow .4s; }
.apagon-skyline i:nth-child(2) { height: 90%; } .apagon-skyline i:nth-child(3) { height: 70%; }
.apagon-skyline i:nth-child(4) { height: 95%; } .apagon-skyline i:nth-child(5) { height: 55%; }
.apagon-skyline i.lit-b {
    background-color: #132347;
    background-image: radial-gradient(circle, #fde047 1.6px, transparent 2px);
    background-size: 10px 12px;
    box-shadow: 0 0 18px rgba(251, 191, 36, .45);
}
.apagon-sign { position: relative; z-index: 1; font-family: 'Courier New', monospace; font-weight: 900; font-size: clamp(28px, 3.8vw, 44px); letter-spacing: .14em; color: #fff3f5;
    text-shadow: 0 0 6px #ff3b5c, 0 0 18px #ff3b5c, 0 0 40px rgba(255, 59, 92, .7); animation: flicker 3.4s steps(1) infinite; }
.art-rain.restored .apagon-sign { color: #eafff8; text-shadow: 0 0 8px #22d3ee, 0 0 22px #34d399, 0 0 45px rgba(52, 211, 153, .9); animation: none; }

/* Speaking demo */
.speak-demo { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-weight: 900; font-size: 16.5px; display: flex; flex-wrap: wrap; gap: 6px; }
.speak-demo .ok { color: var(--green); text-shadow: 0 0 10px rgba(74, 222, 128, .4); }
.speak-demo .ko { color: var(--red); text-decoration: underline wavy rgba(251, 113, 133, .7); text-underline-offset: 4px; }
.speak-demo .wait { color: var(--dim); opacity: .45; }

/* Flashcards Bento */
.flip-demo { perspective: 800px; height: 92px; margin-bottom: 4px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .65s var(--ease-bounce); }
.flip-inner.flipped { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 18px; font-weight: 900; font-size: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 8px; text-align: center; }
.flip-front { background: linear-gradient(135deg, #7c3aed, #ff2d95); box-shadow: 0 5px 0 #3b0f73; }
.flip-back { background: linear-gradient(135deg, #0891b2, #22d3ee); box-shadow: 0 5px 0 #155e75; transform: rotateY(180deg); }

/* Liga Bento */
.league { display: grid; gap: 6px; margin-bottom: 4px; }
.lg-row { display: grid; grid-template-columns: 18px 24px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 13.5px; transition: transform .3s var(--ease-bounce); }
.lg-row span { font-weight: 900; color: var(--dim); }
.lg-row i { font-style: normal; font-size: 17px; }
.lg-row b { font-weight: 900; }
.lg-row em { font-style: normal; font-weight: 800; font-size: 12px; color: var(--dim); }
.lg-row.you { background: rgba(34, 211, 238, .14); box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, .55); }
.lg-row.you b { color: var(--cyan); }

/* Rachas Bento */
.streak { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.flame { font-size: 44px; filter: drop-shadow(0 0 14px rgba(255, 120, 30, .8)); animation: flame 1.6s ease-in-out infinite; transform-origin: 50% 90%; transition: transform .3s var(--ease-bounce); }
.flame.super { filter: drop-shadow(0 0 22px #22d3ee); transform: scale(1.2); }
@keyframes flame { 50% { transform: scale(1.1) rotate(-4deg); } }
.days { display: flex; gap: 5px; flex-wrap: wrap; }
.days i { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; background: rgba(255, 255, 255, .06); color: var(--dim); cursor: pointer; transition: transform .2s var(--ease-bounce), background .2s; user-select: none; }
.days i:hover { transform: scale(1.15); }
.days i.on { background: linear-gradient(135deg, #f97316, #fbbf24); color: #fff; box-shadow: 0 0 10px rgba(251, 146, 60, .6); }
.days i.today { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); animation: live 2s infinite; }

/* Acertijos Bento */
.riddle-q { font-weight: 800; color: #fff !important; font-size: 15px !important; }
.riddle-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.riddle-opts button {
    padding: 9px 6px; border-radius: 12px; font-weight: 900; font-size: 12.5px; color: #fff;
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 rgba(20, 8, 50, .8);
    transition: transform .15s, background-color .2s;
}
.riddle-opts button:hover { background: rgba(255, 255, 255, .12); }
.riddle-opts button.ok { background: #58cc02; box-shadow: 0 3px 0 #46a302; }
.riddle-opts button.ko { background: #ef4444; box-shadow: 0 3px 0 #b91c1c; }

/* Teoría Bento */
.theory-box {
    margin-top: auto; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 700; color: var(--mist);
    background: rgba(34, 211, 238, .08); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); line-height: 1.45;
}
.theory-box b { color: #fff; }
.theory-box em { font-style: normal; color: var(--gold); font-weight: 900; }

/* ============ ODISEA: HUD HOLOGRÁFICO + MAPA ============ */
.odisea-hud {
    position: relative; max-width: 620px; margin: 0 auto 36px; padding: 18px 24px; border-radius: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: linear-gradient(135deg, rgba(20, 10, 48, .85), rgba(10, 6, 30, .9));
    box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, .35), 0 20px 50px -20px rgba(0, 0, 0, .85);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.ep-c { position: absolute; width: 12px; height: 12px; border-color: var(--cyan); border-style: solid; pointer-events: none; }
.ep-c.tl { top: 8px; left: 8px; border-width: 2.5px 0 0 2.5px; border-radius: 4px 0 0 0; }
.ep-c.tr { top: 8px; right: 8px; border-width: 2.5px 2.5px 0 0; border-radius: 0 4px 0 0; }
.ep-c.bl { bottom: 8px; left: 8px; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 4px; }
.ep-c.br { bottom: 8px; right: 8px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 4px 0; }
.hud-left { display: grid; gap: 3px; }
.hud-kicker { font-size: 11px; font-weight: 900; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; }
.hud-left b { font-size: 16.5px; font-weight: 900; color: #fff; }
.hud-stat { padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 11px; font-weight: 900; letter-spacing: .12em; color: var(--dim); white-space: nowrap; }
.hud-stat b { color: var(--gold); font-size: 16px; margin-left: 4px; }

.map { position: relative; width: min(100%, 560px); margin: 0 auto; aspect-ratio: 400 / 1400; }
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.road-base { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 34; stroke-linecap: round; }
.road-dash { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 3; stroke-dasharray: 2 16; stroke-linecap: round; }
.road-lit { fill: none; stroke: url(#g-ring); stroke-width: 9; stroke-linecap: round; filter: url(#neon-s); }
.map-nodes { position: absolute; inset: 0; }
.node {
    position: absolute; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center;
    font-size: 30px; font-weight: 900; color: #afafaf; background: #e5e5e5; box-shadow: 0 6px 0 #cecece;
    transition: background-color .4s, box-shadow .4s, transform .4s var(--ease-bounce), color .4s; z-index: 2; cursor: pointer; user-select: none;
}
.node:hover { transform: scale(1.14); }
.node::after { content: ''; position: absolute; inset: -10px; border-radius: inherit; border: 3px solid transparent; transition: border-color .4s; }
.node.boss { border-radius: 22px; width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.node.done { background: #58cc02; color: #fff; box-shadow: 0 6px 0 #46a302, 0 0 24px rgba(88, 204, 2, .4); }
.node.boss.done { background: #ce82ff; box-shadow: 0 6px 0 #a568cc, 0 0 24px rgba(206, 130, 255, .5); }
.node.current { background: #ffc800; color: #fff; box-shadow: 0 6px 0 #cc8f00, 0 0 30px rgba(255, 200, 0, .6); transform: scale(1.18); animation: nodeFloat 1.4s ease-in-out infinite alternate; }
.node.current::after { border-color: rgba(255, 200, 0, .5); animation: ringPulse 1.6s ease-out infinite; }
@keyframes nodeFloat { to { translate: 0 -8px; } }
@keyframes ringPulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.node-lbl {
    position: absolute; z-index: 3; transform: translateY(-50%); padding: 10px 16px; border-radius: 16px; white-space: nowrap;
    background: rgba(13, 6, 36, .84); box-shadow: inset 0 0 0 1.5px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: .42; transition: opacity .4s, box-shadow .4s, transform .3s; cursor: pointer;
}
.node-lbl b { display: block; font-size: 16px; font-weight: 900; }
.node-lbl small { font-size: 12.5px; font-weight: 800; color: var(--dim); }
.node-lbl.on { opacity: 1; box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, .55), 0 0 30px -10px rgba(251, 191, 36, .7); }
.node-lbl.left { right: calc(100% - var(--x) + 60px); } .node-lbl.right { left: calc(var(--x) + 60px); }

/* ============ TRÁILER ============ */
.trailer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checks { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.checks li { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 17px; }
.checks li::before { content: ''; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #58cc02 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17.5 19 7' stroke='%23fff' stroke-width='3.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: 0 3px 0 #46a302; }
.trailer-stage { position: relative; display: grid; place-items: center; padding: 40px 0; }
.spot { position: absolute; bottom: 0; width: 160px; height: 120%; transform-origin: 50% 100%; pointer-events: none; z-index: -1;
    background: linear-gradient(0deg, rgba(168, 85, 247, .38), transparent 85%); clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0); filter: blur(4px); }
.spot.s1 { left: 18%; animation: sweep 7s ease-in-out infinite; } .spot.s2 { right: 18%; animation: sweep 7s ease-in-out -3.5s infinite; background: linear-gradient(0deg, rgba(34, 211, 238, .32), transparent 85%); }
@keyframes sweep { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
.phone-video { width: 300px; height: 620px; }
.phone-video .phone-screen { padding: 0; background: #05030f; }
.phone-video video { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; display: grid; place-items: center;
    background: var(--neon); box-shadow: 0 6px 0 var(--neon-shadow), 0 0 0 10px rgba(255, 255, 255, .1), 0 0 50px var(--neon-glow); transition: transform .3s var(--ease-bounce), opacity .3s; }
.play-btn svg { width: 36px; height: 36px; fill: #fff; margin-left: 5px; }
.play-btn:hover { transform: scale(1.1); }
.play-btn::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); animation: ringPulse 2s ease-out infinite; }
.playing .play-btn { opacity: 0; pointer-events: none; transform: scale(.6); }
.mute-btn { position: absolute; right: 16px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 6, 32, .7); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.mute-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mute-btn svg path:first-child { fill: #fff; }
.mute-btn .w { display: none; } .mute-btn.on .w { display: block; } .mute-btn.on .x { display: none; }
.mute-btn[hidden] { display: none; }

/* ============ RETO / QUIZ + SKYLINE DE PREMIOS ============ */
.quiz { max-width: 740px; margin: 0 auto; padding: 0; min-height: 540px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(27, 13, 62, .92), rgba(13, 6, 36, .92)); }
.quiz::after { content: ''; position: absolute; left: 30px; right: 30px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--pink) 18%, var(--purple) 50%, var(--cyan) 82%, transparent); box-shadow: 0 0 12px var(--neon-glow); }
.quiz-top { display: flex; align-items: center; gap: 14px; padding: 22px 24px 0; }
.quiz-x { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--dim); }
.quiz-x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.quiz-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.quiz-bar { flex: 1; height: 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; border-radius: 16px; background: linear-gradient(90deg, #58cc02, #89e219); transition: width .5s var(--ease-out); position: relative; }
.quiz-bar i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.quiz-lives, .quiz-gems { font-weight: 900; font-size: 16px; white-space: nowrap; }
.quiz-lives.hit { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Skyline de Premios (5 edificios) */
.quiz-skyline {
    display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 68px; margin: 14px 24px 0; padding: 8px 18px 0;
    border-bottom: 1.5px solid rgba(179, 136, 255, .18);
}
.qs-b {
    width: 44px; height: 36px; border-radius: 5px 5px 0 0; background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1); display: grid; place-items: start center; padding-top: 5px;
    font-size: 10px; font-weight: 900; color: rgba(255, 255, 255, .25); transition: all .45s var(--ease-bounce);
}
.qs-b:nth-child(2) { height: 48px; }
.qs-b.qs-tower { height: 60px; width: 52px; }
.qs-b:nth-child(4) { height: 45px; }
.qs-b.lit {
    background-color: #1f1147;
    background-image: radial-gradient(circle, #fde047 1.5px, transparent 2px);
    background-size: 10px 10px;
    background-position: 4px 18px;
    box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 22px rgba(251, 191, 36, .55);
    color: var(--gold);
    transform: translateY(-2px);
}
.qs-b.qs-tower.lit {
    box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 26px rgba(34, 211, 238, .7);
    color: var(--cyan);
}

.quiz-body { flex: 1; padding: 24px 28px 130px; display: flex; flex-direction: column; }
.quiz-start { margin: auto; text-align: center; display: grid; justify-items: center; gap: 12px; }
.quiz-logo { width: 104px; height: 104px; animation: orbit 5s ease-in-out infinite; filter: drop-shadow(0 14px 24px rgba(239, 26, 108, .45)); }
.quiz-start h3 { font-size: 30px; font-weight: 900; }
.quiz-start p { color: var(--dim); font-weight: 700; margin-bottom: 12px; }
.q-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.q-tag { padding: 5px 11px; border-radius: 9px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.q-tag.en { color: #dcfcff; background: rgba(34, 211, 238, .14); } .q-tag.ma { color: #fff4d2; background: rgba(251, 191, 36, .14); }
.q-tts { padding: 5px 11px; border-radius: 9px; font-size: 12px; font-weight: 900; background: rgba(255, 255, 255, .08); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.q-tts:hover { background: rgba(34, 211, 238, .18); }
.q-text { font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.2; margin-bottom: 24px; animation: slideUp .4s var(--ease-out); }
.q-text em { font-style: normal; color: var(--cyan); }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-opt {
    padding: 18px 16px; border-radius: 18px; font-weight: 900; font-size: 18px; text-align: center; color: #fff;
    background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 rgba(52, 22, 110, .9);
    transition: transform .12s, box-shadow .12s, background-color .2s; animation: slideUp .4s var(--ease-out) both;
}
.q-opt:nth-child(2) { animation-delay: .05s; } .q-opt:nth-child(3) { animation-delay: .1s; } .q-opt:nth-child(4) { animation-delay: .15s; }
.q-opt:hover:not(:disabled) { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.q-opt:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 rgba(52, 22, 110, .9); }
.q-opt.right { background: #d7ffb8 !important; color: #3d8f00; box-shadow: inset 0 0 0 2px #58cc02, 0 4px 0 #58cc02 !important; }
.q-opt.wrong { background: #ffdfe0 !important; color: #ea2b2b; box-shadow: inset 0 0 0 2px #ea2b2b, 0 4px 0 #ea2b2b !important; animation: shake .4s; }
.q-opt:disabled { cursor: default; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.quiz-end { margin: auto; text-align: center; display: grid; justify-items: center; gap: 10px; animation: pop .5s var(--ease-bounce); }
.quiz-end .big { font-size: 68px; line-height: 1; }
.quiz-end h3 { font-size: 30px; font-weight: 900; }
.quiz-end p { color: var(--mist); font-weight: 700; max-width: 440px; }
.quiz-end .score { display: flex; gap: 12px; margin: 10px 0 14px; flex-wrap: wrap; justify-content: center; }
.quiz-end .score div { padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 900; }
.quiz-end .score small { display: block; font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.quiz-end .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.quiz-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    transform: translateY(105%); transition: transform .4s cubic-bezier(.175, .885, .32, 1.275); border-radius: 26px 26px 0 0; z-index: 4;
}
.quiz-sheet.show { transform: none; }
.quiz-sheet.ok { background: #d7ffb8; color: #58a700; }
.quiz-sheet.ko { background: #ffdfe0; color: #ea2b2b; }
.quiz-sheet.ko .btn-duo { background: #ff4b4b; box-shadow: 0 5px 0 #ea2b2b; }
.sheet-msg { display: flex; align-items: center; gap: 14px; }
.sheet-ico { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 28px; flex: 0 0 auto; }
.sheet-msg b { display: block; font-size: 22px; font-weight: 900; }
.sheet-msg small { font-size: 15px; font-weight: 800; opacity: .85; }

/* ============ DESCARGA & TARJETA DE CONTACTO ============ */
.descarga { padding-bottom: clamp(90px, 12vw, 150px); }
.mega { font-weight: 900; line-height: .95; letter-spacing: -.04em; margin: 10px 0 26px; }
.mega-line { display: block; font-size: clamp(44px, 7vw, 92px); }
.neon-big { font-size: clamp(80px, 15vw, 210px) !important; color: #fff; text-shadow: 0 0 .04em #fff, 0 0 .1em #22d3ee, 0 0 .25em #2f8cff, 0 0 .5em rgba(124, 58, 237, .8); }
.in .neon-big, .reveal.in .neon-big { animation: flickOn 1.1s steps(1, end) .3s both, flicker 9s steps(1) 4s infinite; }
.dl-row { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 40px 0 18px; flex-wrap: wrap; }
.dl-icon { width: 96px; height: 96px; filter: drop-shadow(0 14px 24px rgba(239, 26, 108, .45)); }
.store-btn {
    display: inline-flex; align-items: center; gap: 14px; height: 74px; padding: 0 30px 0 22px; border-radius: 22px; color: #fff; text-align: left;
    background: #05030f; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25), 0 6px 0 #2a1a4a, 0 20px 40px -10px rgba(34, 211, 238, .45); transition: transform .15s, box-shadow .2s;
}
.store-btn:hover { box-shadow: inset 0 0 0 1.5px var(--cyan), 0 6px 0 #2a1a4a, 0 20px 50px -6px rgba(34, 211, 238, .7); }
.store-btn:active { transform: translateY(5px) !important; box-shadow: inset 0 0 0 1.5px var(--cyan), 0 1px 0 #2a1a4a; }
.store-btn .gp { width: 36px; height: 36px; }
.store-btn small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.store-btn b { font-size: 24px; font-weight: 900; line-height: 1.1; }
.dl-note { font-size: 14px; font-weight: 800; color: var(--dim); }

.contact-card {
    max-width: 880px; margin: 76px auto 0; padding: 34px 38px; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    background: linear-gradient(145deg, rgba(25, 12, 58, .85), rgba(10, 6, 32, .9));
    box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, .35), 0 30px 60px -25px rgba(0, 0, 0, .85);
}
.contact-copy { max-width: 430px; display: grid; gap: 8px; }
.contact-copy h3 { font-size: 28px; font-weight: 900; }
.contact-copy p { font-size: 15.5px; font-weight: 700; color: var(--mist); }
.contact-actions { display: grid; gap: 14px; justify-items: end; }
.contact-mail {
    font-size: clamp(20px, 2.5vw, 26px); font-weight: 900;
    background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { position: relative; padding: 70px 0 30px; background: linear-gradient(180deg, rgba(5, 3, 15, 0), rgba(5, 3, 15, .92) 30%); }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: linear-gradient(90deg, transparent, var(--pink) 20%, var(--purple) 50%, var(--cyan) 80%, transparent); opacity: .6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.f-logo { width: 96px; height: 96px; margin-bottom: 16px; filter: drop-shadow(0 0 16px rgba(47, 140, 255, .55)); }
.f-brand p { color: var(--dim); font-weight: 700; }
.f-col { display: grid; align-content: start; gap: 10px; }
.f-col h4 { font-size: 13px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.f-col a { font-weight: 800; color: var(--mist); transition: color .2s, transform .2s; justify-self: start; }
.f-col a:hover { color: #fff; transform: translateX(4px); }
.f-col .mail { font-size: 19px; color: #fff; background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-small { font-size: 14px; font-weight: 700; color: var(--dim); }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(179, 136, 255, .14); font-size: 14px; font-weight: 700; color: var(--dim); }
.heart { font-style: normal; color: var(--pink); display: inline-block; animation: beat 1.2s infinite; text-shadow: 0 0 10px var(--pink); }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }

/* ============ TOAST ============ */
.toast {
    position: fixed; left: 50%; top: -90px; z-index: 300; transform: translateX(-50%); padding: 14px 24px; border-radius: 20px;
    background: rgba(17, 8, 40, .97); font-weight: 900; box-shadow: 0 0 0 3px #fcd34d, 0 10px 25px rgba(0, 0, 0, .5); transition: top .5s var(--ease-bounce); white-space: nowrap;
}
.toast.show { top: 22px; }

.float-y { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-10px); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .f-odisea { grid-row: auto; }
    .apps-grid { grid-template-columns: 1fr 1fr; }
    .app-main { grid-column: span 2; min-height: 380px; }
    .lift { display: none; }
}
@media (max-width: 960px) {
    .nav-links {
        position: fixed; top: 86px; left: 12px; right: 12px; flex-direction: column; gap: 4px; padding: 14px; border-radius: 24px;
        background: rgba(13, 6, 36, .96); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -20px #000; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        opacity: 0; transform: translateY(-14px) scale(.98); pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out);
    }
    .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-links a { padding: 14px 16px; font-size: 18px; }
    .nav-links a.active::after { left: 6px; top: 50%; bottom: auto; width: 3px; height: 18px; margin: -9px 0 0; }
    .nav-cta-m { display: block; margin-top: 6px; text-align: center; background: var(--neon); color: #fff !important; border-radius: 16px; box-shadow: 0 4px 0 var(--neon-shadow); }
    .nav-cta { display: none; }
    .nav-tools { margin-left: auto; }
    .nav-burger { display: block; }
    .nav { background: rgba(13, 6, 36, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 10px; }
    .hero-sign { order: -1; width: min(82vw, 420px); }
    .hero-copy .chip { margin-bottom: 18px; }
    .hero-sub { margin-inline: auto; }
    .hero-btns, .hero-meta { justify-content: center; }
    .hero { padding-top: calc(var(--nav-h) + 10px); }
    .scroll-cue { display: none; }

    .values { grid-template-columns: 1fr; }
    .academy-hero, .trailer-grid { grid-template-columns: 1fr; }
    .academy-copy { text-align: center; }
    .academy-sign { margin-inline: auto; align-items: center; }
    .academy-copy .levels, .academy-copy .hero-btns { justify-content: center; }
    .academy-copy .sec-lead { margin-inline: auto; }
    .trailer-copy { text-align: center; }
    .trailer-copy .sec-lead { margin-inline: auto; }
    .checks { justify-content: center; }
    .contact-card { flex-direction: column; text-align: center; align-items: center; }
    .contact-actions { justify-items: center; }
    .contact-btns { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .f-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
    .wrap { width: calc(100% - 32px); }
    .nav-word { display: none; }
    .apps-grid, .bento { grid-template-columns: 1fr; }
    .app-main, .f-odisea, .f-apagon { grid-column: auto; }
    .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .hero-meta b { font-size: 26px; }
    .hero-meta span { font-size: 12px; line-height: 1.25; }
    .btn { height: 54px; padding: 0 22px; font-size: 16px; }
    .hero-btns .btn { flex: 1 1 100%; }
    .phone { width: 294px; height: 616px; }
    .phone-orbit { width: 50px; height: 50px; font-size: 24px; }
    .q-opts { grid-template-columns: 1fr; }
    .quiz-body { padding: 20px 18px 140px; }
    .quiz-top { padding: 18px 16px 0; gap: 10px; }
    .quiz-sheet { flex-direction: column; align-items: stretch; }
    .odisea-hud { flex-direction: column; text-align: center; }
    .node { width: 56px; height: 56px; margin: -28px 0 0 -28px; font-size: 24px; }
    .node.boss { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
    .node-lbl { padding: 7px 11px; white-space: normal; }
    .node-lbl b { font-size: 13.5px; } .node-lbl small { font-size: 11px; }
    .node-lbl.left { right: calc(100% - var(--x) + 40px); left: 0; text-align: right; }
    .node-lbl.right { left: calc(var(--x) + 40px); right: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .f-brand { grid-column: auto; }
    .ticker { padding: 14px 0; }
    .sign-hint { white-space: normal; letter-spacing: .12em; text-align: center; width: calc(100vw - 32px); }
}

.shot .tube, .shot .reveal, .shot .neon-word, .shot .neon-big { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }


/* =============================================================
   NIVEL 3 · ARCADE, LOGROS Y EFECTOS GLOBALES
   ============================================================= */

/* ---------- Intro hiperespacio ---------- */
.pre-warp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
#preloader .pre-ring, #preloader .pre-txt { position: relative; z-index: 1; }

/* ---------- Barra de progreso ---------- */
.scroll-prog { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-prog i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan), var(--gold)); box-shadow: 0 0 12px var(--cyan), 0 0 4px #fff; }

/* ---------- Estela del cursor ---------- */
.cursor-trail { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }

/* ---------- Aviso de planta ---------- */
.floor-pop {
    position: fixed; left: 50%; top: 92px; z-index: 150; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
    display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 12px; border-radius: 14px;
    background: rgba(7, 3, 22, .88); box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, .45), 0 10px 30px -10px #000, 0 0 30px -10px rgba(251, 191, 36, .6);
    font-family: 'Montserrat', monospace; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: opacity .3s, transform .35s var(--ease-bounce);
}
.floor-pop.show { opacity: 1; transform: translate(-50%, 0); }
.floor-pop .fp-arrow { color: var(--green); font-size: 12px; text-shadow: 0 0 8px var(--green); }
.floor-pop b { font-size: 22px; color: var(--gold); text-shadow: 0 0 10px rgba(251, 191, 36, .9); font-variant-numeric: tabular-nums; }
.floor-pop .fp-name { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: #ffe7a6; }

/* ---------- NEÓN ARCADE ---------- */
.arc-cab {
    position: relative; max-width: 880px; margin: 0 auto; padding: 22px 22px 24px; border-radius: 34px;
    background: linear-gradient(170deg, #1d0b42, #0b0420 70%);
    box-shadow: inset 0 0 0 2px rgba(255, 45, 149, .35), inset 0 0 60px rgba(124, 58, 237, .25), 0 40px 90px -30px #000, 0 0 80px -30px var(--neon-glow);
}
.arc-cab::before, .arc-cab::after {
    content: ''; position: absolute; top: 40px; bottom: 40px; width: 4px; border-radius: 4px;
    background: linear-gradient(var(--pink), var(--purple), var(--cyan)); box-shadow: 0 0 16px var(--pink); animation: flicker 6s steps(1) infinite;
}
.arc-cab::before { left: -2px; } .arc-cab::after { right: -2px; animation-delay: -3s; }
.arc-marquee {
    text-align: center; margin-bottom: 16px; font: 900 clamp(22px, 3.4vw, 34px)/1 'Nunito', sans-serif; letter-spacing: .28em;
}
.arc-m1 { color: #dcfcff; text-shadow: 0 0 8px #22d3ee, 0 0 22px #22d3ee; margin-right: .4em; }
.arc-m2 { color: #ffd9ee; text-shadow: 0 0 8px #ff2d95, 0 0 22px #ff2d95; animation: flicker 5s steps(1) 2s infinite; }
.arc-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.arc-stat { padding: 8px 12px; border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; font-family: 'Montserrat', monospace; transition: box-shadow .3s, transform .3s var(--ease-bounce); }
.arc-stat small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .22em; color: var(--dim); }
.arc-stat b { font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.arc-stat.gold b { color: var(--gold); text-shadow: 0 0 10px rgba(251, 191, 36, .7); }
.arc-stat.hot { box-shadow: inset 0 0 0 2px #fb923c, 0 0 24px rgba(251, 146, 60, .6); transform: scale(1.05); }
.arc-stat.hot b { color: #fdba74; }
.arc-screen { position: relative; height: clamp(360px, 52vw, 480px); border-radius: 22px; overflow: hidden; background: #05010f; box-shadow: inset 0 0 0 3px #05010f, 0 0 0 2px rgba(34, 211, 238, .3); }
.arc-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arc-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }
.arc-scan::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)); }
.arc-overlay {
    position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px;
    background: rgba(5, 1, 15, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .35s, visibility .35s;
}
.arc-overlay.hide { opacity: 0; visibility: hidden; }
.arc-ov-kick { font: 700 11px/1 'Montserrat', monospace; letter-spacing: .3em; color: var(--gold); animation: flicker 2.4s steps(1) infinite; }
.arc-overlay h3 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; text-shadow: 0 0 20px rgba(255, 45, 149, .7); }
.arc-overlay p { max-width: 440px; font-weight: 700; color: var(--mist); }
.arc-overlay p b { color: #fff; }
.arc-modes { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--line); }
.arc-modes button { padding: 8px 16px; border-radius: 999px; font-weight: 900; font-size: 14px; color: var(--dim); transition: background .2s, color .2s; }
.arc-modes button.on { background: var(--neon); color: #fff; box-shadow: 0 3px 0 var(--neon-shadow); }
.arc-answers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.arc-answers button {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 62px; border-radius: 18px;
    font-weight: 900; font-size: 19px; color: #fff; background: linear-gradient(180deg, #2a1360, #1a0a3e);
    box-shadow: inset 0 0 0 2px rgba(179, 136, 255, .35), 0 6px 0 #0c0425; transition: transform .08s, box-shadow .08s, background .2s, opacity .2s;
}
.arc-answers button:nth-child(1) { --k: #ff2d95; } .arc-answers button:nth-child(2) { --k: #22d3ee; }
.arc-answers button:nth-child(3) { --k: #fbbf24; } .arc-answers button:nth-child(4) { --k: #34d399; }
.arc-answers button:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--k), 0 6px 0 #0c0425, 0 0 26px -6px var(--k); }
.arc-answers button:not(:disabled):active { transform: translateY(5px); box-shadow: inset 0 0 0 2px var(--k), 0 1px 0 #0c0425; }
.arc-answers button:disabled { opacity: .45; cursor: default; }
.arc-answers kbd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font: 700 12px/1 'Montserrat', monospace; color: #0b0420; background: var(--k); box-shadow: 0 0 10px var(--k); }
.arc-answers button.ok { background: linear-gradient(180deg, #2f7d0b, #1f5a05); }
.arc-answers button.ko { background: linear-gradient(180deg, #8f1630, #5e0c1f); animation: shake .35s; }
.arc-cab.playing { box-shadow: inset 0 0 0 2px rgba(34, 211, 238, .5), inset 0 0 60px rgba(124, 58, 237, .3), 0 40px 90px -30px #000, 0 0 100px -20px rgba(34, 211, 238, .55); }

/* ---------- LOGROS ---------- */
.lg-hud {
    position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
    border-radius: 999px; font-weight: 900; font-size: 15px; color: #fff;
    background: rgba(13, 6, 36, .86); box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, .5), 0 12px 30px -10px #000, 0 0 30px -12px rgba(251, 191, 36, .8);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .5s, transform .5s var(--ease-bounce), box-shadow .3s;
}
.lg-hud.ready { opacity: 1; transform: none; pointer-events: auto; }
.lg-hud:hover { box-shadow: inset 0 0 0 1.5px var(--gold), 0 12px 30px -10px #000, 0 0 40px -6px rgba(251, 191, 36, .9); transform: translateY(-2px); }
.lg-hud small { font-size: 11px; color: var(--dim); }
.lg-hud-sep { width: 1.5px; height: 20px; background: rgba(255, 255, 255, .18); }
.lg-hud.bump { animation: lgBump .7s var(--ease-bounce); }
.lg-hud.gem .lg-hud-gem { animation: lgGem .5s var(--ease-bounce); }
.lg-hud.all { box-shadow: inset 0 0 0 2px var(--gold), 0 0 40px rgba(251, 191, 36, .8); }
@keyframes lgBump { 30% { transform: scale(1.18) rotate(-4deg); } 60% { transform: scale(.96) rotate(2deg); } }
@keyframes lgGem { 40% { transform: scale(1.3); color: var(--cyan); } }
.lg-hud-gem { display: inline-block; }

.lg-banner {
    position: fixed; right: 18px; bottom: 80px; z-index: 260; display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px;
    border-radius: 20px; background: linear-gradient(135deg, #2a1360, #12062e); color: #fff;
    box-shadow: inset 0 0 0 2px var(--gold), 0 20px 40px -10px #000, 0 0 40px -6px rgba(251, 191, 36, .8);
    transform: translateX(130%); transition: transform .55s var(--ease-bounce);
}
.lg-banner.show { transform: none; }
.lg-b-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 4px 0 #b45309, 0 0 20px rgba(251, 191, 36, .7); animation: lgBump .9s var(--ease-bounce) .2s; }
.lg-b-txt small { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: .16em; color: var(--gold); }
.lg-b-txt b { font-size: 18px; font-weight: 900; }

.lg-panel { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.lg-panel.open { visibility: visible; pointer-events: auto; }
.lg-backdrop { position: absolute; inset: 0; background: rgba(3, 1, 12, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.lg-panel.open .lg-backdrop { opacity: 1; }
.lg-sheet {
    position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; border-radius: 28px;
    background: linear-gradient(160deg, #1d0b42, #0a0420); box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, .35), 0 40px 90px -20px #000;
    transform: translateY(30px) scale(.96); opacity: 0; transition: transform .45s var(--ease-bounce), opacity .3s;
}
.lg-panel.open .lg-sheet { transform: none; opacity: 1; }
.lg-close { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 12px; font-weight: 900; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px var(--line); }
.lg-close:hover { background: rgba(255, 255, 255, .14); }
.lg-kicker { font-size: 11px; font-weight: 900; letter-spacing: .2em; color: var(--cyan); }
.lg-sheet h3 { font-size: 32px; font-weight: 900; margin: 4px 0 16px; }
.lg-level { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; }
.lg-lvl-badge { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; font-weight: 900; background: var(--neon); box-shadow: 0 4px 0 var(--neon-shadow), 0 0 22px var(--neon-glow); }
.lg-lvl-info { flex: 1; display: grid; gap: 6px; }
.lg-lvl-info b { font-size: 17px; font-weight: 900; }
.lg-lvl-info small { font-size: 12.5px; font-weight: 700; color: var(--dim); }
.lg-lvl-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lg-lvl-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #fbbf24, #fde047); box-shadow: 0 0 10px rgba(251, 191, 36, .7); transition: width .6s var(--ease-out); }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.lg-item { display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06); opacity: .6; transition: transform .25s var(--ease-bounce); }
.lg-item:hover { transform: translateY(-3px); }
.lg-item.on { opacity: 1; background: linear-gradient(160deg, rgba(251, 191, 36, .14), rgba(255, 45, 149, .08)); box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, .5), 0 0 24px -12px rgba(251, 191, 36, .9); }
.lg-ico { font-size: 28px; filter: grayscale(1); }
.lg-item.on .lg-ico { filter: none; }
.lg-item b { font-size: 14.5px; font-weight: 900; }
.lg-item small { font-size: 12px; font-weight: 700; color: var(--dim); line-height: 1.35; }
.lg-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-weight: 700; color: var(--dim); }
.lg-reset { font-size: 12.5px; font-weight: 800; color: var(--dim); padding: 6px 10px; border-radius: 10px; }
.lg-reset:hover { color: var(--red); background: rgba(251, 113, 133, .1); }

@media (max-width: 640px) {
    .arc-cab { padding: 16px 12px 16px; border-radius: 26px; }
    .arc-hud { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .arc-screen { height: 380px; }
    .arc-answers { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .arc-answers button { height: 54px; font-size: 16px; }
    .lg-hud { right: 12px; bottom: 12px; height: 44px; padding: 0 13px; font-size: 14px; }
    .lg-banner { right: 12px; left: 12px; bottom: 66px; }
    .floor-pop { top: 84px; }
    .lg-sheet { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-hud.bump, .lg-hud.gem .lg-hud-gem, .lg-b-ico { animation: none; }
}
.shot .lg-hud { opacity: 1; transform: none; }
