/* ==========================================================================
   XPlay Nin Store — Hoja de estilos principal
   Colores de marca tomados del logo: verde X #94d12f · azul Joy-Con #03ace8
   · rojo Joy-Con #fa3935 · amarillo #fcce19
   ========================================================================== */

:root {
  --bg: #07090d;
  --bg-2: #0a0d13;
  --surface: #0f141b;
  --surface-2: #141a23;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f6fa;
  --muted: #9aa5b5;
  --muted-2: #6f7a8b;

  --lime: #9be22f;
  --lime-hi: #c2ff55;
  --lime-deep: #94d12f;
  --blue: #03ace8;
  --red: #fa3935;
  --yellow: #fcce19;
  --pink: #ff4fa3;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Barlow", Impact, "Arial Narrow", sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);

  --radius: 18px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --wide: 1760px;
  --ticker-h: 34px;
  --nav-h: 78px;
  --top: calc(var(--ticker-h) + var(--nav-h));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lime); color: #0a0d00; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ico-b { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: #0a0d00; font-weight: 700; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* ---------- Botones y etiquetas ---------- */
.btn {
  --btn-bg: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border-radius: 14px;
  font: 800 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  background: var(--btn-bg);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn .ico, .btn .ico-b { width: 20px; height: 20px; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary {
  --btn-bg: var(--lime); color: #0b1100;
  box-shadow: 0 0 0 1px rgba(194, 255, 85, .35) inset, 0 10px 30px -8px rgba(155, 226, 47, .65);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 45%, transparent 60%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(194, 255, 85, .6) inset, 0 16px 44px -8px rgba(155, 226, 47, .85); transform: translateY(-2px); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  color: var(--text); border: 1px solid var(--line-2);
  background: rgba(10, 13, 19, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(155, 226, 47, .7); color: var(--lime-hi); transform: translateY(-2px); }
.btn--blue {
  --btn-bg: var(--blue); color: #001520;
  box-shadow: 0 10px 30px -8px rgba(3, 172, 232, .7);
}
.btn--blue:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(3, 172, 232, .9); }
.btn--wa {
  --btn-bg: #25d366; color: #032b12;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .6);
}
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(37, 211, 102, .85); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 7px;
  font: 800 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: #0b0f14; background: var(--lime);
}
.tag--pre { background: var(--pink); color: #fff; }
.tag--new { background: var(--lime); }
.tag--top { background: var(--yellow); }
.tag--blue { background: var(--blue); color: #001520; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  color: #dfe6ef; transition: background-color .25s, color .25s, transform .25s var(--ease), border-color .25s;
}
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--lime-hi); }
.icon-btn--sm { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(10, 13, 19, .5); }
.icon-btn--sm .ico { width: 18px; height: 18px; }

/* ==========================================================================
   Encabezado
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; }
.site-header::before,
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .4s var(--ease); }
.site-header::before { background: linear-gradient(180deg, rgba(7, 9, 13, .92) 0%, rgba(7, 9, 13, .6) 60%, rgba(7, 9, 13, 0) 100%); height: calc(100% + 40px); }
.site-header::after {
  opacity: 0;
  background: rgba(8, 10, 15, .78);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(0, 0, 0, .8);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled::after { opacity: 1; }

.ticker {
  height: var(--ticker-h); overflow: hidden;
  background: linear-gradient(90deg, #0f1c05 0%, #0c1506 35%, #06141c 70%, #0c0f18 100%);
  border-bottom: 1px solid rgba(155, 226, 47, .16);
  font: 600 12.5px/var(--ticker-h) var(--font); letter-spacing: .08em; text-transform: uppercase; color: #c9dfae;
  transition: height .4s var(--ease), opacity .3s;
}
.ticker__track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; }
.ticker__group span { display: inline-flex; align-items: center; gap: .45em; padding-right: 44px; white-space: nowrap; }
.ticker__group span::before {
  content: ""; width: 7px; height: 7px; margin-right: 14px; flex: none;
  background: var(--lime); transform: rotate(45deg); box-shadow: 0 0 10px var(--lime);
}
.ticker b { color: var(--lime-hi); font-weight: 700; }
@keyframes ticker { to { transform: translateX(-50%); } }
.site-header.is-scrolled .ticker { height: 0; opacity: 0; border-bottom-width: 0; }

.nav { height: var(--nav-h); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); max-width: var(--wide); }
.brand { flex: none; display: block; }
.brand img { height: clamp(48px, 4.6vw, 64px); width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.04) rotate(-1deg); }

.menu { display: flex; align-items: center; gap: clamp(12px, 1.3vw, 28px); margin-inline: auto; }
.menu a {
  position: relative; padding: 10px 2px;
  font: 600 15.5px/1 var(--font); color: #dbe2ec; letter-spacing: .01em; white-space: nowrap;
  transition: color .25s;
}
/* Catálogo: botón destacado (será la sección principal de la tienda) */
.menu a.menu__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 11px; color: #fff;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(10, 14, 20, .92), rgba(10, 14, 20, .92)) padding-box,
    linear-gradient(120deg, var(--lime), var(--blue)) border-box;
  box-shadow: 0 0 18px -6px rgba(155, 226, 47, .65);
  transition: box-shadow .3s, transform .3s var(--ease), color .25s;
}
.menu a.menu__cta::after { display: none; }
.menu a.menu__cta .ico { width: 17px; height: 17px; color: var(--lime); }
.menu a.menu__cta:hover { transform: translateY(-1px); box-shadow: 0 0 28px -4px rgba(155, 226, 47, .9); color: var(--lime-hi); }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--lime); box-shadow: 0 0 12px var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.menu a:hover { color: #fff; }
.menu a:hover::after { transform: scaleX(1); }
.menu a.is-active { color: var(--lime-hi); }
.menu a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.search { position: relative; margin-right: 6px; }
.search input {
  width: clamp(200px, 17vw, 320px); height: 46px; padding: 0 48px 0 20px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(12, 16, 23, .6);
  color: var(--text); font-size: 14.5px; outline: none;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.search input::placeholder { color: #8894a6; }
.search input:focus { border-color: rgba(155, 226, 47, .75); box-shadow: 0 0 0 4px rgba(155, 226, 47, .15); background: rgba(12, 16, 23, .9); }
.search button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #cfd8e3; transition: color .2s, background-color .2s; }
.search button:hover { color: var(--lime-hi); background: rgba(255, 255, 255, .06); }
.search .ico { width: 19px; height: 19px; }
.search-toggle { display: none; }

.cart__badge {
  position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--lime); color: #0b1100;
  font: 800 12px/20px var(--font); text-align: center;
  box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(155, 226, 47, .7);
}
.cart.is-bump .cart__badge { animation: bump .6s var(--ease-expo); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.5); } 100% { transform: scale(1); } }

.burger { display: none; }
.burger .ico--close { display: none; }
.nav-open .burger .ico--open { display: none; }
.nav-open .burger .ico--close { display: block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  --hero-h: clamp(620px, 100svh, 1180px);
  --pad-b: clamp(26px, 5vh, 56px);
  --mascot-h: calc(var(--hero-h) - var(--top) - 6px);
  --mascot-w: calc(var(--mascot-h) * .5215);
  --gap: clamp(14px, 1.6vw, 30px);
  --seam: 55%;
  --edge: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
  --accent: var(--lime);
  --mx: 0; --my: 0;
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: var(--hero-h);
  background: radial-gradient(ellipse at 55% 60%, #121a10 0%, var(--bg) 70%);
}

/* --- Capa de arte --- */
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.is-active { visibility: visible; z-index: 2; }
.slide.is-leaving { visibility: visible; z-index: 1; animation: slide-out 1.1s var(--ease) forwards; }
@keyframes slide-out { to { opacity: 0; filter: brightness(.5) blur(4px); transform: scale(1.04); } }

/* Cada mitad lleva dos máscaras: el difuminado fijo hacia la unión + una
   "cortina" de borde suave que se desplaza para revelar el arte al entrar */
.slide__half {
  position: absolute; top: 0; bottom: 0; overflow: hidden;
  -webkit-mask-size: 100% 100%, 300% 100%;
          mask-size: 100% 100%, 300% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.slide__half--a {
  left: 0; width: calc(var(--seam) + 16%);
  -webkit-mask-image: linear-gradient(97deg, #000 66%, rgba(0, 0, 0, .55) 81%, transparent 98%), linear-gradient(90deg, #000 45%, transparent 55%);
          mask-image: linear-gradient(97deg, #000 66%, rgba(0, 0, 0, .55) 81%, transparent 98%), linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-position: 0 0, 0% 0;
          mask-position: 0 0, 0% 0;
}
.slide__half--b {
  right: 0; left: calc(var(--seam) - 16%);
  -webkit-mask-image: linear-gradient(97deg, transparent 2%, rgba(0, 0, 0, .55) 19%, #000 34%), linear-gradient(90deg, transparent 45%, #000 55%);
          mask-image: linear-gradient(97deg, transparent 2%, rgba(0, 0, 0, .55) 19%, #000 34%), linear-gradient(90deg, transparent 45%, #000 55%);
  -webkit-mask-position: 0 0, 100% 0;
          mask-position: 0 0, 100% 0;
}
.slide__half img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 30%);
  translate: calc(var(--mx) * -16px) calc(var(--my) * -10px);
  transition: translate .8s var(--ease);
  filter: saturate(1.1) contrast(1.05) brightness(.92);
}
.slide.is-active .slide__half--a { animation: reveal-a 1.25s cubic-bezier(.65, 0, .25, 1) both; }
.slide.is-active .slide__half--b { animation: reveal-b 1.25s cubic-bezier(.65, 0, .25, 1) .06s both; }
.slide.is-active .slide__half img { animation: kenburns 11s cubic-bezier(.25, .1, .25, 1) both; }
.slide.is-active .slide__half--b img { animation-delay: .06s; }
@keyframes reveal-a {
  from { -webkit-mask-position: 0 0, 100% 0; mask-position: 0 0, 100% 0; }
  to { -webkit-mask-position: 0 0, 0% 0; mask-position: 0 0, 0% 0; }
}
@keyframes reveal-b {
  from { -webkit-mask-position: 0 0, 0% 0; mask-position: 0 0, 0% 0; }
  to { -webkit-mask-position: 0 0, 100% 0; mask-position: 0 0, 100% 0; }
}
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.03); } }

/* destello de "choque" cuando las dos mitades se encuentran */
.slide::after {
  content: ""; position: absolute; top: 48%; left: var(--seam);
  width: 90vmin; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, color-mix(in srgb, var(--b) 55%, transparent) 22%, transparent 62%);
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
}
.slide.is-active::after { animation: clash 1.4s var(--ease) .45s both; }
@keyframes clash { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: .75; } 100% { opacity: 0; transform: scale(1.5); } }

/* --- Degradados, viñeta y grano --- */
.hero__fx {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, .9) 0%, rgba(7, 9, 13, .35) 16%, rgba(7, 9, 13, 0) 30%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 13, .94) 12%, rgba(7, 9, 13, .55) 32%, rgba(7, 9, 13, 0) 56%),
    linear-gradient(90deg, rgba(7, 9, 13, .8) 0%, rgba(7, 9, 13, .3) 24%, rgba(7, 9, 13, 0) 40%),
    linear-gradient(270deg, rgba(7, 9, 13, .72) 0%, rgba(7, 9, 13, .25) 20%, rgba(7, 9, 13, 0) 36%),
    radial-gradient(ellipse 70% 80% at var(--seam) 50%, rgba(7, 9, 13, 0) 45%, rgba(7, 9, 13, .4) 100%);
}
.hero__fx::before {
  /* líneas diagonales verdes (guiño al estilo del arte de FC 27) */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(118deg, transparent 0 7%, rgba(155, 226, 47, .5) 7% 7.35%, transparent 7.35% 8.4%, rgba(155, 226, 47, .22) 8.4% 8.6%, transparent 8.6%),
    linear-gradient(118deg, transparent 0 91.6%, rgba(3, 172, 232, .35) 91.6% 91.85%, transparent 91.85% 93%, rgba(3, 172, 232, .18) 93% 93.2%, transparent 93.2%);
  mix-blend-mode: screen; opacity: .8;
}
.hero__fx::after {
  content: ""; position: absolute; inset: -60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .08; mix-blend-mode: overlay;
  animation: grain 1.4s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.hero__particles { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

/* --- Logos e info de cada juego --- */
.hero__infos { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.info-set { position: absolute; inset: 0; visibility: hidden; }
.info-set.is-active { visibility: visible; }
.slide__info {
  position: absolute; top: calc(var(--top) + clamp(14px, 3.4vh, 44px));
  width: min(24vw, 330px);
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: auto;
}
.slide__info--a { left: var(--edge); align-items: flex-start; }
.slide__info--b { right: var(--edge); align-items: flex-end; text-align: right; }
.slide__logo {
  width: 100%; height: auto; max-height: clamp(60px, 11vh, 118px);
  object-fit: contain; object-position: left center;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .7)) drop-shadow(0 0 2px rgba(0, 0, 0, .6));
}
.slide__logo--tall { max-height: clamp(96px, 19vh, 200px); }
.slide__info--b .slide__logo { object-position: right center; }
.slide__meta { display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.slide__plat { font: 600 13px/1.2 var(--font); color: #c9d2de; letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.slide__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  font: 800 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--lime-hi);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.slide__link .ico { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.slide__link:hover .ico { transform: translateX(4px); }

.info-set.is-active .slide__info > * { animation: info-in .9s var(--ease-expo) both; }
.info-set.is-active .slide__info--a > * { --from: -40px; }
.info-set.is-active .slide__info--b > * { --from: 40px; }
.info-set.is-active .slide__info > :nth-child(1) { animation-delay: .35s; }
.info-set.is-active .slide__info > :nth-child(2) { animation-delay: .47s; }
.info-set.is-active .slide__info > :nth-child(3) { animation-delay: .55s; }
.info-set.is-active .slide__info > :nth-child(4) { animation-delay: .63s; }
@keyframes info-in { from { opacity: 0; transform: translateX(var(--from, 0)); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* --- Contenido: texto · mascota · tendencias --- */
.hero__content {
  position: absolute; inset: 0; z-index: 4;
  max-width: var(--wide); margin-inline: auto;
  padding: var(--top) var(--gutter) var(--pad-b);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) var(--mascot-w) minmax(0, .88fr);
  column-gap: var(--gap);
  align-items: end;
  pointer-events: none;
}
.hero__content > * { pointer-events: auto; }

/* La mascota */
.hero__mascot {
  grid-column: 2; grid-row: 1; align-self: end; justify-self: center;
  position: relative; z-index: 1;
  width: var(--mascot-w); height: var(--mascot-h);
  margin-bottom: calc(var(--pad-b) * -1 + 1.2vh);
  pointer-events: none;
  translate: calc(var(--mx) * 12px) calc(var(--my) * 6px);
  transition: translate .8s var(--ease);
}
.mascot__img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  transform-origin: 50% 100%;
  animation: float 5.5s ease-in-out infinite;
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, .55))
    drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 55%, transparent))
    drop-shadow(0 34px 34px rgba(0, 0, 0, .6));
  transition: filter .8s var(--ease);
}
.hero.is-switching .mascot__img { animation: float 5.5s ease-in-out infinite, pop .9s var(--ease-expo); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.035, .985); } 60% { transform: scale(.99, 1.015); } 100% { transform: scale(1); } }

.mascot__glow {
  position: absolute; z-index: 0; left: 50%; top: 10%; width: 150%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent) 0%, rgba(3, 172, 232, .18) 38%, transparent 66%);
  filter: blur(18px);
  transition: background .8s var(--ease);
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.mascot__ring {
  position: absolute; z-index: 1; left: 50%; top: 6%; width: 128%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 6%, var(--lime) 16%, transparent 30% 52%, var(--blue) 64%, transparent 78% 100%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px) 100%);
          mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px) 100%);
  filter: drop-shadow(0 0 10px var(--lime));
  animation: spin 14s linear infinite;
  opacity: .9;
}
.mascot__ring--2 {
  top: 12%; width: 104%;
  background: conic-gradient(from 180deg, transparent 0 20%, rgba(255, 255, 255, .7) 26%, transparent 34% 70%, var(--yellow) 76%, transparent 84%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6));
  animation: spin 22s linear infinite reverse;
  opacity: .55;
}
@keyframes spin { to { rotate: 360deg; } }
.mascot__floor {
  position: absolute; z-index: 1; left: 50%; bottom: -2%; width: 120%; height: 9%; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), rgba(0, 0, 0, 0) 100%);
  filter: blur(6px);
  animation: floor 5.5s ease-in-out infinite;
}
@keyframes floor { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.86); opacity: .6; } }

/* Texto principal */
.hero__copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; padding-bottom: 6px; container-type: inline-size; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 clamp(14px, 1.1vw, 17px)/1 var(--font); letter-spacing: .32em; text-transform: uppercase; color: #e9eef5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--lime); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero__title {
  margin-top: clamp(12px, 1.8vh, 20px);
  font: 900 clamp(40px, min(4.35vw, 8.8vh), 84px)/.9 var(--display);
  font-size: clamp(40px, min(13.2cqi, 8.8vh), 88px);
  text-transform: uppercase; letter-spacing: -.005em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .55);
}
.hero__title .line { display: block; }
.hero__title .line--accent {
  font-style: italic; color: var(--lime);
  background: linear-gradient(92deg, var(--lime-hi) 0%, var(--lime) 55%, #7fcf1a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(155, 226, 47, .35));
  padding-right: .08em;
}
.hero__title .line { animation: rise 1s var(--ease-expo) both; }
.hero__title .line:nth-child(2) { animation-delay: .1s; }
.hero__title .line:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(40%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }

.hero__values {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  margin-top: clamp(16px, 2.6vh, 28px);
}
.hero__values li {
  display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center;
  padding: 0 clamp(10px, 1.2vw, 20px);
  font: 700 12px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #dce3ec;
  border-left: 1px solid var(--line-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.hero__values li:first-child { border-left: 0; padding-left: 0; }
.hero__values .ico { width: 28px; height: 28px; color: var(--lime); stroke-width: 1.7; filter: drop-shadow(0 0 8px rgba(155, 226, 47, .5)); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(18px, 3vh, 30px); }

/* Botón "Ver videojuegos": borde RGB giratorio + portadas que saltan del botón */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-games {
  --rgb: #9be22f, #03ace8, #7b5cff, #ff4fa3, #fcce19, #9be22f;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 90px 0 10px;
  border-radius: 14px;
  font: 800 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff;
  white-space: nowrap;
  transition: transform .35s var(--ease);
}
.btn-games::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--spin), var(--rgb));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin-border 3.2s linear infinite;
}
.btn-games::after {
  content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 31, 43, .96), rgba(8, 11, 16, .96));
}
.btn-games__glow {
  position: absolute; inset: 8px 14px -2px; z-index: -3; border-radius: inherit;
  background: conic-gradient(from var(--spin), var(--rgb));
  filter: blur(16px); opacity: .5;
  animation: spin-border 3.2s linear infinite;
  transition: opacity .35s, inset .35s var(--ease);
}
@keyframes spin-border { to { --spin: 360deg; } }
.btn-games__icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--lime); background: rgba(155, 226, 47, .13);
  box-shadow: inset 0 0 0 1px rgba(155, 226, 47, .35), 0 0 16px -4px rgba(155, 226, 47, .7);
}
.btn-games__icon .ico { width: 21px; height: 21px; animation: wiggle 3.6s ease-in-out infinite; }
@keyframes wiggle {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(-18deg) scale(1.12); } 80% { transform: rotate(15deg) scale(1.12); }
  86% { transform: rotate(-9deg); } 92% { transform: rotate(4deg); }
}
.btn-games__label {
  background: linear-gradient(100deg, #fff 0 42%, var(--lime-hi) 48%, #7fe6ff 52%, #fff 58% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 4.2s ease-in-out infinite;
}
@keyframes shimmer { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
.btn-games__stack {
  position: absolute; right: -14px; bottom: 9px; width: 78px; height: 62px; pointer-events: none;
  animation: peek 4.2s ease-in-out infinite;
}
@keyframes peek { 0%, 60%, 100% { translate: 0 0; } 70% { translate: 0 -6px; } 80% { translate: 0 0; } }
.btn-games__stack img {
  position: absolute; left: 50%; bottom: 0; width: 32px; height: 48px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .65), 0 0 0 1.5px rgba(255, 255, 255, .22);
  transform-origin: 50% 115%;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s;
}
.btn-games__stack img:nth-child(1) { transform: translateX(-50%) translateX(-17px) rotate(-17deg); }
.btn-games__stack img:nth-child(2) { transform: translateX(-50%) translateX(17px) rotate(15deg); }
.btn-games__stack img:nth-child(3) { transform: translateX(-50%) translateY(-7px); z-index: 1; }
.btn-games:hover { transform: translateY(-2px); }
.btn-games:active { transform: translateY(1px) scale(.98); }
.btn-games:hover .btn-games__glow { opacity: .95; inset: 2px 4px -8px; }
.btn-games:hover .btn-games__stack img:nth-child(1) { transform: translateX(-50%) translate(-23px, -5px) rotate(-24deg); }
.btn-games:hover .btn-games__stack img:nth-child(2) { transform: translateX(-50%) translate(27px, -5px) rotate(23deg); }
.btn-games:hover .btn-games__stack img:nth-child(3) { transform: translateX(-50%) translateY(-15px) scale(1.1); box-shadow: 0 14px 26px rgba(0, 0, 0, .7), 0 0 0 1.5px var(--lime), 0 0 22px rgba(155, 226, 47, .6); }
.btn-games:focus-visible { outline-offset: 4px; }
/* Columna de texto angosta (laptops de 1280px): botones compactos para mantenerlos en una fila */
@container (max-width: 500px) {
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn--primary { padding: 0 20px; }
  .btn-games { padding-right: 84px; }
}

/* Panel de tendencias (controles del carrusel) */
.hero__rail {
  grid-column: 3; grid-row: 1; justify-self: end; position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  padding: 14px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 26, 36, .62), rgba(9, 12, 18, .72));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.rail__head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; }
.rail__title { display: flex; align-items: center; gap: 8px; font: 800 19px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.rail__title .ico { color: #ff7a1a; width: 20px; height: 20px; filter: drop-shadow(0 0 8px rgba(255, 122, 26, .7)); }
.rail__count { margin-left: auto; font: 700 15px/1 var(--display); letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.rail__count b { color: var(--text); font-size: 20px; margin-right: 3px; }
.rail__ctrl { display: flex; gap: 6px; }
.rail__ctrl .ico--play { display: none; }
.hero.is-paused .rail__ctrl .ico--pause { display: none; }
.hero.is-paused .rail__ctrl .ico--play { display: block; }

.rail__list { display: grid; gap: 6px; }
.rail__item {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  width: 100%; padding: 9px 12px 11px 9px; border-radius: 14px; text-align: left;
  border: 1px solid transparent;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.rail__item:hover { background: rgba(255, 255, 255, .05); }
.rail__item.is-active { background: rgba(155, 226, 47, .08); border-color: rgba(155, 226, 47, .3); }
.rail__thumbs { position: relative; display: flex; width: 66px; height: 50px; }
.rail__thumbs img {
  width: 34px; height: 50px; object-fit: cover; border-radius: 7px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .4s var(--ease);
}
.rail__thumbs img:first-child { transform: rotate(-6deg); }
.rail__thumbs img:last-child { margin-left: -4px; transform: rotate(5deg) translateY(2px); }
.rail__item:hover .rail__thumbs img:first-child, .rail__item.is-active .rail__thumbs img:first-child { transform: rotate(-9deg) translateX(-3px); }
.rail__item:hover .rail__thumbs img:last-child, .rail__item.is-active .rail__thumbs img:last-child { transform: rotate(8deg) translate(3px, 2px); }
.rail__text { display: grid; gap: 3px; min-width: 0; }
.rail__text b { font: 800 18px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail__text b i { font-style: normal; color: var(--lime); margin: 0 2px; }
.rail__text small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail__item.is-active .rail__text small { color: #cfe7a9; }
.rail__bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rail__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--lime), var(--lime-hi)); box-shadow: 0 0 10px var(--lime); transform: scaleX(0); transform-origin: left; }

.hero__scroll {
  position: absolute; z-index: 6; left: 50%; bottom: 14px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .35);
  display: none;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { position: relative; padding-block: clamp(64px, 8vw, 116px); }
.section__head { max-width: 760px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font: 700 14px/1 var(--font); letter-spacing: .3em; text-transform: uppercase; color: var(--lime);
}
.kicker::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.kicker--blue { color: var(--blue); }
.section__title {
  font: 900 clamp(40px, 5.2vw, 72px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em;
}
.section__title em { font-style: italic; color: var(--lime); padding-right: .06em; }
.service .section__title em { color: var(--blue); }
.section__lead { margin-top: 18px; max-width: 620px; color: var(--muted); font-size: clamp(16px, 1.25vw, 18.5px); }

/* ---------- Banner de marca (logo + lema) ---------- */
.mission { position: relative; isolation: isolate; padding-top: clamp(40px, 5vw, 72px); }
.mission::before {
  content: ""; position: absolute; inset: 0 0 -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 58% at 50% 55%, rgba(155, 226, 47, .1), rgba(3, 172, 232, .05) 50%, transparent 75%);
}
.mission__banner {
  overflow: hidden; border-radius: 28px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(120deg, rgba(155, 226, 47, .6), rgba(255, 255, 255, .08) 38% 62%, rgba(3, 172, 232, .6)) border-box;
  box-shadow: 0 40px 90px -46px rgba(155, 226, 47, .45), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.mission__banner img { width: 100%; }

/* ---------- Categorías ---------- */
.categories { padding-top: clamp(64px, 8vw, 110px); }
.categories::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(155, 226, 47, .08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
          mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 50px; }
.cat {
  --c: var(--lime);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(280px, 24vw, 340px); padding: 26px 26px 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, #131a24 0%, #0c1017 60%);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
}
.cat::before {
  content: ""; position: absolute; z-index: -1; right: -18%; bottom: -30%; width: 90%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 50%, transparent), transparent);
  opacity: .5; transition: opacity .45s, transform .6s var(--ease);
}
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 40%);
  opacity: .6;
}
.cat:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--c) 55%, transparent); }
.cat:hover::before { opacity: .85; transform: scale(1.12); }
.cat__brand { display: flex; align-items: center; gap: 12px; font: 900 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; position: relative; z-index: 2; }
.cat__brand .ico-b, .cat__brand .ico { width: 30px; height: 30px; color: var(--c); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); }
.cat__sub { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 55%; position: relative; z-index: 2; }
.cat__go {
  position: relative; z-index: 2; margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 11px;
  font: 800 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  background: rgba(8, 11, 16, .6); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .3s, border-color .3s, background-color .3s;
}
.cat__go .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.cat:hover .cat__go { color: #0b0f14; background: var(--c); border-color: var(--c); }
.cat:hover .cat__go .ico { transform: translateX(4px); }
.cat__img {
  position: absolute; z-index: 1; right: 4%; bottom: 0; height: 84%; width: auto; max-width: 62%;
  object-fit: contain; object-position: bottom right;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55));
  transition: transform .6s var(--ease);
  transform-origin: 70% 100%;
}
.cat:hover .cat__img { transform: scale(1.06) translateY(-6px); }
.cat--xbox .cat__img { height: 80%; right: 2%; }
.cat--switch .cat__img { height: auto; width: 74%; max-width: none; right: -6%; bottom: 12%; transform: rotate(-8deg); }
.cat--switch:hover .cat__img { transform: rotate(-5deg) scale(1.05) translateY(-6px); }
.cat__duo { position: absolute; z-index: 1; right: 0; bottom: 0; width: 62%; height: 74%; }
.cat__duo img { position: absolute; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease); }
.cat__duo img:first-child { right: 4%; bottom: 12%; height: 86%; }
.cat__duo img:last-child { right: 34%; bottom: 3%; width: 54%; transform: rotate(-12deg); }
.cat:hover .cat__duo img:first-child { transform: translateY(-6px) rotate(4deg); }
.cat:hover .cat__duo img:last-child { transform: rotate(-16deg) translate(-6px, -4px); }
.cat__fan { position: absolute; z-index: 1; right: 6%; bottom: -10%; width: 64%; height: 96%; }
.cat__fan img {
  position: absolute; bottom: 0; left: 50%; width: 46%; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px;
  box-shadow: 0 20px 34px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12);
  transform-origin: 50% 120%; transition: transform .6s var(--ease);
}
.cat__fan img:nth-child(1) { transform: translateX(-50%) rotate(-16deg); }
.cat__fan img:nth-child(2) { transform: translateX(-50%) rotate(0deg) translateY(-8px); z-index: 1; }
.cat__fan img:nth-child(3) { transform: translateX(-50%) rotate(16deg); z-index: 2; }
.cat:hover .cat__fan img:nth-child(1) { transform: translateX(-50%) rotate(-24deg); }
.cat:hover .cat__fan img:nth-child(2) { transform: translateX(-50%) translateY(-18px); }
.cat:hover .cat__fan img:nth-child(3) { transform: translateX(-50%) rotate(24deg); }
.cat__photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat--pc::after { z-index: 0; opacity: 1; background: linear-gradient(90deg, rgba(9, 11, 18, .95) 0%, rgba(9, 11, 18, .6) 45%, rgba(9, 11, 18, .1) 100%), linear-gradient(0deg, rgba(9, 11, 18, .7), transparent 40%); }
.cat--pc:hover .cat__photo { transform: scale(1.06); }
.cat--pc .cat__go { z-index: 2; }

.perks {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px; padding: 22px 8px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 26, 36, .5), rgba(12, 16, 23, .5));
  border: 1px solid var(--line);
}
.perks li { display: flex; align-items: center; gap: 16px; padding: 4px 22px; border-right: 1px solid var(--line); }
.perks li:last-child { border-right: 0; }
.perks .ico { width: 36px; height: 36px; color: var(--lime); stroke-width: 1.6; filter: drop-shadow(0 0 10px rgba(155, 226, 47, .45)); }
.perks p { display: grid; line-height: 1.3; }
.perks b { font-weight: 700; font-size: 15.5px; }
.perks span { font-size: 13.5px; color: var(--muted); }

/* ---------- Estante de juegos ---------- */
.categories { padding-bottom: clamp(40px, 5vw, 70px); }
.trending { padding-top: clamp(30px, 4vw, 60px); overflow: hidden; }
.trending + .service { margin-top: clamp(0px, 2vw, 20px); }
.shelf__ctrl { display: flex; align-items: center; gap: 8px; }
.shelf__all { margin-right: 10px; white-space: nowrap; }
.shelf__ctrl .icon-btn { border: 1px solid var(--line-2); background: var(--surface); }
.shelf__ctrl .icon-btn:hover { border-color: var(--lime); }
.shelf {
  --shelf-edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(186px, 16.5vw, 232px);
  gap: 18px; margin-top: 36px;
  padding: 10px var(--shelf-edge) 34px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--shelf-edge);
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf:focus-visible { outline-offset: -4px; }
.game {
  scroll-snap-align: start;
  position: relative; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #121821, #0c1017);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.game:hover { transform: translateY(-8px); border-color: rgba(155, 226, 47, .45); box-shadow: 0 26px 50px -22px rgba(155, 226, 47, .45); }
.game__cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; }
.game__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.game:hover .game__cover img { transform: scale(1.06); }
.game__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 16, 23, .9) 0%, transparent 30%); }
.game__tag { position: absolute; left: 10px; top: 10px; z-index: 1; }
.game__wish {
  position: absolute; right: 10px; top: 10px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 11, 16, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; border: 1px solid rgba(255, 255, 255, .15); transition: color .2s, background-color .2s, transform .2s;
}
.game__wish .ico { width: 17px; height: 17px; }
.game__wish:hover { transform: scale(1.1); }
.game__wish[aria-pressed="true"] { color: var(--pink); }
.game__wish[aria-pressed="true"] .ico { fill: currentColor; }
.game__plats { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.game__plats span {
  padding: 3px 6px; border-radius: 5px; font: 700 11px/1 var(--font); letter-spacing: .04em;
  background: rgba(8, 11, 16, .75); border: 1px solid rgba(255, 255, 255, .14); color: #dfe6ee;
}
.game__body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; flex: 1; }
.game__title { font: 700 15.5px/1.25 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.game__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.game__price { display: grid; line-height: 1.1; }
.game__price small { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.game__price b { font: 800 21px/1.1 var(--display); letter-spacing: .02em; }
.game__add {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--lime); color: #0b1100;
  box-shadow: 0 8px 20px -8px rgba(155, 226, 47, .8);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.game__add .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.game__add:hover { transform: scale(1.08) rotate(-4deg); box-shadow: 0 12px 26px -8px rgba(155, 226, 47, 1); }
.noscript { color: var(--muted); }

/* Filtros del apartado de videojuegos */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  --c: var(--lime);
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px 0 15px; border-radius: 999px;
  font: 700 14.5px/1 var(--font); color: #dfe6ee;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2);
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease), box-shadow .3s;
}
.chip .ico, .chip .ico-b { width: 17px; height: 17px; color: var(--c); }
.chip:hover { border-color: color-mix(in srgb, var(--c) 65%, transparent); transform: translateY(-1px); }
.chip.is-active { color: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 17%, transparent); box-shadow: 0 0 22px -6px var(--c); }
.chip__n {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, .08);
}
.chip.is-active .chip__n { color: #0b0f14; background: var(--c); }
.filters__status { min-height: 22px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.filters__status b { color: var(--text); }
.filters__status a, .filters__status button { margin-left: 10px; font-weight: 700; color: var(--lime); }
.filters__status a:hover, .filters__status button:hover { text-decoration: underline; }
.shelf { position: relative; margin-top: 18px; }
.game { animation: card-in .6s var(--ease-expo) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(.96); } }
.game.is-spot { border-color: var(--lime); animation: spot 1.3s var(--ease) 3; }
@keyframes spot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155, 226, 47, 0); }
  45% { box-shadow: 0 0 0 4px rgba(155, 226, 47, .95), 0 0 46px 8px rgba(155, 226, 47, .55); }
}

/* ---------- Servicio técnico ---------- */
.service { overflow: hidden; background: #060a10; }
.service__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 78% 40%, rgba(3, 172, 232, .18), transparent 70%),
    radial-gradient(ellipse 35% 45% at 10% 90%, rgba(155, 226, 47, .08), transparent 70%),
    linear-gradient(rgba(3, 172, 232, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(3, 172, 232, .05) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.service__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.checklist { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: #dbe3ed; line-height: 1.4; }
.checklist .ico { width: 22px; height: 22px; padding: 4px; margin-top: -1px; border-radius: 50%; color: #001520; background: var(--blue); stroke-width: 3.2; box-shadow: 0 0 12px rgba(3, 172, 232, .6); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.platforms span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  font: 700 14px/1 var(--font); color: #e2e8f0;
  background: rgba(3, 172, 232, .08); border: 1px solid rgba(3, 172, 232, .28);
}
.platforms .ico-b { width: 18px; height: 18px; color: var(--blue); }
.service__visual { position: relative; aspect-ratio: 1 / .92; }
.service__photo {
  position: absolute; inset: 0 0 10% 14%; border-radius: 30px; overflow: hidden;
  border: 1px solid rgba(3, 172, 232, .35);
  box-shadow: 0 40px 80px -30px rgba(3, 172, 232, .45), 0 0 0 8px rgba(3, 172, 232, .06);
}
.service__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) hue-rotate(-8deg) brightness(.75); }
.service__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(3, 172, 232, .25), rgba(6, 10, 16, .75) 80%); }
.service__console { position: absolute; left: -2%; bottom: 0; height: 74%; width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(3, 172, 232, .35)); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(10, 16, 26, .72); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
  animation: bob 6s ease-in-out infinite;
}
.float-card .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(3, 172, 232, .16); color: var(--blue); }
.float-card p { display: grid; line-height: 1.2; }
.float-card b { font: 800 17px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.float-card span { font-size: 13px; color: var(--muted); }
.float-card--1 { top: 8%; right: -3%; }
.float-card--2 { top: 44%; right: -6%; animation-delay: -2s; }
.float-card--2 .ico { background: rgba(155, 226, 47, .16); color: var(--lime); }
.float-card--3 { bottom: 2%; right: 12%; animation-delay: -4s; }
.float-card--3 .ico { background: rgba(252, 206, 25, .16); color: var(--yellow); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.steps::before {
  content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--blue));
  box-shadow: 0 0 12px rgba(155, 226, 47, .5); opacity: .7;
}
.steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; }
.steps__n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  font: 900 21px/1 var(--display); color: #0b1100;
  background: var(--lime); box-shadow: 0 0 0 6px #060a10, 0 0 22px rgba(155, 226, 47, .7);
}
.steps li:nth-child(n+4) .steps__n { background: var(--blue); color: #001520; box-shadow: 0 0 0 6px #060a10, 0 0 22px rgba(3, 172, 232, .7); }
.steps .ico { width: 28px; height: 28px; color: #cfd8e3; stroke-width: 1.6; }
.steps b { font: 800 19px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.steps small { font-size: 13.5px; color: var(--muted); }
/* Servicio técnico: tarjetas de cada servicio, línea de escaneo sobre la foto y pulso que recorre los pasos */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.svc-card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 20, 30, .88), rgba(8, 12, 18, .88));
  border: 1px solid rgba(3, 172, 232, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 36px -24px #000;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.svc-card:hover { transform: translateY(-3px); border-color: rgba(3, 172, 232, .6); box-shadow: 0 0 30px -10px rgba(3, 172, 232, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
.svc-card__ico {
  flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 14px; fill: none; stroke: currentColor; stroke-width: 1.9;
  color: #bfefff; background: radial-gradient(circle at 30% 25%, rgba(3, 172, 232, .45), rgba(3, 172, 232, .08) 70%);
  box-shadow: inset 0 0 0 1px rgba(3, 172, 232, .4);
}
.svc-card:nth-child(even) .svc-card__ico { color: #e4ffc2; background: radial-gradient(circle at 30% 25%, rgba(155, 226, 47, .4), rgba(155, 226, 47, .07) 70%); box-shadow: inset 0 0 0 1px rgba(155, 226, 47, .4); }
.svc-card__txt { font: 600 15px/1.35 var(--font); color: #e6edf6; }
.service__photo::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(3, 172, 232, .18) 80%, rgba(3, 172, 232, .65));
  transform: translateY(-110%); animation: svc-scan 4.6s ease-in-out infinite;
}
@keyframes svc-scan { 0% { transform: translateY(-110%); } 60%, 100% { transform: translateY(300%); } }
.steps::after {
  content: ""; position: absolute; top: 22px; left: -18%; width: 18%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 14px #fff;
  animation: svc-flow 3.4s linear infinite;
}
@keyframes svc-flow { from { left: -18%; } to { left: 100%; } }
@media (max-width: 780px) { .svc-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .service__photo::before, .steps::after { animation: none; } }

/* ---------- Blog ---------- */
.link-more { display: inline-flex; align-items: center; gap: 8px; font: 800 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.link-more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-more:hover .ico { transform: translateX(4px); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.post {
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #121821, #0c1017); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.post:hover { transform: translateY(-6px); border-color: rgba(155, 226, 47, .4); box-shadow: 0 30px 60px -30px rgba(155, 226, 47, .4); }
.post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { display: grid; gap: 10px; padding: 20px 22px 26px; }
.post__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.post h3 { font: 800 24px/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.post h3 a { background-image: linear-gradient(var(--lime), var(--lime)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease), color .3s; }
.post:hover h3 a { background-size: 100% 2px; color: #fff; }
.post p:last-child { color: var(--muted); font-size: 15px; }

/* ---------- Contacto ---------- */
.contact { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 70px); }
.btn--mail { text-transform: none; letter-spacing: .02em; font-family: var(--font); font-weight: 700; font-size: 15px; }
.contact__card {
  position: relative; isolation: isolate; margin-top: clamp(40px, 6vw, 90px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px 48px; align-items: end;
  padding: clamp(32px, 5vw, 70px);
  padding-right: clamp(32px, 26vw, 400px);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 90% at 88% 100%, rgba(155, 226, 47, .28), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 0%, rgba(3, 172, 232, .14), transparent 60%),
    linear-gradient(135deg, #0f170b 0%, #0b111b 55%, #0a0d14 100%);
  border: 1px solid rgba(155, 226, 47, .22);
}
.contact__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(118deg, transparent 0 22px, rgba(155, 226, 47, .05) 22px 24px);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
          mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.contact__mascot {
  position: absolute; z-index: 1; right: clamp(0px, 4vw, 70px); bottom: 0;
  height: 122%; width: auto; max-width: none;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .4)) drop-shadow(0 0 34px rgba(155, 226, 47, .4));
  pointer-events: none;
}
.contact__copy { grid-column: 1 / -1; max-width: 640px; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__info { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.contact__info li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(8, 11, 16, .55); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.contact__info .ico { width: 22px; height: 22px; color: var(--lime); }
.contact__info p { display: grid; line-height: 1.25; }
.contact__info b { font-size: 14.5px; }
.contact__info span { font-size: 13.5px; color: var(--muted); }

/* ---------- Pie de página ---------- */
.site-footer { position: relative; padding-top: 64px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #080b10, #05070a); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--lime), var(--blue), transparent); opacity: .6; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 70px; width: auto; }
.footer__brand p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 340px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: #dce3ec; transition: color .25s, border-color .25s, transform .25s var(--ease), background-color .25s; }
.socials a:hover { color: #0b1100; background: var(--lime); border-color: var(--lime); transform: translateY(-3px); }
.socials .ico-b { width: 19px; height: 19px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { font: 800 18px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.footer__col a { color: var(--muted); font-size: 15px; width: fit-content; transition: color .2s; }
.footer__col a:hover { color: var(--lime-hi); }
.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay li { padding: 7px 11px; border-radius: 9px; font: 700 13px/1 var(--font); color: #dfe6ee; background: var(--surface); border: 1px solid var(--line); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13.5px; }

/* ---------- WhatsApp flotante y avisos ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8);
  transition: transform .3s var(--ease), opacity .3s, visibility 0s;
}
.js:not(.show-wa) .wa-float { opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8); transition: transform .3s var(--ease), opacity .3s, visibility 0s .3s; }
.wa-float .ico-b { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s var(--ease) infinite; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; translate: -50% 140%;
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px;
  background: rgba(14, 19, 27, .92); border: 1px solid rgba(155, 226, 47, .4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .9);
  font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none;
  transition: translate .5s var(--ease-expo), opacity .3s;
}
.toast.is-on { translate: -50% 0; opacity: 1; }
.toast .ico { width: 20px; height: 20px; color: var(--lime); }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease-expo); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1560px) {
  .search input { width: 230px; }
}

/* Con 8 opciones en el menú (con Blog y Nosotros), la búsqueda se pliega en un ícono que despliega la barra */
@media (max-width: 1520px) {
  .nav { position: static; }
  .search-toggle { display: inline-grid; }
  .search {
    --pad: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    padding: 12px var(--pad) 16px;
    background: rgba(8, 10, 15, .95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .45s var(--ease-expo), visibility 0s .3s;
  }
  .search input { width: 100%; height: 50px; font-size: 16px; }
  .search button { top: 19px; right: calc(var(--pad) + 7px); }
  .search-open .search { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .search-open .search-toggle { color: var(--lime-hi); background: rgba(255, 255, 255, .07); }
}

@media (max-width: 1180px) {
  :root { --nav-h: 70px; }
  .menu a { font-size: 15px; }
  .hero__values li { font-size: 11.5px; }
}

/* Tableta acostada o pantallas bajas: el menú del celular usa letra más pequeña para que quepan las 8 opciones */
@media (max-width: 1099px) and (max-height: 820px) {
  .nav .menu a { font-size: clamp(30px, 6.2vh, 48px); }
}

/* Escritorio angosto: el menú de 8 opciones se compacta para caber en una sola línea */
@media (max-width: 1280px) and (min-width: 1100px) {
  .nav { gap: 18px; }
  .menu { gap: 12px; }
  .menu a { font-size: 14.5px; }
  .menu a.menu__cta { padding: 8px 12px; }
}

/* Escritorio con poca altura (laptops 1366×768, 1280×720…) */
@media (min-width: 1100px) and (max-height: 820px) {
  .hero__values { display: none; }
  .slide__plat, .slide__link { display: none; }
  .slide__logo { max-height: 11vh; }
  .slide__logo--tall { max-height: 17vh; }
}

/* ---- Tablet y móvil: el hero pasa a formato apilado ---- */
@media (max-width: 1099px) {
  :root { --ticker-h: 30px; --nav-h: 66px; }
  .ticker { font-size: 11.5px; }
  .burger { display: inline-grid; }
  .menu {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; justify-content: safe center; align-items: flex-start; gap: 6px;
    padding: calc(var(--top) + 20px) var(--gutter) 40px;
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(ellipse at 80% 20%, rgba(155, 226, 47, .14), transparent 60%),
      rgba(6, 8, 12, .97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .45s var(--ease-expo), visibility 0s .35s;
  }
  .menu a { font: 900 clamp(34px, 8vw, 60px)/1.05 var(--display); text-transform: uppercase; padding: 5px 0; }
  .menu a::after { bottom: 4px; height: 4px; }
  .menu a.menu__cta {
    padding: 5px 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    color: #dbe2ec; gap: 14px; transform: none;
  }
  .menu a.menu__cta .ico { width: .72em; height: .72em; }
  .nav-open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }

  .hero {
    --stage-h: clamp(460px, 66svh, 780px);
    --logos-h: clamp(92px, 15vh, 150px);
    height: auto; min-height: 0;
    padding-bottom: 28px;
  }
  .hero__slides, .hero__fx, .hero__particles, .hero__infos { bottom: auto; height: var(--stage-h); }
  .hero__fx {
    background:
      linear-gradient(180deg, rgba(7, 9, 13, .92) 0%, rgba(7, 9, 13, .45) 22%, rgba(7, 9, 13, 0) 40%),
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 13, .85) 14%, rgba(7, 9, 13, 0) 45%),
      radial-gradient(ellipse 80% 70% at 50% 50%, rgba(7, 9, 13, 0) 50%, rgba(7, 9, 13, .45) 100%);
  }
  .slide__half--a { width: 66%; }
  .slide__half--b { left: 34%; }
  .slide::after { left: 50%; }
  .slide__info { top: calc(var(--top) + 14px); width: 42vw; gap: 8px; }
  .slide__logo { max-height: calc(var(--logos-h) - 40px); }
  .slide__logo--tall { max-height: calc(var(--logos-h) - 34px); }
  .slide__plat, .slide__link { display: none; }
  .slide__meta { font-size: 13px; gap: 8px; }
  .slide__meta span:not(.tag) { display: none; }

  .hero__content {
    position: relative; inset: auto;
    display: flex; flex-direction: column; align-items: stretch;
    padding: calc(var(--top) + var(--logos-h)) var(--gutter) 0;
  }
  .hero__mascot {
    height: calc(var(--stage-h) - var(--top) - var(--logos-h));
    width: auto; aspect-ratio: 799 / 1532;
    margin: 0 auto; align-self: center;
  }
  .hero__copy { text-align: center; margin-top: -8px; }
  .eyebrow { letter-spacing: .22em; }
  .hero__title { font-size: clamp(40px, 8.4vw, 74px); }
  .hero__values { display: none; }
  .hero__ctas { justify-content: center; }
  .hero__rail { max-width: 720px; width: 100%; align-self: center; margin-top: 26px; padding: 12px; }
  .rail__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .rail__item { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 10px 6px 14px; text-align: center; }
  .rail__text small { display: none; }
  .rail__text b { font-size: 14px; white-space: normal; line-height: 1.05; }
  .rail__bar { left: 10px; right: 10px; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .perks li:nth-child(2) { border-right: 0; }
  .service__grid { grid-template-columns: 1fr; }
  .service__visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts .post:last-child { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact__card { padding-right: clamp(32px, 5vw, 70px); padding-bottom: clamp(300px, 56vw, 420px); }
  .contact__mascot { height: clamp(280px, 52vw, 400px); bottom: 0; right: 50%; translate: 50% 0; }
}

@media (max-width: 760px) {
  .nav { gap: 10px; }
  .hide-sm { display: none; }
  .brand img { height: 46px; }
  .hero { --stage-h: clamp(430px, 64svh, 600px); --logos-h: 86px; }
  .slide__info { width: 43vw; }
  .slide__info--a { left: 14px; }
  .slide__info--b { right: 14px; }
  .tag { height: 22px; font-size: 12px; padding: 0 8px; }
  .hero__ctas .btn, .hero__ctas .btn-games { flex: 1 1 100%; }
  .btn-games { justify-content: flex-start; padding-left: 12px; }
  .btn-games__stack { right: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .rail__head { padding-bottom: 10px; }
  .rail__title { font-size: 16px; }
  .rail__count { display: none; }
  .rail__ctrl { margin-left: auto; }
  .rail__thumbs { width: 54px; height: 42px; }
  .rail__thumbs img { width: 28px; height: 42px; }
  .rail__text { display: none; }
  .rail__item { padding: 10px 4px 14px; }

  /* En celular el banner se recorta a lo esencial (logo + lema) para que el texto se lea */
  .mission__banner { border-radius: 20px; }
  .mission__banner img { aspect-ratio: 1056 / 710; object-fit: cover; object-position: 54% 50%; }

  .section__head--row { flex-direction: column; align-items: flex-start; }
  .cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat { min-height: 230px; }
  .cat__sub { max-width: 60%; }
  .perks { grid-template-columns: 1fr; padding: 8px 4px; }
  .perks li { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .perks li:last-child { border-bottom: 0; }
  .checklist { grid-template-columns: 1fr; }
  .float-card { padding: 9px 12px; }
  .float-card b { font-size: 14px; }
  .float-card span { font-size: 12px; }
  .float-card .ico { width: 28px; height: 28px; padding: 5px; }
  .float-card--1 { right: 0; }
  .float-card--2 { right: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: 1fr; }
  .posts .post:last-child { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__info { flex-direction: column; }
  .toast { width: calc(100% - 32px); justify-content: center; }
}

@media (max-width: 1099px) and (orientation: landscape) and (max-height: 560px) {
  .hero { --stage-h: 520px; --logos-h: 80px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ticker__track { animation: none !important; }
  .slide__half img, .hero__mascot { translate: none !important; }
  .hero__particles { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Enlace "Consulta el estado de tu pedido" (contacto) */
.contact__track { grid-column: 1 / -1; margin-top: 4px; }
.contact__track a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }
.contact__track .ico { width: 20px; height: 20px; }
.contact__info a { color: inherit; }
