/* ══════════════════════════════════════════════════════════
   LBBoost · sistema visual  —  violeta sobre negro
   Mobile-first: todo se declara para 360px y crece con min-width.
   ══════════════════════════════════════════════════════════ */

:root {
  /* Superficies */
  --bg: #07040d;
  --bg-2: #0d0718;
  --surface: #140b24;
  --surface-2: #1b1030;
  --surface-3: #241542;
  --line: #2e1b52;
  --line-soft: #241542;

  /* Marca */
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-deep: #6d28d9;
  --violet-glow: rgba(139, 92, 246, 0.35);

  /* Texto */
  --text: #f2ecff;
  --text-dim: #b5a6d4;
  --text-mute: #7d6da0;

  /* Estados */
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --ff: #ff3b3b;
  --gold: #f0a92b;

  /* Forma */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.9);
  --shadow-violet: 0 18px 46px -20px var(--violet-glow);

  --wrap: 1180px;
  --header-h: 68px;
}

/* ─────────────── Reset ─────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/*
 * Nada de rebote ni de arrastre lateral en el teléfono.
 *
 * El `overflow-x: hidden` va en html Y en body: puesto sólo en body, el
 * desborde se propaga al elemento raíz y la página se sigue pudiendo arrastrar.
 *
 * `clip` en vez de `hidden`, y tampoco es un detalle: `hidden` SIGUE
 * permitiendo el scroll programático. Cuando el navegador enfoca una pestaña
 * que quedó fuera de vista dentro de su franja deslizable, desplaza a sus
 * ancestros — y con `hidden` desplazaba el documento entero, dejando la página
 * corrida sin barra para volver. `clip` no se puede desplazar ni con JS, así
 * que el que se mueve es el carril de pestañas, que es lo correcto.
 *
 * Bonus: con `overflow-x: clip` y `overflow-y: visible`, body deja de ser un
 * contenedor de scroll, así que la trampa del encadenamiento desaparece de raíz.
 *
 * El `overscroll-behavior` va SÓLO en html, y esto tampoco es un detalle:
 * `overflow-x: hidden` convierte el `overflow-y` de body en `auto`, así que
 * body pasa a ser un contenedor de scroll que nunca tiene nada que scrollear.
 * Si además se le pone `overscroll-behavior: none`, se corta el encadenamiento
 * hacia html y la rueda del mouse deja de mover la página: el gesto muere en
 * body. El scroll programático sigue andando, que es lo que hace que el bug
 * parezca imposible. En html solo, el rebote se corta y el scroll vive.
 */
html {
  /* `hidden` de respaldo para navegadores viejos; `clip` gana donde exista. */
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior: none;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Ver la nota de arriba: `clip` gana donde exista y evita que body sea
     contenedor de scroll; `hidden` queda de respaldo. */
  overflow-x: hidden;
  overflow-x: clip;
}

/* Halo violeta de fondo, fijo y barato de pintar */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -10%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(45% 40% at 92% 8%, rgba(109, 40, 217, 0.18), transparent 72%),
    radial-gradient(55% 45% at 4% 88%, rgba(168, 85, 247, 0.12), transparent 72%);
}

img { max-width: 100%; display: block; }
a { color: var(--violet-bright); text-decoration: none; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─────────────── Layout ─────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

.section { padding-block: 34px; }

.stack { display: grid; gap: 14px; }

/* ─────────────── Header ─────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 4, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  flex-shrink: 0;
}

.brand__name {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.brand__tag {
  display: none;
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/*
 * En pantallas angostas el logo + los 4 enlaces suman más que el ancho del
 * teléfono y empujaban la página 60px hacia la derecha. En vez de desbordar,
 * la barra se encoge y los enlaces se deslizan dentro de su propia franja.
 */
.site-header__bar > * { min-width: 0; }

.nav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar { display: none; }
.nav > * { flex: 0 0 auto; }

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.16s, color 0.16s;
}

.nav a:hover,
.nav a[aria-current='page'] {
  background: var(--surface-2);
  color: var(--text);
}

.nav__cta {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)) !important;
  color: #fff !important;
  box-shadow: var(--shadow-violet);
}

.nav__panel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.12) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  font-weight: 700 !important;
}

.nav__panel:hover {
  background: rgba(139, 92, 246, 0.28) !important;
  color: #fff !important;
  border-color: rgba(139, 92, 246, 0.6) !important;
}

.nav__panel-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 11px;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
  z-index: 60;
  outline: none;
}
.hamburger-btn:hover,
.hamburger-btn:focus-visible {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}
.hamburger-bar {
  width: 20px;
  height: 2px;
  background: #f2ecff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}
.hamburger-btn--open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn--open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn--open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
}

@media (max-width: 768px) {
  .site-header { padding: 0; }
  .site-header__bar {
    height: 58px !important;
    padding-inline: 14px !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .brand { gap: 8px !important; flex-shrink: 0 !important; }
  .brand__logo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }
  .brand__name {
    font-size: 0.98rem !important;
    letter-spacing: 0.04em !important;
  }
  .brand__tag { display: none !important; }

  /* Ocultar barra horizontal de escritorio en mobile */
  .nav.nav--desktop {
    display: none !important;
  }

  /* Mostrar botón hamburguesa en mobile */
  .hamburger-btn {
    display: flex !important;
  }

  /* Drawer desplegable móvil */
  .mobile-nav-drawer {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(11, 6, 21, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 55;
  }
  .mobile-nav-drawer.mobile-nav-drawer--open {
    max-height: 90vh;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-inner {
    padding: 16px 14px 22px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2d9f3;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.12);
    transition: all 0.16s ease;
  }
  .mobile-nav-link:hover,
  .mobile-nav-link:active {
    background: rgba(139, 92, 246, 0.16);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(3px);
  }
  .mobile-nav-link--active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(109, 40, 217, 0.15)) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
  }
  .mobile-nav-link--panel {
    background: rgba(139, 92, 246, 0.18) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    color: #c4b5fd !important;
  }
  .mobile-nav-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-nav-arrow {
    color: #8b5cf6;
    font-size: 1.1rem;
    font-weight: 800;
    transition: transform 0.16s ease;
  }
  .mobile-nav-link:hover .mobile-nav-arrow {
    transform: translateX(3px);
  }

  .mobile-nav-owner-box {
    padding: 14px;
    background: rgba(24, 13, 51, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-nav-owner-title {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #c4b5fd;
  }

  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
  }
  .mobile-nav-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #a78bfa;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.15s ease;
  }
  .mobile-nav-footer-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
  }
}

/* ─────────────── Hero ─────────────── */

.hero { padding: 30px 0 8px; text-align: center; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-bright);
}

.hero__title {
  margin: 16px 0 0;
  font-size: clamp(2.4rem, 12vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff 18%, var(--violet-bright) 78%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

.hero__sub {
  margin: 12px auto 0;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ─────────────── Tarjetas de juego (la home) ─────────────── */

.game-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 26px;
}

.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
  isolation: isolate;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--violet);
  box-shadow: 0 26px 60px -22px var(--violet-glow);
}

.game-card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
}

.game-card__art img,
.game-card__art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 4, 13, 0.45) 80%, var(--surface) 100%);
}

.game-card__body {
  position: relative;
  padding: 16px 18px 20px;
  display: grid;
  gap: 6px;
}

.game-card__title {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.game-card__blurb { color: var(--text-dim); font-size: 0.89rem; }

.game-card__foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-card__from { font-size: 0.8rem; color: var(--text-mute); }
.game-card__from b { color: var(--text); font-size: 0.98rem; font-weight: 800; }

.game-card__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-violet);
}

/* ─────────────── Tira de garantías ─────────────── */

.perks {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 26px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

.perk__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet-bright);
}

.perk__t { font-weight: 700; font-size: 0.9rem; }
.perk__d { font-size: 0.79rem; color: var(--text-mute); }

/* ─────────────── Página de producto ─────────────── */

.product {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: start;
}

.panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel__step {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  font-size: 0.79rem;
  font-weight: 800;
}

.panel__title { font-size: 1rem; font-weight: 700; }
.panel__hint { font-size: 0.78rem; color: var(--text-mute); }
.panel__body { padding: 18px; }

.product__hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Altura explicita: aspect-ratio + max-height hace que el navegador calcule
   el ANCHO desde la altura y el banner sale a media pantalla. */
.product__hero-art {
  position: relative;
  height: clamp(168px, 26vw, 272px);
  overflow: hidden;
  background: var(--bg-2);
}

/* El proveedor manda portadas cuadradas: recortarlas a banner ancho se come la
   imagen, asi que la ampliamos desenfocada de fondo y la ponemos entera encima. */
.product__hero-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(30px) saturate(1.35);
  opacity: 0.5;
  transform: scale(1.05);
}

.product__hero-fg {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  height: 86%;
  width: auto;
  max-width: 46%;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.7));
}

.product__hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 4, 13, 0.92) 8%, rgba(7, 4, 13, 0.55) 46%, transparent 78%),
    linear-gradient(180deg, transparent 40%, rgba(7, 4, 13, 0.85) 100%);
}

.product__hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  max-width: 62%;
}

.product__hero-text h1 {
  font-size: clamp(1.5rem, 6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.product__note {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
  white-space: pre-line;
  max-height: 3.2em;
  overflow: hidden;
}

/* ─────────────── Pestañas deslizantes de categorías (Shop) ─────────────── */
.shop-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px 2px;
  margin-bottom: 8px;
}
.shop-tabs-nav::-webkit-scrollbar { display: none; }
.shop-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #b5a6d4;
  background: #140b24;
  border: 1px solid #2e1b52;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
  user-select: none;
  flex-shrink: 0;
}
.shop-tab-pill:hover {
  background: rgba(139, 92, 246, 0.16);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.45);
}
.shop-tab-pill--active {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  color: #fff !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}
.shop-tab-pill svg { display: block; flex-shrink: 0; }
.shop-tab-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.offer-group-tab { display: none !important; }
.offer-group-tab.offer-group-tab--active { display: block !important; animation: tabFadeIn 0.22s ease-out; }

/* ─────────────── Rejilla de packs ─────────────── */

.offers {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 13px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}

.offer:hover { border-color: var(--violet); transform: translateY(-2px); }

.offer input { position: absolute; opacity: 0; pointer-events: none; }

.offer__amount {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.offer__amount .dot {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.offer__price {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--violet-bright);
  letter-spacing: -0.02em;
}

.offer__meta { font-size: 0.71rem; color: var(--text-mute); }

.offer:has(input:checked) {
  border-color: var(--violet);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.2), var(--surface-2));
  box-shadow: 0 0 0 1px var(--violet), var(--shadow-violet);
}

.offer:has(input:checked)::after {
  content: '✓';
  position: absolute;
  top: 9px;
  right: 10px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.offer--out-of-stock,
.offer:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.5);
  user-select: none;
}

.offer--out-of-stock:hover,
.offer:has(input:disabled):hover {
  border-color: rgba(255, 255, 255, 0.08) !important;
  transform: none !important;
  box-shadow: none !important;
}

.offer--out-of-stock input {
  pointer-events: none !important;
}

.offer__badge--out-of-stock {
  position: absolute;
  top: 9px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #f87171;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer__meta--out-of-stock {
  color: #f87171 !important;
  font-weight: 600;
}

/* ─────────────── Formularios ─────────────── */

.field { display: grid; gap: 6px; margin-bottom: 14px; }

.field > label {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.field small { font-size: 0.74rem; color: var(--text-mute); }

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.input::placeholder { color: var(--text-mute); }

.input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.16s, transform 0.12s, opacity 0.16s;
  box-shadow: var(--shadow-violet);
}

.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; box-shadow: none; }

.btn--block { width: 100%; }
.btn--ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--violet); }
.btn--verify { background: var(--ok); border-color: var(--ok); color: #04291d; font-weight: 700; }
.btn--verify:hover { filter: brightness(1.08); border-color: var(--ok); }
.btn--danger { background: linear-gradient(135deg, #dc2626, #991b1b); box-shadow: none; }
.btn--sm { padding: 8px 13px; font-size: 0.8rem; }

/* ─────────────── Métodos de pago ─────────────── */

.pay-methods { display: grid; gap: 10px; }

.pay {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.pay:hover { border-color: var(--violet); }
.pay input { position: absolute; opacity: 0; pointer-events: none; }

.pay:has(input:checked) {
  border-color: var(--violet);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.18), var(--surface-2));
  box-shadow: 0 0 0 1px var(--violet);
}

.pay[data-disabled='1'] { opacity: 0.45; cursor: not-allowed; }

.pay__logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.pay__name { font-weight: 700; font-size: 0.92rem; }
.pay__note { font-size: 0.75rem; color: var(--text-mute); }

/* ─────────────── Resumen / total ─────────────── */

.summary { display: grid; gap: 9px; }

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.summary__row b { color: var(--text); font-weight: 700; }

.summary__total {
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.summary__total span { font-size: 0.82rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }

.summary__total b {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, var(--violet-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────────────── Avisos ─────────────── */

.alert {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.85rem;
  line-height: 1.5;
}

.alert b { color: inherit; font-weight: 800; }

.alert--ok { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.09); color: #a7f3d0; }
.alert--warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.09); color: #fde68a; }
.alert--error { border-color: rgba(248, 113, 113, 0.42); background: rgba(248, 113, 113, 0.09); color: #fecaca; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
  white-space: nowrap;
}

.badge--ok { border-color: rgba(52, 211, 153, 0.45); color: var(--ok); background: rgba(52, 211, 153, 0.1); }
.badge--warn { border-color: rgba(251, 191, 36, 0.45); color: var(--warn); background: rgba(251, 191, 36, 0.1); }
.badge--danger { border-color: rgba(248, 113, 113, 0.45); color: var(--danger); background: rgba(248, 113, 113, 0.1); }
.badge--violet { border-color: var(--violet); color: var(--violet-bright); background: rgba(139, 92, 246, 0.12); }

/* ─────────────── Pedido ─────────────── */

.order-code {
  font-family: 'Consolas', 'SF Mono', ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--violet-bright);
}

.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

.steps li {
  position: relative;
  padding: 0 0 18px 28px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.steps li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg-2);
}

.steps li::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.steps li:last-child::after { display: none; }

.steps li[data-done='1'] { color: var(--text); }
.steps li[data-done='1']::before { border-color: var(--ok); background: var(--ok); }
.steps li[data-active='1']::before { border-color: var(--violet); background: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.22); }

.code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--violet);
  background: rgba(139, 92, 246, 0.08);
  font-family: 'Consolas', ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.code-box button { flex-shrink: 0; }

/* ─────────────── Tablas (admin) ─────────────── */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

table { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 620px; }

th {
  text-align: left;
  padding: 11px 13px;
  background: var(--surface-2);
  color: var(--text-mute);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(139, 92, 246, 0.05); }

.mono { font-family: 'Consolas', ui-monospace, monospace; font-size: 0.82rem; }

/* ─────────────── Admin ─────────────── */

/* ─────────────── Admin Dashboard Shell & Sidebar ─────────────── */

.admin-body-shell {
  background: #090514;
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
}

.admin-sidebar {
  display: none;
}

.admin-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-nav-mobile {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  background: rgba(13, 7, 24, 0.95);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  position: sticky;
  top: 57px;
  z-index: 45;
}

.admin-nav-mobile::-webkit-scrollbar { display: none; }

.admin-nav-mobile a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.admin-nav-mobile a[aria-current='page'] {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-content {
  padding: 24px 16px 80px 16px;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .admin-shell {
    grid-template-columns: 260px 1fr;
  }

  .admin-mobile-header,
  .admin-nav-mobile {
    display: none;
  }

  .admin-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    background: linear-gradient(180deg, #100821 0%, #0a0515 100%);
    border-right: 1px solid var(--line);
    padding: 20px 14px;
    z-index: 50;
    overflow-y: auto;
  }

  .admin-sidebar__head {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  }

  .admin-sidebar__badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--violet-bright);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
  }

  .admin-sidebar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-soft);
    margin-bottom: 22px;
  }

  .admin-sidebar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--violet-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px var(--violet-glow);
  }

  .admin-sidebar__user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .admin-sidebar__user-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
  }

  .admin-sidebar__user-status {
    font-size: 0.72rem;
    color: var(--ok);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
  }

  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
    display: inline-block;
  }

  .admin-sidebar__section-tag {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
    padding: 0 10px;
    margin-bottom: 8px;
  }

  .admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.18s ease;
    border: 1px solid transparent;
    text-decoration: none;
  }

  .admin-sidebar__link:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.1);
  }

  .admin-sidebar__link--active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(109, 40, 217, 0.1));
    border-color: rgba(139, 92, 246, 0.35);
    color: #fff !important;
  }

  .admin-sidebar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet-bright);
    transition: transform 0.18s ease;
  }

  .admin-sidebar__link--active .admin-sidebar__icon {
    transform: scale(1.1);
  }

  .admin-sidebar__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .admin-sidebar__link--store {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
  }

  .admin-sidebar__link--store:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--violet-bright);
  }

  .admin-sidebar__link--logout {
    background: transparent;
    cursor: pointer;
    width: 100%;
    color: var(--text-mute);
  }

  .admin-sidebar__link--logout:hover {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
  }

  .admin-content {
    padding: 30px 28px 80px 28px;
  }
}

/* ─────────────── Sub-Pestañas (Tabs) Interactivas ─────────────── */

.subtabs-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  scrollbar-width: none;
}

.subtabs-nav::-webkit-scrollbar { display: none; }

.subtab-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.subtab-item:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.12);
}

.subtab-item--active {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px var(--violet-glow);
}

.subtab-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.subtab-content {
  display: none;
}

.subtab-content--active {
  display: block;
  animation: tabFadeIn 0.22s ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 12px;
  background: rgba(7, 4, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.admin-nav::-webkit-scrollbar { display: none; }

.admin-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.admin-nav a[aria-current='page'] {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
}


.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.kpi {
  padding: 15px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

.kpi__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-mute);
  font-weight: 700;
}

.kpi__value {
  margin-top: 5px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.kpi__value--ok { color: var(--ok); }
.kpi__value--violet { color: var(--violet-bright); }

.login-card {
  width: 100%;
  max-width: 400px;
  margin: 8vh auto;
  padding: 28px 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.95);
}

.price-row { display: grid; gap: 8px; grid-template-columns: 1fr; align-items: center; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }

.switch input { position: absolute; opacity: 0; pointer-events: none; }

.switch__track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.18s;
  flex-shrink: 0;
}

.switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-mute);
  transition: transform 0.18s, background 0.18s;
}

.switch input:checked + .switch__track { background: var(--violet-deep); border-color: var(--violet); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: #fff; }

/* ─────────────── Footer ─────────────── */

.site-footer {
  margin-top: 46px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-mute);
  font-size: 0.8rem;
}

.site-footer__grid { display: grid; gap: 14px; }

/* QuasarLab Cosmic Animated Badge — LBBoost Violet & Obsidian Theme */
.site-footer .footer-developer-credit {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft, #241542);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-footer .footer-developer-credit .dev-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-mute, #7d6da0);
  font-weight: 700;
}

.quasarlab-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 14px;
  background: rgba(20, 11, 36, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.35), inset 0 0 15px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.quasarlab-badge:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(167, 139, 250, 0.85);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55), 0 0 25px rgba(56, 189, 248, 0.35);
}

.quasarlab-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.75s ease;
}

.quasarlab-badge:hover::after {
  left: 100%;
}

.quasar-icon-canvas {
  width: 28px;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quasar-celestial-svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.85));
}

.quasar-disk-outer {
  transform-origin: center;
  animation: quasarSpin 6s linear infinite;
}

.quasar-disk-inner {
  transform-origin: center;
  animation: quasarSpinReverse 4s linear infinite;
}

.quasar-singularity {
  animation: quasarPulse 2s ease-in-out infinite;
}

.quasar-jet-line {
  animation: quasarJetGlow 1.5s ease-in-out infinite alternate;
}

@keyframes quasarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes quasarSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes quasarPulse {
  0%, 100% { r: 3.5; opacity: 0.9; }
  50% { r: 5; opacity: 1; filter: drop-shadow(0 0 8px #fff); }
}

@keyframes quasarJetGlow {
  0% { opacity: 0.6; stroke-width: 1.5; }
  100% { opacity: 1; stroke-width: 2.5; filter: drop-shadow(0 0 6px #a78bfa); }
}

.quasarlab-brand-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quasarlab-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.6px;
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.quasarlab-accent {
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quasarlab-sparkle {
  color: #a78bfa;
  font-size: 11px;
  animation: quasarSparkle 2s ease-in-out infinite;
}

@keyframes quasarSparkle {
  0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.3) rotate(90deg); opacity: 1; color: #38bdf8; }
}

/* ─────────────── Mantenimiento ─────────────── */

.maintenance {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.maintenance h1 {
  font-size: clamp(1.8rem, 9vw, 3rem);
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff, var(--violet-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────────────── Utilidades ─────────────── */

.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.rise { animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-2 { animation-delay: 0.07s; }
.rise-3 { animation-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─────────────── Icono de producto ─────────────── */

.pico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* PNG con fondo transparente: se ve entero y sin caja detras */
.pico--free {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

/* Tarjetas: son posters verticales, se recortan en cuadrado */
.pico--tile {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  filter: none;
}

/*
 * Icono arriba y nombre debajo, a todo el ancho de la tarjeta. Al costado, un
 * título como «100 Diamantes + 10 Bono» quedaba partido en tres líneas contra
 * el borde.
 */
.offer__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.offer__head .offer__amount { min-width: 0; }

.offer__name {
  font-weight: 800;
  font-size: 0.93rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  word-break: break-word;
}

/* ─────────────── Combos ─────────────── */

.offer--combo {
  border-color: rgba(240, 169, 43, 0.45);
  background: linear-gradient(160deg, rgba(240, 169, 43, 0.1), var(--surface-2));
}

.offer--combo:hover { border-color: var(--gold); }

.offer--combo:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(240, 169, 43, 0.2), var(--surface-2));
  box-shadow: 0 0 0 1px var(--gold), 0 18px 46px -20px rgba(240, 169, 43, 0.4);
}

.offer--combo:has(input:checked)::after { background: var(--gold); color: #3d2600; }

.offer__combo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(240, 169, 43, 0.18);
  border: 1px solid rgba(240, 169, 43, 0.4);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: max-content;
}

.offer__breakdown {
  font-size: 0.7rem;
  color: var(--text-mute);
  line-height: 1.3;
}

/* ─────────────── Tarjeta de jugador (verificador de ID) ─────────────── */

.player-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
  padding: 13px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), var(--bg-2));
  animation: rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.player-card--ok { border-color: rgba(52, 211, 153, 0.5); }
.player-card--bad { border-color: rgba(248, 113, 113, 0.5); background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), var(--bg-2)); }

.player-card__avatar {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 22px -10px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.player-card__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.26), transparent 58%);
}

.player-card__check {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok);
  color: #04291d;
  font-size: 0.7rem;
  font-weight: 900;
  border: 2.5px solid var(--bg-2);
  z-index: 2;
}

.player-card__info { min-width: 0; flex: 1; }

.player-card__label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
}

.player-card--bad .player-card__label { color: var(--danger); }

.player-card__nick {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  word-break: break-word;
  margin-top: 1px;
}

.player-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.player-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
}

.player-card__chip .mono { font-size: 0.68rem; }


/* ─────────────── Selector de packs para combos ─────────────── */

.combo-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.combo-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  transition: border-color 0.16s, background 0.16s;
}

.combo-opt:hover { border-color: var(--violet); }

.combo-opt input {
  appearance: none;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
}

.combo-opt input:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.combo-opt input:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #3d2600;
  font-size: 0.66rem;
  font-weight: 900;
}

.combo-opt:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(240, 169, 43, 0.14), var(--surface-2));
}


/* Avatar real del jugador (llega de RocketPass) */
.player-card { position: relative; overflow: hidden; }

.player-card__avatar--photo { background: var(--surface-3); padding: 0; }

.player-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.player-card__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(1.2);
  pointer-events: none;
  z-index: 0;
}

.player-card--banner > *:not(.player-card__banner) { position: relative; z-index: 1; }

.player-card__chip--lvl {
  border-color: rgba(240, 169, 43, 0.45);
  color: var(--gold);
  background: rgba(240, 169, 43, 0.12);
}


/* ─────────────── Resultado de la prueba de conexión ─────────────── */

.test-result {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.84rem;
  line-height: 1.45;
}

.test-result__head { display: flex; align-items: center; gap: 10px; }

.test-result__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  background: var(--surface-3);
  color: var(--text-dim);
}

.test-result__extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--text-mute);
}

.test-result--ok { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); }
.test-result--ok .test-result__icon { background: var(--ok); color: #04291d; }

.test-result--error { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.08); }
.test-result--error .test-result__icon { background: var(--danger); color: #2a0808; }

.test-result--wait { border-color: var(--violet); background: rgba(139, 92, 246, 0.08); }
.test-result--wait .test-result__icon { background: var(--violet); color: #fff; }

/* En móvil las tablas del panel necesitan respirar */
@media (max-width: 559px) {
  table { min-width: 560px; }
  .kpi__value { font-size: 1.28rem; }
  .combo-picker { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }

  /* Los formularios de filtro se apilan: en una fila el buscador queda
     aplastado a unos pocos píxeles y no se puede escribir. */
  form.flex.wrap-gap > .input,
  form.flex.wrap-gap > select.input {
    flex: 1 1 100%;
    max-width: none !important;
  }
  form.flex.wrap-gap > .btn { flex: 1 1 100%; }
}

/* ══════════════ Breakpoints ══════════════ */

@media (min-width: 480px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .price-row { grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; }
}

@media (max-width: 559px) {
  /* En movil no hay ancho para portada + texto: se queda solo el fondo
     desenfocado, que llena el banner sin cortes ni bordes duros. */
  .product__hero-fg { display: none; }
  .product__hero-bg { opacity: 0.72; filter: blur(22px) saturate(1.4); }
  .product__hero-text { max-width: 100%; }
  .product__hero-art { height: clamp(140px, 42vw, 190px); }
  .product__hero-art::after {
    background: linear-gradient(180deg, rgba(7, 4, 13, 0.3) 0%, rgba(7, 4, 13, 0.92) 82%);
  }
}

@media (min-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding-inline: 24px; }
  .section { padding-block: 44px; }
  .brand__tag { display: block; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr auto; align-items: center; }
  .admin-nav { padding-inline: 24px; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .hero { padding-top: 46px; }
  .product { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 22px; }
  .product__side { position: sticky; top: calc(var(--header-h) + 18px); }
  .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .offers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ══════════════ Promos por ID (PagoStore) Estilo LBBoost ══════════════ */

.promo-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: linear-gradient(165deg, rgba(20, 11, 36, 0.95), rgba(13, 7, 24, 0.98));
  box-shadow: 0 12px 34px -12px rgba(0, 0, 0, 0.8), 0 0 20px -8px var(--violet-glow);
  position: relative;
  overflow: hidden;
  animation: rise 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.promo-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #34d399, var(--violet-bright), transparent);
}

.promo-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.promo-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.promo-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 10px -3px rgba(52, 211, 153, 0.3);
}

.promo-panel__summary {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 10px 0;
}

.promo-panel__summary b {
  color: #fff;
}

.promo-panel__rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(30, 27, 75, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.22);
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.promo-panel__rule-icon {
  flex-shrink: 0;
  color: #60a5fa;
  margin-top: 1px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 580px) {
  .promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.promo-card {
  position: relative;
  border-radius: var(--r-sm);
  padding: 11px 12px;
  background: rgba(13, 7, 24, 0.7);
  border: 1px solid var(--line);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.promo-card--free {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.16), rgba(13, 7, 24, 0.85));
  cursor: pointer;
}

.promo-card--free:hover {
  transform: translateY(-2px);
  border-color: var(--ok);
  box-shadow: 0 6px 18px -6px rgba(52, 211, 153, 0.35);
}

.promo-card--used {
  opacity: 0.46;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(13, 7, 24, 0.5);
  cursor: default;
}

.promo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.promo-card__diamonds {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promo-card--used .promo-card__diamonds {
  text-decoration: line-through;
  color: var(--text-mute);
}

.promo-card__status-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.promo-card--free .promo-card__status-tag {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.promo-card--used .promo-card__status-tag {
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-card__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  min-height: 18px;
}

.promo-card__price {
  font-weight: 800;
  font-size: 0.84rem;
  color: #fff;
}

.promo-card__cta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ok);
  white-space: nowrap;
}

.promo-card--free:hover .promo-card__cta {
  text-decoration: underline;
}

.promo-card__used-label {
  font-size: 0.72rem;
  color: var(--text-mute);
}

.promo-panel__hint {
  font-size: 0.76rem;
  color: var(--text-mute);
  text-align: center;
  margin: 4px 0 0 0;
}

/* Modal WhatsApp de Promos */
.promo-wa-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 2, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.promo-wa-sheet {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.9), 0 0 30px -10px var(--violet-glow);
  padding: 20px;
  animation: scaleUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-wa-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.promo-wa-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.promo-wa-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.promo-wa-close {
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.promo-wa-close:hover {
  color: #fff;
}

.promo-wa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: all 0.2s ease;
}

.wa-support-card:hover {
  background: var(--surface-3);
  border-color: var(--ok);
  transform: translateX(3px);
  color: #fff;
}

.wa-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wa-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  display: block;
}

.wa-card-number {
  font-size: 0.74rem;
  color: var(--text-mute);
  display: block;
}

.wa-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ok);
}

.wa-support-card--group {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
}

.wa-support-card--group:hover {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35), rgba(15, 23, 42, 0.95));
}

.wa-avatar-badge--group {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
}

.wa-card-badge-group {
  font-size: 0.74rem;
  font-weight: 800;
  color: #38bdf8;
  padding: 4px 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}

.wa-support-card--group:hover .wa-card-badge-group {
  background: #38bdf8;
  color: #0b1120;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

