/* =====================================================================
   Digital Gaming Store - hoja de estilos
   Tema oscuro bloqueado. Colores tomados del logo: negro + azul
   electrico (#38b6ff) a violeta (#9b4dff), con glow contenido.
   Una sola escala de radios. Motion respeta prefers-reduced-motion.
   ===================================================================== */

:root {
  /* superficies */
  --bg:        #0a0a0f;
  --bg-elev:   #101018;
  --bg-card:   #14141e;
  --bg-tint:   #0d0d15;

  /* lineas y texto */
  --border:    rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:      #f3f3f8;
  --text-dim:  #a2a2b6;
  --text-mute: #8b8b9e;

  /* marca */
  --blue:      #38b6ff;
  --indigo:    #5b6bff;
  --violet:    #9b4dff;
  --accent:    #6a5cff;              /* acento solido unico de toda la pagina */
  --grad:      linear-gradient(115deg, #38b6ff 0%, #6a5cff 48%, #b04dff 100%);  /* decorativo: texto recortado, glows */
  --grad-btn:  linear-gradient(115deg, #1f57cc 0%, #5137c9 55%, #7d27b3 100%);  /* relleno con texto blanco (pasa AA) */
  --grad-soft: linear-gradient(115deg, rgba(56,182,255,.18), rgba(155,77,255,.18));

  /* estado */
  --wa:        #25d366;
  --wa-dark:   #1ebe5a;
  --sale:      #ff5c8a;

  /* forma */
  --r:         14px;
  --r-sm:      10px;
  --r-pill:    999px;

  /* sombras (tintadas al fondo, sin negro puro) */
  --shadow:    0 18px 50px -20px rgba(4, 6, 20, 0.75);
  --glow:      0 0 0 1px rgba(106, 92, 255, 0.35), 0 12px 40px -12px rgba(106, 92, 255, 0.45);

  /* layout */
  --wrap:      1180px;
  --nav-h:     68px;
}

/* ---------- reset ligero ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  /* clip (no "hidden") para no romper el position: sticky de la barra */
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; }
h1, h2, h3, h4 { font-family: "Outfit", system-ui, sans-serif; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

/* fuente display solo para los momentos grandes */
.hero__title, .stat__num, .nav__brand {
  font-family: "Unbounded", "Outfit", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(106, 92, 255, 0.4); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* solo para lectores de pantalla / estructura de encabezados (no visible) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* =====================================================================
   BOTONES  (una sola familia: pill)
   ===================================================================== */
.btn {
  --btn-bg: var(--bg-elev);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem;
  background: var(--btn-bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: default; pointer-events: none; }

.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }

.btn--primary {
  background: var(--grad-btn); border-color: transparent; color: #fff;
  box-shadow: var(--glow);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(106,92,255,.5), 0 16px 48px -12px rgba(106,92,255,.6); }

.btn--wa { background: var(--wa); border-color: transparent; color: #04240f; font-weight: 700; }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 12px 36px -12px rgba(37, 211, 102, .55); }

.btn--ghost { background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: var(--border-strong); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 20px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 22px;
}
.nav__brand { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo { height: 48px; width: auto; mix-blend-mode: screen; }

.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .92rem; color: var(--text-dim);
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav__cta { flex-shrink: 0; padding: 10px 18px; }

/* interruptor de moneda ($ / Bs) */
.curswitch {
  display: inline-flex; flex-shrink: 0;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .03); overflow: hidden;
}
.curswitch button {
  padding: 6px 13px; font: inherit; font-size: .85rem; font-weight: 600; line-height: 1;
  color: var(--text-mute); background: transparent; border: 0; cursor: pointer;
  transition: color .15s, background .15s;
}
.curswitch button:hover { color: var(--text-dim); }
.curswitch button.is-on { color: #fff; background: var(--grad-btn); }
.curswitch button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 8px 20px 16px;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 12px 4px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.nav__mobile a:last-child { border-bottom: 0; }

/* =====================================================================
   AVISO: franja arriba del hero (se enciende desde el panel)
   ===================================================================== */
.aviso {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px;
  background: var(--grad-btn); color: #fff;
  text-align: center;
}
.aviso[hidden] { display: none; }
.aviso__ico { width: 18px; height: 18px; flex-shrink: 0; }
.aviso__texto { font-size: .88rem; font-weight: 600; line-height: 1.4; max-width: 900px; }

/* franja de la promo 3x2, arriba de "Ofertas por tiempo limitado" */
.promo3x2-aviso {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; text-align: center;
  background: linear-gradient(90deg, #17b978, #46e08a 55%, #17b978);
  color: #06180f;
}
.promo3x2-aviso[hidden] { display: none; }
.promo3x2-aviso::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: promo3x2Shine 4.5s ease-in-out infinite;
}
.promo3x2-aviso__ico { font-size: 1.05rem; flex-shrink: 0; }
.promo3x2-aviso__texto { font-size: .9rem; font-weight: 800; letter-spacing: .01em; line-height: 1.35; max-width: 900px; }
@keyframes promo3x2Shine {
  0%, 65% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) { .promo3x2-aviso::after { display: none; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: min(80vh, 640px);
  display: flex; align-items: flex-end;         /* texto abajo */
  padding: calc(var(--nav-h) + 24px) 0 52px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.1s ease, transform 14s ease;
}
.hero__bg.is-on { opacity: 1; transform: scale(1.035); }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  /* solo oscurece la esquina inferior izquierda (donde va el texto) y funde el borde
     inferior con la página; la parte de arriba y la derecha quedan sin filtro */
  background:
    radial-gradient(135% 100% at 0% 100%, rgba(10,10,15,.88), rgba(10,10,15,.4) 46%, transparent 74%),
    linear-gradient(0deg, var(--bg) 3%, rgba(10,10,15,.5) 19%, rgba(10,10,15,.12) 37%, transparent 50%);
}
/* franjas decorativas arriba (pegada a la nav / el logo) y abajo del hero */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(56,182,255,.7) 27%, rgba(155,77,255,.7) 73%, transparent) left top / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(56,182,255,.7) 27%, rgba(155,77,255,.7) 73%, transparent) left bottom / 100% 2px no-repeat,
    radial-gradient(58% 20px at 50% 12px, rgba(120,110,255,.16), transparent 62%),
    radial-gradient(58% 22px at 50% calc(100% - 22px), rgba(120,110,255,.16), transparent 66%);
}

/* flechas para cambiar de imagen (mismo espíritu que el carrusel) */
.hero__nav {
  position: absolute; top: 30%; transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(12,12,20,.72), rgba(12,12,20,.72)) padding-box,
    var(--grad) border-box;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.6);
  transition: background .2s ease, box-shadow .2s ease, transform .12s ease;
}
.hero__nav svg { width: 20px; height: 20px; color: var(--blue); transition: color .2s ease; }
.hero__nav:hover { background: var(--grad-soft) padding-box, var(--grad) border-box; }
.hero__nav:hover svg { color: #fff; }
.hero__nav:active { transform: translateY(-50%) scale(.9); }
.hero__nav[hidden] { display: none; }
.hero__nav--prev { left: 12px; }
.hero__nav--next { right: 12px; }

.hero__content { position: relative; z-index: 2; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; width: 100%; }
.hero__eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  padding: 5px 13px; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  background: rgba(56,182,255,.08);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(1.55rem, 5.2vw, 3rem);
  font-weight: 700;
  max-width: 20ch;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}
.hero__title .grad { white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* puntos: uno por imagen del inicio (centrados) */
.hero__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.hero__dots:empty { display: none; }
.hero__dot {
  width: 8px; height: 8px; padding: 0; border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .28);
  transition: width .2s ease, background .2s ease;
}
.hero__dot:hover { background: rgba(255, 255, 255, .5); }
.hero__dot.is-active { width: 26px; background: var(--grad); }

/* =====================================================================
   SECCIONES (base)
   ===================================================================== */
.section {
  position: relative;
  isolation: isolate;
  --fr: 48px;   /* cuanto se sale el ::before por arriba y por abajo (mayor que el
                   alcance del destello, para que NUNCA se corte contra el borde) */
  /* separacion mas corta: las secciones se sienten encadenadas, no sueltas */
  padding: clamp(30px, 4.2vw, 52px) 0;
}
/* franja fina al principio y al final de cada seccion, cuyo destello se difumina
   HACIA ARRIBA y HACIA ABAJO del nucleo (el ::before se sale --fr px por arriba y
   por abajo para que la luz pueda desvanecerse a ambos lados sin recortarse). */
.section::before {
  content: "";
  position: absolute; left: 0; right: 0;
  top: calc(var(--fr) * -1); bottom: calc(var(--fr) * -1);
  z-index: -1; pointer-events: none;
  background:
    /* nucleo fino (2px), sobre el borde real de la seccion */
    linear-gradient(90deg, transparent, rgba(56, 182, 255, 0.72) 27%, rgba(155, 77, 255, 0.72) 73%, transparent) left top var(--fr) / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(56, 182, 255, 0.72) 27%, rgba(155, 77, 255, 0.72) 73%, transparent) left bottom var(--fr) / 100% 2px no-repeat,
    /* destello: elipses centradas en el nucleo. ry <= 34 < --fr (48), y con la
       parada en 72% se apagan MUCHO antes del borde -> nunca se ve como cuadrado */
    radial-gradient(44% 22px at 50% var(--fr), rgba(120, 150, 255, 0.16), transparent 72%),
    radial-gradient(44% 22px at 50% calc(100% - var(--fr)), rgba(150, 110, 255, 0.16), transparent 72%),
    radial-gradient(60% 34px at 50% var(--fr), rgba(95, 120, 255, 0.06), transparent 72%),
    radial-gradient(60% 34px at 50% calc(100% - var(--fr)), rgba(120, 95, 255, 0.06), transparent 72%);
}
/* tinte semitransparente (NO opaco) para que el destello de la seccion vecina
   pueda verse por encima al asomarse en el borde */
.section--tint { background: rgba(122, 110, 255, 0.03); }
.section--tint::before {
  background:
    linear-gradient(90deg, transparent, rgba(56, 182, 255, 0.76) 27%, rgba(155, 77, 255, 0.76) 73%, transparent) left top var(--fr) / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(56, 182, 255, 0.76) 27%, rgba(155, 77, 255, 0.76) 73%, transparent) left bottom var(--fr) / 100% 2px no-repeat,
    radial-gradient(44% 22px at 50% var(--fr), rgba(120, 150, 255, 0.18), transparent 72%),
    radial-gradient(44% 22px at 50% calc(100% - var(--fr)), rgba(150, 110, 255, 0.18), transparent 72%),
    radial-gradient(62% 34px at 50% var(--fr), rgba(95, 120, 255, 0.065), transparent 72%),
    radial-gradient(62% 34px at 50% calc(100% - var(--fr)), rgba(120, 95, 255, 0.065), transparent 72%);
}

/* fondo de las secciones tintadas (alternan) y de la pagina de catalogo completo
   (.catfull): fibra de carbono (tejido en diagonal) + capa tecnologica encima
   (rejilla + nodos que brillan) + un foco azul que sigue al cursor (--tx/--ty los
   pone initCursorFX). Se funde a 46px de los bordes para no tocar la franja. */
.section--tint::after,
.catfull::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-color: transparent;
  background-image:
    /* foco chico que sigue al cursor (fuera de pantalla si aun no hay cursor) */
    radial-gradient(150px 150px at var(--tx, 50%) var(--ty, -700px), rgba(88, 170, 255, 0.18), transparent 68%),
    radial-gradient(58px 58px at var(--tx, 50%) var(--ty, -700px), rgba(150, 205, 255, 0.2), transparent 70%),
    /* nodos: puntos glow (con halo) cada 96px, en una interseccion de la rejilla */
    radial-gradient(circle at 48px 48px, rgba(150, 205, 255, 0.32) 1.6px, rgba(150, 205, 255, 0.09) 3px, transparent 5px),
    /* rejilla tecnologica fina */
    linear-gradient(rgba(128, 142, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 142, 255, 0.11) 1px, transparent 1px),
    /* fibra de carbono (malla diagonal) */
    repeating-linear-gradient(45deg,  rgba(151, 139, 255, 0.12) 0 1.5px, transparent 1.5px 7px),
    repeating-linear-gradient(-45deg, rgba(58, 150, 255, 0.09) 0 1.5px, transparent 1.5px 7px);
  background-size:
    auto, auto,
    96px 96px,
    48px 48px, 48px 48px,
    auto, auto;
  transition: filter .25s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 46px, #000 calc(100% - 46px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 46px, #000 calc(100% - 46px), transparent);
}
/* en .catfull, el ::after (textura) también va a lo ancho de toda la pantalla */
.catfull::after {
  inset: auto;
  top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
}
/* cuando el cursor esta dentro, toda la textura se aviva un poco
   (initCursorFX solo pone .fx-hover con puntero fino y sin reduce-motion) */
.section--tint.fx-hover::after,
.catfull.fx-hover::after { filter: brightness(1.35) saturate(1.12); }

.section__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 10px; text-align: center; }
.section__lead { color: var(--text-dim); max-width: 60ch; margin-inline: auto; font-size: 1.02rem; text-align: center; }
.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }


/* =====================================================================
   RAIL (carrusel horizontal con scroll-snap) - Ofertas y Nuevos
   ===================================================================== */
.rail {
  margin-top: 24px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.rail > * { scroll-snap-align: start; }

/* cinta de "Juegos nuevos": rota sola hacia la derecha (lenta), pero el cliente
   puede arrastrarla; al soltar y quedarse quieto, retoma el movimiento.
   El auto-desplazamiento lo maneja script.js (scroll con bucle rAF). */
.rail-marquee {
  margin-top: 24px;
  padding-block: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.rail-marquee::-webkit-scrollbar { display: none; }
.rail-marquee.is-rodando { cursor: grab; }
.rail-marquee.is-rodando:active { cursor: grabbing; }
.rail-track { display: flex; width: max-content; }
.rail-track .card { flex: 0 0 clamp(260px, 80vw, 312px); margin-right: 18px; }

/* carrusel con flechas (Ofertas): el padding lateral deja hueco a las flechas.
   La barra de scroll se oculta; se navega con las flechas y los puntos. */
.carrusel { position: relative; margin-top: 24px; padding-inline: 58px; }
.carrusel .rail {
  margin-top: 0;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carrusel .rail::-webkit-scrollbar { display: none; }

/* puntos: uno por tarjeta */
.carrusel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carrusel__dots:empty { display: none; }
.carrusel__dot {
  width: 8px; height: 8px; padding: 0; border: 0;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  transition: width .2s ease, background .2s ease;
}
.carrusel__dot:hover { background: var(--text-mute); }
.carrusel__dot.is-active { width: 24px; background: var(--grad); }

.carrusel__nav {
  position: absolute; top: calc(50% - 14px);
  transform: translateY(-50%);
  z-index: 6;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  /* anillo con degradado: relleno oscuro (padding-box) + borde degradado (border-box) */
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6), 0 0 0 4px rgba(106, 92, 255, .08);
  transition: opacity .2s ease, box-shadow .2s ease, background .2s ease, transform .12s ease;
}
.carrusel__nav svg { width: 20px; height: 20px; color: var(--blue); transition: color .2s ease; }
.carrusel__nav:hover:not([disabled]) {
  background: var(--grad-soft) padding-box, var(--grad) border-box;
  box-shadow: 0 10px 30px -8px rgba(106, 92, 255, .5), 0 0 0 4px rgba(106, 92, 255, .16);
}
.carrusel__nav:hover:not([disabled]) svg { color: #fff; }
.carrusel__nav:active:not([disabled]) { transform: translateY(-50%) scale(.9); }
.carrusel__nav--prev { left: 4px; }
.carrusel__nav--next { right: 4px; }
.carrusel__nav[disabled] { opacity: .3; cursor: default; }

@media (max-width: 760px) {
  /* teléfono: tarjetas más angostas y centradas -> se asoman la anterior y la
     siguiente; la que está al frente se resalta con una transición suave. */
  .carrusel { padding-inline: 6px; }
  .carrusel .rail {
    grid-auto-columns: 74%;
    gap: 12px;
    scroll-padding-inline: 13%;
  }
  .carrusel .rail > .card {
    scroll-snap-align: center;
    opacity: .4;
    transform: scale(.9);
    transition: opacity .38s ease, transform .38s ease;
  }
  .carrusel .rail > .card.is-front { opacity: 1; transform: none; }

  .carrusel__nav { width: 32px; height: 32px; }
  .carrusel__nav svg { width: 14px; height: 14px; }
  .carrusel__nav--prev { left: -2px; }
  .carrusel__nav--next { right: -2px; }
}

/* tarjeta final: mismo formato que las de juego, con el llamado a la acción */
.card--cta {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--grad-soft);
}
.card--cta .card__link {
  position: static;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center;
  font-family: "Unbounded", "Outfit", sans-serif; font-weight: 700; font-size: 1.02rem;
}
.card--cta .card__cta-arrow { width: 30px; height: 30px; color: var(--blue); transition: transform .2s ease; }
.card--cta:hover .card__cta-arrow { transform: translateX(4px); }

/* =====================================================================
   TARJETAS DE JUEGO
   ===================================================================== */
.grid { display: grid; gap: 20px; }
.grid--games { margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid__empty { margin-top: 36px; color: var(--text-dim); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:focus-within { border-color: var(--blue); }

/* toda la tarjeta es clicable a través de este enlace/boton */
.card__link {
  font: inherit; color: inherit; text-align: inherit; cursor: pointer;
  background: none; border: 0; padding: 0;
}
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }

/* las carátulas son cuadradas: aspecto 1/1 para que la imagen se vea completa sin recorte */
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-elev); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--gift { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--grad-btn); }
.card__mark { font-family: "Unbounded", "Outfit", sans-serif; font-weight: 700; font-size: 1.7rem; color: #fff; }

.card__badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }

/* corazón de favoritos en la carátula */
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10,10,15,.55); backdrop-filter: blur(4px);
  color: #fff; transition: transform .15s, background .15s;
}
.fav-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn:hover { background: rgba(10,10,15,.75); transform: scale(1.08); }
.fav-btn.is-fav { color: #ff4d6d; }
.fav-btn.is-fav svg { fill: #ff4d6d; stroke: #ff4d6d; }
.badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.badge--new { background: var(--grad-btn); color: #fff; }
.badge--sale { background: rgba(255, 92, 138, .16); color: var(--sale); border: 1px solid rgba(255,92,138,.5); }
.badge--ps5 { background: rgba(56, 182, 255, .16); color: var(--blue); border: 1px solid rgba(56,182,255,.5); }
.badge--out { background: rgba(120, 120, 130, .28); color: #d9d9e0; border: 1px solid rgba(160,160,170,.5); }
.badge--soon { background: rgba(56, 182, 255, .16); color: var(--blue); border: 1px solid rgba(56,182,255,.5); }

.card__body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; text-align: center; }
.card__title { font-size: 1.1rem; font-weight: 700; }
.card__genre { color: var(--text-mute); font-size: .85rem; }
.card__price {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
/* en oferta: viejo arriba (chico), nuevo abajo (grande), todo centrado */
.card__price--of { flex-direction: column; align-items: center; gap: 1px; }
.card__pr { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.card__cap {
  font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-mute);
}
.card__from { font-size: .72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; }
.card__was { font-size: .8rem; color: var(--text-mute); text-decoration: line-through; }
.card__price--of .card__was { font-size: .72rem; }
.card__now { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.card__price--of .card__now { font-size: 1.4rem; }
.card__soon { font-size: 1.05rem; font-weight: 700; color: var(--blue); }

/* paginador */
.pager { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pager[hidden] { display: none; }
.pager__btn {
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: var(--bg-elev); color: var(--text-dim); font-weight: 600;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.pager__btn:hover:not(:disabled):not(.is-active) { color: var(--text); border-color: var(--blue); }
.pager__btn.is-active { background: var(--grad-btn); border-color: transparent; color: #fff; }
.pager__btn:disabled { opacity: .35; cursor: not-allowed; }
.pager__gap { align-self: end; padding: 0 2px 6px; color: var(--text-mute); }

.catalog__more { margin-top: 28px; text-align: center; }

/* =====================================================================
   MODAL: ELEGIR VERSIÓN
   ===================================================================== */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(4, 4, 10, .72);
  backdrop-filter: blur(4px);
  animation: modal-fade .28s ease both;
}
.modal__box {
  position: relative; z-index: 1;
  width: min(840px, 100%);
  max-height: min(94vh, 660px);
  overflow: hidden;
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  animation: modal-pop .34s cubic-bezier(.16, 1, .3, 1) both;
  transform-origin: center 45%;
}
/* salida (script.js añade .is-closing y espera a que termine para ocultar) */
.modal.is-closing .modal__overlay { animation: modal-fade-out .22s ease both; }
.modal.is-closing .modal__box { animation: modal-pop-out .22s cubic-bezier(.4, 0, 1, 1) both; }
.modal__x {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--border-strong);
  font-size: 1.3rem; line-height: 1; color: #fff;
}
.modal__x:hover { background: rgba(0, 0, 0, .78); }

.modal__grid {
  flex: 1; min-width: 0; min-height: 0;
  display: grid;
  grid-template-columns: 340px 1fr;
}

/* ---- columna izquierda: imagen completa del juego ---- */
.modal__left {
  min-height: 0; overflow: hidden;
  display: flex;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.modal__media { flex: 1; min-height: 0; position: relative; overflow: hidden; background: var(--bg); }
/* relleno: la misma carátula, ampliada y difuminada, cubre lo que la imagen "contain" deja libre */
.modal__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--modal-img);
  background-size: cover; background-position: center;
  filter: blur(30px) brightness(.4); transform: scale(1.2);
}
.modal__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }

/* ---- columna derecha: ficha + versión + precio + botón ---- */
.modal__right {
  min-height: 0;
  padding: 26px 26px 38px;
  overflow-y: auto;
  /* se puede desplazar con la rueda / el dedo, pero sin barra visible */
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex; flex-direction: column;
}
.modal__right::-webkit-scrollbar { display: none; }
.modal__buy {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
/* precio anterior arriba (chico, tachado), precio nuevo abajo (grande). Centrado. */
.modal__precio {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.modal__precio-cap {
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-mute);
}
.modal__precio-cap[hidden] { display: none; }
.modal__price-was { display: flex; align-items: baseline; gap: 5px; font-size: .82rem; }
.modal__price-was[hidden] { display: none; }
.modal__price-line { display: flex; align-items: baseline; gap: 7px; }
.modal__price-now {
  font-size: 2.1rem; font-weight: 700; font-family: "Unbounded", "Outfit", sans-serif;
}
.modal__price-now.is-agotado { color: var(--text-mute); text-decoration: line-through; }
.modal__price-now.is-proximamente { color: var(--blue); font-size: 1.6rem; }
.modal__precio-nota--agotado { color: var(--sale); }
.modal__precio-tachado { color: var(--sale); text-decoration: line-through; }
.modal__precio-nota { font-size: .82rem; color: var(--text-mute); text-align: center; }
.modal__acciones { display: flex; gap: 10px; }
.modal__acciones .btn { flex: 1; padding-inline: 14px; }
.modal__cart:disabled { opacity: .55; cursor: default; }
@media (max-width: 480px) { .modal__acciones { flex-direction: column; } }

.modal__share {
  align-self: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 100%; margin-top: 6px; padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(37, 211, 102, .45);
  background: rgba(37, 211, 102, .1);
  color: var(--wa); font: inherit; font-size: .82rem; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .1s ease, box-shadow .16s ease;
}
.modal__share:hover {
  background: var(--wa); color: #04140c; border-color: var(--wa);
  box-shadow: 0 10px 26px -12px rgba(37, 211, 102, .6);
}
.modal__share:active { transform: translateY(1px); }
.modal__share svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 380px) { .modal__share { font-size: .78rem; padding: 9px 14px; } }

.modal__similares { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal__similares[hidden] { display: none; }
.modal__similares-tit {
  font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 10px;
}
.modal__similares-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.modal__sim {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 0; overflow: hidden; cursor: pointer; text-align: left; display: flex; flex-direction: column;
  transition: border-color .15s;
}
.modal__sim:hover { border-color: var(--blue); }
.modal__sim img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.modal__sim span {
  padding: 6px 7px; font-size: .72rem; line-height: 1.25; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 480px) { .modal__similares-row { grid-template-columns: repeat(3, 1fr); } }
.modal__title-row { display: flex; align-items: flex-start; gap: 12px; }
.modal__title { font-size: 1.4rem; flex: 1; min-width: 0; }
.modal__fav {
  flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-elev);
  color: var(--text-mute); cursor: pointer; transition: transform .15s, color .15s, border-color .15s;
}
.modal__fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.modal__fav:hover { transform: scale(1.06); border-color: #ff4d6d; color: #ff4d6d; }
.modal__fav.is-fav { color: #ff4d6d; border-color: #ff4d6d; }
.modal__fav.is-fav svg { fill: #ff4d6d; }
.modal__specs { list-style: none; margin: 14px 0 4px; }
.modal__specs li[hidden] { display: none; }
.modal__specs li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.modal__specs li span:first-child {
  color: var(--text-mute); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
}
.modal__specs li span:last-child { color: var(--text); font-weight: 600; font-size: .92rem; text-align: right; }
.modal__desc { color: var(--text-dim); font-size: .93rem; margin-top: 14px; }

.opt { margin-top: 20px; }
.opt[hidden] { display: none; }
.opt__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-mute);
}
.opt__hint {
  letter-spacing: .04em;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(56,182,255,.14); color: var(--blue);
  border: 1px solid rgba(56,182,255,.4);
}
.opt__choices { display: flex; gap: 8px; }
.opt__choices label { flex: 1; position: relative; }
.opt__choices input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt__choices span {
  display: block; text-align: center;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  font-weight: 600; font-size: .92rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.opt__choices label:hover span { border-color: var(--blue); }
.opt__choices input:checked + span { background: var(--grad-btn); border-color: transparent; color: #fff; }
.opt__choices input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.opt__choices input:disabled + span { opacity: .35; cursor: not-allowed; }
.opt__choices label.is-off { cursor: not-allowed; }

@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(20px) scale(.94); } }
@keyframes modal-fade-out { to { opacity: 0; } }
@keyframes modal-pop-out { to { opacity: 0; transform: translateY(12px) scale(.96); } }

/* =====================================================================
   SELECTOR DE MÉTODO DE PAGO (antes de mandar el pedido por WhatsApp)
   ===================================================================== */
.paypick[hidden] { display: none; }
.paypick {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.paypick__overlay {
  position: absolute; inset: 0;
  background: rgba(4, 4, 10, .72); backdrop-filter: blur(4px);
  animation: modal-fade .24s ease both;
}
.paypick__box {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 28px;
  animation: modal-pop .3s cubic-bezier(.16, 1, .3, 1) both;
}
.paypick.is-closing .paypick__overlay { animation: modal-fade-out .2s ease both; }
.paypick.is-closing .paypick__box { animation: modal-pop-out .2s cubic-bezier(.4, 0, 1, 1) both; }
.paypick__x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  font-size: 1.2rem; line-height: 1; color: var(--text-dim);
}
.paypick__x:hover { color: var(--text); }
.paypick__tit { font-size: 1.2rem; margin-bottom: 6px; padding-right: 26px; }
.paypick__hint { color: var(--text-mute); font-size: .82rem; margin-bottom: 18px; }
.paypick__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.paypick__opt { position: relative; display: block; cursor: pointer; }
.paypick__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.paypick__opt span {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  font-weight: 600; font-size: .92rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.paypick__tag {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-mute);
}
.paypick__opt:hover span { border-color: var(--blue); }
.paypick__opt input:checked + span { background: var(--grad-btn); border-color: transparent; color: #fff; }
.paypick__opt input:checked + span .paypick__tag { color: rgba(255,255,255,.75); }
.paypick__opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.paypick__vacio { color: var(--text-mute); font-size: .88rem; margin-bottom: 20px; }
.paypick__ok { display: flex; width: 100%; }

/* =====================================================================
   PÁGINA: CATÁLOGO COMPLETO
   ===================================================================== */
.catfull { position: relative; isolation: isolate; padding: calc(var(--nav-h) + 44px) 20px 90px; }
/* el fondo (tinte + auroras) va a lo ancho de TODA la pantalla, no solo la
   columna centrada de .wrap -> si no, los laterales quedaban sin efecto */
.catfull::before {
  content: "";
  position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
  background-color: rgba(122, 110, 255, 0.03);   /* mismo tinte que las secciones tintadas */
  background-image:
    radial-gradient(40% 32% at 96% 0%, rgba(106, 92, 255, 0.13), transparent 68%),
    radial-gradient(44% 34% at -6% 8%, rgba(56, 182, 255, 0.10), transparent 70%);
}
.catfull__head { margin-bottom: 26px; }
.filtros {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-card);
}
.filtros .search { flex: 1 1 240px; max-width: none; }
.filtros select {
  background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: var(--r-pill); padding: 10px 16px; font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer;
}
.filtros select:hover { border-color: var(--blue); }
.chk {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 0 4px;
}
.chk input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.filtros .chips { margin-left: auto; }

/* segunda fila de filtros: sin recuadro, más ligera */
.filtros--row2 {
  margin-top: 12px;
  border: 0; background: none; padding: 4px 2px;
  gap: 10px;
}
.filtros__juego { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filtros__juego[hidden] { display: none; }
.filtros--row2 #cfOrden { margin-left: auto; }

.catfull__meta {
  margin: 22px 0 2px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.catfull__conteo { margin: 0; color: var(--text-mute); font-size: .9rem; }
.catfull__meta .chk[hidden] { display: none; }
.catfull .grid--games { margin-top: 14px; }
.catfull .pager { margin-top: 30px; }
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }

/* =====================================================================
   REFERENCIAS
   ===================================================================== */
.refs {
  margin-top: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 24px;
  align-items: stretch;
}
/* izquierda: título centrado + descripción + cinta de testimonios.
   Contenido centrado en vertical para reflejar la tarjeta de la derecha. */
.refs__main { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.refs__main .section__lead { margin-bottom: 22px; }

/* columna de reseñas: cinta que rota sola hacia la derecha */
.refs__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.refs__track {
  display: flex;
  width: max-content;
  animation: refsRodar 44s linear infinite;
}
.refs__track .review { margin-right: 16px; }
.refs__marquee:hover .refs__track,
.refs__marquee:focus-within .refs__track { animation-play-state: paused; }
@keyframes refsRodar {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.review {
  flex: 0 0 clamp(240px, 72vw, 292px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.review:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 700; font-size: .82rem; color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 3.5px rgba(106, 92, 255, .5);
}
.review__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.review__name { font-weight: 600; font-size: .88rem; }
.review__handle {
  color: var(--text-mute); font-size: .76rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review__verif { margin-left: auto; color: var(--blue); flex-shrink: 0; }
.review__verif svg { width: 18px; height: 18px; display: block; }
.review__text { color: var(--text); font-size: .95rem; }
.review__src {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  color: var(--text-mute); font-size: .74rem; letter-spacing: .02em; text-transform: uppercase;
}

/* tarjeta de marca (derecha): llena el alto de la columna, contenido centrado */
.refs__aside { display: flex; }
.refs__card {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.refs__card::before {
  content: "";
  display: block; height: 3px; width: 56px; margin: 0 auto 22px;
  border-radius: var(--r-pill); background: var(--grad);
}
.refs__logo {
  width: 156px; height: auto; margin: 0 auto 18px;
  border-radius: var(--r-sm);
}
.refs__stat { font-weight: 700; font-size: 1.18rem; }
.refs__stat span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.refs__tagline {
  margin-top: 10px; margin-bottom: 24px; max-width: 32ch;
  color: var(--text-dim); font-size: .92rem; line-height: 1.55;
}
.refs__ig { width: 100%; justify-content: center; }

@media (max-width: 860px) {
  .refs { grid-template-columns: 1fr; }
  .refs__card { padding: 30px 24px; }
}

/* =====================================================================
   FRANJA DE CONFIANZA  (perks, justo antes del footer)
   ===================================================================== */
.perks { padding-block: clamp(24px, 3.4vw, 40px); }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: start;
  padding: 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.perk svg {
  grid-column: 1; grid-row: 1 / span 2;
  width: 24px; height: 24px; color: var(--blue); margin-top: 2px;
}
.perk__title { grid-column: 2; font-size: .98rem; font-weight: 700; }
.perk__text { grid-column: 2; margin-top: 3px; color: var(--text-dim); font-size: .85rem; line-height: 1.45; }

@media (max-width: 860px) { .perks__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .perks__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding-top: 44px; }
.footer__inner { display: grid; gap: 32px; grid-template-columns: 1.6fr repeat(3, 1fr); padding-bottom: 44px; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 14px; mix-blend-mode: screen; }
.footer__brand p { color: var(--text-mute); font-size: .9rem; max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: 4px; }
.footer__col a { color: var(--text-dim); font-size: .92rem; transition: color .15s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 20px 40px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-mute); font-size: .82rem;
}
.footer__disclaimer { max-width: 46ch; }

/* =====================================================================
   COOKIE BANNER
   ===================================================================== */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 560px; margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookies[hidden] { display: none; }
.cookies p { font-size: .88rem; color: var(--text-dim); flex: 1; min-width: 220px; }
.cookies__actions { display: flex; align-items: center; gap: 14px; }
.cookies__link { font-size: .85rem; color: var(--blue); }

/* =====================================================================
   CARRITO: botón flotante + panel lateral
   ===================================================================== */
.fab-cart {
  /* z-index 205: por encima del modal (200) para poder abrir el carrito desde
     cualquier parte, incluso con una tarjeta abierta; por debajo del drawer (210). */
  position: fixed; right: 20px; bottom: 20px; z-index: 205;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-btn); color: #fff;
  box-shadow: var(--glow), 0 12px 32px -8px rgba(0,0,0,.55);
  transition: transform .15s ease;
}
.fab-cart[hidden] { display: none; }
.fab-cart:hover { transform: translateY(-3px) scale(1.05); }
.fab-cart:active { transform: scale(.95); }
.fab-cart svg { width: 26px; height: 26px; }
.fab-cart__count {
  position: absolute; top: -5px; right: -5px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--sale); color: #fff;
  font-size: .78rem; font-weight: 700; line-height: 22px; text-align: center;
  border: 2px solid var(--bg);
}
.fab-cart__count.is-zero { background: var(--text-mute); }
@media (max-width: 620px) { .con-cookies .fab-cart { bottom: 150px; } }

/* =====================================================================
   PRUEBA SOCIAL: aviso de "Fulano acaba de comprar..." (abajo-izquierda)
   ===================================================================== */
.proof {
  position: fixed; left: 16px; bottom: 20px; z-index: 140;
  display: flex; align-items: center; gap: 12px;
  width: min(300px, calc(100vw - 32px));
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.proof[hidden] { display: none; }
.proof.is-on { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.proof__close {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  background: var(--bg-elev); color: var(--text-dim);
  font-size: 1rem; line-height: 1; cursor: pointer;
}
.proof__close:hover { color: var(--text); }
.proof__img {
  width: 46px; height: 46px; flex-shrink: 0; object-fit: cover;
  border-radius: var(--r-sm); background: var(--bg-elev);
}
.proof__body { min-width: 0; }
.proof__line { font-size: .78rem; color: var(--text-mute); }
.proof__name { color: var(--text); }
.proof__title {
  font-size: .86rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proof__price { font-size: .8rem; font-weight: 700; color: var(--wa); }
.con-cookies .proof { bottom: 100px; }
@media (max-width: 480px) {
  /* ancho limitado (no de borde a borde): dejar libre la esquina donde
     está el botón flotante del carrito */
  .proof { left: 10px; bottom: 16px; width: min(240px, calc(100vw - 100px)); }
  .con-cookies .proof { bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .proof { transition: opacity .01s linear; }
}

.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 210; }
.drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(4, 4, 10, .72); backdrop-filter: blur(4px);
  animation: modal-fade .24s ease both;
}
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(400px, 100%);
  background: var(--bg-card); border-left: 1px solid var(--border-strong);
  display: flex; flex-direction: column;
  animation: drawer-in .3s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes drawer-in { from { transform: translateX(100%); } }
/* salida (script.js añade .is-closing y espera a que termine para ocultar) */
.drawer.is-closing .drawer__overlay { animation: modal-fade-out .24s ease both; }
.drawer.is-closing .drawer__panel { animation: drawer-out .26s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes drawer-out { to { transform: translateX(100%); } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.drawer__head h2 { font-size: 1.2rem; }
.drawer__x {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  font-size: 1.3rem; line-height: 1; color: var(--text);
}
.drawer__x:hover { border-color: var(--blue); }
.drawer__list { list-style: none; flex: 1; overflow-y: auto; padding: 8px 20px; margin: 0; }
.drawer__list:empty { display: none; }
.drawer__empty { flex: 1; display: grid; place-items: center; color: var(--text-mute); padding: 48px 20px; text-align: center; }
.drawer__empty[hidden] { display: none; }

.citem { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.citem:last-child { border-bottom: 0; }
.citem__img {
  width: 60px; height: 44px; flex-shrink: 0;
  object-fit: cover; border-radius: var(--r-sm); background: var(--bg-elev);
}
.citem__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.citem__title { font-weight: 600; font-size: .92rem; }
.citem__meta { color: var(--text-mute); font-size: .8rem; }
.citem__qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.citem__q {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); color: var(--text);
  font-size: 1rem; line-height: 1; font-weight: 700;
  display: grid; place-items: center;
}
.citem__q:hover:not(:disabled) { border-color: var(--blue); }
.citem__q:disabled { opacity: .35; cursor: not-allowed; }
.citem__qn { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.citem__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.citem__price { color: var(--text); font-weight: 700; font-size: .95rem; }
.citem__del {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border);
  color: var(--text-mute); font-size: 1.1rem; line-height: 1;
}
.citem__del:hover { color: var(--sale); border-color: var(--sale); }

.drawer__foot {
  padding: 16px 20px 22px; border-top: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 10px;
}
.drawer__foot[hidden] { display: none; }
.drawer__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; margin: 2px 0 2px; }
.drawer__foot .btn { width: 100%; }

.cupon { display: flex; gap: 8px; }
.cupon input {
  flex: 1; min-width: 0;
  background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: var(--r-pill); padding: 9px 16px; font: inherit; font-size: .88rem;
}
.cupon input::placeholder { color: var(--text-mute); }
.cupon .btn { width: auto; flex-shrink: 0; }
.cupon__msg { font-size: .82rem; margin-top: -2px; }
.cupon__msg--ok { color: #46e08a; }
.cupon__msg--err { color: var(--sale); }
.drawer__sumas { display: grid; gap: 4px; }
.drawer__sumas:empty { display: none; }
.suma { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-dim); }
.suma--desc span:last-child { color: #46e08a; font-weight: 600; }

/* ---- Promo 3x2: elegir el juego de regalo en el carrito ---- */
.regalo3x2 {
  margin: 12px 20px 4px; padding: 14px;
  border: 1px solid rgba(70,224,138,.35); border-radius: var(--r-sm);
  background: rgba(70,224,138,.06);
}
.regalo3x2[hidden] { display: none; }
.regalo3x2__tit { font-weight: 700; font-size: .92rem; margin: 0 0 2px; }
.regalo3x2__sub { color: var(--text-mute); font-size: .78rem; margin: 0 0 10px; }
.regalo3x2__list { display: grid; gap: 6px; max-height: 232px; overflow-y: auto; }
.regalo3x2__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--bg-elev); color: var(--text); font: inherit; font-size: .84rem;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.regalo3x2__opt:hover { border-color: #46e08a; }
.regalo3x2__opt.is-picked { border-color: #46e08a; background: rgba(70,224,138,.14); font-weight: 600; }
.regalo3x2__opt img { width: 46px; height: 34px; object-fit: cover; border-radius: 5px; flex-shrink: 0; background: var(--bg); }
.regalo3x2__opt span { flex: 1; min-width: 0; }
.regalo3x2__check { color: #46e08a; font-weight: 800; font-size: .72rem; letter-spacing: .03em; flex: 0 0 auto; white-space: nowrap; }

/* =====================================================================
   SEARCH + CHIPS
   ===================================================================== */
.catalog__bar { position: relative; z-index: 40; margin-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.search {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 10px 18px;
  min-width: 260px; flex: 1; max-width: 360px;
  color: var(--text-mute);
}
.search input { background: none; border: 0; outline: none; color: var(--text); width: 100%; }
.search input::placeholder { color: var(--text-mute); }

/* barra de sugerencias del buscador */
.ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  padding: 4px;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.ac[hidden] { display: none; }
.ac__item, .ac__all {
  display: flex; align-items: center; width: 100%;
  padding: 8px 10px; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--text-dim); text-align: left; border-radius: var(--r-sm);
}
.ac__item { gap: 10px; }
.ac__item:hover, .ac__item.is-on, .ac__all:hover, .ac__all.is-on { background: rgba(255, 255, 255, .06); color: var(--text); }
.ac__img { width: 34px; height: 34px; flex-shrink: 0; object-fit: cover; border-radius: 6px; background: var(--bg-elev); }
.ac__name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac__all {
  justify-content: center; gap: 6px; margin-top: 2px; border-radius: var(--r-sm);
  border-top: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; color: var(--blue);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); color: var(--text-dim);
  background: var(--bg-elev);
  font-size: .88rem; font-weight: 600;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--blue); }
.chip.is-active { background: var(--grad-btn); border-color: transparent; color: #fff; }
.chip--fav.is-active { background: #ff4d6d; }
.chip--fav:not(.is-active) { color: #ff7d95; border-color: rgba(255,77,109,.4); }

/* =====================================================================
   PAGINAS LEGALES
   ===================================================================== */
.legal { padding: calc(var(--nav-h) + 56px) 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-mute); font-size: .88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; color: var(--blue); }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--blue); }
.legal code { background: var(--bg-elev); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.legal .back { display: inline-block; margin-top: 40px; }

/* =====================================================================
   POPUP LEGAL (privacidad / cookies / términos desde el footer)
   ===================================================================== */
.footer__col .footer__link-btn {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; text-align: left; cursor: pointer;
  color: var(--text-dim); font-size: .92rem; transition: color .15s;
}
.footer__col .footer__link-btn:hover { color: var(--text); }

.cookies .cookies__link {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; cursor: pointer;
  font-size: .85rem; color: var(--blue);
}
.cookies .cookies__link:hover { text-decoration: underline; }

.lmodal[hidden] { display: none; }
.lmodal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lmodal__ov {
  position: absolute; inset: 0;
  background: rgba(4, 4, 10, .72);
  backdrop-filter: blur(4px);
  animation: modal-fade .28s ease both;
}
.lmodal__box {
  position: relative; z-index: 1;
  width: min(680px, 100%);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 36px clamp(22px, 5vw, 44px) 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  animation: modal-pop .34s cubic-bezier(.16, 1, .3, 1) both;
  transform-origin: center 45%;
}
.lmodal__x {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--border-strong);
  font-size: 1.3rem; line-height: 1; color: #fff; cursor: pointer;
}
.lmodal__x:hover { background: rgba(0, 0, 0, .78); }
.lmodal__tit {
  font-family: "Unbounded", "Outfit", system-ui, sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -.02em;
  margin: 0 40px 6px 0;
}
.lmodal__body { margin-top: 18px; }
.lmodal__body h3 { font-size: 1.05rem; color: var(--blue); margin: 22px 0 8px; }
.lmodal__body p, .lmodal__body li { color: var(--text-dim); line-height: 1.6; margin-bottom: 10px; }
.lmodal__body ul { padding-left: 20px; margin-bottom: 10px; }
.lmodal__body strong { color: var(--text); }
.lmodal__body code { background: var(--bg-elev); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.lmodal__body .lmodal__updated { color: var(--text-mute); font-size: .86rem; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  .lmodal__ov, .lmodal__box { animation: none; }
}

/* =====================================================================
   PAGINA 404
   ===================================================================== */
.err404 {
  min-height: 72vh;
  padding: calc(var(--nav-h) + 60px) 20px 90px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.err404__code {
  font-family: "Unbounded", "Outfit", system-ui, sans-serif;
  font-weight: 800; font-size: clamp(5rem, 22vw, 11rem); line-height: 1;
  letter-spacing: -.04em; margin-bottom: 10px;
}
.err404__title {
  font-family: "Unbounded", "Outfit", system-ui, sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 14px;
}
.err404__text {
  color: var(--text-dim); font-size: 1.02rem; line-height: 1.6;
  max-width: 46ch; margin-bottom: 34px;
}
.err404__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) { .err404__actions { flex-direction: column; width: 100%; max-width: 320px; } }

/* =====================================================================
   PÁGINA "CÓMO FUNCIONA"
   ===================================================================== */
.guia { padding: calc(var(--nav-h) + 48px) 20px 90px; }
.guia__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.guia__section { margin: 0 auto 52px; max-width: 860px; }
.guia__h2 {
  font-family: "Unbounded", "Outfit", system-ui, sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.02em;
  margin-bottom: 18px; text-align: center;
}
.guia__intro, .guia__nota, .guia__section > p { color: var(--text-dim); line-height: 1.6; }
.guia__intro { max-width: 620px; margin: 0 auto 22px; text-align: center; }
.guia__section > p { margin-bottom: 12px; }
.guia__nota { text-align: center; margin-top: 16px; font-size: .92rem; }

/* pasos */
.guia__pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0; }
.guia__paso {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px 16px;
}
.guia__num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-btn); color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 12px;
}
.guia__paso h3 { font-size: 1rem; margin-bottom: 6px; }
.guia__paso p { color: var(--text-dim); font-size: .88rem; line-height: 1.5; }

/* tabla principal vs secundaria */
.guia__tabla-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
.guia__tabla { width: 100%; border-collapse: collapse; min-width: 520px; }
.guia__tabla th, .guia__tabla td {
  padding: 13px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border); font-size: .9rem; line-height: 1.45;
}
.guia__tabla thead th {
  background: var(--bg-elev); color: var(--text); font-weight: 700; font-size: .95rem;
  border-bottom: 1px solid var(--border-strong);
}
.guia__tabla thead th:nth-child(2) { color: var(--blue); }
.guia__tabla thead th:nth-child(3) { color: var(--violet, #9b4dff); }
.guia__tabla tbody th { color: var(--text); font-weight: 600; width: 32%; background: rgba(255,255,255,.02); }
.guia__tabla tbody td { color: var(--text-dim); }
.guia__tabla tr:last-child th, .guia__tabla tr:last-child td { border-bottom: 0; }

/* lista "qué necesitas" */
.guia__lista { color: var(--text-dim); line-height: 1.7; padding-left: 22px; }
.guia__lista li { margin-bottom: 6px; }

/* FAQ */
.guia__faq { display: grid; gap: 10px; }
.guia__faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 4px 16px;
}
.guia__faq summary {
  cursor: pointer; padding: 12px 0; font-weight: 600; font-size: .95rem;
  list-style: none; position: relative; padding-right: 26px;
}
.guia__faq summary::-webkit-details-marker { display: none; }
.guia__faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--text-mute); line-height: 1;
}
.guia__faq details[open] summary::after { content: "\2212"; }
.guia__faq details[open] summary { border-bottom: 1px solid var(--border); }
.guia__faq details p { color: var(--text-dim); font-size: .9rem; line-height: 1.6; padding: 12px 0 14px; }

/* CTA final */
.guia__cta {
  text-align: center; max-width: 620px; margin: 0 auto;
  padding: 36px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
}
.guia__cta h2 { font-family: "Unbounded", "Outfit", system-ui, sans-serif; font-size: 1.4rem; margin-bottom: 8px; letter-spacing: -.02em; }
.guia__cta p { color: var(--text-dim); margin-bottom: 20px; }
.guia__cta-botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .guia__pasos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .guia__pasos { grid-template-columns: 1fr; }
  .guia__cta-botones .btn { width: 100%; }
}

/* =====================================================================
   TRANSICIONES / ANIMACIONES
   ===================================================================== */
/* aparición al hacer scroll (con leve cascada opcional vía --d) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .55s cubic-bezier(.22, 1, .36, 1),
    transform .6s cubic-bezier(.22, 1, .36, 1),
    filter .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
/* variantes direccionales: entran deslizándose desde un lado */
.reveal--left  { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }
/* tarjetas: entran con un leve acercamiento */
.reveal--zoom  { transform: scale(.94) translateY(16px); }
/* énfasis: sube un poco más y con un pelín de desenfoque al entrar */
.reveal--rise  { transform: translateY(34px); filter: blur(6px); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* entrada del hero al cargar */
@keyframes subeEntra { from { opacity: 0; transform: translateY(16px); } }
.hero__eyebrow,
.hero__title,
.hero__actions,
.hero__dots {
  animation: subeEntra .7s cubic-bezier(.22, 1, .36, 1) both;
}
.hero__eyebrow { animation-delay: .05s; }
.hero__title { animation-delay: .14s; }
.hero__actions { animation-delay: .32s; }
.hero__dots { animation-delay: .4s; }

/* sombra de la barra al hacer scroll */
.nav { transition: box-shadow .25s ease, background .25s ease; }
.nav.is-scrolled {
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
  background: rgba(10, 10, 15, .86);
}

/* =====================================================================
   EFECTO DE CURSOR
   Brillo local que sigue al puntero dentro de la tarjeta / reseña (solo puntero
   fino). El foco sobre el fondo tecnológico de las secciones tintadas vive en
   `.section--tint::after` (--tx/--ty los pone initCursorFX).
   ===================================================================== */
.card, .review { isolation: isolate; }
.review { position: relative; overflow: hidden; }
.card::after, .review::after {
  content: "";
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  mix-blend-mode: screen;
  background: radial-gradient(180px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(80, 160, 255, 0.18), transparent 60%);
}
.card:hover::after, .review:hover::after { opacity: 1; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .nav__inner { gap: 12px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }   /* botón de menú pegado a la derecha */
  .curswitch { margin-left: auto; }                     /* si está la moneda, empuja ella... */
  .curswitch ~ .nav__toggle { margin-left: 0; }         /* ...y el botón de menú la sigue */
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* catálogo de la home: en teléfono, tarjetas de dos en dos (sección más corta) */
@media (max-width: 760px) {
  #catalogoGrid, #catalogoFull { grid-template-columns: 1fr 1fr; }
}

/* modal en teléfono: NO a pantalla completa. Pestaña centrada (deja ver el fondo),
   de una sola columna: imagen arriba (centrada, con el fondo borroso), ficha abajo. */
@media (max-width: 720px) {
  .modal { padding: 16px; }
  .modal__box {
    width: min(440px, 100%);
    max-height: min(82vh, 600px);
    overflow-y: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    /* que el grid tome la altura de su contenido y el scroll lo lleve la caja
       (si no, la ficha se comprime y los botones quedan pegados al borde) */
    align-items: flex-start;
  }
  .modal__box::-webkit-scrollbar { display: none; }
  .modal__grid { display: flex; flex-direction: column; }
  .modal__left { border-right: 0; border-bottom: 1px solid var(--border); }
  /* ancho completo para que el relleno difuminado cubra los lados de la carátula */
  .modal__media { flex: none; width: 100%; height: 200px; }
  .modal__right { overflow: visible; }
}

@media (max-width: 560px) {
  .aviso { padding: 10px 16px; gap: 8px; }
  .aviso__texto { font-size: .8rem; }
  .promo3x2-aviso { padding: 10px 14px; gap: 8px; }
  .promo3x2-aviso__texto { font-size: .78rem; }
  .hero { min-height: min(76vh, 540px); padding: calc(var(--nav-h) + 16px) 0 34px; }
  .hero__nav { width: 36px; height: 36px; top: 20%; }
  .hero__nav svg { width: 16px; height: 16px; }
  .hero__nav--prev { left: 10px; }
  .hero__nav--next { right: 10px; }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__title { margin-bottom: 10px; }
  /* botones lado a lado y más chicos: se ve más imagen */
  .hero__actions { flex-wrap: nowrap; gap: 8px; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding: 10px 10px; font-size: .8rem; }
  .hero__actions .btn .ico { width: .95em; height: .95em; }
  .hero__dots { margin-top: 14px; }
  .grid--games { grid-template-columns: 1fr; }
  /* catálogo de la home Y catálogo completo: dos columnas en teléfono, más ajustado */
  #catalogoGrid, #catalogoFull { grid-template-columns: 1fr 1fr; gap: 12px; }
  #catalogoGrid .card__body, #catalogoFull .card__body { padding: 12px 11px; }
  #catalogoGrid .card__title, #catalogoFull .card__title { font-size: .95rem; line-height: 1.25; }
  #catalogoGrid .card__genre, #catalogoFull .card__genre { font-size: .78rem; }
  #catalogoGrid .card__price, #catalogoFull .card__price { padding-top: 10px; }
  #catalogoGrid .card__now, #catalogoFull .card__now { font-size: 1.05rem; }
  #catalogoGrid .card__from, #catalogoGrid .card__was,
  #catalogoFull .card__from, #catalogoFull .card__was { font-size: .72rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .catalog__bar { flex-direction: column; }
  .search { max-width: none; }
  .cookies { flex-direction: column; align-items: stretch; }
  .cookies__actions { justify-content: space-between; }

  /* catálogo completo: en teléfono, los botones centrados y ajustados a su texto
     (se envuelven a dos filas; sin ancho fijo para que la etiqueta no se salga) */
  .filtros .chips { width: 100%; margin-left: 0; justify-content: center; gap: 8px; }
  .filtros .chips .chip { flex: 0 1 auto; text-align: center; padding: 8px 13px; font-size: .82rem; }
  .filtros--row2 #cfOrden { width: 100%; margin-left: 0; }
  .filtros__juego { width: 100%; }
  .filtros__juego select { width: 100%; }
  .catfull__meta { justify-content: center; }

  /* flechita de los <select> un poco más adentro (la nativa queda muy al borde) */
  .filtros select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%23a2a2b6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
  }
}

/* teléfonos muy angostos: los dos botones del hero siguen lado a lado */
@media (max-width: 360px) {
  .hero__actions .btn { font-size: .72rem; padding: 9px 7px; }
  .hero__actions .btn--wa .ico { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, .reveal--left, .reveal--right, .reveal--zoom, .reveal--rise {
    opacity: 1; transform: none; filter: none;
  }
  .hero__bg, .hero__bg.is-on { transform: none; }
  .card::after, .review::after { display: none; }
  .section--tint.fx-hover::after, .catfull.fx-hover::after { filter: none; }
  /* las cintas no rotan: se pueden recorrer a mano */
  .refs__marquee, .rail-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .refs__track, .rail-track { animation: none; }
  .rail-marquee { scrollbar-width: thin; }
  .rail-marquee::-webkit-scrollbar { display: block; height: 8px; }
}
