/* ===== GAMIFICACIÓN - ESTILOS ===== */
.gamificacion-title {
    text-align: center;
    color: #0056b3;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.gamificacion-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SISTEMA DE PUNTOS ===== */
.puntos-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
    text-align: center;
}

.puntos-container h2 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.puntos-display,
.nivel-display {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.puntos-display strong,
.nivel-display strong {
    color: #0056b3;
    font-weight: 700;
}

.barra-progreso {
    width: 100%;
    max-width: 500px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 1.5rem auto;
    overflow: hidden;
}

.progreso-lleno {
    height: 100%;
    background: linear-gradient(90deg, #00c853, #0056b3);
    width: 30%; /* Este valor se actualizará con JS */
    border-radius: 10px;
    transition: width 0.5s ease;
}

#mensaje-progreso {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
}

/* ===== MINIJUEGOS ===== */
.juegos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.juego-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.juego-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,86,179,0.15);
}

.juego-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.juego-card h3 {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.juego-card p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.juego-card .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.juego-card .btn:hover {
    background: #003d82;
}

/* ===== TABLA DE CLASIFICACIÓN ===== */
.leaderboard-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 2.5rem 0;
}

.leaderboard-container h2 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.leaderboard-table th {
    background: #0056b3;
    color: white;
    font-weight: 600;
}

.leaderboard-table tr:nth-child(even) {
    background: #f8f9fa;
}

.leaderboard-table tr:hover {
    background: #e3f2fd;
}

/* ===== RECOMPENSAS/INSIGNIAS ===== */
.recompensas-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 2.5rem 0;
}

.recompensas-container h2 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.recompensas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.recompensa-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recompensa-card.locked {
    opacity: 0.7;
}

.recompensa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.recompensa-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    height: 60px; /* Altura fija para el icono/imagen */
    display: flex;
    align-items: center;
    justify-content: center;
}

.recompensa-card h4 {
    color: #0056b3;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.recompensa-card p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.precio {
    background: #0056b3;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Estilos para el juego Adivina la Seña */
.juego-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 2.5rem;
    text-align: center;
}

.video-container {
    margin-bottom: 2rem;
}

.video-container video {
    width: 25%;
    /*max-width: 300px;*/
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.opciones-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.opcion-btn {
    background: #e3f2fd; /* Light blue background */
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opcion-btn:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
}

.opcion-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.opcion-btn.correct {
    background: #d4edda; /* Light green */
    border-color: #28a745; /* Green */
    color: #28a745;
    font-weight: bold;
}

.opcion-btn.incorrect {
    background: #f8d7da; /* Light red */
    border-color: #dc3545; /* Red */
    color: #dc3545;
    font-weight: bold;
}

.resultado-juego {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f0f8ff; /* Light blue background */
    border: 1px solid #b0e0e6;
}

.resultado-juego h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.resultado-juego p {
    font-size: 1.2rem;
    color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gamificacion-title {
        font-size: 2rem;
    }

    .gamificacion-subtitle {
        font-size: 1.1rem;
    }

    .puntos-container,
    .juego-container,
    .leaderboard-container,
    .recompensas-container {
        padding: 1.5rem;
    }

    .puntos-display,
    .nivel-display {
        font-size: 1.1rem;
    }

    .juegos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .juego-card {
        padding: 1.5rem;
    }

    .juego-card h3 {
        font-size: 1.3rem;
    }

    .leaderboard-table {
        font-size: 0.9rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
    }

    .recompensas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recompensa-card {
        padding: 1.2rem;
    }

    .recompensa-card h4 {
        font-size: 1.1rem;
    }

    .opciones-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gamificacion-title {
        font-size: 1.8rem;
    }

    .puntos-container,
    .leaderboard-container,
    .recompensas-container {
        padding: 1.2rem;
    }

    .juego-card {
        padding: 1.2rem;
    }

    .juego-card h3 {
        font-size: 1.3rem;
    }
}
