/* ==========================================================================
   VARIABLES PREMIUM Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --bg-black: #050508;
    --bg-card: #0d0e12;
    --gold-main: #d4af37; 
    --gold-light: #f9e195; 
    --gold-dark: #aa8c2c;  
    --text-white: #ffffff;
    --text-muted: #e1e2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Play', sans-serif;
    overflow-x: hidden;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* CAPA INTERMEDIA DE SUAVIZADO ATMOSFÉRICO */
.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.15) 0%, rgba(5, 5, 8, 0.75) 100%);
    z-index: 1;
}

.page-wrap {
    position: relative;
    z-index: 2; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   ENCABEZADO Y SLOGAN
   ========================================================================== */
.header {
    text-align: center;
    padding: 60px 20px 30px 20px;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.brand-title span {
    color: var(--gold-main);
}

.slogan {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #e6c667; 
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.9);
    letter-spacing: 1px;
}

/* ==========================================================================
   ESTRUCTURA DE TARJETAS (GRID PRINCIPAL RESPONSIVE)
   ========================================================================== */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    width: 100%;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    width: 100%;
}

/* CONTENEDOR EXTERIOR DE LA TARJETA (BORDE DORADO DE ALTA GAMA) */
.game-card {
    border-radius: 16px;
    position: relative;
    padding: 2px; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    width: 100%;
}

.game-card.gold-border {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* INTERIOR DE LA TARJETA (CRISTAL ESMERILADO AHUMADO) */
.card-content {
    background-color: rgba(10, 11, 16, 0.65) !important; 
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px; 
    padding: 45px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* EFECTOS HOVER DE LA TARJETA */
.game-card:not(.coming-soon):hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
}

.game-card:not(.coming-soon):hover .card-content {
    background-color: rgba(14, 16, 24, 0.75) !important;
}

/* ==========================================================================
   CONTENEDOR CUADRADO CON MARCO DORADO BRINDADO
   ========================================================================== */
.game-logo-container {
    width: 165px;
    height: 165px;
    max-width: 165px; /* Blindamos el ancho máximo en móvil */
    max-height: 165px; /* Blindamos el alto máximo en móvil */
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Evita que el flexbox lo aplaste */
    
    border-radius: 12px !important; 
    background-color: #000000 !important; 
    padding: 10px;
    overflow: hidden !important; 
    
    border: 2px solid var(--gold-main) !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(212, 175, 55, 0.25), 
        inset 0 0 15px rgba(0, 0, 0, 0.85) !important;
        
    transition: all 0.4s ease;
}

.game-card:not(.coming-soon):hover .game-logo-container {
    border-color: var(--gold-light) !important;
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.4), 
        inset 0 0 10px rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.02);
}

.game-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.game-card:not(.coming-soon):hover .game-logo {
    transform: scale(1.05);
}

/* INDICADORES TEXTUALES */
.game-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    color: var(--gold-main);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.game-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 35px;
    flex-grow: 1;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ==========================================================================
   COMPONENTES DE ACCIÓN (BOTONES Y ELEMENTOS INACTIVOS)
   ========================================================================== */
.btn-gold {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(to bottom, var(--gold-light) 0%, var(--gold-main) 100%);
    color: #1a1100; 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--gold-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.btn-gold:hover {
    background: linear-gradient(to bottom, #ffffff 0%, var(--gold-light) 100%);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

/* BLOQUE DE JUEGOS FUTUROS (PRÓXIMAMENTE) */
.coming-soon {
    filter: grayscale(100%);
    opacity: 0.35;
}

.coming-soon .card-content {
    background-color: rgba(10, 10, 12, 0.7) !important;
    backdrop-filter: blur(10px) !important;
}

.coming-soon .game-logo-container {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.placeholder-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    color: #444;
    border: 3px dashed #444;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon .btn-gold {
    background: #1a1a1a;
    color: #444;
    border-color: #222;
    box-shadow: none;
    cursor: not-allowed;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 35px 20px;
    color: #6a6d78;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.02);
}

/* ==========================================================================
   ESTRUCTURA UNIFICADA PARA INTERNAS DE CONSULTA (+INFO)
   ========================================================================== */
.info-container {
    background-color: var(--bg-card);
    border-radius: 16px;
    position: relative;
    padding: 2px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.info-layout {
    background-color: rgba(10, 11, 16, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-radius: 14px; 
    display: flex;
    flex-direction: row;
    gap: 40px;
    text-align: left;
    align-items: flex-start;
    padding: 50px;
}

.info-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    min-width: 200px;
}

.info-sidebar .btn-gold {
    margin-bottom: 15px;
}

.info-sidebar .game-logo-container {
    background-color: #000000 !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    overflow: hidden !important;
}

.btn-back {
    color: #6a6d78;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    text-align: center;
}

.btn-back:hover {
    color: var(--gold-light);
}

.info-text-content {
    width: 70%;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-section p {
    color: #b0b2bc;
    font-size: 1rem;
    line-height: 1.6;
}

.info-section ul {
    margin-left: 20px;
}

.info-section li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #b0b2bc;
}

/* ==========================================================================
   MEDIA QUERIES - OPTIMIZACIÓN MÓVIL DISPOSITIVOS TÁCTILES
   ========================================================================== */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: 1fr; /* Una sola columna para móviles y tablets */
        gap: 30px;
        padding: 10px;
    }
    
    .brand-title {
        font-size: 2.3rem; /* Reducimos título para que no se corte */
    }
    
    .slogan {
        font-size: 1.3rem;
    }
    
    .header {
        padding: 40px 15px 20px 15px;
    }
    
    .card-content {
        padding: 35px 20px;
    }

    .info-layout {
        flex-direction: column; /* Cambiamos a vertical en las páginas internas */
        padding: 30px 20px;
        gap: 25px;
    }

    .info-sidebar, .info-text-content {
        width: 100%;
        text-align: center;
    }
    
    .info-section h4 {
        text-align: center;
    }
}