/* Tienda de recargas: tema gaming oscuro con neón, fondo animado, tarjetas 3D y ficha del juego en ventana. */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #07060E; --bg-2: #0C0A1A; --surface: #121026; --surface-2: #1B1838; --glass: rgba(18, 15, 40, .72);
  --ink: #F4F2FF; --muted: #A39FCB; --line: rgba(167, 152, 255, .16); --line-strong: rgba(167, 152, 255, .34);
  --accent: #A855F7; --accent-2: #FF2D95; --cyan: #22E1FF; --lime: #C6FF3D;
  --accent-ink: #FFFFFF; --accent-soft: rgba(168, 85, 247, .16);
  --gold: #FFC83D; --teal: #22E1FF; --green: #3DFFA2;
  --ok: #3DFFA2; --ok-soft: rgba(61, 255, 162, .12); --warn: #FFC83D; --warn-soft: rgba(255, 200, 61, .12);
  --danger: #FF5C7A; --danger-soft: rgba(255, 92, 122, .13);
  --grad: linear-gradient(100deg, #7C3AED 0%, #C026D3 50%, #FF2D95 100%);
  --grad-text: linear-gradient(90deg, #22E1FF, #A855F7 45%, #FF2D95);
  --glow: 0 0 22px rgba(168, 85, 247, .5), 0 0 60px rgba(255, 45, 149, .2);
  --shadow: 0 24px 60px rgba(0, 0, 0, .6);
  --overlay: rgba(4, 3, 12, .74);
  --f-display: "Chakra Petch", "Arial Black", system-ui, sans-serif;
  --f-body: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--accent-2); color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- Fondo animado ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.bg-fx .o1 { width: 520px; height: 520px; background: #6D28D9; top: -160px; left: -120px; }
.bg-fx .o2 { width: 460px; height: 460px; background: #DB2777; top: 30%; right: -160px; animation-duration: 22s; animation-delay: -6s; opacity: .35; }
.bg-fx .o3 { width: 380px; height: 380px; background: #0891B2; bottom: -140px; left: 30%; animation-duration: 26s; animation-delay: -12s; opacity: .3; }
.bg-fx .floor { position: absolute; left: -50%; right: -50%; bottom: -5%; height: 55%;
  background-image: linear-gradient(rgba(168, 85, 247, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, .5) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(420px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%); mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  opacity: .28; animation: floor 2.4s linear infinite; }
.bg-fx::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(90px, 60px) scale(1.15); } }
@keyframes floor { to { background-position: 0 64px; } }

/* ---------- Avisos y cabecera ---------- */
.aguayo { height: 3px; background: linear-gradient(90deg, var(--cyan), var(--accent), var(--accent-2), var(--gold), var(--cyan)); background-size: 200% 100%; animation: slide 6s linear infinite; }
.aguayo.thin { height: 2px; }
@keyframes slide { to { background-position: 200% 0; } }

.banner-test { position: relative; color: #160F00; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 6px 16px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 18px, #FFD86B 18px 36px); background-size: 51px 100%; animation: tape 1.4s linear infinite; }
@keyframes tape { to { background-position: 51px 0; } }

header.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 6, 14, .66); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand-mark { position: relative; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top a.link { position: relative; color: var(--ink); font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; font-size: 13px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color .2s, box-shadow .2s, color .2s; }
.top a.link:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px rgba(34, 225, 255, .3); }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 40px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); padding: 6px 12px; border: 1px solid rgba(34, 225, 255, .35); border-radius: 999px; background: rgba(34, 225, 255, .07); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 255, 162, .7); animation: ping 1.6s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(61, 255, 162, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 162, 0); } }
.hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 6.4vw, 72px); line-height: .98; letter-spacing: -.01em; text-transform: uppercase; margin: 18px 0 0; text-wrap: balance; }
.hero .grad-word { font-weight: 700; }
.hero h1 .grad, .hero .grad-word { background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slide 5s linear infinite; }
.hero p { color: var(--muted); font-size: 18px; margin: 18px 0 0; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.glitch { position: relative; display: inline-block; color: var(--lime); text-shadow: 0 0 18px rgba(198, 255, 61, .45); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--cyan); text-shadow: none; animation: glitch-a 3.2s infinite steps(1); }
.glitch::after { color: var(--accent-2); text-shadow: none; animation: glitch-b 3.2s infinite steps(1); }
@keyframes glitch-a { 0%, 86%, 100% { clip-path: inset(100% 0 0 0); transform: none; } 88% { clip-path: inset(10% 0 60% 0); transform: translate(-4px, -1px); } 91% { clip-path: inset(55% 0 20% 0); transform: translate(4px, 1px); } 94% { clip-path: inset(30% 0 45% 0); transform: translate(-3px, 0); } }
@keyframes glitch-b { 0%, 87%, 100% { clip-path: inset(100% 0 0 0); transform: none; } 89% { clip-path: inset(65% 0 5% 0); transform: translate(4px, 1px); } 92% { clip-path: inset(5% 0 70% 0); transform: translate(-4px, -1px); } 95% { clip-path: inset(40% 0 35% 0); transform: translate(3px, 0); } }

.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero-art .ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px dashed rgba(34, 225, 255, .35); animation: spin 26s linear infinite; }
.hero-art .ring.r2 { inset: 18%; border: 1px solid rgba(168, 85, 247, .5); border-top-color: var(--accent-2); border-right-color: transparent; animation-duration: 7s; animation-direction: reverse; }
.hero-art .halo { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 247, .55), transparent 70%); filter: blur(10px); animation: breathe 3.5s ease-in-out infinite; }
.hero-art .gem { position: relative; width: 52%; filter: drop-shadow(0 0 28px rgba(34, 225, 255, .55)) drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); animation: float 4.5s ease-in-out infinite; }
.hero-art .gem .shine { animation: shine 3.5s ease-in-out infinite; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 14px; white-space: nowrap; padding: 9px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: float 5s ease-in-out infinite; }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip.c1 { top: 10%; left: -2%; color: var(--lime); }
.chip.c2 { top: 66%; right: -6%; color: var(--cyan); animation-delay: -1.6s; }
.chip.c3 { bottom: 9%; left: 6%; color: #FF8AC6; animation-delay: -3.1s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes shine { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 16px; gap: 8px; }
  .hero-art { max-width: 300px; margin-top: 8px; }
  .chip { font-size: 12px; padding: 7px 10px; }
  .chip.c1 { left: 0; } .chip.c2 { right: 0; } .chip.c3 { left: 4%; }
}
@media (max-width: 480px) {
  .top a.link { white-space: nowrap; padding: 7px 10px; font-size: 12px; }
  .brand-name { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Marquesina de juegos ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(124, 58, 237, .08); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 28px; padding-block: 14px; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(244, 242, 255, .55); white-space: nowrap; }
.marquee-track span:nth-of-type(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee-track i { font-style: normal; color: var(--accent-2); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: 48px 8px; scroll-margin-top: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.kicker { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.section-title { position: relative; font-family: var(--f-display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: 4px 0 0; }
.section-head .small { max-width: 38ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; display: grid; gap: 10px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; overflow: hidden; transition: transform .3s, border-color .3s; }
.steps li:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.steps li::before { counter-increment: s; content: "LVL 0" counter(s); font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--lime); }
.steps li::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 247, .35), transparent 70%); }
.steps .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(168, 85, 247, .35); }
.steps .ico svg { width: 24px; height: 24px; }
.steps b { display: block; font-family: var(--f-display); font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }
.reveal.d1 { --d: .1s; } .reveal.d2 { --d: .2s; }

/* ---------- Catálogo ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding-bottom: 32px; }
.game { --c1: #444; --c2: #111; --lift: 0px; position: relative; display: flex; flex-direction: column; text-align: left; color: var(--ink); border: 0; background: var(--surface); border-radius: 20px; cursor: pointer; padding: 0; isolation: isolate;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--lift));
  transition: transform .25s ease-out, box-shadow .3s;
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.game::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--c1), transparent 30%, var(--cyan) 50%, transparent 70%, var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .35; transition: opacity .3s; animation: rotate-border 4s linear infinite; }
.game::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .13), transparent 45%); }
.game:hover, .game:focus-visible { --lift: -8px; box-shadow: 0 26px 50px rgba(0, 0, 0, .55), 0 0 40px color-mix(in srgb, var(--c1) 45%, transparent); }
.game:hover::before, .game:focus-visible::before { opacity: 1; }
.game:hover::after { opacity: 1; }
.game:active { --lift: -3px; }
@keyframes rotate-border { to { --ang: 360deg; } }
@keyframes rise { from { opacity: 0; translate: 0 40px; scale: .96; } }

.art { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-start; justify-content: space-between; padding: 14px; color: #fff; overflow: hidden; border-radius: 20px 20px 0 0;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .28), transparent 50%), linear-gradient(135deg, var(--c1), var(--c2)); }
.art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px); }
.art::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: left .7s ease; }
.game:hover .art::after { left: 130%; }
.art .mark { position: absolute; right: -8px; bottom: -26px; font-family: var(--f-display); font-weight: 700; font-size: 128px; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .45); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.game:hover .art .mark { transform: translate(-10px, -6px) scale(1.06); }
.art .art-icon { position: absolute; left: 50%; top: 52%; width: 70px; height: 70px; translate: -50% -50%; color: #fff; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .55)); animation: float 4s ease-in-out infinite; transition: scale .4s cubic-bezier(.3, 1.6, .5, 1); }
.game:nth-child(2n) .art .art-icon { animation-delay: -1.3s; }
.game:hover .art .art-icon { scale: 1.18; }
.art .art-icon svg { width: 100%; height: 100%; }
.badge { position: relative; z-index: 1; font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .22); }
.badge.region { color: var(--lime); }

/* Banners animados (public/banners.js) */
.banner { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.banner * { transform-box: fill-box; transform-origin: center; }
.art:has(.banner)::before { z-index: 0; opacity: .5; }
.art:has(.banner)::after { z-index: 1; }
.art .badges { position: relative; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.art .badge.hot { color: #fff; background: linear-gradient(100deg, rgba(255, 45, 149, .85), rgba(168, 85, 247, .85)); border-color: rgba(255, 255, 255, .35); }
.art .art-shade { position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; background: linear-gradient(transparent, rgba(7, 6, 14, .55)); pointer-events: none; }
.game:hover .banner .bn-float { animation-duration: 2.2s; }
.bn-float { animation: bn-float 4s ease-in-out infinite; }
.bn-glow { animation: bn-glow 3.2s ease-in-out infinite; }
.bn-twinkle { animation: bn-twinkle 2.4s ease-in-out infinite; }
.bn-spin-slow { animation: spin 40s linear infinite; }
.bn-flicker { animation: bn-flicker 1.6s ease-in-out infinite; transform-origin: bottom; }
.bn-rise { animation: bn-rise 3.6s linear infinite; }
.bn-sway { animation: bn-sway 5s ease-in-out infinite; }
.bn-drop { animation: bn-drop 6s ease-in-out infinite; }
.bn-scan { animation: bn-scan 5s ease-in-out infinite; }
.banner .d1 { animation-delay: -.8s; } .banner .d2 { animation-delay: -1.6s; } .banner .d3 { animation-delay: -2.4s; } .banner .d4 { animation-delay: -3.2s; }
@keyframes bn-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes bn-glow { 0%, 100% { opacity: .6; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes bn-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes bn-flicker { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.12); } }
@keyframes bn-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-190px); opacity: 0; } }
@keyframes bn-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes bn-drop { 0% { transform: translate(-6px, -14px) rotate(-4deg); } 50% { transform: translate(6px, 10px) rotate(4deg); } 100% { transform: translate(-6px, -14px) rotate(-4deg); } }
@keyframes bn-scan { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(34px, 18px); } 70% { transform: translate(-10px, 30px); } }
.game .lema { font-size: 14px; color: var(--muted); margin-top: -4px; }
.mhead .banner { z-index: 0; }
.mhead:has(.banner)::before, .mhead:has(.banner)::after { z-index: 0; }
.mhead:has(.banner)::after { height: 75%; background: linear-gradient(transparent, rgba(7, 6, 14, .82)); }

.game .info { padding: 14px 16px 16px; display: grid; gap: 10px; }
.game .gname { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.tag.voucher { color: var(--gold); }
.eta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.eta svg { width: 14px; height: 14px; color: var(--lime); }
.small { font-size: 13px; color: var(--muted); }
.from { font-size: 13px; color: var(--muted); }
.from b { display: block; font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.go { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.go svg { width: 20px; height: 20px; }
.game:hover .go { transform: translateX(4px) rotate(-6deg); }
.game .divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* Esqueleto mientras carga */
.skeleton { border-radius: 20px; height: 300px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------- Ventana del juego ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 40; display: flex; justify-content: center; align-items: center; padding: 16px; animation: fade .25s ease; }
.modal { --c1: #444; --c2: #111; position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface) 30%); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow), 0 0 80px color-mix(in srgb, var(--c1) 30%, transparent); width: min(680px, 100%); max-height: calc(100% - 16px); overflow: auto; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.92); } }
.mhead { position: relative; min-height: 130px; padding: 22px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff; overflow: hidden;
  background: radial-gradient(100% 120% at 90% 0%, rgba(255, 255, 255, .25), transparent 50%), linear-gradient(135deg, var(--c1), var(--c2)); }
.mhead::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px); }
.mhead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(transparent, rgba(0, 0, 0, .35)); }
.mhead .mark { position: absolute; right: 50px; top: -22px; font-family: var(--f-display); font-weight: 700; font-size: 150px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .35); }
.mhead .gname { position: relative; z-index: 1; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 5vw, 32px); line-height: 1; text-transform: uppercase; }
.mhead .badges { position: relative; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; cursor: pointer; font-size: 22px; line-height: 1; transition: transform .3s, background .2s; }
.close:hover { transform: rotate(90deg); background: var(--accent-2); }
.modal-body { padding: 20px; display: grid; gap: 18px; }
.modal-body > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.modal-body > :nth-child(2) { animation-delay: .06s; } .modal-body > :nth-child(3) { animation-delay: .12s; }
.modal-body > :nth-child(4) { animation-delay: .18s; } .modal-body > :nth-child(5) { animation-delay: .24s; }
.modal-body > :nth-child(n+6) { animation-delay: .3s; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .35); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 225, 255, .18), 0 0 20px rgba(34, 225, 255, .2); }
.field input::placeholder { color: rgba(163, 159, 203, .6); }
.field input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 92, 122, .18); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.hint { font-size: 13px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }

.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding-top: 6px; }
.pack { position: relative; display: grid; gap: 4px; justify-items: start; border: 1.5px solid var(--line-strong); background: rgba(0, 0, 0, .3); border-radius: 14px; padding: 14px 12px 12px; cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), border-color .2s, box-shadow .2s, background .2s; }
.pack:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, .7); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack .pico { width: 26px; height: 26px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(34, 225, 255, .5)); transition: transform .3s; }
.pack .pico svg { width: 100%; height: 100%; }
.pack .amt { font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.15; text-transform: uppercase; }
.pack .price { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--muted); }
.pack .hot { position: absolute; top: -10px; right: 8px; background: linear-gradient(90deg, #FF7A00, var(--accent-2)); color: #fff; font-family: var(--f-display); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 3px 7px; box-shadow: 0 0 14px rgba(255, 45, 149, .6); animation: pulse-hot 1.6s ease-in-out infinite; }
@keyframes pulse-hot { 50% { transform: scale(1.08); } }
.pack .check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all .2s; }
.pack .check svg { width: 12px; height: 12px; opacity: 0; transform: scale(.4); transition: all .25s cubic-bezier(.3, 1.6, .5, 1); }
.pack:has(input:checked) { border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; box-shadow: var(--glow); transform: translateY(-3px); }
.pack:has(input:checked) .price { color: var(--ink); }
.pack:has(input:checked) .pico { transform: scale(1.15) rotate(-8deg); color: var(--lime); filter: drop-shadow(0 0 10px rgba(198, 255, 61, .7)); }
.pack:has(input:checked) .check { background: var(--lime); border-color: var(--lime); color: #0B1000; }
.pack:has(input:checked) .check svg { opacity: 1; transform: scale(1); }
.pack:has(input:checked) .hot { top: -10px; }
.pack:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pack.off { opacity: .4; cursor: not-allowed; filter: grayscale(1); }
.pack.off:hover { transform: none; border-color: var(--line-strong); }

.player-ok { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); border: 1px solid rgba(61, 255, 162, .4); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.player-ok::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.err { color: var(--danger); font-size: 14px; font-weight: 600; }
.err:not(:empty) { animation: shake .4s; }
.buyrow { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin: 0 -20px -20px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: rgba(18, 16, 38, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.total { font-family: var(--f-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: grid; }
.total b { font-family: var(--f-display); font-size: 28px; letter-spacing: 0; text-transform: none; line-height: 1.1; color: var(--ink); text-shadow: 0 0 18px rgba(168, 85, 247, .6); }

/* ---------- Botones ---------- */
.btn { position: relative; border: 0; border-radius: 12px; padding: 12px 22px; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; transition: transform .15s, box-shadow .25s, border-color .2s, color .2s, background-color .2s; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn.primary { color: var(--accent-ink); background: var(--grad); background-size: 160% 100%; box-shadow: var(--glow); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sweep 3s ease-in-out infinite; }
.btn.primary:hover:not(:disabled) { box-shadow: 0 0 30px rgba(168, 85, 247, .75), 0 0 80px rgba(255, 45, 149, .35); transform: translateY(-2px); }
@keyframes sweep { 0%, 55% { left: -75%; } 100% { left: 150%; } }
.btn.big { padding: 16px 28px; font-size: 16px; }
.btn.go-arrow::before { content: ""; order: 2; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.btn.go-arrow:hover::before { transform: translateX(4px); }
.btn.ghost { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-strong); color: var(--ink); }
.btn.ghost:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px rgba(34, 225, 255, .25); }
.btn.small { padding: 7px 14px; font-size: 12px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:disabled::after { animation: none; }

/* ---------- Página del pedido ---------- */
.order { max-width: 580px; margin: 32px auto 56px; display: grid; gap: 16px; }
.card { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 14px; color: var(--ink); text-decoration: none; animation: rise .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.order > .card:nth-child(2) { animation-delay: .08s; } .order > .card:nth-child(3) { animation-delay: .16s; } .order > .card:nth-child(4) { animation-delay: .24s; }
.order.live > .card { animation: none; }
a.card { transition: transform .25s, border-color .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.card strong { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.card.win { border-color: rgba(61, 255, 162, .5); box-shadow: 0 0 40px rgba(61, 255, 162, .2); }
.card.win::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(80% 60% at 50% 0%, rgba(61, 255, 162, .14), transparent 70%); pointer-events: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 13px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-2); border: 1px solid var(--line-strong); width: fit-content; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.ok { background: var(--ok-soft); border-color: rgba(61, 255, 162, .45); color: var(--ok); } .status-pill.ok .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-pill.wait { background: var(--warn-soft); border-color: rgba(255, 200, 61, .45); color: var(--warn); } .status-pill.wait .dot { background: var(--warn); animation: blink 1s ease-in-out infinite; }
.status-pill.bad { background: var(--danger-soft); border-color: rgba(255, 92, 122, .45); color: var(--danger); } .status-pill.bad .dot { background: var(--danger); }
@keyframes blink { 50% { opacity: .25; } }
.state-msg { margin: 0; font-size: 17px; }

.qr { justify-items: center; text-align: center; gap: 12px; }
.qr-frame { position: relative; width: min(290px, 100%); padding: 14px; border-radius: 18px; }
.qr-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang), var(--cyan), var(--accent), var(--accent-2), var(--cyan)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotate-border 3s linear infinite; }
.qr-frame img { display: block; width: 100%; border-radius: 10px; background: #fff; padding: 8px; }
.qr-frame .scan { position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 14px 3px rgba(34, 225, 255, .7); animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { to { top: calc(100% - 17px); } }
.qr .total { justify-items: center; }
.timer { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.timer .mono { font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--gold); background: var(--warn-soft); border: 1px solid rgba(255, 200, 61, .35); border-radius: 10px; padding: 2px 10px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.timeline li { display: grid; gap: 8px; font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timeline li::before { content: ""; height: 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: linear-gradient(90deg, var(--ok), var(--cyan)); border-color: transparent; box-shadow: 0 0 12px rgba(61, 255, 162, .5); }
.timeline li.now { color: var(--gold); }
.timeline li.now::before { border-color: transparent; background: repeating-linear-gradient(-45deg, var(--gold) 0 8px, #8A6400 8px 16px); background-size: 22.6px 100%; box-shadow: 0 0 12px rgba(255, 200, 61, .5); animation: tape .8s linear infinite; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); font-family: var(--f-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.code-box { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(198, 255, 61, .5); border-radius: 12px; padding: 12px 14px; flex-wrap: wrap; }
.code-box code { font-family: var(--f-mono); font-size: 17px; font-weight: 700; color: var(--lime); text-shadow: 0 0 12px rgba(198, 255, 61, .4); word-break: break-all; }
.test-box { border: 2px dashed var(--warn); border-radius: 14px; padding: 14px; display: grid; gap: 8px; width: 100%; background: var(--warn-soft); }

footer { border-top: 1px solid var(--line); background: rgba(7, 6, 14, .6); margin-top: 32px; }
footer .wrap { padding-block: 24px; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
footer strong { color: var(--ink); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer .foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
footer .foot-links a:hover { color: var(--cyan); }

/* Marca: logotipo CERO + LAG y eslogan */
.brand-name .lag { background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-strong); white-space: nowrap; }
@media (max-width: 640px) { .brand-tag { display: none; } }
.top a.link .short { display: none; }
@media (max-width: 480px) {
  .top a.link .long { display: none; }
  .top a.link .short { display: inline; }
  .top a.link { padding: 8px 10px; }
}
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* Portada enfocada en vender */
.top a.link.cta-link { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.top a.link.cta-link:hover { color: #fff; border-color: transparent; }

.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.qbuy { position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); cursor: pointer; text-align: left; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.qbuy:hover, .qbuy:focus-visible { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.qbuy .thumb { position: relative; width: 64px; height: 48px; border-radius: 10px; overflow: hidden; }
.qbuy .qname { display: grid; gap: 2px; min-width: 0; }
.qbuy .qname b { font-family: var(--f-display); font-size: 16px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.qbuy .qname span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qbuy .qprice { font-family: var(--f-mono); font-weight: 700; font-size: 15px; color: var(--lime); white-space: nowrap; }

.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.perk { display: grid; gap: 8px; align-content: start; padding: 20px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.perk .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--lime); border: 1px solid rgba(168, 85, 247, .35); }
.perk .ico svg { width: 22px; height: 22px; }
.perk b { font-family: var(--f-display); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.perk span:last-child { color: var(--muted); font-size: 15px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--glass); padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-family: var(--f-display); font-size: 22px; color: var(--cyan); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.final-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 26px; border-radius: 22px; border: 1px solid var(--line-strong); background: radial-gradient(120% 140% at 0% 0%, rgba(168, 85, 247, .32), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255, 45, 149, .25), transparent 55%), var(--surface); }
.final-box .section-title { margin: 0; }
.final-box p { margin: 6px 0 0; color: var(--muted); }

.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; display: none; justify-content: center; align-items: center; padding: 15px 20px; border-radius: 14px; background: var(--grad); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: var(--glow), 0 14px 30px rgba(0, 0, 0, .5); }
@media (max-width: 760px) { .sticky-cta.on { display: flex; } footer { padding-bottom: 76px; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-2); color: var(--ink); border: 1px solid var(--accent); padding: 12px 20px; border-radius: 14px; font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: .03em; z-index: 60; box-shadow: var(--glow); animation: toast-in .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.9); } }

/* Confeti al entregar el pedido */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; left: 50%; top: 38%; width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: confetti var(--t, 1.6s) cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; translate: none; }
  .game { transform: none; }
}
