/* --- Estilos Generales y Reseteo --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* --- Header y Footer --- */
header {
    background: #1e293b;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* --- Grid de Juegos (Index) --- */
.games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: .3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card h3 {
    padding: 10px;
    margin: 0;
    color: #333; /* Asegurado para visibilidad */
}

.game-card p {
    padding: 0 10px 10px;
    color: #666;
}

.btn {
    display: block;
    text-align: center;
    background: #2563eb;
    color: white !important; /* Forzado para que siempre sea legible */
    text-decoration: none;
    padding: 12px;
    font-weight: bold;
}

/* --- Presentación de Juegos --- */
article {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

h1 { color: #1e293b; border-bottom: 2px solid #2563eb; padding-bottom: 15px; font-size: 2.2rem; }
h2 { color: #1e293b; margin-top: 40px; }

.game-hero { text-align: center; margin: 30px 0; background: #f1f5f9; padding: 20px; border-radius: 12px; }

.btn-play {
    background: #2563eb;
    color: white !important;
    padding: 18px 50px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.3s;
}

.btn-play:hover { background: #1d4ed8; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 30px; }
.box { background: #f8fafc; padding: 25px; border-radius: 10px; border-left: 4px solid #2563eb; }
.faq { margin-top: 40px; background: #f1f5f9; padding: 25px; border-radius: 10px; }

/* --- Utilidades --- */
.ad-slot {
    margin: 20px 0;
    text-align: center;
    min-height: 250px;
}

section { margin-top: 50px; }


header {
    background: #1e293b;
    color: white; /* Color del texto del párrafo */
    padding: 50px 20px;
    text-align: center;
}

/* Forzamos que el h1 del header sea blanco para que se vea */
header h1 {
    color: white !important;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 15px;
    font-size: 2.2rem;
    margin-top: 0;
}