/* ==========================================================================
   NEBULA GAMES - DISEÑO GENERAL Y ESTILOS DE LA INTERFAZ (VANILLA CSS)
   ========================================================================== */

/* Variables del Sistema de Diseño - Comunes para todos los Temas */
:root {
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  
  --wsp-green: #25D366;
  --wsp-green-hover: #128C7E;
  
  /* Fuentes */
  --font-header: 'Orbitron', sans-serif;
  --font-body: 'Ubuntu', 'Inter', sans-serif;
  
  /* Efectos */
  --shadow-neon-green: 0 0 15px rgba(37, 211, 102, 0.4);
  --glass-filter: blur(12px);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-dark: linear-gradient(180deg, rgba(11, 8, 19, 0) 0%, #0A070D 100%);
}

/* Tema Principal y por Defecto: Cyberpunk (Amarillo Neón y Rosado Cyber) */
:root, [data-theme="cyberpunk"] {
  --bg-primary: #0A070D;
  --bg-secondary: #120A17;
  --bg-card: rgba(28, 13, 38, 0.75);
  --bg-input: #1C0F26;
  --border-color: rgba(252, 238, 9, 0.2);
  --border-glow: rgba(0, 240, 255, 0.4);
  
  /* Acentos */
  --accent-purple: #FCEE09; /* Amarillo */
  --accent-pink: #FF0055;   /* Rosado Neón */
  --accent-cyan: #00F0FF;   /* Cian */
  --accent-gold: #FCEE09;
  
  --gradient-primary: linear-gradient(135deg, #FCEE09 0%, #FF0055 100%);
  --gradient-cyan: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  
  --shadow-neon-purple: 0 0 15px rgba(252, 238, 9, 0.4);
  --shadow-neon-cyan: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* Tema Neon Gaming (Morado y Cian) */
[data-theme="neon"] {
  --bg-primary: #07040C;
  --bg-secondary: #0E091B;
  --bg-card: rgba(22, 17, 39, 0.7);
  --bg-input: #150F28;
  --border-color: rgba(124, 58, 237, 0.2);
  --border-glow: rgba(6, 182, 212, 0.4);
  
  /* Acentos */
  --accent-purple: #7C3AED;
  --accent-pink: #C084FC;
  --accent-cyan: #06B6D4;
  --accent-gold: #F59E0B;
  
  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #C084FC 100%);
  --gradient-cyan: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
  
  --shadow-neon-purple: 0 0 15px rgba(124, 58, 237, 0.5);
  --shadow-neon-cyan: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* Tema Razer Emerald (Verde Esmeralda y Lima) */
[data-theme="emerald"] {
  --bg-primary: #030805;
  --bg-secondary: #07120B;
  --bg-card: rgba(10, 28, 17, 0.75);
  --bg-input: #0E2416;
  --border-color: rgba(0, 255, 136, 0.2);
  --border-glow: rgba(52, 211, 153, 0.4);
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --accent-purple: #00FF88; /* Verde Lima */
  --accent-pink: #059669;   /* Verde Oscuro */
  --accent-cyan: #34D399;   /* Esmeralda */
  --accent-gold: #10B981;
  --gradient-primary: linear-gradient(135deg, #00FF88 0%, #059669 100%);
  --gradient-cyan: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  --shadow-neon-purple: 0 0 15px rgba(0, 255, 136, 0.45);
  --shadow-neon-cyan: 0 0 15px rgba(52, 211, 153, 0.5);
}

/* Tema Deep Sea (Azul Turquesa e Índigo) */
[data-theme="deepsea"] {
  --bg-primary: #02070D;
  --bg-secondary: #06111B;
  --bg-card: rgba(8, 24, 40, 0.75);
  --bg-input: #0B2238;
  --border-color: rgba(56, 189, 248, 0.25);
  --border-glow: rgba(6, 182, 212, 0.4);
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --accent-purple: #38BDF8; /* Celeste */
  --accent-pink: #6366F1;   /* Índigo */
  --accent-cyan: #06B6D4;   /* Turquesa */
  --accent-gold: #F43F5E;
  --gradient-primary: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  --gradient-cyan: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
  --shadow-neon-purple: 0 0 15px rgba(56, 189, 248, 0.45);
  --shadow-neon-cyan: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* Tema Volcano Lava (Naranja, Oro y Rojo Fuego) */
[data-theme="volcano"] {
  --bg-primary: #0A0403;
  --bg-secondary: #150907;
  --bg-card: rgba(30, 13, 10, 0.75);
  --bg-input: #230F0B;
  --border-color: rgba(249, 115, 22, 0.25);
  --border-glow: rgba(239, 68, 68, 0.4);
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --accent-purple: #F97316; /* Naranja */
  --accent-pink: #EF4444;   /* Rojo */
  --accent-cyan: #F59E0B;   /* Oro */
  --accent-gold: #FCD34D;
  --gradient-primary: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
  --gradient-cyan: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --shadow-neon-purple: 0 0 15px rgba(249, 115, 22, 0.45);
  --shadow-neon-cyan: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Reset de Estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1C1335;
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
  box-shadow: var(--shadow-neon-purple);
}

/* Estructura y Contenedores */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

/* Títulos y Tipografías */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Botones Comunes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-purple);
  opacity: 0.95;
}

.btn-accent {
  background: var(--gradient-cyan);
  color: white;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-cyan);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
  background-color: var(--wsp-green);
  color: white;
}
.btn-success:hover {
  background-color: var(--wsp-green-hover);
  box-shadow: var(--shadow-neon-green);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
  gap: 5px;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(7, 4, 12, 0.85);
  backdrop-filter: var(--glass-filter);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-header);
  font-size: 1.45rem;
  font-weight: 900;
  color: white;
  cursor: pointer;
}

.logo-icon {
  color: var(--accent-cyan);
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.logo-icon-svg {
  width: 4rem;
  height: 4rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.7));
  vertical-align: middle;
  transition: var(--transition-smooth);
}

.logo:hover .logo-icon-svg {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.8));
  color: var(--accent-pink);
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 30px;
}
@media (max-width: 992px) {
  .nav-left-group {
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .nav-left-group {
    display: contents;
  }
}

.nav-links {
  display: flex;
  gap: 5px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: white;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  text-shadow: 0 0 5px rgba(192, 132, 252, 0.4);
}

.search-bar {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px 10px 38px;
  border-radius: 8px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: white;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Botón Cuenta/Login en Header (Desktop) */
#nav-login-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: white !important;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px; /* Matches cart height */
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

#nav-login-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-1px);
}

#nav-login-btn.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-neon-purple);
  text-shadow: 0 0 5px rgba(192, 132, 252, 0.4);
}

.cart-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.cart-btn:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-neon-purple);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.7);
}

/* ==========================================================================
   BANNER PRINCIPAL (CARRUSEL)
   ========================================================================== */
.hero-carousel-container {
  width: 100%;
  height: 440px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Diapositiva Individual */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Superposición Oscura del Banner */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(7, 4, 12, 0.95) 25%, rgba(7, 4, 12, 0.5) 60%, rgba(7, 4, 12, 0.1) 100%);
  display: flex;
  align-items: center;
  z-index: 3;
}

.carousel-content {
  max-width: 700px;
  padding: 0 40px;
}

.carousel-tag {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-title {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 15px;
  color: white;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.carousel-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 25px;
  max-width: 550px;
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-price-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-discount {
  background: #EF4444;
  color: white;
  padding: 3px 8px;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.9rem;
}

.carousel-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.carousel-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Flechas de Navegación */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(22, 17, 39, 0.6);
  border: 1px solid var(--border-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.carousel-control:hover {
  background: var(--accent-purple);
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-neon-purple);
  color: white;
}

.carousel-control.prev {
  left: 20px;
}
.carousel-control.next {
  right: 20px;
}

/* Puntos Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
  width: 24px;
  border-radius: 10px;
}

/* ==========================================================================
   ESTRUCTURA DE PESTAÑAS (TABS Y CONTENIDO)
   ========================================================================== */
.tab-content {
  display: none;
  padding: 40px 0;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.section-title {
  font-size: 1.8rem;
  text-transform: uppercase;
  background: linear-gradient(to right, white, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 5px;
}

/* ==========================================================================
   TIENDA Y FILTROS (SIDEBAR + GRID)
   ========================================================================== */
.store-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
}

/* Sidebar de Filtros */
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: var(--glass-filter);
}

.filter-card h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: white;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

.filter-title-icon {
  color: var(--accent-purple);
  margin-right: 8px;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Contenedor de categorías agrupadas */
.category-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-group-title {
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Botones de Categorías tipo Pills Premium */
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: auto;
  text-align: center;
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-neon-purple);
}

/* Activo para Streaming (Tema Violeta/Cian) */
.filter-btn.streaming-theme.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.filter-btn.streaming-theme:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

/* Activo para Mostrar Todo (Tema Especial o Neon Cyan) */
.filter-btn.all-theme.active {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  border-color: transparent;
  box-shadow: var(--shadow-neon-cyan);
}
.filter-btn.all-theme:hover {
  border-color: #06b6d4;
  color: #06b6d4;
}

/* Checkbox Personalizado */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  user-select: none;
  transition: var(--transition-smooth);
}

.custom-checkbox:hover {
  color: white;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Selector Ordenar */
.custom-select {
  width: 100%;
  padding: 10px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.custom-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.custom-select option {
  background-color: var(--bg-secondary);
  color: white;
}

/* ==========================================================================
   TARJETAS DEL CATÁLOGO DE JUEGOS
   ========================================================================== */
.catalog-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.catalog-container .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

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

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

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: var(--glass-filter);
  transition: var(--transition-smooth);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-neon-purple);
}

.game-card-img-container {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 4, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.discount-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #EF4444;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.game-card-body {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-platforms {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.game-card-platforms i {
  transition: var(--transition-smooth);
}

.game-card-platforms i:hover {
  color: var(--accent-cyan);
}

.game-card-title {
  font-size: 0.92rem;
  color: white;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 22px;
  cursor: pointer;
}

.game-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-gold);
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.game-card-rating-num {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.game-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.game-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.game-card-price-old {
  font-size: 0.78rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.game-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-card-cart {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: white;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-card-cart:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
  color: var(--accent-cyan);
}

.btn-card-cart.in-cart {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   BIBLIOTECA DE USUARIO
   ========================================================================== */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.library-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--glass-filter);
  transition: var(--transition-smooth);
}

.library-card-status {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.library-card-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.library-card-status.downloaded {
  background: rgba(37, 211, 102, 0.15);
  color: var(--wsp-green);
  border-bottom: 1px solid rgba(37, 211, 102, 0.3);
}

.library-card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.library-card-title {
  font-size: 1.1rem;
  color: white;
}

.library-card-actions {
  display: flex;
  gap: 8px;
}

/* Empty states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  max-width: 600px;
  margin: 40px auto;
}

.empty-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   PANEL DE ADMINISTRACIÓN (ADMIN)
   ========================================================================== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: var(--glass-filter);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.admin-card-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-title {
  color: var(--accent-cyan);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-input);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Cajas de Configuración del Carrusel */
.slide-config-box {
  background: rgba(124, 58, 237, 0.03);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 5px;
}

.slide-config-box h5 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--accent-pink);
  text-transform: uppercase;
}

/* Botones de formulario */
.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.form-buttons button {
  flex: 1;
}

/* Tabla de gestión */
.card-tabla-juegos {
  grid-column: 1 / -1;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.admin-table th {
  background-color: var(--bg-secondary);
  color: var(--accent-pink);
  font-family: var(--font-header);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.admin-table-img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.actions-cell {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: white;
}

.btn-icon-edit {
  background-color: #2563EB;
}
.btn-icon-edit:hover {
  background-color: #3B82F6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.btn-icon-delete {
  background-color: #DC2626;
}
.btn-icon-delete:hover {
  background-color: #EF4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   CAJÓN DEL CARRITO LATERAL (CART DRAWER)
   ========================================================================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 4, 12, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: #0E091B;
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1301;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: white;
}

.cart-title-icon {
  color: var(--accent-cyan);
  margin-right: 8px;
}

.close-cart {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-cart:hover {
  color: white;
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Item individual del Carrito */
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 15px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 0.95rem;
  color: white;
  font-weight: 600;
}

.cart-item-platform {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-pricing {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.cart-item-price-old {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.remove-cart-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition-smooth);
}

.remove-cart-item:hover {
  color: #EF4444;
}

/* Pie del Carrito */
.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #0A0614;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.text-discount {
  color: #EF4444;
}

.total-row {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-header);
}

.total-row #cart-total {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.cart-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.btn-checkout {
  padding: 14px;
  font-size: 1rem;
  text-transform: uppercase;
  font-family: var(--font-header);
}

.cart-notes {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   MODAL DE DETALLES (GAME DETAILS)
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 4, 12, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.close-modal:hover {
  background: var(--accent-purple);
  box-shadow: var(--shadow-neon-purple);
}

/* Contenido Detalle Modal */
.modal-body {
  padding: 0;
}

.modal-hero {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.modal-hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.modal-hero-bg {
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.modal-hero-bg-blur {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.35);
  z-index: 0;
  pointer-events: none;
}

.video-mute-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.video-mute-btn:hover {
  background: var(--accent-purple);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: var(--shadow-neon-purple);
}

.modal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 9, 27, 0) 20%, #0E091B 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.modal-hero-title {
  font-size: 2.2rem;
  color: white;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.modal-details-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 30px;
}

@media (max-width: 768px) {
  .modal-details-grid {
    grid-template-columns: 1fr;
  }
  .modal-hero-title {
    font-size: 1.6rem;
  }
}

.modal-info-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.modal-tag.platform {
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
}

.modal-tag.rating {
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Requisitos del sistema */
.modal-requirements {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.modal-requirements h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: white;
  text-transform: uppercase;
}

.req-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.req-item strong {
  color: var(--accent-pink);
  display: block;
  margin-bottom: 2px;
}

.req-item span {
  color: var(--text-muted);
}

/* Barra lateral de compra */
.modal-info-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  justify-content: center;
}

.modal-price-box {
  text-align: center;
}

.modal-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.modal-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.modal-discount {
  background: #EF4444;
  color: white;
  padding: 4px 10px;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 5px;
}

/* ==========================================================================
   NOTIFICACIONES (TOASTS)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-purple);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left-color: var(--wsp-green);
}

.toast.info {
  border-left-color: var(--accent-cyan);
}

.toast.warning {
  border-left-color: var(--accent-gold);
}

.toast i {
  font-size: 1.1rem;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer {
  background: linear-gradient(180deg, rgba(14, 9, 27, 0.96) 0%, rgba(7, 4, 12, 1) 100%);
  border-top: 1px solid rgba(124, 58, 237, 0.25);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  padding: 60px 0 30px 0;
  margin-top: 80px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-neon-purple);
  opacity: 0.8;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-info h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links h5,
.footer-contact h5,
.footer-payments h5 {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  margin-bottom: 22px;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-links h5::after,
.footer-contact h5::after,
.footer-payments h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.footer-links a i {
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  text-shadow: var(--shadow-neon-cyan);
  transform: translateX(4px);
}

.footer-links a:hover i {
  transform: translateX(2px);
  color: var(--accent-cyan);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   ACTUALIZACIONES DE DISEÑO: TEMAS, MONEDAS, SUB-PESTAÑAS Y FILTROS DRAWER
   ========================================================================== */

/* Selectores en la Barra de Navegación */
.theme-select-container, .currency-select-container {
  display: inline-block;
}

.theme-select-container {
  margin-right: 10px;
}

.currency-select-container {
  margin-right: 15px;
}

.theme-select, .currency-select {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-select:focus, .currency-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.theme-select option, .currency-select option {
  background-color: var(--bg-secondary);
  color: white;
  padding: 10px;
}

/* Sub-pestañas del Administrador */
.admin-subtabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.admin-subtab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-header);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-subtab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
}

.admin-subtab-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-neon-purple);
}

.admin-subtab-content {
  display: none;
}

.admin-subtab-content.active {
  display: block;
  animation: fadeIn 0.35s ease-out;
}

/* Layout del Catálogo (Escritorio) */
.admin-catalog-layout {
  display: block;
}

/* Cabecera del Drawer de Filtros Móvil */
.filter-drawer-header {
  display: none;
}

.filters-backdrop {
  display: none;
}

/* Botón de Filtros para Móvil */
.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
}

/* Adaptación Responsiva para Pantallas Medianas y Pequeñas */
@media (max-width: 992px) {
  .store-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  
  /* Backdrop del Drawer de Filtros */
  .filters-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 4, 12, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .filters-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Sidebar de Filtros transformado a Drawer Deslizable */
  .sidebar-filters {
    position: fixed !important;
    top: 0;
    left: -320px; /* Escondido por la izquierda */
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary) !important;
    border-right: 1px solid var(--border-color);
    padding: 25px 20px;
    z-index: 1600;
    overflow-y: auto;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
    display: flex !important; /* Forzar visibilidad cuando se active */
    flex-direction: column;
    gap: 20px;
    margin: 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .sidebar-filters.active {
    left: 0 !important; /* Deslizar hacia adentro */
  }
  
  .filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 10px;
  }
  
  .filter-drawer-header h3 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .close-filters-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 5px;
  }
  
  .close-filters-btn:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
  }
  
  .mobile-filter-toggle {
    display: inline-flex;
  }
  
  .catalog-container .section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .admin-catalog-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Ocultar barra de navegación móvil por defecto */
.mobile-nav-bar {
  display: none;
}

.menu-sandwich-btn,
.mobile-currency-btn {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 80px; /* Evitar colisión con la barra de navegación inferior fija */
  }

  /* Navbar Móvil como cabecera limpia de App */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(7, 4, 12, 0.95);
    backdrop-filter: blur(15px);
    padding: 12px 0 8px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    order: 2;
    flex: 1; /* Grow to fill space and center text horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    margin: 0;
    z-index: 10;
    text-align: center;
  }

  .menu-sandwich-btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-start; /* Align icon to the left edge */
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    width: 65px; /* Equal width to balance currency button */
    order: 1;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 10;
  }
  .menu-sandwich-btn:hover {
    color: var(--accent-cyan);
  }

  .mobile-currency-btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-end; /* Align currency label to the right edge */
    background: transparent; /* No border and background to make it compact */
    border: none;
    color: white;
    padding: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    width: 65px; /* Equal width to balance hamburger button */
    transition: var(--transition-smooth);
    order: 3;
    z-index: 10;
    gap: 6px;
  }

  .mobile-currency-btn:hover {
    color: var(--accent-cyan);
  }

  .mobile-currency-btn i {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
  }

  .nav-actions {
    display: none !important;
  }

  .mobile-only-btn {
    display: inline-flex !important;
  }

  /* Contador de items del carrito para el menú inferior móvil */
  #mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent-pink);
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(255, 0, 128, 0.5);
  }

  .search-bar {
    order: 4; /* Pushed below the logo, hamburger, and currency toggler */
    flex: 0 0 100% !important; /* Force full-width wrap in flex container */
    max-width: 100% !important;
    margin: 8px 0 0 0;
  }

  .search-bar input {
    padding: 10px 15px 10px 38px;
    font-size: 0.85rem;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
  }

  /* Ocultar barra superior de enlaces de escritorio en móvil */
  .navbar-container .nav-links {
    display: none !important;
  }

  /* Barra de Navegación Inferior Estilo App Móvil */
  .mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 65px;
    background: rgba(10, 6, 20, 0.96);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 6px 10px 18px 10px; /* Margen inferior para barritas táctiles de celulares modernos */
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.65);
    z-index: 1200;
  }

  .mobile-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: transparent !important;
    border: none !important;
    padding: 6px 0 !important;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mobile-nav-link i {
    font-size: 1.25rem;
    margin: 0;
  }

  .mobile-nav-link:hover {
    color: var(--text-main);
  }

  .mobile-nav-link.active {
    color: var(--accent-cyan) !important;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4) !important;
  }

  /* Carrusel Móvil */
  .hero-carousel-container {
    height: 230px;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
    width: 100%;
  }

  .carousel-overlay {
    background: linear-gradient(to top, rgba(7, 4, 12, 0.98) 0%, rgba(7, 4, 12, 0.75) 55%, rgba(7, 4, 12, 0.2) 100%);
    align-items: flex-end;
    padding-bottom: 12px;
  }

  .carousel-content {
    padding: 0 12px;
    max-width: 85%; /* Dejar espacio para las flechas y puntos */
    margin-bottom: 2px;
  }

  .carousel-tag {
    margin-bottom: 4px;
    font-size: 0.6rem;
    padding: 2px 6px;
    letter-spacing: 0.5px;
  }

  .carousel-title {
    font-size: 1.2rem;
    margin-bottom: 4px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.7);
    font-family: 'Orbitron', sans-serif;
  }

  .carousel-desc {
    display: none;
  }

  .carousel-price-box {
    margin-bottom: 6px;
  }

  .carousel-price {
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  }

  .carousel-price-old {
    font-size: 0.75rem;
  }

  .carousel-actions {
    gap: 8px;
  }

  .carousel-actions .btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    border-radius: 6px;
  }

  .carousel-control {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    background: rgba(22, 17, 39, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .carousel-control.prev {
    left: 6px;
  }

  .carousel-control.next {
    right: 6px;
  }

  .carousel-indicators {
    bottom: 12px !important;
    right: 12px !important;
    left: auto !important;
    transform: none !important;
    gap: 5px !important;
  }

  .carousel-dot {
    width: 6px !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.25) !important;
  }

  .carousel-dot.active {
    width: 14px !important;
    background: var(--accent-cyan) !important;
  }

  /* Catálogo a Dos Columnas Móvil */
  .games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .game-card {
    border-radius: 10px;
  }

  .game-card-img-container {
    height: 180px !important;
  }

  .game-card-body {
    padding: 10px !important;
    gap: 6px;
  }

  .game-card-platforms {
    font-size: 0.7rem !important;
    margin-bottom: 4px !important;
    gap: 5px !important;
  }

  .game-card-title {
    font-size: 0.82rem !important;
    margin-bottom: 2px !important;
    height: 32px !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.2 !important;
  }

  .game-card-rating {
    font-size: 0.72rem !important;
    margin-bottom: 6px !important;
    gap: 4px !important;
  }

  .game-card-footer {
    gap: 6px !important;
  }

  .game-card-price {
    font-size: 0.95rem !important;
  }

  .game-card-price-old {
    font-size: 0.75rem !important;
  }

  .game-card-actions {
    gap: 6px !important;
  }

  .btn-card-cart {
    width: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
  }

  .game-card-actions .btn {
    padding: 6px 8px !important;
    font-size: 0.7rem !important;
    border-radius: 6px !important;
  }

  /* Biblioteca a Dos Columnas Móvil */
  .library-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .library-card-body {
    padding: 10px !important;
    gap: 8px !important;
  }

  .library-card-title {
    font-size: 0.85rem !important;
  }

  .library-card-actions {
    flex-direction: column;
    gap: 6px !important;
  }

  .library-card-actions .btn {
    font-size: 0.7rem !important;
    padding: 6px 8px !important;
  }

  /* Botón de Filtros Estilo Pill Animado */
  .mobile-filter-toggle {
    background: var(--gradient-cyan);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-neon-cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
  }

  .mobile-filter-toggle:hover {
    transform: scale(1.05);
  }

  /* Modales y tablas adaptables */
  .modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-hero {
    height: 180px;
  }

  .modal-hero-title {
    font-size: 1.5rem;
  }

  .modal-details-grid {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 20px;
  }

  .modal-info-right {
    padding: 15px;
  }

  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }

  .admin-table {
    min-width: 800px;
  }

  .admin-form .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ocultar elementos de administración si no está logueado */
.admin-only.hidden {
  display: none !important;
}

/* Responsivo para Sub-pestaña de Categorías y Plataformas y Ajustes de Títulos / Subpestañas en Móvil */
@media (max-width: 768px) {
  #admin-subtab-taxonomy-manage > div {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #admin-subtab-taxonomy-manage .admin-table {
    min-width: auto !important;
    width: 100% !important;
  }

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

  .section-subtitle {
    font-size: 0.8rem !important;
  }

  .mobile-filter-toggle {
    display: inline-flex !important;
  }

  .admin-subtabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--border-color) !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-subtabs::-webkit-scrollbar {
    display: none;
  }

  .admin-subtab-btn {
    flex: 0 0 auto !important;
    padding: 8px 14px !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   ESTILOS DE FORMULARIOS (LOGIN, REGISTRO, ADMIN)
   ========================================================================== */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(156, 163, 175, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background-color: rgba(6, 182, 212, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}


/* Payment Methods Icons */
.pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  font-family: 'Arial Rounded MT Bold', 'Varela Round', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pay-yape {
  background-color: #742284;
  color: #ffffff;
  border-radius: 6px 6px 6px 6px;
}

.pay-plin {
  background-color: #00DBB1;
  color: #003248;
  border-radius: 6px 6px 6px 2px; /* Efecto globo de texto */
  position: relative;
}

.pay-dale {
  background-color: #E84D3C;
  color: #ffffff;
  border-radius: 20px;
  padding: 0 18px;
  font-style: italic;
  font-weight: 900;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
}

/* Imgs de pago */
.pay-img {
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

/* Tarjetas Resaltado */
.cards-accepted {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
}

.cards-accepted:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.cards-icons {
  display: flex;
  gap: 10px;
}

.cards-icons i {
  font-size: 1.8rem;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.cards-icons i:hover {
  opacity: 1;
  transform: scale(1.1);
}

.cards-text {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Contenedor de logos de pago en footer */
.pay-logos-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  align-items: center;
}

.pay-logo-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 65px;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.pay-logo-wrapper:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
  background: rgba(6, 182, 212, 0.04);
  transform: translateY(-2px);
}

.pay-logo-wrapper img {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.pay-logo-wrapper .fallback-text {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pay-logo-wrapper .fallback-text.yape {
  color: #ea1d76; /* Yape Pink/Magenta */
}
.pay-logo-wrapper .fallback-text.plin {
  color: #00dfb1; /* Plin Greenish Cyan */
}
.pay-logo-wrapper .fallback-text.dale {
  color: #84d42b; /* Dale Lime */
}

/* ==========================================================================
   MÉTODOS DE PAGO EN CARRITO
   ========================================================================== */
.payment-method-section {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-title {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-options {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.payment-option {
  flex: 1;
  cursor: pointer;
}

.payment-option input {
  display: none;
}

.payment-option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition-smooth);
  text-align: center;
}

.payment-option-content i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.payment-option-content span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Estados Activos / Hover */
.payment-option:hover .payment-option-content {
  background: rgba(255, 255, 255, 0.05);
}

.payment-option.active .payment-option-content {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.payment-option.active .payment-option-content i,
.payment-option.active .payment-option-content span {
  color: white;
}

#option-wsp.active .payment-option-content {
  background: rgba(37, 211, 102, 0.15);
  border-color: var(--wsp-green);
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

/* Detalles QR Desplegables */
.qr-payment-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInDown 0.3s ease-out;
}

.qr-payment-details.hidden,
.card-payment-details.hidden {
  display: none !important;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.qr-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.qr-images-container {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.qr-card {
  background: white;
  padding: 5px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.qr-badge {
  position: absolute;
  top: -10px;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.qr-badge.yape { background: #742284; }
.qr-badge.plin { background: #00DBB1; color: #003248; }

.qr-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 4px;
}

.qr-numbers {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

.qr-numbers p {
  margin: 3px 0;
}

.qr-numbers strong {
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* ==========================================================================
   BOTÓN CARGAR MÁS
   ========================================================================== */

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-load-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn-load-more:hover {
  color: var(--bg-primary);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.btn-load-more:hover::before {
  opacity: 1;
}

.btn-load-more i,
.btn-load-more span {
  position: relative;
  z-index: 1;
}

.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Animación de entrada para nuevas tarjetas al cargar más */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card-enter {
  animation: cardSlideIn 0.35s ease forwards;
}

/* ==========================================================================
   TABS DE TIPO DE PRODUCTO (Todos / Juegos / Streaming / Ofertas)
   ========================================================================== */

.catalog-type-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.catalog-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.catalog-type-tab i {
  font-size: 0.8rem;
}

.catalog-type-tab:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.catalog-type-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-neon-purple);
}

/* Tab Ofertas: color especial fuego */
.catalog-type-tab[data-type="ofertas"].active {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}
.catalog-type-tab[data-type="ofertas"]:hover {
  border-color: #f97316;
  color: #f97316;
}

/* Tab Streaming: color especial violeta/morado */
.catalog-type-tab[data-type="streaming"].active {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.catalog-type-tab[data-type="streaming"]:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

/* ==========================================================================
   SUB-SECCIONES DEL CATÁLOGO (Separación de Juegos y Streaming)
   ========================================================================== */

.catalog-section {
  width: 100%;
  min-width: 0;
}

.catalog-subsection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-subsection-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-subsection-title i {
  color: var(--accent-cyan);
  text-shadow: var(--shadow-neon-cyan);
}

/* Botón Ver Más tipo Pill */
.btn-view-more-link {
  background: transparent;
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-view-more-link:hover {
  background: var(--gradient-cyan);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-neon-cyan);
  transform: translateX(2px);
}

/* Fila con scroll horizontal estilo Netflix/Steam */
.horizontal-scroll-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden !important;
  padding: 10px 4px 20px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) rgba(10, 6, 20, 0.6);
  width: 100%;
}

/* Estilo de la barra de desplazamiento horizontal - Oscuro y Premium */
.horizontal-scroll-row::-webkit-scrollbar {
  height: 6px;
}
.horizontal-scroll-row::-webkit-scrollbar-track {
  background: rgba(10, 6, 20, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.horizontal-scroll-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  border-radius: 10px;
}
.horizontal-scroll-row::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-cyan) 100%);
}

/* Contenedor del scroll con soporte para flechas de navegación absoluta */
.scroll-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Flechas flotantes de scroll */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 9, 27, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.scroll-arrow:hover {
  background: var(--gradient-cyan);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-neon-cyan);
}

.scroll-arrow-left {
  left: -20px;
}

.scroll-arrow-right {
  right: -20px;
}

/* Ocultar flechas en dispositivos pequeños ya que tienen touch scroll nativo más cómodo */
@media (max-width: 768px) {
  .scroll-arrow {
    display: none !important;
  }
  .scroll-arrow-left {
    left: 5px;
  }
  .scroll-arrow-right {
    right: 5px;
  }
}

/* Ancho fijo para tarjetas dentro de fila horizontal */
.horizontal-scroll-row .game-card {
  flex: 0 0 215px !important;
  width: 215px !important;
  max-width: 215px !important;
}

/* Tarjeta especial "Ver más" al final de la fila de scroll */
.view-more-card {
  flex: 0 0 160px !important;
  width: 160px !important;
  max-width: 160px !important;
  height: auto;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
  gap: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.view-more-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.03);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon-cyan);
}

.view-more-card i {
  font-size: 2rem;
  transition: var(--transition-smooth);
}

.view-more-card:hover i {
  transform: scale(1.15);
  color: var(--accent-cyan);
  text-shadow: var(--shadow-neon-cyan);
}

.view-more-card span {
  font-family: var(--font-header);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.4;
}

/* Espacio superior para secciones de catálogo */
.catalog-section + .catalog-section {
  margin-top: 35px;
}

