/* =========================================================================
   Ganamos365 · sistema de diseño propio (tema Ganamos, 2026-11-11)
   Mundo: paño de mesa de noche. Fondo tinta verde, oro de ficha para la
   acción principal, celeste para foco/selección. Una sola familia (Archivo)
   usando su eje de ancho: expandida para la marca y títulos, normal para UI.
   No depende de woocasino / casino-theme / Bootstrap.
   ========================================================================= */

:root {
  /* superficie */
  --ink-0: #07110e;
  --ink-1: #0b1915;
  --ink-2: #10231d;
  --ink-3: #173129;
  --ink-4: #1f4035;
  --line: #1b3229;
  --line-strong: #2a4a3e;
  /* texto */
  --text: #eef5f1;
  --text-2: #b4c8bf;
  --text-3: #86a296;
  /* acento */
  --oro: #f2b33d;
  --oro-hi: #ffcf6e;
  --oro-lo: #b9831f;
  --oro-ink: #241600;
  --celeste: #84cdf3;
  --verde: #4ad99b;
  --rojo: #ff7a6b;
  /* forma */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .25);
  --shadow-2: 0 10px 30px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-oro: 0 6px 18px -6px rgba(242, 179, 61, .55);
  /* tipografía */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .8125rem;
  --fs-md: .9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  --fs-2xl: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  /* layout */
  --header-h: 64px;
  --side-w: 248px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.g-body {
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text);
  background: var(--ink-0);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--oro); color: var(--oro-ink); }
:focus-visible { outline: 2px solid var(--celeste); outline-offset: 2px; border-radius: 6px; }
input, textarea { caret-color: var(--oro); }
* { scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 10px; border: 2px solid var(--ink-0); }
::-webkit-scrollbar-track { background: transparent; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.g-num { font-variant-numeric: tabular-nums; }
.g-muted { color: var(--text-2); }

.g-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--oro); color: var(--oro-ink); padding: 8px 12px; border-radius: var(--r-sm); }
.g-skip:focus { left: 8px; }

/* ---------- marca ---------- */
.g-logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 1; white-space: nowrap; }
.g-logo__word { font-weight: 800; font-stretch: 118%; font-size: 1.125rem; letter-spacing: -.01em; text-transform: uppercase; }
.g-logo__num {
  font-weight: 800; font-stretch: 100%; font-size: .8125rem; letter-spacing: .02em;
  color: var(--oro-ink); background: linear-gradient(180deg, var(--oro-hi), var(--oro));
  padding: 4px 6px 3px; border-radius: 6px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2);
}

/* ---------- botones ---------- */
.g-btn {
  --b-bg: var(--ink-3); --b-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-md); border: 0;
  background: var(--b-bg); color: var(--b-fg); font-weight: 650; font-size: var(--fs-md);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s, filter .2s;
}
.g-btn:hover { background: var(--ink-4); }
.g-btn:active { transform: translateY(1px) scale(.99); }
.g-btn--gold { --b-bg: linear-gradient(180deg, var(--oro-hi), var(--oro)); --b-fg: var(--oro-ink); background: var(--b-bg); box-shadow: var(--shadow-oro), inset 0 -2px 0 rgba(120, 70, 0, .25); }
.g-btn--gold:hover { background: var(--b-bg); filter: brightness(1.06); }
.g-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.g-btn--ghost:hover { background: var(--ink-2); }
.g-btn--lg { height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 14px; }
.g-btn--block { width: 100%; }
.g-btn[disabled] { cursor: not-allowed; filter: saturate(.4) brightness(.8); box-shadow: none; }

.g-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s; }
.g-iconbtn:hover { background: var(--ink-3); color: var(--text); }
.g-iconbtn--sm { width: 32px; height: 32px; border-radius: 10px; background: var(--ink-2); }
.g-iconbtn--sm .i { width: 18px; height: 18px; }

.g-soon { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; font-size: .625rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--celeste); background: rgba(132, 205, 243, .12); vertical-align: middle; line-height: 1.4; }

/* ---------- header ---------- */
.g-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(7, 17, 14, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.g-header__in { height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); }
.g-header__menu { margin-left: -8px; }
.g-topnav { display: none; gap: 4px; margin-left: 12px; }
.g-topnav a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-md); text-decoration: none; font-weight: 600; color: var(--text-2); transition: color .2s, background-color .2s; }
.g-topnav a .i { width: 18px; height: 18px; }
.g-topnav a:hover { color: var(--text); background: var(--ink-2); }
.g-topnav a.is-on { color: var(--text); background: var(--ink-3); }
.g-searchbox { display: none; align-items: center; gap: 10px; flex: 1; max-width: 420px; height: 42px; margin-left: auto; padding: 0 12px 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); color: var(--text-3); cursor: text; text-align: left; transition: border-color .2s; }
.g-searchbox:hover { border-color: var(--line-strong); }
.g-searchbox span { flex: 1; }
.g-searchbox kbd { font: inherit; font-size: var(--fs-xs); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-3); }
.g-header__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.g-searchbox + .g-header__end { margin-left: 0; }
.g-balance { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; padding: 4px 10px; border-radius: var(--r-md); line-height: 1.15; }
.g-balance:hover { background: var(--ink-2); }
.g-balance__label { font-size: .6875rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.g-balance__amount { font-weight: 750; font-size: 1rem; font-variant-numeric: tabular-nums; }
.g-balance__amount small { font-size: .6875rem; font-weight: 600; color: var(--text-2); }
.g-header__cargar { display: none; }
.g-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink-3); color: var(--oro-hi); font-weight: 800; font-stretch: 110%; box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; list-style: none; user-select: none; }
.g-avatar::-webkit-details-marker { display: none; }
.g-usermenu { position: relative; display: none; }
.g-usermenu__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; padding: 8px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); }
.g-usermenu__who { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.g-usermenu__who span { font-size: var(--fs-sm); color: var(--text-3); }
.g-usermenu__panel a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 550; }
.g-usermenu__panel a:hover { background: var(--ink-3); color: var(--text); }
.g-usermenu__panel a.is-danger:hover { color: var(--rojo); }
.g-hide-sm { display: none; }

@media (min-width: 768px) {
  .g-header__cargar, .g-usermenu, .g-hide-sm { display: inline-flex; }
  .g-logo__word { font-size: 1.25rem; }
}
@media (min-width: 1100px) {
  .g-header__menu { display: none; }
  .g-topnav { display: flex; }
  .g-searchbox { display: flex; }
}

/* ---------- shell + menú lateral ---------- */
.g-shell { display: block; }
.g-main { min-width: 0; padding: 0 var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
.g-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 320px);
  display: flex; flex-direction: column; background: var(--ink-1); border-right: 1px solid var(--line);
  transform: translateX(-102%); transition: transform .35s var(--ease-out); overflow-y: auto; overscroll-behavior: contain;
}
.g-drawer.is-open { transform: none; box-shadow: var(--shadow-2); }
.g-drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.g-drawer__user { display: flex; align-items: center; gap: 12px; margin: 14px 12px 4px; padding: 12px; border-radius: var(--r-md); background: var(--ink-2); }
.g-drawer__user div { display: flex; flex-direction: column; line-height: 1.25; }
.g-drawer__user span { font-size: var(--fs-sm); color: var(--text-2); }
.g-drawer__cta { padding: 14px 12px 4px; }
.g-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(2, 8, 6, .62); backdrop-filter: blur(2px); }
.g-side { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 24px; }
.g-side .g-soon { margin-left: auto; }
.g-side__label { margin: 16px 10px 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.g-side a { overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 42px; white-space: nowrap; padding: 0 10px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 550; transition: background-color .15s, color .15s; }
.g-side a .i { color: var(--text-3); transition: color .15s; }
.g-side a:hover { background: var(--ink-2); color: var(--text); }
.g-side a.is-on { background: var(--ink-3); color: var(--text); }
.g-side a.is-on .i { color: var(--oro); }

@media (min-width: 1100px) {
  .g-shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .g-drawer { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); width: auto; transform: none; z-index: 1; background: transparent; }
  .g-drawer__head, .g-drawer__user, .g-drawer__cta { display: none; }
  .g-scrim { display: none !important; }
  .g-main { padding-bottom: 0; }
}

/* ---------- barra inferior (celular) ---------- */
.g-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
  background: rgba(9, 21, 17, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.g-tabbar > a, .g-tabbar > button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px;
  border: 0; background: none; padding: 0; text-decoration: none; color: var(--text-3);
  font-size: .6875rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.g-tabbar .i { width: 22px; height: 22px; }
.g-tabbar .is-on { color: var(--text); }
.g-tabbar .is-on .i { color: var(--oro); }
.g-tabbar__cargar { color: var(--text) !important; }
.g-tabbar__coin { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; background: linear-gradient(180deg, var(--oro-hi), var(--oro)); color: var(--oro-ink); box-shadow: 0 0 0 5px var(--ink-0), var(--shadow-oro); }
.g-tabbar__cargar .i { color: var(--oro-ink) !important; width: 24px; height: 24px; stroke-width: 2.25; }
@media (min-width: 1100px) { .g-tabbar { display: none; } }

/* ---------- pestañas de categoría ---------- */
.g-cats { position: sticky; top: var(--header-h); z-index: 30; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter); background: linear-gradient(var(--ink-0) 70%, rgba(7, 17, 14, 0)); }
.g-cats__track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.g-cats__track::-webkit-scrollbar { display: none; }
.g-chip { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: start; transition: background-color .2s, color .2s, box-shadow .2s; }
.g-chip .i { width: 18px; height: 18px; color: var(--text-3); }
.g-chip:hover { color: var(--text); background: var(--ink-2); }
.g-chip.is-on { color: var(--oro-ink); background: var(--oro); box-shadow: none; }
.g-chip.is-on .i { color: var(--oro-ink); }
.g-chip .g-soon { margin-left: 0; }

/* ---------- hero ---------- */
.g-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 20px; margin-top: 4px; padding: 24px 20px 0; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(242, 179, 61, .16), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, #12392c 0%, transparent 60%),
    linear-gradient(160deg, #0f2a21, #0a1a15 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.g-hero__copy { position: relative; z-index: 2; }
.g-hero h1 { margin: 0; font-size: var(--fs-2xl); line-height: 1.02; font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; }
.g-hero p { margin: 14px 0 0; color: var(--text-2); max-width: 46ch; font-size: 1rem; text-wrap: pretty; }
.g-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.g-hero__fan { position: relative; z-index: 2; height: 112px; margin: -6px -20px 0; }

.g-fan {
  position: absolute; bottom: -28px; width: 132px; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  left: calc(50% - 66px + (var(--i) - 2) * 74px);
  transform: rotate(calc((var(--i) - 2) * 7deg)) translateY(calc(var(--d, 0) * 1px));
  transform-origin: 50% 120%;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .45s var(--ease-out);
  z-index: calc(10 - (var(--i) - 2) * (var(--i) - 2));
  animation: g-fan-in .9s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms);
}
.g-fan img { width: 100%; height: 100%; object-fit: cover; }
.g-fan--0, .g-fan--4 { --d: 22; }
.g-fan--1, .g-fan--3 { --d: 6; }
.g-fan:hover { transform: rotate(calc((var(--i) - 2) * 7deg)) translateY(-14px) scale(1.03); z-index: 20; }
@keyframes g-fan-in { from { transform: rotate(0deg) translateY(60px); filter: blur(6px); } }
.g-hero__mark {
  position: absolute; z-index: 1; right: -12px; top: -30px; pointer-events: none;
  font-weight: 900; font-stretch: 125%; font-size: clamp(7rem, 18vw, 15rem); line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 179, 61, .2);
}
@media (min-width: 768px) {
  .g-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding: 44px 44px 0; min-height: 320px; }
  .g-hero__copy { padding-bottom: 44px; }
  .g-hero__fan { height: 100%; min-height: 276px; margin: 0; }
  .g-fan { width: 176px; left: calc(50% - 88px + (var(--i) - 2) * 92px); bottom: -36px; }
  .g-hero__mark { top: auto; bottom: -40px; right: auto; left: 34%; }
}
@media (prefers-reduced-motion: reduce) { .g-fan { animation: none; } }

/* ---------- filas ---------- */
.g-row { margin-top: 32px; }
.g-row__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.g-row__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-lg); font-weight: 750; font-stretch: 108%; letter-spacing: -.01em; }
.g-row__title .i { color: var(--oro); }
.g-row__all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); background: var(--ink-2); transition: color .2s, background-color .2s; }
.g-row__all .g-num { color: var(--text-3); font-weight: 600; }
.g-row__all:hover { color: var(--text); background: var(--ink-3); }
.g-row__arrows { display: none; gap: 6px; }
@media (hover: hover) and (min-width: 768px) { .g-row__arrows { display: flex; } }
.g-row__track {
  --card: 128px;
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.g-row__track::-webkit-scrollbar { display: none; }
.g-row__track > * { scroll-snap-align: start; }
@media (min-width: 768px) { .g-row__track { --card: 156px; gap: 14px; } }
@media (min-width: 1400px) { .g-row__track { --card: 168px; } }

/* ---------- tarjeta de juego ---------- */
.g-card { position: relative; min-width: 0; }
.g-card__hit { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-lg); outline-offset: 3px; }
.g-card__media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.g-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out), filter .3s; }
.g-card__media.is-wide img { object-fit: contain; position: relative; z-index: 1; }
.g-card__media.is-wide::before { content: ""; position: absolute; inset: -20px; background: var(--wide-bg) center / cover; filter: blur(18px) brightness(.55) saturate(1.2); }
.g-card__play {
  position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; z-index: 2;
  display: grid; place-items: center; border-radius: 50%; background: var(--oro); color: var(--oro-ink);
  box-shadow: var(--shadow-oro); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s var(--ease-out); pointer-events: none;
}
.g-card__play .i { fill: currentColor; stroke: none; width: 22px; height: 22px; margin-left: 3px; }
.g-card__title { margin-top: 8px; font-size: var(--fs-sm); font-weight: 650; line-height: 1.25; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-card__prov { font-size: .75rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.2em; }
.g-card__fav {
  position: absolute; top: 6px; right: 6px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(7, 17, 14, .62); backdrop-filter: blur(6px); color: var(--text); cursor: pointer;
  opacity: .0; transition: opacity .2s, transform .2s var(--ease-out), color .2s;
}
.g-card__fav .i { width: 17px; height: 17px; }
.g-card__fav[aria-pressed="true"] { opacity: 1; color: var(--rojo); }
.g-card__fav[aria-pressed="true"] .i { fill: currentColor; }
.g-card__fav:active { transform: scale(.88); }
@media (hover: none) { .g-card__fav { opacity: 1; } }
@media (hover: hover) {
  .g-card:hover .g-card__media { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(242, 179, 61, .55), 0 16px 30px -12px rgba(0, 0, 0, .8); }
  .g-card:hover .g-card__media img { transform: scale(1.06); filter: brightness(.82); }
  .g-card:hover .g-card__play { opacity: 1; transform: scale(1); }
  .g-card:hover .g-card__fav { opacity: 1; }
}
.g-card--more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1; border-radius: var(--r-lg); text-decoration: none; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-weight: 650; font-size: var(--fs-sm); transition: background-color .2s, color .2s; }
.g-card--more .g-num { font-size: 1.375rem; font-weight: 800; font-stretch: 110%; color: var(--text); }
.g-card--more .i { color: var(--oro); }
.g-card--more:hover { background: var(--ink-2); color: var(--text); }

/* ---------- grilla ---------- */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
@media (min-width: 480px) { .g-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); } }
@media (min-width: 1100px) { .g-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 20px 14px; } }
.g-grid .g-card { content-visibility: auto; contain-intrinsic-size: 160px 210px; }
.g-more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 0; color: var(--text-3); font-size: var(--fs-sm); }
.g-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-4); border-top-color: var(--oro); animation: g-spin .8s linear infinite; }
@keyframes g-spin { to { transform: rotate(360deg); } }

/* ---------- encabezado de página ---------- */
.g-pagehead { margin: 12px 0 20px; }
.g-pagehead h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: var(--fs-xl); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.15; }
.g-pagehead h1 .i { width: 26px; height: 26px; color: var(--oro); }
.g-pagehead p { margin: 6px 0 0; color: var(--text-2); max-width: 70ch; }
.g-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; }
.g-back .i { width: 16px; height: 16px; }
.g-back:hover { color: var(--text); }
.g-note { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; padding: 10px 14px; border-radius: var(--r-md); background: rgba(132, 205, 243, .08); color: var(--text-2); font-size: var(--fs-sm); }
.g-note .i { color: var(--celeste); }

/* ---------- próximamente / vacíos ---------- */
.g-soon-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 8px 0 8px; padding: 40px 20px; border-radius: var(--r-xl); background: radial-gradient(80% 100% at 50% 0%, rgba(132, 205, 243, .09), transparent 70%), var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.g-soon-state h1, .g-soon-state h2 { margin: 6px 0 0; font-size: var(--fs-xl); font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.g-soon-state p { margin: 0 0 8px; max-width: 52ch; color: var(--text-2); text-wrap: pretty; }
.g-soon-state--big { padding: 64px 20px; margin-top: 12px; }
.g-soon-state__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--ink-3); color: var(--celeste); box-shadow: inset 0 0 0 1px var(--line-strong); }
.g-soon-state__icon .i { width: 30px; height: 30px; stroke-width: 1.5; }

.g-soonband { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .g-soonband { grid-template-columns: 1fr 1fr; } }
.g-soonband__item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.g-soonband__item > .i { width: 28px; height: 28px; color: var(--celeste); stroke-width: 1.5; }
.g-soonband__item div { display: flex; flex-direction: column; }
.g-soonband__item span { color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- proveedores ---------- */
.g-provstrip { display: flex; flex-wrap: wrap; gap: 8px; }
.g-provpill { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); text-decoration: none; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); transition: background-color .2s, box-shadow .2s; }
.g-provpill strong { font-weight: 700; font-stretch: 108%; }
.g-provpill span { color: var(--text-3); font-size: var(--fs-xs); }
.g-provpill:hover { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.g-provgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 768px) { .g-provgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }
.g-provcard { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; border-radius: var(--r-lg); text-decoration: none; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, transform .3s var(--ease-out); }
.g-provcard:hover { background: var(--ink-2); transform: translateY(-2px); }
.g-provcard__covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 10px; }
.g-provcard__covers img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; border-radius: 8px; background: var(--ink-2); }
.g-provcard strong { font-weight: 750; font-stretch: 110%; font-size: 1rem; }
.g-provcard__count { font-size: var(--fs-sm); color: var(--text-3); }

/* ---------- info (cargar, responsable) ---------- */
.g-info { max-width: 720px; margin: 16px auto 0; padding: 32px 22px; border-radius: var(--r-xl); background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.g-info h1 { margin: 16px 0 8px; font-size: var(--fs-xl); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.15; }
.g-info__lead { color: var(--text-2); font-size: 1rem; margin: 0 0 20px; max-width: 60ch; }
.g-steps { list-style: none; counter-reset: s; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.g-steps li { counter-increment: s; position: relative; display: flex; flex-direction: column; padding: 14px 16px 14px 56px; border-radius: var(--r-md); background: var(--ink-2); }
.g-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--oro); color: var(--oro-ink); font-weight: 800; font-size: var(--fs-sm); }
.g-steps span { color: var(--text-2); font-size: var(--fs-sm); }
.g-prose h2 { font-size: var(--fs-lg); margin: 24px 0 8px; font-weight: 750; }
.g-prose ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; }
.g-prose p { color: var(--text-2); max-width: 65ch; }
@media (min-width: 768px) { .g-info { padding: 44px 48px; } }

/* ---------- cuenta ---------- */
.g-account { display: grid; gap: 16px; }
@media (min-width: 900px) { .g-account { grid-template-columns: 1.3fr 1fr; } }
.g-account__balance { padding: 24px; border-radius: var(--r-xl); background: radial-gradient(90% 120% at 100% 0%, rgba(242, 179, 61, .14), transparent 60%), linear-gradient(160deg, #0f2a21, #0a1a15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.g-account__label { display: block; font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; }
.g-account__amount { display: block; margin: 6px 0 18px; font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); font-weight: 800; font-stretch: 108%; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.g-account__amount small { font-size: 1rem; font-weight: 650; color: var(--text-2); letter-spacing: 0; }
.g-account__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.g-account__links { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-xl); background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.g-account__links a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: var(--r-md); text-decoration: none; font-weight: 600; color: var(--text-2); }
.g-account__links a:hover { background: var(--ink-2); color: var(--text); }
.g-account__links a.is-danger:hover { color: var(--rojo); }
.g-account__chev { margin-left: auto; color: var(--text-3); }
.g-table-wrap { margin-top: 28px; }
.g-table-wrap h2 { font-size: var(--fs-lg); font-weight: 750; margin: 0 0 12px; }
.g-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.g-table th { text-align: left; font-weight: 600; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.g-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.g-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.g-table .is-win { color: var(--verde); font-weight: 650; }

/* ---------- buscador ---------- */
.g-search { position: fixed; inset: 0; z-index: 80; background: rgba(2, 8, 6, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; }
.g-search__panel { width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--ink-1); animation: g-pop .3s var(--ease-out); }
@media (min-width: 768px) {
  .g-search { padding-top: 10vh; }
  .g-search__panel { width: min(760px, 92vw); height: auto; max-height: 76vh; border-radius: var(--r-xl); box-shadow: var(--shadow-2), 0 0 0 1px var(--line-strong); overflow: hidden; }
}
@keyframes g-pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.g-search__bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); flex: none; }
.g-search__bar > .i { color: var(--text-3); }
.g-search__bar input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.0625rem; outline: none; }
.g-search__bar input::placeholder { color: var(--text-3); }
.g-search__bar input::-webkit-search-cancel-button { display: none; }
.g-search__body { overflow-y: auto; padding: 14px 16px 24px; overscroll-behavior: contain; }
.g-search__label { margin: 4px 0 10px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.g-search__provs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.g-search .g-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px 10px; }
@media (min-width: 768px) { .g-search .g-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.g-search__empty { padding: 28px 8px; text-align: center; color: var(--text-2); }
.g-search mark { background: none; color: var(--oro-hi); }

/* ---------- modales ---------- */
.g-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; background: rgba(2, 8, 6, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 640px) { .g-modal { place-items: center; } }
.g-modal__card { position: relative; width: 100%; max-width: 420px; padding: 28px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--ink-1); box-shadow: var(--shadow-2), 0 0 0 1px var(--line-strong); animation: g-pop .35s var(--ease-out); }
@media (min-width: 640px) { .g-modal__card { border-radius: 24px; padding: 32px 28px 28px; } }
.g-modal__card h2 { margin: 0 0 4px; font-size: 1.375rem; font-weight: 800; font-stretch: 110%; letter-spacing: -.015em; }
.g-modal__card > .g-muted { margin: 0 0 20px; font-size: var(--fs-sm); }
.g-modal__x { position: absolute; top: 12px; right: 12px; }
.g-modal__alt { margin: 16px 0 0; text-align: center; font-size: var(--fs-sm); color: var(--text-2); }
.g-modal__alt a { color: var(--oro-hi); }
.g-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.g-field span { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.g-field input { height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--ink-0); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.g-field input:focus { outline: none; border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(132, 205, 243, .18); }
.g-form-err { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 122, 107, .1); color: #ffb3a9; font-size: var(--fs-sm); }
.g-btn.is-loading { pointer-events: none; opacity: .8; }
.g-play { text-align: center; }
.g-play__cover { width: 128px; height: 128px; margin: 0 auto 14px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow-2); }
.g-play .g-btn { margin-top: 10px; }
.g-play__note { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- avisos ---------- */
.g-flash { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); }
.g-flash.is-ok { background: rgba(74, 217, 155, .1); color: #9cebc6; }
.g-flash.is-err { background: rgba(255, 122, 107, .1); color: #ffb3a9; }

/* ---------- pie ---------- */
.g-footer { margin-top: 56px; padding: 28px 0 32px; border-top: 1px solid var(--line); }
.g-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.g-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.g-footer__links a { color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.g-footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.g-footer__legal { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; }
.g-footer__legal p { margin: 0; max-width: 72ch; color: var(--text-3); font-size: var(--fs-sm); }
.g-footer__legal a { color: var(--text-2); text-underline-offset: 3px; }
.g-18 { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--rojo); color: var(--rojo); font-weight: 800; font-size: .8125rem; letter-spacing: -.02em; }
.g-footer__copy { margin: 18px 0 0; color: var(--text-3); font-size: var(--fs-xs); }

body.g-lock { overflow: hidden; }

/* ---------- originales ---------- */
.g-originals .g-row { margin-top: 28px; padding: 18px 18px 10px; border-radius: var(--r-xl); background: radial-gradient(70% 140% at 0% 0%, rgba(242, 179, 61, .13), transparent 60%), var(--ink-1); box-shadow: inset 0 0 0 1px rgba(242, 179, 61, .22); }
.g-originals .g-row__track { margin: 0 -18px; padding-left: 18px; padding-right: 18px; scroll-padding: 0 18px; }
.g-originals .g-row__title { color: var(--oro-hi); }
.g-origband { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 18px; border-radius: var(--r-lg); text-decoration: none; background: radial-gradient(70% 160% at 0% 0%, rgba(242, 179, 61, .14), transparent 60%), var(--ink-1); box-shadow: inset 0 0 0 1px rgba(242, 179, 61, .22); transition: background-color .2s; }
.g-origband__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(180deg, var(--oro-hi), var(--oro)); color: var(--oro-ink); flex: none; }
.g-origband__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.g-origband__txt strong { font-weight: 800; font-stretch: 110%; }
.g-origband__txt span { color: var(--text-2); font-size: var(--fs-sm); }

/* hero compacto en celular (va al final para ganarle a la base) */
@media (max-width: 767px) {
  .g-hero { gap: 14px; padding-top: 22px; }
  .g-hero h1 { font-size: 1.875rem; }
  .g-hero p { font-size: var(--fs-md); margin-top: 10px; }
  .g-hero__cta { flex-wrap: nowrap; margin-top: 18px; }
  .g-hero__cta .g-btn { flex: 1 1 auto; padding: 0 14px; font-size: .9375rem; }
  .g-fan { width: 104px; left: calc(50% - 52px + (var(--i) - 2) * 62px); bottom: -24px; border-radius: 14px; }
  .g-hero__mark { font-size: 8rem; top: -24px; }
}
.g-chip.is-on .g-soon { color: var(--oro-ink); background: rgba(36, 22, 0, .14); }
