/* ==========================================================================
   ZonaSwitchChile - Design System & Ultra Modern OLED CSS (CLP)
   ========================================================================== */

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette OLED Dark Theme */
  --bg-dark: #070a12;
  --bg-card: #0f1624;
  --bg-card-hover: #151e30;
  --bg-nav: rgba(10, 15, 25, 0.92);
  
  /* Brand Accent Colors */
  --switch-red: #ff003c;
  --switch-red-hover: #e00034;
  --joycon-cyan: #00f0ff;
  --joycon-cyan-dark: #00b8c4;
  --accent-gold: #ffb703;
  --accent-green: #34d399;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 0, 60, 0.4);
  --glow-red: 0 0 20px rgba(255, 0, 60, 0.35);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.35);
  --shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.6);

  /* Spacing & Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1280px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(255, 0, 60, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(0, 240, 255, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--switch-red); }

/* ==========================================================================
   Navbar & Header Search
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.3);
}

.logo-text {
  display: flex;
  align-items: center;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-title .highlight {
  color: var(--switch-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buscador en el Header */
.header-search-box {
  position: relative;
  width: 220px;
}

@media (min-width: 992px) {
  .header-search-box {
    width: 260px;
  }
}

.header-search-box .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-search-box input {
  width: 100%;
  height: 40px;
  background: rgba(10, 15, 25, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text-main);
  padding: 0 1rem 0 2.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-box input::placeholder {
  color: var(--text-dim);
  font-weight: 500;
}

.header-search-box input:focus {
  background: rgba(15, 22, 36, 0.95);
  border-color: var(--joycon-cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35), 0 0 0 2px rgba(0, 240, 255, 0.2);
}

/* User Auth Area */
.user-nav-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-auth-btn.login-btn:hover {
  border-color: var(--joycon-cyan);
  color: var(--joycon-cyan);
}

.nav-auth-btn.register-btn {
  background: rgba(255, 0, 60, 0.15);
  border-color: rgba(255, 0, 60, 0.4);
  color: #ff4d6d;
}

.nav-auth-btn.register-btn:hover {
  background: var(--switch-red);
  color: white;
  border-color: var(--switch-red);
}

.user-profile-badge {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.user-name-tag {
  color: var(--joycon-cyan);
}

.logout-icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}
.logout-icon-btn:hover { color: var(--switch-red); }

.cart-trigger-btn {
  background: linear-gradient(135deg, var(--switch-red), #d60033);
  color: white;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 0, 60, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.cart-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 60, 0.45);
}

.cart-badge {
  background-color: var(--joycon-cyan);
  color: #041019;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
/* FAQ Button in Navbar */
.nav-faq-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--joycon-cyan);
  padding: 0 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-faq-btn:hover {
  background: var(--joycon-cyan);
  color: #070a12;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Currency Select Dropdown */
.currency-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-select {
  height: 38px;
  background: rgba(15, 22, 36, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.currency-select:hover, .currency-select:focus {
  border-color: var(--joycon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.hero-section {
  padding: 1.5rem 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 auto;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--switch-red) 30%, var(--joycon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Banner de Ancho Completo
   ========================================================================== */
.full-width-banner-section {
  max-width: var(--max-width);
  margin: 1.75rem auto 0.5rem;
  padding: 0 1.5rem;
}

.full-width-banner-card {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 768px) {
  .full-width-banner-card {
    height: 280px;
  }
}

.full-width-banner-card:hover {
  transform: translateY(-4px);
  border-color: var(--switch-red);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 0, 60, 0.25);
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.full-width-banner-card:hover .hero-banner-img {
  transform: scale(1.04);
}

.banner-overlay-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 18, 0.92) 0%, rgba(7, 10, 18, 0.6) 55%, rgba(7, 10, 18, 0.25) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  color: white;
}

.banner-tag {
  color: var(--joycon-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 900;
  max-width: 580px;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--switch-red), #d60033);
  color: white;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.875rem;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(255, 0, 60, 0.4);
  transition: all 0.2s ease;
}

.full-width-banner-card:hover .banner-cta-btn {
  background: white;
  color: var(--switch-red);
  transform: translateX(4px);
}

/* ==========================================================================
   Filter Section (Category Chips)
   ========================================================================== */
.controls-section {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.controls-container {
  display: flex;
  justify-content: center;
  background: rgba(15, 22, 36, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-lg);
}

.category-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pill-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pill-btn:hover { color: var(--text-main); border-color: rgba(255, 255, 255, 0.2); }
.pill-btn.active {
  background: var(--switch-red);
  color: white;
  border-color: var(--switch-red);
  box-shadow: 0 2px 10px rgba(255, 0, 60, 0.3);
}

/* ==========================================================================
   Games Grid & Cards
   ========================================================================== */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.75rem;
  background: rgba(15, 22, 36, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
}

.section-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.section-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.game-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: opacity, transform;
  cursor: pointer;
}

.game-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.game-card.in-view:hover {
  transform: translateY(-6px) scale(1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 0, 60, 0.15);
}

.card-media {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: #05080e;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .card-media img {
  transform: scale(1.06);
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(6px);
  color: var(--joycon-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.card-size-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.45;
  height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-license-hint {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  text-align: center;
  margin-top: auto;
  margin-bottom: 0.85rem;
  color: var(--joycon-cyan);
  font-weight: 700;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.price-container {
  display: flex;
  flex-direction: column;
}

.original-price {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-green);
}

.buy-card-btn {
  background: linear-gradient(135deg, var(--switch-red), #d60033);
  color: white;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 0, 60, 0.3);
  transition: all 0.2s;
}

.buy-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 0, 60, 0.45);
}

/* ==========================================================================
   Game Detail Modal (Resolución Ampliada Fija 940px x 600px)
   ========================================================================== */
.game-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 940px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  max-height: 94vh;
}

.modal-close-x {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close-x:hover { color: white; background: var(--switch-red); }

.game-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.game-modal-media {
  position: relative;
  background: var(--bg-card);
  overflow: hidden;
  width: 100%;
  height: 280px;
}

.game-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.slider-arrow:hover {
  background: var(--switch-red);
  border-color: var(--switch-red);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.5);
}

.slider-arrow.prev {
  left: 12px;
}

.slider-arrow.next {
  right: 12px;
}

.slider-dots {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.dot-pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot-pill.active {
  background: var(--joycon-cyan);
  width: 18px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.game-modal-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}

.size-badge {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--joycon-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.console-badge {
  background: rgba(255, 0, 60, 0.9);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
}

.game-modal-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .game-modal-card {
    height: 600px;
  }

  .game-modal-grid {
    grid-template-columns: 390px 1fr;
    height: 100%;
  }

  .game-modal-media {
    height: 100%;
  }

  .game-modal-info {
    padding: 1.5rem 1.75rem;
    height: 100%;
    overflow-y: auto;
  }

  .gmodal-actions {
    margin-top: auto;
  }
}

.gmodal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.gmodal-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--joycon-cyan);
  text-transform: uppercase;
}

.gmodal-rating {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.gmodal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.gmodal-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Selector de Cuentas */
.license-selector-section {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.license-label-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.75rem;
}

.required-star { color: var(--switch-red); }

.license-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.license-option-card input[type="radio"] {
  display: none;
}

.license-card-content {
  border: 2px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.license-option-card input[type="radio"]:checked + .license-card-content {
  border-color: var(--switch-red);
  background: rgba(255, 0, 60, 0.08);
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.2);
}

.lic-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lic-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
}

.lic-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-green);
}

.lic-badge-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 2px;
}
.lic-badge-tag.sec { background: rgba(0, 240, 255, 0.15); color: var(--joycon-cyan); }
.lic-badge-tag.prim { background: rgba(255, 0, 60, 0.2); color: #ff4d6d; }

.license-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-placeholder { color: var(--text-dim); text-align: center; }

.license-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.license-bullets li {
  color: var(--text-main);
  font-weight: 600;
}

.gmodal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gmodal-btn {
  padding: 0.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.gmodal-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-add-cart {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--border-subtle);
}

.btn-add-cart:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-buy-now {
  background: linear-gradient(135deg, var(--switch-red), #d60033);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 0, 60, 0.3);
}

.btn-buy-now:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 0, 60, 0.45);
}

/* ==========================================================================
   Auth Modals (Login & Register)
   ========================================================================== */
.auth-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.auth-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.auth-modal-header p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.pwd-rules-box {
  background: rgba(7, 10, 18, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.775rem;
}

.rule-item.invalid { color: #f87171; }
.rule-item.valid { color: #34d399; }

.auth-error-msg {
  color: #f87171;
  font-size: 0.825rem;
  font-weight: 600;
  text-align: center;
  min-height: 18px;
}

.auth-submit-btn {
  background: var(--switch-red);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.auth-switch-text {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.auth-switch-text a {
  color: var(--joycon-cyan);
  text-decoration: none;
  font-weight: 700;
}

/* ==========================================================================
   Side Drawer Cart
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.cart-drawer.active { transform: translateX(0); }

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--switch-red);
}

.drawer-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cart-item-card {
  display: flex;
  gap: 1rem;
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  align-items: center;
}

.cart-item-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-info { flex-grow: 1; }

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.cart-item-license-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--joycon-cyan);
}

.cart-item-price {
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 800;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.qty-val { font-size: 0.85rem; font-weight: 700; width: 18px; text-align: center; }

.remove-item-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}
.remove-item-btn:hover { color: var(--switch-red); }

.cart-checkout-wrapper {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.cart-summary {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-bottom: 1.2rem;
}

.summary-row.total {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}
.summary-row.total span:last-child { color: var(--accent-green); }

.submit-order-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.15rem 1.5rem;
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  color: #070a12;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.4);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.submit-order-btn:hover {
  background: linear-gradient(135deg, #33f3ff 0%, #1a94ff 100%);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.submit-order-btn:active {
  transform: translateY(0);
}

.submit-order-btn svg {
  transition: transform 0.2s ease;
  stroke: #070a12;
  stroke-width: 2.8px;
}

.submit-order-btn:hover svg {
  transform: translateX(4px);
}

.checkout-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-title { font-size: 0.85rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }

.form-group input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
}
.form-group input:focus { border-color: var(--switch-red); }

/* ==========================================================================
   Payment Selection Modal
   ========================================================================== */
.payment-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 900px;
  height: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.15);
  position: relative;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-modal-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 100%;
}

.payment-left-col {
  padding: 2rem 2.25rem;
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.payment-modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.payment-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.825rem;
  margin-bottom: 1.25rem;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--joycon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  margin-top: 0.4rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gateway-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.gateway-option-card {
  position: relative;
  display: block;
  background: rgba(15, 22, 36, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gateway-option-card input[type="radio"] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  accent-color: var(--joycon-cyan);
  transform: scale(1.2);
}

.gateway-option-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.04);
}

.gateway-option-card.active {
  border-color: var(--joycon-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.gateway-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.gateway-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.gateway-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.gateway-badge.flow {
  background: rgba(255, 0, 60, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 0, 60, 0.3);
}

.gateway-badge.mp {
  background: rgba(0, 158, 227, 0.15);
  color: #009ee3;
  border: 1px solid rgba(0, 158, 227, 0.3);
}

.gateway-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.payment-right-col {
  background: rgba(7, 10, 18, 0.7);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-games-preview-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.preview-media-container {
  position: relative;
  width: 100%;
  height: 195px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #05080e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.cart-games-preview-box:hover .preview-media-container img {
  transform: scale(1.03);
}

.pay-carousel-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pay-game-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.975rem;
  color: var(--text-main);
}

.pay-game-lic {
  font-size: 0.8rem;
  color: var(--joycon-cyan);
  font-weight: 700;
}

.pay-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.4rem;
}

.checkout-coupon-notice {
  margin-top: 0.65rem;
  width: 100%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.15);
}

.coupon-notice-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #34d399;
}

.coupon-notice-detail {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.payment-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pay-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pay-summary-row.total {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
}

.submit-payment-btn {
  background: linear-gradient(135deg, var(--switch-red), #d60033);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(255, 0, 60, 0.4);
  transition: all 0.2s;
  width: 100%;
}

.submit-payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 60, 0.55);
}

.empty-cart-view { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-cart-icon { font-size: 3rem; margin-bottom: 0.75rem; }

/* ==========================================================================
   Receipt Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active { opacity: 1; pointer-events: all; }

.receipt-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.receipt-header { text-align: center; margin-bottom: 1.5rem; }
.success-badge {
  width: 60px; height: 60px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.receipt-header h3 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; }
.receipt-header p { color: var(--text-muted); font-size: 0.85rem; }

.order-code-box {
  background: var(--bg-dark);
  border: 1px dashed var(--joycon-cyan);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.code-label { font-size: 0.8rem; color: var(--text-muted); }
.code-value-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.code-value { font-family: var(--font-heading); font-size: 1.1rem; color: var(--joycon-cyan); }

.copy-btn {
  background: rgba(255, 255, 255, 0.1); border: none; color: var(--text-main);
  padding: 4px 6px; border-radius: 4px; cursor: pointer;
}

.receipt-details {
  display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.875rem;
  margin-bottom: 1.5rem; background: rgba(255, 255, 255, 0.02); padding: 1rem; border-radius: var(--radius-md);
}
.detail-row { display: flex; justify-content: space-between; color: var(--text-muted); }
.highlight-green { color: var(--accent-green); }

.btn-close-modal {
  width: 100%; background: var(--switch-red); color: white; border: none;
  padding: 0.8rem; border-radius: var(--radius-md); font-family: var(--font-body);
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}

.toast {
  background: rgba(15, 22, 36, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--joycon-cyan);
  color: var(--text-main);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(20px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: all;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 10, 18, 0.9);
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.footer-instagram-link:hover {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.15);
  border-color: rgba(225, 48, 108, 0.4);
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.35);
  transform: translateY(-2px);
}

.footer-instagram-link .instagram-icon {
  stroke: currentColor;
}

@media (min-width: 768px) {
  .footer-container { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   OTP Code Verification & User Profile Menu / Settings CSS
   ========================================================================== */
.otp-input-large {
  font-size: 2.2rem !important;
  letter-spacing: 12px !important;
  text-align: center !important;
  font-weight: 900 !important;
  color: var(--joycon-cyan) !important;
  background: rgba(0, 240, 255, 0.05) !important;
  border: 2px solid rgba(0, 240, 255, 0.3) !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.otp-badge-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.resend-block {
  margin-top: 1rem;
}

.resend-link-btn {
  background: none;
  border: none;
  color: var(--joycon-cyan);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.resend-link-btn:hover {
  color: #60a5fa;
}

/* Dropdown Menu Usuario */
.user-profile-menu-container {
  position: relative;
  display: inline-block;
}

.user-profile-trigger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.user-profile-trigger:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  width: 200px;
  overflow: hidden;
  z-index: 1000;
  display: none;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.active {
  display: block;
}

.dropdown-item {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-item.danger {
  color: #ff4d6d;
  border-top: 1px solid var(--border-subtle);
}

.dropdown-item.danger:hover {
  background: rgba(255, 0, 60, 0.15);
}

/* User Modals (Mis Órdenes & Opciones) */
.user-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.user-modal-card.wide {
  max-width: 760px;
}

.user-modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.user-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.user-modal-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Settings Tabs */
.settings-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--joycon-cyan);
  color: #070a12;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.3);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Orders Cards List */
.user-orders-body {
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.3rem;
}

.order-history-card {
  background: rgba(15, 22, 36, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.oh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.oh-code {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--joycon-cyan);
}

.oh-date {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.oh-badge {
  font-size: 0.725rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.oh-badge.pagada { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.oh-badge.pendiente { background: rgba(255, 183, 3, 0.15); color: #ffb703; border: 1px solid rgba(255, 183, 3, 0.3); }

.oh-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  color: var(--text-main);
}

.oh-footer {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.95rem;
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL Y ESTILO DE CARTUCHOS NINTENDO SWITCH (2x2)
   ========================================================================== */
@media (max-width: 768px) {
  /* Layout General */
  .main-container {
    padding: 0 0.75rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-section {
    margin: 1rem auto 1.25rem !important;
    padding: 0 0.75rem !important;
  }

  .hero-content h1 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  .hero-subtitle {
    font-size: 0.85rem !important;
  }

  /* Header & Navegación */
  .navbar {
    padding: 0.6rem 0.75rem !important;
    gap: 0.5rem !important;
  }

  .logo-text {
    font-size: 1.05rem !important;
  }

  .logo-img {
    width: 28px !important;
    height: 28px !important;
  }

  .nav-center {
    order: 3;
    width: 100%;
    margin-top: 0.25rem;
  }

  .search-container {
    max-width: 100% !important;
  }

  .search-input {
    padding: 0.5rem 0.75rem 0.5rem 2.2rem !important;
    font-size: 0.825rem !important;
  }

  /* Categorías Deslizables Táctiles */
  .category-pills {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0.4rem !important;
    gap: 0.4rem !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar { display: none; }

  .pill-btn {
    flex-shrink: 0 !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.775rem !important;
  }

  .section-header {
    padding: 0.85rem 1rem !important;
    margin-bottom: 1rem !important;
  }

  .section-title {
    font-size: 1.15rem !important;
  }

  /* ==========================================
     FORMATO DE CARTUCHOS NINTENDO SWITCH (2x2)
     ========================================== */
  .games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .game-card {
    border-radius: 12px 12px 14px 14px !important;
    background: linear-gradient(180deg, #18202e 0%, #0d121c 100%) !important;
    border: 2px solid rgba(0, 240, 255, 0.25) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Muesca superior del cartucho Nintendo Switch */
  .game-card::before {
    content: "NINTENDO SWITCH" !important;
    display: block !important;
    background: linear-gradient(90deg, #ff003c 0%, #cc0030 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 0.525rem !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    padding: 3px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  }

  .card-media {
    height: 125px !important;
    margin: 5px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .card-tag {
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
    top: 5px !important;
    left: 5px !important;
  }

  .card-size-tag {
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
    bottom: 5px !important;
    left: 5px !important;
  }

  .card-content {
    padding: 0.6rem !important;
  }

  .card-title {
    font-size: 0.825rem !important;
    line-height: 1.25 !important;
    height: 2.1rem !important;
    margin-bottom: 0.3rem !important;
    font-weight: 800 !important;
  }

  /* Ocultar descripción larga en cartuchos pequeños para mantener simetría limpia */
  .card-desc {
    display: none !important;
  }

  .card-license-hint {
    font-size: 0.675rem !important;
    padding: 3px 4px !important;
    height: 1.9rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.15 !important;
  }

  .card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.4rem !important;
    padding-top: 0.4rem !important;
  }

  .price-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .original-price {
    font-size: 0.675rem !important;
  }

  .current-price {
    font-size: 0.975rem !important;
  }

  .buy-card-btn {
    width: 100% !important;
    padding: 0.5rem 0.4rem !important;
    font-size: 0.775rem !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: var(--radius-sm) !important;
  }

  /* ==========================================
     MODALES RESPONSIVOS EN CELULAR
     ========================================== */
  .modal-backdrop {
    padding: 0.5rem !important;
  }

  .payment-modal-card {
    height: 92vh !important;
    max-height: 700px !important;
    border-radius: var(--radius-md) !important;
  }

  .payment-modal-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    overflow-y: auto !important;
  }

  .payment-left-col {
    padding: 1.25rem 1rem !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }

  .payment-right-col {
    padding: 1.25rem 1rem !important;
  }

  .user-modal-card {
    padding: 1.25rem 1rem !important;
    max-width: 98% !important;
  }

  .auth-modal-card {
    padding: 1.5rem 1.25rem !important;
    max-width: 96% !important;
  }

  .otp-input-large {
    font-size: 1.6rem !important;
    letter-spacing: 6px !important;
  }

  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   MENÚ LATERAL MÓVIL DESLIZABLE (3 RAYAS ☰) Y VISIBILIDAD
   ========================================================================== */
.desktop-only { display: flex !important; }
.mobile-only { display: none !important; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
}

.mobile-menu-trigger-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-trigger-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--joycon-cyan);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  left: auto;
  width: 295px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  border-right: none;
  z-index: 1200;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  transform: translateX(-320px);
}

.mobile-drawer-header {
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 10, 18, 0.85);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.mobile-drawer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.mobile-drawer-body {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.mobile-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-search-box {
  position: relative;
  width: 100%;
}

.mobile-search-box .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.mobile-search-box .search-input {
  width: 100%;
  height: 42px;
  background: rgba(7, 10, 18, 0.95);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  color: var(--text-main);
  padding: 0 0.85rem 0 2.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.mobile-search-box .search-input::placeholder {
  color: var(--text-dim);
}

.mobile-search-box .search-input:focus {
  border-color: var(--joycon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.mobile-currency-select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

.mobile-drawer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.mobile-drawer-link:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}

.mobile-user-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-user-container .nav-auth-btn {
  width: 100%;
  text-align: center;
  padding: 0.7rem;
  font-weight: 800;
}

/* ==========================================================================
   Opciones de Administrador & Edición en Tiempo Real (Admin Panel)
   ========================================================================== */
.admin-only-tab {
  background: rgba(255, 0, 60, 0.15) !important;
  color: #ff4d6d !important;
  border: 1px solid rgba(255, 0, 60, 0.4) !important;
  font-weight: 700 !important;
}
.admin-only-tab.active {
  background: var(--switch-red) !important;
  color: #ffffff !important;
  box-shadow: var(--glow-red) !important;
}

.admin-tab-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-tab-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-tab-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.admin-search-box-wrapper {
  margin-bottom: 1rem;
}
.admin-search-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.9rem;
}
.admin-search-input:focus {
  outline: none;
  border-color: var(--joycon-cyan);
}

.admin-games-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.admin-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  transition: var(--transition-fast);
}
.admin-game-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.admin-game-row.hidden-game {
  opacity: 0.55;
  filter: grayscale(40%);
  border-style: dashed;
}

.admin-game-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.admin-game-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.admin-game-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-game-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-game-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-game-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Interruptor Toggle (Switch Mostrar / Ocultar) */
.toggle-switch-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  font-weight: 600;
}
.toggle-switch-label span {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 55px;
  text-align: right;
}
.toggle-switch-label input[type="checkbox"] {
  display: none;
}
.toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toggle-switch-label input:checked + .toggle-slider {
  background-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}
.toggle-switch-label input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Botón Tuerca ⚙️ (Editar) */
.edit-game-gear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--joycon-cyan);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.edit-game-gear-btn:hover {
  background: var(--joycon-cyan);
  color: #000000;
  transform: rotate(45deg);
  box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   Variantes Dinámicas de Cuentas (Round-Robin 🔄 UI)
   ========================================================================== */
.account-variants-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.variant-row-card {
  background: rgba(10, 15, 25, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.variant-row-card:hover {
  border-color: var(--joycon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.variant-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.variant-number-badge {
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--joycon-cyan);
  background: rgba(0, 240, 255, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.variant-row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn-add, .icon-btn-delete {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.icon-btn-add:hover {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border-color: #34d399;
}

.icon-btn-delete:hover {
  background: rgba(255, 0, 60, 0.2);
  color: #ff4d6d;
  border-color: #ff4d6d;
}

.variant-inputs-grid {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.variant-field {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.variant-field label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.variant-field input,
.variant-field textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.variant-field input {
  height: 36px;
}

.variant-field textarea {
  min-height: 44px;
  max-height: 250px;
}

.variant-field input:focus,
.variant-field textarea:focus {
  border-color: var(--joycon-cyan);
}

.variant-slash-separator {
  color: var(--joycon-cyan);
  font-size: 1.1rem;
  font-weight: 900;
  margin-top: 1rem;
  user-select: none;
}

.add-variant-btn-pill {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--joycon-cyan);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-variant-btn-pill:hover {
  background: var(--joycon-cyan);
  color: #070a12;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   Toast Notifications: Aesthetic Left-to-Right Color Shift & Swipe Gesture
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  background: linear-gradient(110deg, rgba(15, 22, 36, 0.96) 0%, rgba(255, 0, 60, 0.22) 35%, rgba(0, 240, 255, 0.25) 70%, rgba(15, 22, 36, 0.96) 100%);
  background-size: 240% 100%;
  animation: toastGradientFlow 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 0, 60, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), var(--glow-red);
  color: #ffffff;
  overflow: hidden;
  min-width: 280px;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 60, 0.3), rgba(0, 240, 255, 0.4), rgba(255, 183, 3, 0.3), transparent);
  animation: toastSweepLight 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes toastGradientFlow {
  0% {
    background-position: 0% 50%;
    border-color: rgba(255, 0, 60, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 60, 0.35);
  }
  50% {
    background-position: 100% 50%;
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.4);
  }
  100% {
    background-position: 0% 50%;
    border-color: rgba(255, 0, 60, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 60, 0.35);
  }
}

@keyframes toastSweepLight {
  0% {
    left: -120%;
  }
  100% {
    left: 120%;
  }
}

.toast:active {
  cursor: grabbing;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-text {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  flex: 1;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color 0.2s ease;
}
.toast-close-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   Navegación Sticky Inteligente (Ocultar al bajar / Revelar al subir)
   ========================================================================== */
.navbar {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease, box-shadow 0.35s ease;
}
.navbar.nav-hidden {
  transform: translateY(-100%);
}
.navbar.nav-scrolled {
  transform: translateY(0);
  background: rgba(7, 10, 18, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   Franja Horizontal de Beneficios / Confianza encima del Catálogo
   ========================================================================== */
.trust-banner-section {
  max-width: var(--max-width);
  margin: 1rem auto 1.5rem auto;
  padding: 0 1.25rem;
}
.trust-banner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  background: rgba(15, 22, 36, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow-lg);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.trust-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 0, 60, 0.1);
  border: 1px solid rgba(255, 0, 60, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-text {
  display: flex;
  flex-direction: column;
}
.trust-text strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}
.trust-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* ==========================================================================
   Buscador Predictivo Instantáneo (Auto-complete)
   ========================================================================== */
.header-search-box, .mobile-search-box {
  position: relative;
}
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 290px;
  background: rgba(15, 22, 36, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.35rem;
}
.search-autocomplete-dropdown.active {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.autocomplete-item:hover {
  background: rgba(0, 240, 255, 0.12);
}
.autocomplete-thumb {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.autocomplete-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.autocomplete-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-sub {
  font-size: 0.75rem;
  color: var(--joycon-cyan);
}

/* ==========================================================================
   Código de Descuento en Carrito
   ========================================================================== */
.cart-coupon-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 0.85rem;
}
.coupon-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}
.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}
.coupon-input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.coupon-input-group input:focus {
  outline: none;
  border-color: var(--joycon-cyan);
}
.apply-coupon-btn {
  background: var(--joycon-cyan);
  color: #000000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}
.apply-coupon-btn:hover {
  background: #ffffff;
}
.coupon-msg {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.coupon-msg.success { color: var(--accent-green); font-weight: 700; }
.coupon-msg.error { color: var(--switch-red); }

/* ==========================================================================
   Logotipos de Medios de Pago Locales en Chile (Checkout)
   ========================================================================== */
.checkout-local-payments-box {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}
.local-payments-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.local-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pay-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.pay-badge.webpay { border-color: rgba(255, 0, 60, 0.4); color: #ff4d6d; }
.pay-badge.mp { border-color: rgba(0, 158, 227, 0.4); color: #009ee3; }
.pay-badge.mach { border-color: rgba(123, 44, 191, 0.4); color: #c77dff; }
.pay-badge.rut { border-color: rgba(52, 211, 153, 0.4); color: #34d399; }
.pay-badge.chek { border-color: rgba(34, 197, 94, 0.4); color: #4ade80; }
.pay-badge.servipag { border-color: rgba(255, 183, 3, 0.4); color: #ffb703; }

/* ==========================================================================
   Galería de Setup / Fotos Reales de Clientes
   ========================================================================== */
.customer-gallery-section {
  max-width: var(--max-width);
  margin: 3rem auto 2rem auto;
  padding: 0 1.25rem;
}
.gallery-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.gallery-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
}
.gallery-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}
.gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.gallery-card-info {
  padding: 0.85rem;
}
.gallery-user {
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}
.gallery-user strong { color: #ffffff; margin-left: 0.3rem; }
.gallery-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-style: italic;
}

/* ==========================================================================
   Guía de Instalación Paso a Paso Modal
   ========================================================================== */
.guide-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}
.guide-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.3rem;
}
.guide-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
}
.guide-step-card h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--joycon-cyan);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.guide-step-card p {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
}

/* ==========================================================================
   Botón Flotante Fijo de WhatsApp (Abajo a la Derecha)
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}
.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(10px);
}
.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Microinteracciones de Botones (Checkmark & Color Shift) */
.btn-success-clicked {
  background: var(--accent-green) !important;
  color: #000000 !important;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.5) !important;
  transform: scale(0.98);
}

/* ==========================================================================
   Banner Hero Nintendo Switch "Pedido Completado" Siempre al inicio del recibo
   ========================================================================== */
.receipt-top-banner {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.receipt-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65) contrast(1.1);
  transition: transform 0.4s ease;
}

.receipt-top-banner:hover .receipt-banner-img {
  transform: scale(1.03);
}

.receipt-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.95) 0%, rgba(7, 10, 18, 0.2) 60%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.receipt-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--switch-red), #ff003c);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(255, 0, 60, 0.4);
  width: fit-content;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.receipt-banner-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
