/* ============ Lootazo · sistema visual ============ */
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-ext.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0a0a0f;
  --surface: #13131b;
  --surface-2: #1a1a25;
  --surface-3: #232331;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f3f8;
  --text-2: #cfcdd9;
  --muted: #9b99ab;
  --accent: #c6ff3d;
  --accent-ink: #0a0a0f;
  --hot: #ff3d7f;
  --violet: #a48bff;
  --gold: #ffc83d;
  --radius: 18px;
  --display: 'Unbounded', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Desaceleración exponencial (ease-out-expo): todo frena suave, nada rebota */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* Sombras con desplazamiento y desenfoque: profundidad real, no halos */
  --shadow-1: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 24px -12px rgba(0, 0, 0, .6);
  --shadow-2: 0 4px 10px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .8);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
s { color: var(--muted); text-decoration-thickness: 1.5px; }
svg { flex: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.link { text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Transición suave entre páginas */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Aparición al entrar en pantalla. "backwards" suelta la animación al acabar y el hover sigue mandando */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.js .reveal { opacity: 0; }
.js .reveal.is-in { opacity: 1; animation: rise 1s var(--ease) backwards; animation-delay: var(--d, 0ms); }

/* ============ Botones y chips ============ */
button, .btn {
  font: 700 1rem/1 var(--body); cursor: pointer; border: 0; border-radius: 12px; padding: 0 22px; height: 50px;
  background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
button:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(198, 255, 61, .55); }
button:active, .btn:active { transform: translateY(0) scale(.98); transition-duration: .15s; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--text-2); font-weight: 600; font-size: .9rem; background: transparent; cursor: pointer;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), transform .5s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.more { color: var(--accent); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.more svg { transition: transform .6s var(--ease); }
.more:hover svg { transform: translate(3px, 0); }

/* ============ Cabecera ============ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 10, 15, .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.12rem/1 var(--display); letter-spacing: .06em; flex: none; }
.logo .gem { width: 28px; height: 28px; transition: transform .8s var(--ease); }
.logo:hover .gem { transform: rotate(-10deg) scale(1.08); }
.logo-sm { font-size: 1rem; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem; white-space: nowrap; transition: color .4s var(--ease), background-color .4s var(--ease); }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-item.is-active { color: var(--text); }
.nav-item.is-active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: -14px; height: 2px; border-radius: 2px; background: var(--accent); }
.search { position: relative; margin-left: auto; flex: 0 1 300px; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input, .big-search input, .sub-row input, .alert-euros input {
  width: 100%; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .4s var(--ease), box-shadow .5s var(--ease), background-color .4s var(--ease);
}
.search input { padding-left: 40px; }
.search input:focus, .big-search input:focus, .sub-row input:focus, .alert-euros input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198, 255, 61, .14); background: var(--surface-2); }
::placeholder { color: #8f8da0; }

/* Menú de móvil: botón ☰ que se convierte en ✕ y despliega las secciones bajo la cabecera */
.mnav { display: none; flex: none; }
.mnav-btn { list-style: none; position: relative; display: grid; place-items: center; width: 44px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.mnav-btn::-webkit-details-marker { display: none; }
.mnav-btn svg { position: absolute; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.mnav-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.mnav[open] .mnav-btn { background: var(--surface-2); border-color: rgba(255, 255, 255, .3); }
.mnav[open]:not(.is-closing) .mnav-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.mnav[open]:not(.is-closing) .mnav-close { opacity: 1; transform: none; }
.mnav-panel { position: fixed; z-index: 45; top: var(--header-h); left: 0; right: 0; display: grid; gap: 4px; padding: 10px max(16px, env(safe-area-inset-left)) 18px; background: var(--surface); border-bottom: 1px solid var(--line-strong); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .8); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; transform-origin: top center; }
.mnav[open] .mnav-panel { animation: menu-in .5s var(--ease) both; }
.mnav.is-closing .mnav-panel { animation: menu-out .28s var(--ease-io) both; }
.scrim { position: fixed; z-index: 29; inset: 0; background: rgba(5, 5, 8, .6); animation: fade-in .4s var(--ease) both; }
/* Dentro de la cabecera (que tiene backdrop-filter) lo fijo se mide desde la cabecera: altura explícita */
.mnav .scrim { z-index: 44; inset: auto 0; top: var(--header-h); height: 100dvh; }
.is-closing > .scrim { animation: fade-out .28s var(--ease-io) both; }
/* En escritorio el panel de filtros es un desplegable: sin oscurecer la página */
@media (min-width: 641px) { .fpanel .scrim { background: transparent; animation: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-8px); } }
.mnav-item { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 12px; border-radius: 14px; font-weight: 700; font-size: 1.05rem; color: var(--text-2); transition: background-color .4s var(--ease), color .4s var(--ease); }
.mnav[open] .mnav-item { animation: rise .6s var(--ease) backwards; animation-delay: calc(60ms + var(--i) * 35ms); }
.mnav-item:hover, .mnav-item:focus-visible { background: var(--surface-2); color: var(--text); }
.mnav-item.is-active { background: rgba(198, 255, 61, .1); color: var(--accent); }
.mnav-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); color: var(--text); }
.mnav-item.is-active .mnav-mark { background: var(--accent); color: var(--accent-ink); }
.mnav-item > span:nth-child(2) { flex: 1; }
.mnav-go { color: var(--muted); }

/* ============ Hero: el lootazo de hoy ============ */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); isolation: isolate; }
/* El fondo es el arte del juego destacado, muy difuminado: cada día la portada tiene el color de su lootazo */
.hero-ambient { position: absolute; inset: -10%; z-index: -1; opacity: .42; }
.hero-ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.4); transform: scale(1.1); }
.hero-ambient::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 15, .2), var(--bg) 92%), linear-gradient(90deg, var(--bg) 8%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.lead { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.14rem); max-width: 54ch; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: .95rem; }
.facts strong { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.facts-stores { display: inline-flex; gap: 14px; color: var(--text-2); }
.facts-stores svg { width: 19px; height: 19px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.feature { position: relative; display: block; padding: 18px 18px 0 0; }
.feature-stack .fs { position: absolute; width: 58%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-2); opacity: .55; transition: transform 1s var(--ease), opacity .8s var(--ease); }
.fs1 { top: 0; right: 0; transform: rotate(4deg); }
.fs2 { top: 34px; right: -26px; transform: rotate(9deg); opacity: .3; }
.feature:hover .fs1 { transform: rotate(6deg) translate(10px, -6px); opacity: .7; }
.feature:hover .fs2 { transform: rotate(12deg) translate(18px, -4px); opacity: .45; }
.feature-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); transition: transform .8s var(--ease), box-shadow .8s var(--ease); animation: feature-in 1.2s var(--ease) .15s backwards; }
@keyframes feature-in { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(6px); } }
.feature:hover .feature-card { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(0, 0, 0, .4), 0 36px 64px -24px rgba(0, 0, 0, .9); }
.feature-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(19, 19, 27, .9)); }
.feature-tag { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 7px 11px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 800 .74rem/1 var(--display); letter-spacing: .02em; box-shadow: var(--shadow-1); }
.feature-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 16px 20px 20px; margin-top: -40px; position: relative; }
.feature-title { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.feature-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.feature-price { display: grid; justify-items: end; gap: 4px; flex: none; }
.feature-price .badge { position: static; }
.feature-price s { font-size: .9rem; }
.feature-price strong { font: 800 2rem/1 var(--display); color: var(--accent); letter-spacing: -.02em; }

/* ============ Cinta de últimas bajadas ============ */
.ticker { display: flex; align-items: center; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 14px 20px; font: 700 .76rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); border-right: 1px solid var(--line); background: var(--surface); z-index: 1; }
.ticker-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker-dup { display: contents; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; white-space: nowrap; border-right: 1px solid var(--line); transition: background-color .4s var(--ease); }
.tick:hover { background: var(--surface-2); }
.tick-pct { font-weight: 800; color: var(--hot); font-size: .85rem; }
.tick-title { font-weight: 600; font-size: .92rem; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.tick-price { color: var(--accent); font-weight: 800; font-size: .92rem; }

/* ============ Secciones y tarjetas ============ */
.rail { padding-top: clamp(44px, 6vw, 72px); }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.st-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
/* En las secciones, filas siempre completas: 4 columnas × 2 filas */
.rail .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Con menos de 4 (p. ej. los gratis de la semana) ocupan todo el ancho en vez de dejar hueco */
.rail-fit .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: rgba(198, 255, 61, .35); box-shadow: var(--shadow-2); }
.card-media, .feature-media { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 4h16l6 8-14 17L2 12z' fill='%23c6ff3d' fill-opacity='.12'/%3E%3C/svg%3E") center / 28% no-repeat, radial-gradient(circle at 50% 40%, #22222f, var(--surface-2)); }
.card-media { position: relative; aspect-ratio: 460 / 215; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.img-missing { opacity: 0; }
.badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 9px; background: var(--hot); color: var(--accent-ink); font: 800 .82rem/1 var(--display); letter-spacing: -.01em; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.badge-free { background: var(--accent); }
.badge-next { background: rgba(10, 10, 15, .82); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(164, 139, 255, .6); font-size: .74rem; backdrop-filter: blur(6px); }
.badge-low { left: auto; right: 10px; background: var(--gold); }
.card-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; flex: 1; }
.card-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .78rem; font-weight: 600; min-width: 0; }
.plat, .card-store { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.plat { padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.card-store { overflow: hidden; text-overflow: ellipsis; }
.card-title { font: 600 1rem/1.3 var(--body); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-price s { font-size: .85rem; }
.card-price strong { font: 800 1.2rem/1 var(--display); color: var(--accent); }
.card-note { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--gold); font-weight: 600; }

/* ============ Plataformas con su logo y su color ============ */
.plat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plat-tile { --c: #fff; position: relative; display: grid; gap: 4px; padding: 22px 22px 20px; min-height: 168px; align-content: end; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 62%), var(--surface);
  transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease); }
.plat-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: var(--shadow-2); }
.plat-windows { --c: #0078d4; } .plat-switch { --c: #e60012; } .plat-playstation { --c: #0070d1; } .plat-xbox { --c: #107c10; }
.plat-logo { position: absolute; top: 20px; left: 20px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--c); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7); transition: transform .8s var(--ease); }
.plat-tile:hover .plat-logo { transform: rotate(-6deg) scale(1.05); }
.plat-name { font: 700 1.1rem/1.2 var(--display); }
.plat-note { color: var(--muted); font-size: .9rem; font-weight: 600; }
.plat-arrow { position: absolute; top: 22px; right: 20px; color: var(--muted); transition: transform .6s var(--ease), color .4s var(--ease); }
.plat-tile:hover .plat-arrow { transform: translate(3px, -3px); color: var(--text); }
.plat-tile.is-soon .plat-logo { filter: grayscale(.4); opacity: .75; }
.soon-strip { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px 20px; border-radius: 16px; border: 1px dashed var(--line-strong); color: var(--text-2); font-size: .95rem; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.soon-strip:hover { border-color: rgba(164, 139, 255, .6); background: rgba(164, 139, 255, .05); }
.soon-strip strong { color: var(--violet); }
.soon-strip > span:nth-child(2) { flex: 1; }
.soon-strip-icons { display: inline-flex; gap: 10px; color: var(--violet); }

/* ============ Banda de PS Plus ============ */
.band { margin-top: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3.4vw, 44px); border-radius: 26px; border: 1px solid rgba(0, 112, 209, .45); background: radial-gradient(130% 120% at 0% 0%, rgba(0, 112, 209, .38), transparent 60%), var(--surface); overflow: hidden; }
.band h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.45rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.band h2 svg { color: #fff; }
.band-games { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-weight: 600; }
.band-games li::before { content: '◆'; color: var(--accent); font-size: .6em; margin-right: 8px; vertical-align: .25em; }
.countdown { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.band .countdown { margin-bottom: 18px; }
.band .more { margin-top: 16px; }
.band-covers { display: flex; justify-content: center; padding: 10px 0 18px; }
.band-covers img { --i: 0; width: min(190px, 30%); aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 3px solid var(--surface); box-shadow: var(--shadow-2); margin-left: -8%; transform: rotate(calc((var(--i) - 1) * 6deg)) translateY(calc(var(--i) * 8px - 8px)); transition: transform 1s var(--ease); }
.band-covers img:first-child { margin-left: 0; }
.band:hover .band-covers img { transform: rotate(calc((var(--i) - 1) * 9deg)) translateY(-10px); }

/* ============ Formularios de avisos ============ */
.sub-inline { display: grid; gap: 10px; max-width: 500px; }
.sub-row { display: flex; gap: 8px; }
.sub-row input { height: 50px; }
.sub-row button { height: 50px; flex: none; }
.sub-consent { display: inline-flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.sub-consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.hp { position: absolute; left: -9999px; }
.sub-form { display: grid; gap: 12px; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); }
.sub-title { display: flex; align-items: center; gap: 10px; font: 700 1.1rem/1.2 var(--display); }
.sub-title svg { color: var(--accent); }
.sub-text { color: var(--text-2); font-size: .93rem; }
.sub-topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.sub-topics label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.tg { justify-self: start; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: #6ec6ff; }
.tg:hover { text-decoration: underline; }
.sub-wrap { max-width: 580px; margin: 56px auto 0; }

/* ============ Páginas interiores ============ */
.page { padding: clamp(28px, 5vw, 52px) 0 24px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.with-mark > svg { display: inline-block; width: .85em; height: .85em; margin-right: .28em; vertical-align: -.08em; color: var(--accent); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.upcoming { margin-bottom: 40px; }
.upcoming .section-title { margin-bottom: 18px; }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-title { font: 700 1.2rem/1.3 var(--display); margin-bottom: 8px; }
.footnote { margin-top: 28px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }

/* Filtros: arriba lo activo; el resto en un panel */
.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.count { color: var(--muted); }
.count strong { color: var(--text); font-weight: 800; }
.filter-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip-active { background: rgba(198, 255, 61, .12); border-color: rgba(198, 255, 61, .45); color: var(--accent); }
.chip-active:hover { color: var(--accent); border-color: var(--accent); }
.clear { color: var(--muted); font-size: .9rem; font-weight: 600; padding: 0 6px; text-decoration: underline; text-underline-offset: 3px; }
.clear:hover { color: var(--text); }
.fpanel { position: relative; }
.fbtn { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .93rem; cursor: pointer; user-select: none; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.fbtn::-webkit-details-marker { display: none; }
.fbtn:hover, .fpanel[open] .fbtn { border-color: rgba(255, 255, 255, .32); background: var(--surface-2); }
.fbtn-n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 800; }
.fpanel-body { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(400px, calc(100vw - 40px)); display: grid; gap: 18px; padding: 18px 20px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); transform-origin: top right; }
.fpanel[open] .fpanel-body { animation: pop-in .45s var(--ease) both; }
.fpanel.is-closing .fpanel-body { animation: pop-out .26s var(--ease-io) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
.fpanel-head { display: flex; align-items: center; justify-content: space-between; }
.fpanel-head p { font: 700 1rem/1 var(--display); }
.fclose { height: 36px; width: 36px; padding: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.fclose:hover { background: var(--surface-3); color: var(--text); box-shadow: none; transform: none; }
.fgroup-title { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }

/* Búsqueda */
.big-search { position: relative; display: flex; gap: 8px; max-width: 640px; margin-top: 18px; }
.big-search > svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); }
.big-search input { height: 54px; padding-left: 46px; font-size: 1.05rem; }
.big-search button { height: 54px; }
.block { margin-top: clamp(32px, 5vw, 48px); }
.block > .section-title { margin-bottom: 16px; }
.block-note { margin: -6px 0 16px; font-size: .9rem; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-item { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 18px; align-items: center; padding: 10px 18px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .4s var(--ease), transform .6s var(--ease), background-color .4s var(--ease); }
.live-item:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateX(3px); }
.live-img { aspect-ratio: 460 / 215; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.live-img img { width: 100%; height: 100%; object-fit: cover; }
.live-title { display: grid; gap: 4px; font-weight: 600; }
.live-title small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem; }
.live-price { display: grid; justify-items: end; }
.live-price s { font-size: .82rem; }
.live-price strong { font: 800 1.1rem/1 var(--display); color: var(--accent); }
.live-go { color: var(--muted); }
.out-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.out-link { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .6s var(--ease); }
.out-link span { flex: 1; }
.out-link:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.out-go { color: var(--muted); }

/* Banda de acceso a una landing (p. ej. GTA VI) */
.promo-band { position: relative; display: flex; align-items: center; gap: 18px; min-height: 120px; margin: 8px 0 28px; padding: 22px 26px; border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255, 79, 154, .5); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.promo-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transition: transform 1.4s var(--ease); }
.promo-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 10, 36, .95) 0%, rgba(58, 26, 92, .75) 45%, rgba(255, 79, 154, .25)); }
.promo-band:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.promo-band:hover img { transform: scale(1.04); }
.promo-band span { flex: 1; display: grid; gap: 6px; }
.promo-band strong { font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.1 var(--display); color: #ffd36e; }
.promo-band small { color: #ffe3ef; font-size: .95rem; font-weight: 600; }
.promo-band > svg { color: #ffd36e; }
.promo-gta { margin-top: clamp(28px, 4vw, 44px); margin-bottom: 0; }

/* Fichas de consola en la búsqueda: la primera grande, a todo el ancho */
.cat-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-card { position: relative; display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 9; isolation: isolate; transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease); }
.game-card.is-lead { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(16, 124, 16, .7); box-shadow: var(--shadow-2); }
.gc-art { position: absolute; inset: 0; z-index: -1; }
.gc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.game-card:hover .gc-art img { transform: scale(1.04); }
.gc-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 10, 15, .92)); }
.gc-info { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 18px 20px; }
.gc-title { font: 700 1.15rem/1.2 var(--display); text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.is-lead .gc-title { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.is-lead .gc-info { padding: 26px 28px; }
.gc-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.gc-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gc-price strong { font: 800 1.3rem/1 var(--display); color: var(--accent); }
.gc-price .more { margin-left: auto; }
.editions { margin-top: 10px; }
.ed-poster { aspect-ratio: 1; width: 64px; }
.editions .live-item { grid-template-columns: 64px 1fr auto auto; }

/* Tendencias: ranking de más jugados */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-item { display: grid; grid-template-columns: 52px 58px 148px minmax(0, 1fr) auto 120px; align-items: center; gap: 16px; padding: 10px 18px 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease); }
.rank-item:hover { transform: translateX(4px); border-color: var(--line-strong); background: var(--surface-2); }
.rank-list li:nth-child(-n+3) .rank-item { border-color: rgba(198, 255, 61, .3); }
.rank-n { font: 800 1.7rem/1 var(--display); text-align: center; color: var(--text); font-variant-numeric: tabular-nums; }
.rank-list li:nth-child(-n+3) .rank-n { color: var(--accent); }
.move { display: inline-flex; align-items: center; justify-content: center; gap: 2px; height: 26px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 800; }
.move-up { color: var(--accent); background: rgba(198, 255, 61, .1); }
.move-down { color: var(--hot); background: rgba(255, 61, 127, .1); }
.move-new { color: var(--violet); background: rgba(164, 139, 255, .12); font-size: .7rem; }
.rank-img { aspect-ratio: 460 / 215; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.rank-img img { width: 100%; height: 100%; object-fit: cover; }
.rank-title { display: grid; gap: 3px; font-weight: 700; min-width: 0; }
.rank-title, .rank-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-title small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.rank-players { display: grid; justify-items: end; }
.rank-players b { font: 800 1.05rem/1 var(--display); font-variant-numeric: tabular-nums; }
.rank-players small { color: var(--muted); font-size: .76rem; }
.rank-price { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.rank-price strong, .tr-free { font: 800 1.05rem/1 var(--display); color: var(--accent); }
.tr-badge { position: static; font-size: .72rem; padding: 4px 6px; }

/* Portada: fila de lo más jugado */
.trend-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.trend-strip a { position: relative; display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .5s var(--ease); }
.trend-strip a:hover { transform: translateY(-4px); border-color: rgba(198, 255, 61, .35); }
.ts-n { position: absolute; z-index: 1; top: 18px; left: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 800 1rem/1 var(--display); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.ts-img { aspect-ratio: 460 / 215; border-radius: 11px; overflow: hidden; background: var(--surface-2); }
.ts-img img { width: 100%; height: 100%; object-fit: cover; }
.ts-name { font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-strip small { color: var(--muted); font-size: .8rem; font-weight: 600; margin-top: -4px; }

/* Próximamente */
.soon .page-head { max-width: 720px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 900px; }
.soon-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.soon-item > span:last-child { display: grid; gap: 2px; }
.soon-item .muted { font-size: .9rem; }
.soon-item.is-focus { border-color: rgba(164, 139, 255, .6); }
.soon-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: rgba(164, 139, 255, .12); color: var(--violet); flex: none; }
.soon .sub-wrap { margin-left: 0; }

.message { text-align: center; max-width: 720px; padding-top: clamp(56px, 10vw, 120px); }
.message .lead { margin: 14px auto 0; }
.message h1 { font-size: clamp(2rem, 5vw, 3rem); }
.message .btn { margin-top: 28px; }
.msg-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: rgba(198, 255, 61, .1); color: var(--accent); margin-bottom: 22px; }

/* PS Plus */
.psp-dates { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 18px; font-weight: 600; }
.psp-dates > span { display: inline-flex; align-items: center; gap: 7px; }
.psp-sub { margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(0, 112, 209, .45); max-width: 560px; }
.psp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 18px; }
.psp-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease); }
.psp-card:hover { transform: translateY(-4px); border-color: rgba(0, 112, 209, .6); box-shadow: var(--shadow-2); }
.psp-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.psp-card div { display: grid; gap: 6px; padding: 16px 18px 20px; }
.psp-card h2 { font-size: 1.1rem; }

/* ============ Ficha de juego ============ */
.pd-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 12vw, 160px) 0 clamp(28px, 4vw, 44px); min-height: min(64vh, 620px); display: flex; align-items: flex-end; }
.pd-backdrop { position: absolute; inset: 0; z-index: -1; }
.pd-backdrop img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.pd-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 15, .35) 0%, rgba(10, 10, 15, .45) 45%, var(--bg) 100%), linear-gradient(90deg, rgba(10, 10, 15, .75), transparent 70%); }
.pd-hero-inner { animation: rise 1s var(--ease) .1s backwards; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .9rem; margin-bottom: 16px; }
.crumbs a:hover { color: var(--text); }
.pd-hero h1 { font-size: clamp(2rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; max-width: 18ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; }
.pd-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; font-weight: 600; backdrop-filter: blur(8px); }
.pd-fact { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .9rem; font-weight: 600; }
.pd-scores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.mc { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; }
.mc b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; font: 800 1rem/1 var(--display); color: #0a0a0f; }
.mc-good b { background: #66cc33; } .mc-mid b { background: #ffcc33; } .mc-bad b { background: #ff6874; }
.pd-review { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.pd-review svg { color: var(--gold); }
.pd-review small { color: var(--muted); font-weight: 600; }
.pegi { display: grid; place-items: center; height: 30px; padding: 0 9px; border-radius: 7px; border: 1.5px solid var(--text-2); font-weight: 800; font-size: .78rem; }

.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(8px, 2vw, 24px); }
.pd-desc { font-size: 1.1rem; line-height: 1.65; color: var(--text-2); max-width: 66ch; }
.pd-block { margin-top: clamp(32px, 4vw, 48px); }
.pd-block > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 16px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.g-item { position: relative; height: auto; padding: 0; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: var(--surface-2); aspect-ratio: 16 / 9; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.g-item:hover { transform: none; box-shadow: none; }
.g-item:hover img { transform: scale(1.05); }
.g-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 10, 15, .35); transition: background-color .5s var(--ease); }
.g-play svg { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-2); transition: transform .6s var(--ease); }
.g-trailer:hover .g-play { background: rgba(10, 10, 15, .15); }
.g-trailer:hover .g-play svg { transform: scale(1.08); }

.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.offers li { display: grid; grid-template-columns: minmax(150px, auto) 1fr auto auto; gap: 16px; align-items: center; min-height: 64px; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.offers li.is-best { border-color: rgba(198, 255, 61, .45); background: linear-gradient(90deg, rgba(198, 255, 61, .07), transparent 60%), var(--surface); }
.offers li.is-off { opacity: .5; }
.offer-store { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.offer-state { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.best-pill { padding: 3px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 800; }
.offer-price { font: 800 1.15rem/1 var(--display); color: var(--accent); }

.alert-box { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, rgba(198, 255, 61, .1), transparent 55%), var(--surface); border: 1px solid rgba(198, 255, 61, .3); }
.alert-box h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 8px; }
.alert-box h2 svg { color: var(--accent); }
.alert-form { display: grid; gap: 12px; }
.alert-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.alert-euros { display: inline-flex; align-items: center; gap: 8px; font: 800 1.2rem/1 var(--display); color: var(--accent); }
.alert-euros input { width: 130px; height: 48px; font: 800 1.2rem/1 var(--display); color: var(--accent); text-align: right; }

.pd-aside { position: sticky; top: calc(var(--header-h) + 20px); margin-top: calc(-1 * clamp(60px, 8vw, 120px)); }
.buy { display: grid; gap: 12px; padding: 24px; border-radius: 22px; background: rgba(19, 19, 27, .92); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); backdrop-filter: blur(14px); animation: rise 1s var(--ease) .2s backwards; }
.buy-price { display: flex; align-items: center; gap: 10px; }
.buy-price .badge { position: static; font-size: .9rem; }
.buy-now { font: 800 clamp(2.4rem, 4vw, 3rem)/1 var(--display); color: var(--accent); letter-spacing: -.03em; }
.verdict { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .92rem; font-weight: 600; }
.verdict.is-good { color: var(--gold); }
.btn-buy { width: 100%; height: 56px; font-size: 1.05rem; margin-top: 4px; }
.buy .countdown { font-size: .95rem; }
.buy-alert { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); font-weight: 700; font-size: .92rem; color: var(--text-2); transition: border-color .4s var(--ease), color .4s var(--ease), background-color .4s var(--ease); }
.buy-alert:hover { border-color: rgba(198, 255, 61, .5); color: var(--accent); background: rgba(198, 255, 61, .06); }
.buy-bar { display: none; }

/* Compartir */
.share { display: grid; gap: 10px; margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.share-title { font-size: .82rem; font-weight: 700; color: var(--muted); }
.share-row { display: flex; gap: 8px; }
.share-btn { position: relative; height: 44px; width: 44px; padding: 0; border-radius: 12px; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.share-btn:hover { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-2px); }
.share-native { display: none; width: auto; padding: 0 16px; gap: 8px; font-size: .92rem; }
.has-native .share-native { display: inline-flex; flex: 1; }
.share-done { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px; padding: 5px 9px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: .78rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), translate .4s var(--ease); }
.share-btn.is-done .share-done { opacity: 1; translate: -50% 0; }
.share-btn.is-done { color: var(--accent); }

/* Gráfico de precio: una serie, rejilla discreta, tooltip al pasar */
.chart { position: relative; margin: 0; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.chart svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 500 9px var(--body); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; opacity: 0; transition: opacity .3s var(--ease); }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; opacity: 0; transition: opacity .3s var(--ease); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart.is-hover .cross, .chart.is-hover .dot, .chart.is-hover .tip { opacity: 1; }
.tip { position: absolute; top: 6px; transform: translateX(-50%); padding: 6px 10px; border-radius: 9px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .82rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
.chart-table { margin-top: 10px; font-size: .88rem; }
.chart-table summary { cursor: pointer; color: var(--muted); }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.chart-table td, .chart-table th { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Visor de capturas y tráiler */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 8, .94); color: var(--text); opacity: 0; transition: opacity .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox.is-open { opacity: 1; }
.lb-stage { position: absolute; inset: 64px 72px; display: grid; place-items: center; }
.lb-stage img, .lb-stage video, .lb-stage iframe { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: var(--shadow-2); transform: scale(.97); transition: transform .5s var(--ease); }
.lightbox.is-open .lb-stage img, .lightbox.is-open .lb-stage video, .lightbox.is-open .lb-stage iframe { transform: none; }
.lb-stage iframe { width: min(1280px, 100%); aspect-ratio: 16 / 9; height: auto; border: 0; }
.lb-stage video { width: min(1280px, 100%); background: #000; }
.lb-close, .lb-nav { position: absolute; height: 48px; width: 48px; padding: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--text); }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .16); box-shadow: none; }
.lb-close { top: 12px; right: 12px; }
.lb-nav { top: 50%; margin-top: -24px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lightbox.is-video .lb-nav { display: none; }

/* Textos legales */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 20px; }
.prose h2 { font-size: 1.15rem; margin: 32px 0 8px; }
.prose p { color: var(--text-2); margin-bottom: 10px; max-width: 68ch; }
.pending { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 200, 61, .4); background: rgba(255, 200, 61, .08); color: var(--gold) !important; }

/* ============ Pie ============ */
.site-footer { margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); padding: 44px 0 32px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid .muted { margin-top: 14px; max-width: 42ch; font-size: .92rem; }
.foot-title { font: 700 .78rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; color: var(--text-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: var(--muted); font-size: .93rem; }
.site-footer ul a { transition: color .4s var(--ease); }
.site-footer ul a:hover { color: var(--text); }
.disclosure { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* ============ Pantallas medianas ============ */
@media (max-width: 1100px) {
  .rank-item { grid-template-columns: 40px 52px 120px minmax(0, 1fr) auto; }
  .rank-item .rank-price { display: none; }
  .trend-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trend-strip li:nth-child(n+4) { display: none; }
  .header-row { gap: 16px; }
  .nav-item { padding: 0 10px; }
  .nav-item span { font-size: .9rem; }
  .search { flex-basis: 220px; }
  .rail .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail .grid > :nth-child(n+7) { display: none; }
  .out-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  /* El menú se esconde tras un botón a la derecha del buscador */
  .header-row { gap: 12px; }
  .nav { display: none; }
  .search { flex: 1; }
  .mnav { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature { max-width: 640px; }
  .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { grid-template-columns: 1fr; }
  .band-covers { order: -1; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-aside { position: static; margin-top: 0; order: -1; }
  .alert-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  /* Barra de compra fija abajo cuando el bloque de precio sale de pantalla */
  .buy-bar { display: flex; position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(26, 26, 37, .94); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); backdrop-filter: blur(14px); transform: translateY(calc(100% + 24px)); transition: transform .6s var(--ease); }
  .buy-bar.is-shown { transform: none; }
  .buy-bar-price { display: grid; }
  .buy-bar-price s { font-size: .8rem; }
  .buy-bar-price strong { font: 800 1.3rem/1 var(--display); color: var(--accent); }
  .buy-bar .btn { height: 46px; font-size: .95rem; padding: 0 16px; }
}

/* ============ Móvil ============ */
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .wrap { width: calc(100% - 32px); }
  .logo span { display: none; }
  .search { flex: 1; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 2rem; margin-bottom: 12px; }
  .lead { font-size: 1rem; }
  .facts { margin-top: 14px; gap: 6px 16px; font-size: .9rem; }
  .hero-ctas { margin-top: 18px; }
  .hero-ctas .btn { flex: 1; height: 48px; padding: 0 14px; }
  .feature { padding: 10px 10px 0 0; }
  .feature-info { flex-direction: column; align-items: stretch; gap: 12px; margin-top: -24px; padding: 12px 16px 16px; }
  .feature-price { justify-items: start; grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 10px; }
  .feature-price strong { font-size: 1.6rem; }
  .grid, .rail .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rail .grid > :nth-child(n+7) { display: flex; }
  .card-body { padding: 10px 11px 12px; gap: 5px; }
  .card-title { font-size: .88rem; }
  .card-price strong { font-size: 1.02rem; }
  .card-meta { font-size: .7rem; }
  .card-store { display: none; }
  .badge { font-size: .72rem; top: 7px; left: 7px; padding: 5px 7px; }
  .badge-next { font-size: .64rem; }
  .chip { min-height: 44px; }
  .plat-grid { gap: 10px; }
  .plat-tile { min-height: 150px; padding: 16px; }
  .plat-logo { top: 16px; left: 16px; width: 48px; height: 48px; border-radius: 13px; }
  .plat-logo svg { width: 26px; height: 26px; }
  .plat-name { font-size: .98rem; }
  .soon-strip { flex-wrap: wrap; }
  .soon-strip-icons { width: 100%; }
  .sub-row { flex-direction: column; }
  .sub-row button { width: 100%; }
  .band-covers img { width: 31%; }
  .filterbar { align-items: flex-start; }
  .filter-actions { justify-content: flex-start; width: 100%; }
  /* El panel de filtros es una hoja que sube desde abajo */
  .fpanel-body { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 82dvh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); transform-origin: bottom center; }
  .fpanel[open] .fpanel-body { animation: sheet-in .5s var(--ease) both; }
  .fpanel.is-closing .fpanel-body { animation: sheet-out .26s var(--ease-io) both; }
  /* En móvil el rótulo de la cinta es solo el icono: la cinta se queda casi todo el ancho */
  .ticker-label { padding: 0; width: 48px; align-self: stretch; justify-content: center; background: var(--accent); color: var(--accent-ink); border-right: 0; }
  .ticker-label svg { width: 20px; height: 20px; }
  .ticker-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ticker-track { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .tick { padding: 13px 16px; gap: 8px; }
  .cat-results { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 34px 92px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .rank-item .move, .rank-item .rank-price { display: none; }
  .rank-n { font-size: 1.2rem; }
  .trend-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .trend-strip li { scroll-snap-align: start; }
  .trend-strip li:nth-child(n+4) { display: block; }
  .game-card.is-lead { aspect-ratio: 4 / 3; }
  .live-item { grid-template-columns: 88px 1fr auto; gap: 12px; padding-right: 14px; }
  .live-go { display: none; }
  .out-grid { grid-template-columns: 1fr 1fr; }
  .soon-list { grid-template-columns: 1fr; }
  .pd-hero { min-height: 0; padding-top: 120px; }
  .pd-hero h1 { font-size: 2.1rem; }
  .gallery { grid-auto-columns: 84%; }
  .offers li { grid-template-columns: 1fr auto auto; gap: 6px 12px; padding: 12px 10px 12px 14px; }
  .offers li .offer-store { grid-column: 1; grid-row: 1; }
  .offers li .offer-state { grid-column: 1; grid-row: 2; }
  .offers li .offer-price { grid-column: 2; grid-row: 1 / 3; }
  .offers li .chip { grid-column: 3; grid-row: 1 / 3; }
  .alert-price { flex-wrap: wrap; }
  .lb-stage { inset: 64px 8px; }
  .lb-nav { top: auto; bottom: 16px; margin: 0; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .site-footer { padding-bottom: 96px; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; }
  .ticker-move { animation: none; }
  .pd-backdrop img { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
