/* ============================================================
   style.css — DigitalStore · Streaming Edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Netflix+Sans:wght@400;500;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Barlow+Condensed:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Paleta Streaming ── */
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --surface:   #181818;
  --surface2:  #222222;
  --surface3:  #2a2a2a;
  --border:    #333333;
  --border2:   #444444;

  /* ── Colores de marca streaming ── */
  --red:       #e50914;       /* Netflix red */
  --red2:      #f40612;
  --red-glow:  rgba(229,9,20,0.25);
  --gold:      #f5c518;       /* IMDb gold */
  --green:     #46d369;       /* Prime / Hulu */
  --blue:      #00a8e0;       /* HBO / Disney */
  --orange:    #f56600;       /* Amazon Prime */

  /* ── Acento principal = Rojo Netflix ── */
  --accent:    #e50914;
  --accent2:   #ff3b47;

  /* ── Texto ── */
  --text:      #ffffff;
  --text2:     #d2d2d2;
  --muted:     #808080;
  --muted2:    #555555;

  /* ── Tipografía ── */
  --ff-display: 'Barlow Condensed', sans-serif;
  --ff-body:    'Barlow', sans-serif;

  /* ── Utilidades ── */
  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 8px 32px rgba(0,0,0,0.8);
  --shadow-red: 0 8px 32px rgba(229,9,20,0.3);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(28px,4vw,44px); }
h2 { font-size: clamp(22px,3vw,32px); }
h3 { font-size: 20px; }

/* ── TOAST ───────────────────────────────────────────────── */
#toast {
  position: fixed; top: 80px; right: 24px; z-index: 9999;
  padding: 14px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  backdrop-filter: blur(20px); border-left: 4px solid; pointer-events: none;
  opacity: 0; transform: translateX(60px); transition: all 0.3s ease;
  max-width: 320px; box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translateX(0); }
#toast.success { background: rgba(70,211,105,.12); border-color: var(--green); color: var(--green); }
#toast.error   { background: rgba(229,9,20,.15);   border-color: var(--red);   color: #ff6b6b; }
#toast.info    { background: rgba(0,168,224,.12);  border-color: var(--blue);  color: var(--blue); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius); font-family: var(--ff-body);
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
  transition: all 0.2s; white-space: nowrap; text-decoration: none;
  letter-spacing: 0.3px;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(229,9,20,0.4);
}
.btn-primary:hover {
  background: var(--red2);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 4px 20px rgba(229,9,20,0.5);
}

.btn-outline {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: var(--text);
}

.btn-danger  { background: rgba(229,9,20,.15); border: 1px solid rgba(229,9,20,.4); color: #ff6b6b; }
.btn-danger:hover { background: rgba(229,9,20,.28); color: #ff6b6b; }

.btn-gold    { background: rgba(245,197,24,.12); border: 1px solid rgba(245,197,24,.35); color: var(--gold); }
.btn-gold:hover { background: rgba(245,197,24,.22); color: var(--gold); }

.btn-green   { background: var(--green); color: #000; font-weight: 800; }
.btn-green:hover { filter: brightness(1.1); color: #000; }

.btn-sm  { padding: 7px 16px; font-size: 13px; border-radius: 6px; }
.btn-xs  { padding: 4px 10px; font-size: 12px; border-radius: 5px; }
.btn-full { width: 100%; }
.btn-lg   { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* ── FORMS ───────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 16px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--ff-body);
  font-size: 14px; transition: all 0.2s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--red);
  background: var(--surface3);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.1);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select option { background: var(--surface2); }

/* ── CARD ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  padding: 3px 10px; border-radius: 4px; font-size: 11px;
  font-weight: 700; display: inline-flex; align-items: center;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-green  { background: rgba(70,211,105,.15); color: var(--green); }
.badge-red    { background: rgba(229,9,20,.15);   color: #ff6b6b; }
.badge-gold   { background: rgba(245,197,24,.15); color: var(--gold); }
.badge-purple { background: rgba(0,168,224,.15);  color: var(--blue); }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); border-bottom: 1px solid var(--border);
  font-family: var(--ff-body); font-weight: 700;
}
tbody td {
  padding: 14px 16px; font-size: 14px;
  border-bottom: 1px solid rgba(51,51,51,0.6); vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.025); }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.9) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 64px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 24px; font-weight: 900;
  color: var(--red); text-decoration: none;
  letter-spacing: 1px; text-transform: uppercase;
}
.nav-logo span { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.coins-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(245,197,24,.1); border: 1px solid rgba(245,197,24,.25);
  padding: 6px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 700; color: var(--gold);
  font-family: var(--ff-display); letter-spacing: 0.5px;
}

.cart-btn {
  position: relative; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  font-size: 18px; transition: all 0.2s;
  color: var(--text); text-decoration: none; display: flex; align-items: center;
}
.cart-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: var(--text); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  width: 19px; height: 19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-body); border: 2px solid var(--bg);
}

/* ── MOBILE NAV ──────────────────────────────────────────── */
.nav-mobile-menu {
  display: none; flex-direction: column; gap: 5px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; cursor: pointer; padding: 9px 10px;
  transition: background 0.2s;
}
.nav-mobile-menu:hover { background: rgba(255,255,255,.12); }
.nav-mobile-menu span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; display: block; }

.mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(10,10,10,0.99);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 16px 20px; z-index: 99;
  flex-direction: column; gap: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 16px; border-radius: 10px;
  color: var(--text2); text-decoration: none;
  font-size: 15px; font-weight: 600; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.mobile-menu a:hover { background: var(--surface2); color: var(--text); text-decoration: none; }

@media (max-width: 768px) {
  .nav-mobile-menu { display: flex; }
  .nav-right { display: none !important; }
  .navbar { padding: 0 20px; }
}

/* ── MSG BAR ─────────────────────────────────────────────── */
.msg-bar {
  padding: 14px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; margin-bottom: 20px;
  border-left: 4px solid;
}
.msg-bar.ok    { background: rgba(70,211,105,.08);  border-color: var(--green); color: var(--green); }
.msg-bar.error { background: rgba(229,9,20,.1);     border-color: var(--red);   color: #ff6b6b; }

/* ── HERO CATALOG ────────────────────────────────────────── */
.hero-catalog {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex; align-items: center;
}

/* Fondo tipo pantalla de cine */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 60% 40%, rgba(229,9,20,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 100% at 10% 80%, rgba(0,168,224,0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--bg) 100%),
    var(--bg);
}

/* Grid de "pantallas" decorativas */
.hero-screens {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 55%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 70%, transparent 100%),
              linear-gradient(180deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: destination-in;
}

.hero-screen-item {
  border-radius: 6px;
  aspect-ratio: 2/3;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  transition: all 0.5s;
}

.hero-content {
  position: relative; z-index: 1;
  padding: 80px 0 60px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--red); margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--red);
  display: block;
}

.hero-catalog h1 {
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-catalog h1 .line-red {
  color: var(--red);
  display: block;
}
.hero-catalog h1 .line-white {
  color: #fff;
  display: block;
}

.hero-sub {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-bottom: 56px;
}

.hero-platforms {
  display: flex; align-items: center; gap: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hp-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); margin-right: 24px; white-space: nowrap;
}

.platform-logos {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}

.plat-logo {
  font-family: var(--ff-display);
  font-size: 16px; font-weight: 900;
  letter-spacing: 0.5px;
  opacity: 0.5;
  transition: opacity 0.2s;
  text-transform: uppercase;
}
.plat-logo:hover { opacity: 0.9; }
.plat-netflix  { color: #e50914; font-size: 14px; }
.plat-hbo      { color: #8b44f7; }
.plat-amazon   { color: #00a8e0; }
.plat-disney   { color: #0ea5e9; }
.plat-spotify  { color: #1db954; }
.plat-hulu     { color: #1ce783; }
.plat-apple    { color: #f5f5f7; }
.plat-youtube  { color: #ff0000; }
.plat-crunchyroll { color: #f47521; }
.plat-paramount { color: #005fcc; }

/* ── CATALOG SECTION ─────────────────────────────────────── */
.catalog-section { padding: 80px 0 100px; }

.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px; gap: 20px;
  flex-wrap: wrap;
}
.section-header-left {}
.section-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--red); margin-bottom: 8px;
}
.section-header h2 {
  font-size: clamp(26px,4vw,40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── CATEGORIES ──────────────────────────────────────────── */
.categories {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.cat-pill {
  padding: 8px 20px; border-radius: 4px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; border: 1.5px solid var(--border2);
  background: transparent; color: var(--muted);
  transition: all 0.2s; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-family: var(--ff-body);
}
.cat-pill:hover { border-color: rgba(255,255,255,0.3); color: var(--text); text-decoration: none; }
.cat-pill.active {
  background: var(--red); border-color: var(--red);
  color: #fff; text-decoration: none;
  box-shadow: 0 2px 12px rgba(229,9,20,0.4);
}

/* ── PRODUCT GRID ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Card estilo "poster de streaming" */
.product-card {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8) 100%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
  border-radius: 8px;
}
.product-card:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
  z-index: 2;
}
.product-card:hover::after { opacity: 1; }
.product-card.out-of-stock { opacity: .4; pointer-events: none; }

.card-img-container {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  overflow: hidden; flex-shrink: 0;
}
.card-img-container img { width: 100%; height: 100%; object-fit: cover; }
.card-emoji { font-size: 56px; }

.card-header-prod {
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  flex: 1;
}
.card-cat {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--red);
  font-weight: 700; margin-bottom: 4px;
  font-family: var(--ff-body);
}
.card-name {
  font-family: var(--ff-display);
  font-size: 17px; font-weight: 800;
  margin-bottom: 4px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

.card-footer-prod {
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.card-price {
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 800;
  color: var(--gold);
}
.card-price span { font-size: 11px; color: var(--muted); font-weight: 500; font-family: var(--ff-body); }
.card-stock-tag {
  font-size: 11px; padding: 3px 8px;
  border-radius: 3px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-family: var(--ff-body);
}
.stock-ok   { background: rgba(70,211,105,.12); color: var(--green); }
.stock-low  { background: rgba(245,197,24,.12); color: var(--gold); }
.stock-none { background: rgba(229,9,20,.12);   color: #ff6b6b; }

.add-to-cart-btn {
  width: 100%; padding: 13px; border: none; cursor: pointer;
  font-family: var(--ff-body); font-size: 14px; font-weight: 800;
  background: var(--red); color: #fff;
  transition: all 0.2s; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.add-to-cart-btn:hover:not(:disabled) {
  background: var(--red2);
  box-shadow: 0 -4px 20px rgba(229,9,20,0.4);
}
.add-to-cart-btn:disabled { background: var(--surface3); color: var(--muted); cursor: not-allowed; }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-section {
  padding: 80px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(28px,4vw,44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 60px;
}
.section-title span { color: var(--red); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2px;
  max-width: 960px;
  margin: 0 auto;
}
.step-card {
  background: var(--surface);
  padding: 40px 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.step-card:first-child { border-radius: 12px 0 0 12px; }
.step-card:last-child  { border-radius: 0 12px 12px 0; }
.step-card:hover { background: var(--surface2); }
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
  transform: scaleX(0); transition: transform 0.3s;
  transform-origin: left;
}
.step-card:hover::before { transform: scaleX(1); }

.step-num {
  font-family: var(--ff-display);
  font-size: 72px; font-weight: 900;
  color: rgba(255,255,255,0.04);
  position: absolute; top: 10px; right: 20px;
  line-height: 1; pointer-events: none;
}
.step-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.step-card h3 {
  font-size: 20px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── TRUST STRIP ─────────────────────────────────────────── */
.trust-strip {
  background: var(--red);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  overflow: hidden;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
}
.trust-item::after {
  content: '•';
  margin-left: 40px;
  opacity: 0.4;
}
.trust-item:last-child::after { display: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: #000;
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px; align-items: start;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 32px; font-weight: 900;
  color: var(--red); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 10px;
}
.footer-logo span { color: #fff; }
.footer-tagline { font-size: 14px; color: var(--muted); }
.footer-links {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.footer-links a {
  font-size: 13px; font-weight: 600;
  color: var(--muted); transition: color 0.2s;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--muted2); }

/* ── SIDE PANEL ──────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
  z-index: 200; cursor: pointer;
}
.panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(460px,100vw);
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 201; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.panel.open { transform: translateX(0); }
.panel-header {
  padding: 22px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title { font-family: var(--ff-display); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.panel-body  { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.panel-footer { padding: 20px 24px; border-top: 1px solid var(--border); }

.cart-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px;
  transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--border2); }
.cart-emoji { font-size: 28px; }
.cart-info  { flex: 1; }
.cart-name  { font-weight: 700; font-size: 14px; text-transform: uppercase; font-family: var(--ff-display); }
.cart-price { font-size: 13px; color: var(--gold); font-weight: 600; }

/* ── RECHARGE PANEL ──────────────────────────────────────── */
.recharge-highlight {
  background: linear-gradient(135deg, rgba(229,9,20,.12), rgba(229,9,20,.04));
  border: 1px solid rgba(229,9,20,.25);
  border-radius: var(--radius-lg); padding: 28px; text-align: center; margin-bottom: 20px;
}
.recharge-highlight .r-icon { font-size: 48px; margin-bottom: 12px; }
.recharge-highlight h3 { font-family: var(--ff-display); font-size: 22px; margin-bottom: 6px; }
.recharge-highlight p  { color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-option {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px;
  margin-bottom: 10px; text-decoration: none; color: var(--text);
  transition: all 0.2s;
}
.contact-option:hover { border-color: var(--red); color: var(--text); text-decoration: none; background: var(--surface2); }
.contact-icon { font-size: 24px; }
.contact-name { font-weight: 700; font-size: 14px; font-family: var(--ff-display); }
.contact-sub  { font-size: 12px; color: var(--muted); }
.instructions { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.instructions p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; padding: 36px;
  transform: translateY(24px); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.modal-bg.open .modal { transform: translateY(0); }
.modal h2 { font-family: var(--ff-display); font-size: 24px; font-weight: 800; text-transform: uppercase; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

/* ── AUTH MODAL ──────────────────────────────────────────── */
.modal-auth-inner { max-width: 420px !important; text-align: center; }
.auth-modal-top { margin-bottom: 28px; }
.auth-lock-icon { font-size: 56px; margin-bottom: 16px; }
.auth-modal-top h2 { font-size: 26px; margin-bottom: 8px; }
.auth-modal-top p  { color: var(--muted); font-size: 14px; }
.auth-modal-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.auth-modal-close {
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 8px; transition: color 0.2s;
  font-family: var(--ff-body); font-weight: 600;
}
.auth-modal-close:hover { color: var(--text); }

/* ── AUTH PAGES ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex;
  align-items: stretch; justify-content: stretch;
}
.auth-split-left {
  flex: 1; display: none;
  background:
    linear-gradient(135deg, rgba(229,9,20,0.3) 0%, transparent 50%),
    var(--bg);
  position: relative; overflow: hidden;
  align-items: center; justify-content: center;
  flex-direction: column; padding: 60px;
}
@media (min-width: 900px) { .auth-split-left { display: flex; } }

.auth-left-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 100% 100% at 30% 50%, rgba(229,9,20,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0,168,224,0.07) 0%, transparent 50%);
}
.auth-left-content { position: relative; z-index: 1; text-align: center; }
.auth-left-logo {
  font-family: var(--ff-display);
  font-size: 48px; font-weight: 900;
  color: var(--red); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.auth-left-logo span { color: #fff; }
.auth-left-text {
  font-size: 16px; color: var(--text2); line-height: 1.7; max-width: 320px;
}
.auth-streaming-logos {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin-top: 48px;
}

.auth-split-right {
  width: 100%; max-width: 480px;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: var(--bg2);
  border-left: 1px solid var(--border);
}
@media (max-width: 899px) {
  .auth-split-right { max-width: 100%; border-left: none; }
}

.auth-card {
  width: 100%; max-width: 380px;
}
.auth-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; text-decoration: none;
  margin-bottom: 36px; transition: color 0.2s;
  font-weight: 600; font-family: var(--ff-body);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.auth-back:hover { color: var(--text); text-decoration: none; }

.auth-logo {
  font-family: var(--ff-display);
  font-size: 32px; font-weight: 900;
  color: var(--red); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 4px;
}
.auth-logo span { color: #fff; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 36px; }

.auth-error {
  background: rgba(229,9,20,.1);
  border-left: 3px solid var(--red);
  color: #ff6b6b; border-radius: 6px;
  padding: 12px 16px; font-size: 13px; margin-bottom: 20px;
}
.auth-ok {
  background: rgba(70,211,105,.08);
  border-left: 3px solid var(--green);
  color: var(--green); border-radius: 6px;
  padding: 12px 16px; font-size: 13px; margin-bottom: 20px;
}
.auth-submit {
  margin-top: 8px; height: 50px; font-size: 15px;
  font-weight: 800; border-radius: var(--radius);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.input-pw-wrap { position: relative; }
.input-pw-wrap input { padding-right: 46px !important; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 15px; color: var(--muted); padding: 4px; line-height: 1;
  transition: color 0.2s;
}
.pw-toggle:hover { color: var(--text); }

/* ── HERO (tienda logged) ────────────────────────────────── */
.hero { padding: 40px 0 32px; }
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(32px,5vw,52px);
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px;
}
.hero h1 span { color: var(--red); }
.hero p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ── ACCOUNT REVEAL ──────────────────────────────────────── */
.account-reveal {
  background: var(--surface2);
  border: 1px solid rgba(70,211,105,.2);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.account-reveal .ar-name {
  font-family: var(--ff-display);
  font-weight: 700; font-size: 15px;
  text-transform: uppercase; margin-bottom: 8px;
}
.account-reveal .ar-data {
  font-size: 13px; color: var(--green);
  background: rgba(70,211,105,.07);
  padding: 10px 14px; border-radius: 6px;
  font-family: monospace; word-break: break-all; line-height: 1.6;
}

/* ── SUCCESS CENTER ──────────────────────────────────────── */
.success-center { text-align: center; margin-bottom: 24px; }
.success-center .s-icon { font-size: 60px; margin-bottom: 14px; }
.success-center h2 { color: var(--green); font-family: var(--ff-display); text-transform: uppercase; }
.success-center p  { color: var(--muted); font-size: 14px; }

/* ── EMPTY ───────────────────────────────────────────────── */
.empty { text-align: center; padding: 70px 20px; }
.empty .e-icon { font-size: 52px; margin-bottom: 14px; display: block; }
.empty p { color: var(--muted); font-size: 16px; }

/* ── ADMIN LAYOUT ────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #000; border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto;
}
.admin-logo { padding: 24px; border-bottom: 1px solid var(--border); }
.admin-logo h2 {
  font-family: var(--ff-display);
  font-size: 20px; font-weight: 900;
  color: var(--red); text-transform: uppercase; letter-spacing: 1px;
}
.admin-logo h2 span { color: #fff; }
.admin-logo p  { font-size: 11px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 24px; font-size: 13px; font-weight: 700;
  color: var(--muted); text-decoration: none;
  border-left: 3px solid transparent; transition: all 0.2s;
  text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--ff-body);
}
.sidebar-link:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.sidebar-link.active { color: #fff; border-left-color: var(--red); background: rgba(229,9,20,.08); }
.sidebar-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.admin-main { flex: 1; padding: 32px; overflow-y: auto; background: var(--bg); }
.admin-header { margin-bottom: 28px; }
.admin-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(24px,3vw,36px); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-header p  { color: var(--muted); font-size: 14px; margin-top: 4px; }
.admin-card-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.admin-card-title {
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── STATS ROW ───────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 12px; margin-bottom: 28px;
}
.stat-card {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--red);
}
.stat-val {
  font-family: var(--ff-display);
  font-size: 38px; font-weight: 900; margin-bottom: 4px;
  line-height: 1;
}
.stat-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* ── STOCK LIST ──────────────────────────────────────────── */
.stock-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.stock-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; font-size: 13px; gap: 10px;
}
.stock-item code {
  color: var(--red); background: rgba(229,9,20,.08);
  padding: 2px 8px; border-radius: 4px; font-size: 12px; word-break: break-all;
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.page-btn {
  padding: 7px 14px; border-radius: var(--radius); font-size: 13px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; text-decoration: none; transition: all 0.2s;
  font-family: var(--ff-body); font-weight: 600;
}
.page-btn:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── CONTAINER ───────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .hero-catalog h1 { letter-spacing: -0.5px; }
  .hero-platforms { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-strip { gap: 20px; padding: 14px 20px; }
  .trust-item { font-size: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr 1fr !important; }
  .container { padding: 0 16px; }
  .navbar { padding: 0 16px; }
}
