/* VARIABLES PREMIUM */
:root {
    --bg-black: #050508;
    --bg-card: #0d0e12;
    --gold-main: #d4af37; 
    --gold-light: #f9e195; 
    --gold-dark: #aa8c2c;  
    --text-white: #ffffff;
    --text-muted: #8a8d98;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    /* Usamos tu imagen de banner como fondo general de la web */
    background-image: url('logo 1200-630.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
    font-family: 'Play', sans-serif;
    overflow-x: hidden;
}

/* Capa oscura sobre el fondo para garantizar que las letras se lean perfectamente */
.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.7) 0%, rgba(5, 5, 8, 0.9) 100%);
    z-index: 1;
}

.page-wrap {
    position: relative;
    z-index: 2; /* Por encima del fondo oscurecido */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ENCABEZADO */
.header {
    text-align: center;
    padding: 70px 20px 40px 20px;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-white);
    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; /* Un tono dorado suave para el eslogan */
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.9);
    letter-spacing: 1px;
}

/* CONTAINER */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
}

/* GRID DE JUEGOS */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    width: 100%;
}

/* TARJETA CON BORDE DORADO */
.game-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    position: relative;
    padding: 3px; /* Grosor del borde */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.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);
}

/* Contenido interno */
.card-content {
    background-color: #0b0c10;
    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 */
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
}

/* Brillo interno tipo Glow */
.game-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, transparent 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.game-card:hover::after {
    opacity: 1;
}

/* CONTENEDORES DE LOGOS */
.game-logo-container {
    width: 160px;
    height: 160px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Ajustes específicos según la imagen */
.game-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.game-card:hover .game-logo {
    transform: scale(1.05);
}

/* Estilo para suavizar el logo express temporal */
.style-express {
    opacity: 0.4;
    filter: grayscale(100%) brightness(70%);
}

.game-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.game-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 35px;
    flex-grow: 1;
    line-height: 1.5;
}

/* BOTÓN DORADO */
.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.4);
    transition: all 0.2s ease;
}

.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);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 35px 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    background-color: rgba(5, 5, 8, 0.4);
}

/* RESPONSIVE */
@media (max-width: 950px) {
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 25px;
    }
    .brand-title { font-size: 2.6rem; }
    .slogan { font-size: 1.3rem; }
    .container { padding: 40px 20px; }
}