/* aula-virtual.css - Estilo Aula Virtual LMS */

.page-content {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 1. Cabecera del Aula */
.aula-header {
    background: #002147;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

/* 2. Barra de Progreso mejorada */
.progreso-container {
    color: #002147;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    border-left: 5px solid #28a745;
}

.progreso-wrapper {
    background: #a1a1a1;
    color: #555;
    height: 12px;
    border-radius: 6px;
    margin: 15px 0;
}

#progress-bar {
    background: #28a745;
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

/* 3. Lista de Lecciones (Estilo Timeline) */
.lecciones-list {
    list-style: none;
    padding: 0;
}

.leccion-item {
    background: #002147;
    border: 1px solid #002147;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}

.leccion-item:hover {
    border-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.leccion-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.leccion-numero {
    background: white;
    color: WHITE;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 4. Botones tipo acción */
.btn-estudiar {
    background: WHITE;
    color: #e07b00;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-estudiar.completada {
    background: #28a745;
}
.leccion-item h3 {
    color: white; /* Tu azul corporativo */
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Opcional: Si quieres que el texto "Estado" también combine */
.leccion-item small {
    color: #6c757d;
    font-size: 0.85rem;
}
/* Estilo del nuevo Modal de Categoría */
.modal-categoria {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #f4f7f9; z-index: 9999; display: flex; overflow: hidden;
}

/* Izquierda: Panel Fijo con Branding */
.modal-left { width: 66.66%; padding: 60px; background: #002147; color: white; }
.modal-right { width: 33.33%; padding: 40px; overflow-y: auto; background: white; border-left: 1px solid #eee; }

/* Círculo de Progreso: Gris base con borde verde dinámico */
.progreso-container-modal {
    width: 140px; height: 140px; border-radius: 50%;
    border: 10px solid #2d4560; /* Gris oscuro para la base */
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: bold; margin: 30px 0;
    position: relative;
}

/* Rueda de Progreso Simple pero Elegante */
.progreso-modal-circle {
    width: 120px; height: 120px; border-radius: 50%;
    border: 6px solid #28a745; display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem; font-weight: bold;
    margin: 30px 0; color: #28a745;
}

/* Botones de lección dentro del modal */
.leccion-btn-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; background: #ffffff; border: 1px solid #e0e0e0;
    margin-bottom: 15px; border-radius: 12px; transition: 0.3s;
    text-decoration: none; color: #002147; font-weight: 600;
}
.leccion-btn-link:hover { 
    border-color: #002147; transform: translateX(5px);
}
.sticker-visto { background: #28a745; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; }
.seo-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
    max-width: 800px;
}

.categoria-bloque {
    margin-bottom: 50px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.layout-wrapper {
    display: flex;
    flex-direction: column;
    /* Quitamos 'margin: 0 auto' porque eso centra todo el bloque */
    margin: 0; 
    /* Ajustamos el ancho máximo para que no se pegue al borde derecho en pantallas gigantes */
    max-width: 1200px; 
    padding: 20px;
}

/* Forzamos el orden de los elementos */
.page-content {
    order: 1; /* El contenido principal va primero */
    width: 100%;
}

aside.ads-sidebar-left {
    order: 2; /* La publicidad va después en móvil */
    width: 100%;
    margin-top: 20px;
}

/* En PC, invertimos el orden y volvemos a la fila */
@media (min-width: 992px) {
    .layout-wrapper {
        flex-direction: row;
        justify-content: flex-start; /* Fuerza a todo el contenido a alinearse a la izquierda */
        gap: 20px;
    }

    aside.ads-sidebar-left {
        order: 1; /* En PC, la publicidad puede ir a la izquierda si quieres */
        width: 300px;
        flex: 0 0 300px;
        margin-top: 0;
    }

    .page-content {
        order: 2;
        flex: 1;
    }
}

/* Asegurar que el Footer siempre esté debajo de todo */

    .btn-juegos {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-juegos:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

.btn-naranja { background: #e07b00; color: white; }
.btn-verde { background: #28a745; color: white; }
.btn-azul { background: #002147; color: white; }
