/* RESET GENERAL */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: white;
  background: url("fondo-cine.jpg") no-repeat center center fixed;
  background-size: cover; 
}

/* ============================================================ */
/* SECCIÓN DE INICIO (DESTACADOS, TOP 10 APPS Y BANNER)         */
/* ============================================================ */
#catalogoInicio {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 1. RECUADROS GAMER (DESTACADOS Y TOP 10 APPS) */
.contenedor-destacados-gamer {
  width: 100%;
  background: rgba(15, 18, 28, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 150, 255, 0.35);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 20px rgba(0, 150, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  box-sizing: border-box;
  margin-bottom: 35px;
}

/* Recuadro específico Top 10 con brillo neón violeta/azul */
.contenedor-top-apps {
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 20px rgba(139, 92, 246, 0.15) !important;
}

.cabecera-destacados-gamer {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 150, 255, 0.2);
  padding-bottom: 10px;
}

.titulo-seccion-destacados {
  font-size: 22px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.titulo-top-apps {
  color: #a78bfa !important;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.5) !important;
}

#gridDestacadosInicio,
#gridTopAppsInicio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* ============================================================ */
/* ESTILOS DE CONTORNO NEÓN Y BOTONES TEMÁTICOS                */
/* ============================================================ */
.tarjeta-destacada {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.tarjeta-destacada:hover {
  transform: translateY(-5px) scale(1.02);
}

/* 1. AMAZON PRIME */
.tarjeta-destacada.neon-amazon {
  border: 1.5px solid #00a8e1 !important;
  box-shadow: 0 0 16px rgba(0, 168, 225, 0.6), inset 0 0 8px rgba(0, 168, 225, 0.25) !important;
}
.tarjeta-destacada.neon-amazon .badge-destacado {
  background: #00a8e1 !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 0 14px rgba(0, 168, 225, 0.85), 0 0 4px rgba(255, 255, 255, 0.5) !important;
}

/* 2. NETFLIX */
.tarjeta-destacada.neon-netflix {
  border: 1.5px solid #e50914 !important;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.65), inset 0 0 8px rgba(229, 9, 20, 0.25) !important;
}
.tarjeta-destacada.neon-netflix .badge-destacado {
  background: #e50914 !important;
  color: #ffffff !important;
  border: 1px solid #ff4d4d !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.85), 0 0 4px rgba(255, 255, 255, 0.5) !important;
}

/* 3. SPOTIFY */
.tarjeta-destacada.neon-spotify {
  border: 1.5px solid #1db954 !important;
  box-shadow: 0 0 16px rgba(29, 185, 84, 0.6), inset 0 0 8px rgba(29, 185, 84, 0.25) !important;
}
.tarjeta-destacada.neon-spotify .badge-destacado {
  background: #1db954 !important;
  color: #ffffff !important;
  border: 1px solid #4ade80 !important;
  box-shadow: 0 0 14px rgba(29, 185, 84, 0.85), 0 0 4px rgba(255, 255, 255, 0.5) !important;
}

/* 4. DISNEY+ */
.tarjeta-destacada.neon-disney {
  border: 1.5px solid #0063e5 !important;
  box-shadow: 0 0 16px rgba(0, 99, 229, 0.7), inset 0 0 8px rgba(0, 99, 229, 0.3) !important;
}
.tarjeta-destacada.neon-disney .badge-destacado {
  background: #0063e5 !important;
  color: #ffffff !important;
  border: 1px solid #60a5fa !important;
  box-shadow: 0 0 14px rgba(0, 99, 229, 0.85), 0 0 4px rgba(255, 255, 255, 0.5) !important;
}

/* 5. MAX / HBO */
.tarjeta-destacada.neon-hbo {
  border: 1.5px solid #9933ff !important;
  box-shadow: 0 0 16px rgba(153, 51, 255, 0.65), inset 0 0 8px rgba(153, 51, 255, 0.25) !important;
}
.tarjeta-destacada.neon-hbo .badge-destacado {
  background: #7928ca !important;
  color: #ffffff !important;
  border: 1px solid #c084fc !important;
  box-shadow: 0 0 14px rgba(153, 51, 255, 0.85), 0 0 4px rgba(255, 255, 255, 0.5) !important;
}

/* 6. PARAMOUNT+ */
.tarjeta-destacada.neon-paramount {
  border: 1.5px solid #0064ff !important;
  box-shadow: 0 0 16px rgba(0, 100, 255, 0.6), inset 0 0 8px rgba(0, 100, 255, 0.25) !important;
}
.tarjeta-destacada.neon-paramount .badge-destacado {
  background: #0064ff !important;
  color: #ffffff !important;
  border: 1px solid #60a5fa !important;
  box-shadow: 0 0 14px rgba(0, 100, 255, 0.85), 0 0 4px rgba(255, 255, 255, 0.5) !important;
}

/* 7. REELSHORT */
.tarjeta-destacada.neon-reelshort {
  border: 1.5px solid #ff007f !important;
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.65), inset 0 0 8px rgba(255, 0, 127, 0.25) !important;
}
.tarjeta-destacada.neon-reelshort .badge-destacado {
  background: #ff007f !important;
  color: #ffffff !important;
  border: 1px solid #f472b6 !important;
  box-shadow: 0 0 14px rgba(255, 0, 127, 0.85), 0 0 4px rgba(255, 255, 255, 0.5) !important;
}

/* 8. JUEGOS */
.tarjeta-destacada.neon-juego {
  border: 1.5px solid #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6), inset 0 0 8px rgba(16, 185, 129, 0.25) !important;
}
.tarjeta-destacada.neon-juego .badge-destacado {
  background: #059669 !important;
  color: #ffffff !important;
  border: 1px solid #34d399 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.85) !important;
}

/* 9. LIBROS */
.tarjeta-destacada.neon-libro {
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6), inset 0 0 8px rgba(245, 158, 11, 0.25) !important;
}
.tarjeta-destacada.neon-libro .badge-destacado {
  background: #d97706 !important;
  color: #ffffff !important;
  border: 1px solid #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.85) !important;
}

/* 10. APPS / TOP APPS */
.tarjeta-destacada.neon-app {
  border: 1.5px solid #8b5cf6 !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6), inset 0 0 8px rgba(139, 92, 246, 0.25) !important;
}
.tarjeta-destacada.neon-app .badge-destacado {
  background: #7c3aed !important;
  color: #ffffff !important;
  border: 1px solid #a78bfa !important;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.85) !important;
}

/* OTRO / STREAMING */
.tarjeta-destacada.neon-otro {
  border: 1.5px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6), inset 0 0 8px rgba(56, 189, 248, 0.25) !important;
}
.tarjeta-destacada.neon-otro .badge-destacado {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.85) !important;
}

/* 3. IMAGEN GRANDE COMPLETA */
.banner-inicio-hero {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 150, 255, 0.35);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 20px rgba(37, 99, 235, 0.3);
  background: #0f121c;
}

.banner-inicio-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 20px;
}

/* NOTIFICACION BURBUJA FLOTANTE SUPERIOR DERECHA */
.toast-carrito {
  position: fixed;
  top: 25px;
  right: 90px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.4);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-carrito.mostrar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* BOTON FLOTANTE DE WHATSAPP */
.whatsapp-flotante-btn {
  position: fixed;
  bottom: 75px;
  left: 20px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.whatsapp-flotante-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(37, 211, 102, 0.7);
}

.icono-whatsapp-svg {
  display: block;
}

/* BOTON FLOTANTE DEL CARRITO */
.carrito-flotante-btn {
  position: fixed;
  bottom: 145px;
  left: 20px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(37, 99, 235, 0.5);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.carrito-flotante-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(37, 99, 235, 0.7);
}

.carrito-flotante-btn .icono-carro {
  font-size: 26px;
}

.contador-carrito {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #111;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* MODAL DEL CARRITO DE COMPRAS */
.modal-carrito-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

.modal-carrito-card {
  background: #18181b;
  border: 1px solid #27272a;
  width: 500px;
  max-width: 92%;
  border-radius: 18px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
}

.modal-carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #27272a;
  padding-bottom: 14px;
  margin-bottom: 15px;
}

.modal-carrito-header h2 {
  margin: 0;
  font-size: 20px;
  color: #facc15;
}

.cerrar-modal-carrito {
  font-size: 26px;
  cursor: pointer;
  color: #a1a1aa;
  transition: color 0.2s;
}

.cerrar-modal-carrito:hover {
  color: #ffffff;
}

.modal-carrito-body {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 5px;
}

.lista-carro-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-carro-li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #27272a;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  gap: 10px;
}

.item-carro-li .item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.item-carro-li .item-info strong {
  font-size: 14px;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-carro-li .item-tipo {
  font-size: 12px;
  color: #a1a1aa;
}

.item-controles {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-cantidad {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
}

.btn-quitar-item {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.2s;
}

.btn-quitar-item:hover {
  transform: scale(1.15);
  background: #dc2626;
}

.carrito-vacio-txt {
  text-align: center;
  color: #a1a1aa;
  margin: 30px 0;
  font-size: 15px;
}

.modal-carrito-footer {
  display: flex;
  gap: 12px;
  border-top: 1px solid #27272a;
  padding-top: 16px;
}

.btn-vaciar-carro {
  background: #3f3f46;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-vaciar-carro:hover {
  background: #52525b;
}

.btn-whatsapp-carro {
  flex: 1;
  background: #16a34a;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-whatsapp-carro:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.6);
}

/* LOGIN */
#login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

#login h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.tituloLogin {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  margin-top: 40px;
}

.tituloLogin h1,
#tituloAdmin {
  font-size: 50px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #fffde7 0%,
    #fff176 20%,
    #ffeb3b 45%,
    #ffd600 55%,
    #ffeb3b 70%,
    #fff176 85%,
    #fffde7 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 10px rgba(255,235,59,0.6),
    0 0 18px rgba(255,235,59,0.4);
}

.tituloLogin .icono {
  font-size: 38px;
}

.login-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.login-box input {
  background: white;
  border: none;
  padding: 12px 15px;
  border-radius: 10px;
  color: #111;
  width: 250px;
  font-weight: 500;
  outline: none;
}

#btnUser, #btnAdmin {
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

#btnUser {
  background: #2563eb;
  color: white;
}

#btnAdmin {
  background: #dc2626;
  color: white;
}

/* BOTON SALIR */
#btnLogout {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
}

/* PANEL SUPERIOR & BUSCADOR */
.panel-superior {
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

#buscador {
  text-align: center;
  margin-bottom: 30px;
}

#inputBuscar {
  width: 360px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  border: none;
  color: #000 !important;
  font-size: 14px;
  outline: none;
}

#inputBuscar::placeholder {
  color: #666;
}

/* BARRA DE NAVEGACIÓN GAMER / GLASSMORPHISM */
#menuPrincipal {
  width: 90%;
  max-width: 1300px;
  margin: 25px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  background: rgba(15, 18, 28, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 150, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7),
              inset 0 0 15px rgba(0, 150, 255, 0.08);
  border-radius: 50px;
  overflow-x: auto;
}

.menuBotones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btnMenu {
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btnMenu:hover {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(96, 165, 250, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.btnMenu.activo {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.6);
}

/* FILTROS PELICULAS */
#filtrosTipo {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 15px;
}

.btnFiltro {
  background: #1f2937;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btnFiltro:hover {
  background: #dc2626 !important;
  color: white;
  transform: scale(1.05);
}

.btnFiltro.activo {
  background: #dc2626 !important;
  color: white;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
}

#bloqueFiltrosAnio {
  margin-top: 25px;
  text-align: center;
}

.tituloFiltro {
  display: block;
  font-size: 18px;
  color: #facc15;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

#filtrosAnio {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#filtrosAnio .btnFiltro {
  padding: 8px 14px;
  font-size: 13px;
}

/* FORMULARIOS DE ADMINISTRADOR */
.seccionAdmin {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto 0 auto;
}

.fila-admin {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.fila-admin h3 {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  color: #facc15;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000;
}

.fila-admin input,
.fila-admin select {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #e5e5e5;
  color: #111;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

#btnAgregar,
#btnAgregarJuego,
#btnAgregarReferencia,
#btnGuardarEpisodio,
#btnGuardarBannerInicio,
#btnAgregarDestacado,
#btnAgregarTopApp {
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

#btnAgregar {
  background: #ef4444;
  color: white;
}

#btnAgregarJuego {
  background: #16a34a;
  color: white;
}

#btnGuardarEpisodio {
  background: #2563eb;
  color: white;
}

#btnAgregar:hover,
#btnAgregarJuego:hover,
#btnAgregarReferencia:hover,
#btnGuardarEpisodio:hover,
#btnGuardarBannerInicio:hover,
#btnAgregarDestacado:hover,
#btnAgregarTopApp:hover {
  transform: scale(1.05);
}

/* PANEL CONTRASEÑAS */
#panelPasswords h3 {
  color: #facc15;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000;
}

#panelPasswords input,
#panelPasswords select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  margin: 5px;
}

#btnCambiarPass {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #dc2626;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

/* ============================================================ */
/* CUADRICULAS GENERALES (TODAS LAS SECCIONES)                 */
/* ============================================================ */
#peliculas,
#gridJuegos,
#gridLibros,
#gridApps,
#gridPromos,
#gridReferencias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

#catalogoJuegos,
#catalogoLibros,
#catalogoApps,
#catalogoPromos,
#catalogoReferencias {
  width: 100%;
}

/* ============================================================ */
/* TARJETAS (ADAPTACIÓN DE ENCUADRE PROPORCIONAL)               */
/* ============================================================ */
.pelicula {
  background: #1c1c1c;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.imagen-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background-color: #0b0d14;
}

.imagen-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* CONTENEDOR TITULO + BOTON EDITAR LAPIZ AZUL */
.fila-titulo-tarjeta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 4px;
  width: 100%;
  overflow: hidden;
}

.fila-titulo-tarjeta h3 {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btnEditarTitulo {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important; /* Azul Cian Neón */
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

.btnEditarTitulo:hover {
  transform: scale(1.2);
  background: #38bdf8 !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 1);
}

.pelicula .anio {
  display: block;
  font-size: 13px;
  color: #cfcfcf;
  margin-bottom: 6px;
}

/* FILA META DE TARJETA */
.fila-meta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 6px 0;
  padding: 0 4px;
  box-sizing: border-box;
}

/* BOTON DE CARRITO */
.btnCarrito {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btnCarrito:hover {
  background: #1d4ed8;
  transform: scale(1.15);
}

.btnCarrito:active {
  transform: scale(0.95);
}

/* RESEÑA HOVER */
.resena-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  box-sizing: border-box;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  overflow-y: auto;
}

.imagen-container:hover .resena-hover {
  opacity: 1;
}

/* ETIQUETAS IDIOMA */
.tag-idioma {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 6px;
  color: white;
  z-index: 5;
}

.tag-idioma.latino {
  background-color: #16a34a !important;
}

.tag-idioma.subtitulada {
  background-color: #dc2626 !important;
}

/* BOTONES DE TARJETAS */
.btnVer,
.btnEditar,
.btnEliminar {
  display: inline-block;
  margin: 6px 4px 0 4px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.btnVer {
  background: #2563eb;
  color: white;
}

.btnEliminar {
  background: #dc2626;
  color: white;
}

.btnEditar {
  background: #e5e5e5;
  color: #111;
}

.btnVer:hover,
.btnEliminar:hover,
.btnEditar:hover {
  transform: scale(1.05);
}

.bloqueado {
  margin-top: 8px;
  font-size: 12px;
  color: #ffcc00;
  background: #1a1a1a;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* ============================================================ */
/* AJUSTES RESPONSIVOS PARA MÓVILES (CARRUSELES HORIZONTALES)   */
/* ============================================================ */
@media (max-width: 768px) {
  #peliculas,
  #gridJuegos,
  #gridLibros,
  #gridApps,
  #gridPromos,
  #gridReferencias {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  #gridDestacadosInicio,
  #gridTopAppsInicio {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    padding: 10px 4px 15px 4px !important;
    scrollbar-width: none !important;
  }

  #gridDestacadosInicio::-webkit-scrollbar,
  #gridTopAppsInicio::-webkit-scrollbar {
    display: none !important;
  }

  #gridDestacadosInicio .tarjeta-destacada,
  #gridTopAppsInicio .tarjeta-destacada {
    flex: 0 0 calc(50% - 6px) !important;
    min-width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    box-sizing: border-box !important;
    padding: 8px !important;
  }

  .contenedor-destacados-gamer {
    padding: 14px 10px !important;
  }

  .fila-titulo-tarjeta h3 {
    font-size: 13px !important;
  }

  .badge-externo {
    font-size: 10px !important;
    padding: 4px 8px !important;
    max-width: 95% !important;
  }
}

/* MODAL SERIES */
.modalSerie {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modalContenido {
  background: #111;
  width: 700px;
  max-width: 95%;
  border-radius: 15px;
  padding: 25px;
  position: relative;
}

#cerrarModal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

.modalGrid {
  display: flex;
  gap: 20px;
}

.modalGrid img {
  width: 200px;
  border-radius: 10px;
}

.modalInfo {
  flex: 1;
}

.selectores {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selectores select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #2a2a2a;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}

#btnVerEpisodio {
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* FILTROS PUBLICOS DESPLEGABLES */
.fila-filtros-juegos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.fila-filtros-juegos select {
  padding: 10px 16px;
  border-radius: 10px;
  background: #1f2937;
  color: white;
  border: 1px solid #374151;
  font-weight: 600;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: 0.2s;
}

.fila-filtros-juegos select:hover,
.fila-filtros-juegos select:focus {
  border-color: #2563eb;
  background: #2b384c;
}

/* ETIQUETA EXTERNA BASE */
.badge-externo {
  display: inline-block;
  margin: 6px auto;
  padding: 5px 14px;
  border-radius: 8px;
  background-color: #0b0f19;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

/* ============================================================ */
/* PASTILLAS ROJAS PARA LOS AÑOS EN LA SECCIÓN DE PELÍCULAS    */
/* ============================================================ */
#peliculas .badge-externo {
  background: #e50914 !important;
  color: #ffffff !important;
  border: 1.5px solid #ff4d4d !important;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.85), 0 0 4px rgba(255, 255, 255, 0.4) !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
}

/* ============================================================ */
/* PASTILLAS AMARILLAS PARA: PRECIOS/PROMOS, JUEGOS Y LIBROS    */
/* ============================================================ */
#gridPromos .badge-externo,
#gridJuegos .badge-externo,
#gridLibros .badge-externo {
  background: #eab308 !important;
  color: #000000 !important;
  border: 1.5px solid #fde047 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.8), 0 0 4px rgba(255, 255, 255, 0.6) !important;
  letter-spacing: 0.8px !important;
}

#gridPromos .pelicula {
  border: 1px solid rgba(234, 179, 8, 0.45) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(234, 179, 8, 0.1) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#gridPromos .pelicula:hover {
  transform: translateY(-4px);
  border-color: #eab308 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85), 0 0 15px rgba(234, 179, 8, 0.35) !important;
}