/*estilos generales para los juegos*/
/* sección de Juegos */
.games-header {
    text-align: center;
    margin-bottom: 40px;
}

.games-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


/* selector de Juegos */
.games-selector {
    margin-bottom: 40px;
}

.disability-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #26c6da;
    background: transparent;
    color: #26c6da;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-btn.active,
.filter-btn:hover {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.game-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

/*color de iconos de los juegos */

.game-icon.tdah {
    background: linear-gradient(135deg, var(--tdah), #26c6da);
}

.game-icon.discalculia {
    background: linear-gradient(135deg, var(--discalculia), #ffb74d);
}

.game-icon.dislexia {
    background: linear-gradient(135deg, var(--dislexia), #ba68c8);
}

.game-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.game-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.play-btn {
    width: 100%;
}


.game-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.game-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(77, 208, 225, 0.2);
}

.game-header-bar h2 {
    color: var(--primary);
    font-size: 1.8rem;
}

.game-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}


#gameContainer {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.game-card.hidden {
    display: none;
}

/* mas responsive para los juegos en general */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-header-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .game-stats {
        justify-content: center;
    }
    
    .disability-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* nuevo recuadro redondeado para la sección de juegos */
.games-hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.games-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.games-hero p {
    font-size: 1.6rem;
    color: #607d8b;
    margin: 0;
    font-weight: 500;
}