/* PALETA DE COLORES GAMING - SIN VARIABLES */

/* ESTILOS GENERALES */
body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* LOGO ESTILIZADO */
.logo-gaming {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-cds {
    color: #00d9ff;
    text-shadow: 0 0 10px #00d9ff;
}

.logo-games {
    color: #b14eff;
    text-shadow: 0 0 10px #b14eff;
}

/* NAVBAR */
.navbar {
    background-color: #1a1a1a;
    border-bottom: 2px solid #00d9ff;
    box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

.nav-link {
    color: #e0e0e0 !important;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: #00d9ff !important;
    text-shadow: 0 0 8px #00d9ff;
}

/* TARJETAS DE JUEGOS */
.juego-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.juego-card:hover {
    transform: translateY(-5px);
    border-color: #00d9ff;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.juego-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 215 / 300;
    object-fit: cover;
}

.juego-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.juego-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.juego-card-generos {
    font-size: 0.8rem;
    color: #00d9ff;
    margin-top: auto;
}

.juego-card-version {
    font-size: 0.75rem;
    color: #b14eff;
    margin-top: 0.3rem;
}

/* GRID PERSONALIZADO: 2 COLUMNAS EN MÓVIL */
.row-juegos {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.row-juegos > .col {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 576px) {
    .row-juegos > .col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (min-width: 768px) {
    .row-juegos > .col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 992px) {
    .row-juegos > .col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1200px) {
    .row-juegos > .col {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }
}

/* FOOTER */
.footer-gaming {
    background-color: #1a1a1a;
    border-top: 2px solid #b14eff;
    color: #a0a0a0;
}

.text-neon {
    color: #00d9ff;
    text-shadow: 0 0 8px #00d9ff;
}

/* BOTONES GAMING */
.btn-gaming {
    background: linear-gradient(135deg, #00d9ff, #b14eff);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-gaming:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00d9ff;
    color: white;
}

/* FORMULARIOS Y BÚSQUEDA */
.form-control, .form-select {
    background-color: #1a1a1a;
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #e0e0e0;
}

.form-control:focus, .form-select:focus {
    background-color: #1a1a1a;
    border-color: #00d9ff;
    color: #e0e0e0;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

/* TÍTULOS DE SECCIÓN */
.titulo-seccion {
    color: #00d9ff;
    text-shadow: 0 0 10px #00d9ff;
    margin-bottom: 2rem;
    border-bottom: 2px solid #b14eff;
    padding-bottom: 0.5rem;
}
/* PAGINACIÓN */
.pagination {
    gap: 0.5rem;
}

.page-link {
    background-color: #1a1a1a;
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #00d9ff;
    color: #0d0d0d;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #00d9ff, #b14eff);
    border-color: #00d9ff;
    color: white;
}

.page-item.disabled .page-link {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #666;
}
/* TARJETAS DE GÉNEROS */
.genero-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a3a 100%);
    border: 1px solid rgba(177, 78, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.genero-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #b14eff;
    box-shadow: 0 5px 25px rgba(177, 78, 255, 0.5);
}

.genero-card-body {
    padding: 1.5rem 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.genero-icon {
    font-size: 2.5rem;
    color: #b14eff;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 15px rgba(177, 78, 255, 0.6);
    transition: all 0.3s ease;
}

.genero-card:hover .genero-icon {
    transform: scale(1.2);
    color: #00d9ff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

.genero-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.genero-card-cantidad {
    font-size: 0.85rem;
    color: #00d9ff;
    font-weight: 500;
}
/* PÁGINA DE DETALLE DEL JUEGO */
.juego-poster-container {
    background-color: #1a1a1a;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.juego-poster-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.datos-rapidos {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.dato-rapido {
    background-color: #1a1a1a;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #00d9ff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dato-rapido i {
    color: #b14eff;
    font-size: 1.2rem;
}

.genero-link {
    color: #00d9ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.genero-link:hover {
    color: #b14eff;
    text-shadow: 0 0 8px #b14eff;
}

.info-seccion {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(177, 78, 255, 0.2);
}

.subtitulo-neon {
    color: #00d9ff;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(177, 78, 255, 0.3);
    font-size: 1.3rem;
}

.subtitulo-neon i {
    color: #b14eff;
    margin-right: 0.5rem;
}

.info-contenido {
    color: #e0e0e0;
    line-height: 1.7;
}

.info-contenido p {
    margin-bottom: 1rem;
}

.info-contenido ul {
    list-style-type: none;
    padding-left: 0;
}

.info-contenido ul li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
}

.info-contenido ul li::before {
    content: "▸";
    color: #00d9ff;
    position: absolute;
    left: 0;
}

.info-contenido a {
    color: #00d9ff;
    text-decoration: none;
}

.info-contenido a:hover {
    color: #b14eff;
    text-decoration: underline;
}

.video-container {
    border: 2px solid rgba(177, 78, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #b14eff;
}
/* ========================================
   SLIDER HORIZONTAL DE DESTACADOS
   ======================================== */
.carrusel-destacados {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0.5rem 2rem 0.5rem; /* Padding inferior para que no se corte la sombra al hacer hover */
    scroll-snap-type: x mandatory; /* Efecto de imán al deslizar */
    scrollbar-width: thin;
    scrollbar-color: #00d9ff #1a1a1a;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Estilo de la barra de scroll (Chrome, Edge, Safari) */
.carrusel-destacados::-webkit-scrollbar {
    height: 6px;
}
.carrusel-destacados::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}
.carrusel-destacados::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00d9ff, #b14eff);
    border-radius: 10px;
}

/* Tamaño de las tarjetas en el slider (idéntico al grid principal) */
.carrusel-destacados .col-carrusel {
    flex: 0 0 calc(50% - 0.5rem); /* 2 en móvil */
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .carrusel-destacados .col-carrusel {
        flex: 0 0 calc(33.333% - 0.66rem); /* 3 en tablet */
    }
}

@media (min-width: 768px) {
    .carrusel-destacados .col-carrusel {
        flex: 0 0 calc(25% - 0.75rem); /* 4 en desktop */
    }
}

@media (min-width: 992px) {
    .carrusel-destacados .col-carrusel {
        flex: 0 0 calc(20% - 0.8rem); /* 5 en desktop grande */
    }
}
/* Ocultar el bloque "Ver Gameplay" que viene del scraping original */
.info-contenido .iferimeret {
    display: none !important;
}
/* TEXTO DE DESCRIPCIÓN (Reemplazo de text-muted para fondos oscuros) */
.texto-descripcion {
    color: #c0c0c0 !important; /* Gris plata, mucho más visible sobre negro */
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}
/* BOTÓN CORAZÓN EN TARJETAS */
.juego-card {
    position: relative; /* Necesario para posicionar el corazón */
}

.btn-corazon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(13, 13, 13, 0.85);
    border: 2px solid #b14eff;
    color: #b14eff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-corazon:hover {
    background-color: #b14eff;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(177, 78, 255, 0.7);
}

.btn-corazon.solicitado {
    background-color: #b14eff;
    color: white;
    border-color: #00d9ff;
}

.btn-corazon.solicitado:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}
/* Asegura que el enlace principal de la tarjeta ocupe todo el espacio y sea clicable */
.card-link-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    z-index: 1; /* Se mantiene por debajo del corazón (que tiene z-index: 10) */
}
/* ETIQUETA DE PLATAFORMA EN LAS TARJETAS */
.badge-plataforma {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.badge-PS2 {
    background-color: #003087; /* Azul clásico de PS2 */
    color: white;
    border: 1px solid #00d9ff;
}

.badge-PS3 {
    background-color: #1a1a1a; /* Negro elegante de PS3 */
    color: #00d9ff;
    border: 1px solid #00d9ff;
}