/* ============================================================
   JUEGOS — ESTILOS COMPARTIDOS (hub + páginas de juegos)
   Usado por juegos.html y por cada página de juego (pasapalabra.html, etc.)
   ============================================================ */

.juegos-page {
    background: linear-gradient(135deg, #0d1117 0%, #1a0a2e 50%, #0d1117 100%);
    color: #fff;
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.juegos-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 112, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.juegos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 60px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.juegos-icono {
    font-size: 80px;
    color: #9c27b0;
    margin-bottom: 25px;
    animation: gamepad-float 3s ease-in-out infinite;
    position: relative;
}

.juegos-icono::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow-purple 2s ease-in-out infinite;
}

@keyframes gamepad-float {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes pulse-glow-purple {
    0%, 100% {
        box-shadow: 0 0 30px rgba(156, 39, 176, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(156, 39, 176, 0.6);
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.titulo-juegos {
    font-size: 52px;
    font-family: 'Righteous', cursive;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #9c27b0, #e040fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.juegos-descripcion {
    font-size: 17px;
    color: #bbb;
    max-width: 620px;
    line-height: 1.8;
    margin: 0 auto 40px;
    text-align: center;
}

.juegos-volver {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #9c27b0;
}

.juegos-volver:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.4);
    background: linear-gradient(135deg, #7b1fa2, #6a1b9a);
}

/* ===== RESPONSIVE COMPARTIDO ===== */
@media (max-width: 768px) {
    .juegos-container { padding: 50px 20px 40px; }
    .juegos-icono { font-size: 60px; }
    .titulo-juegos { font-size: 34px; letter-spacing: 2px; }
    .juegos-descripcion { font-size: 15px; }
}
