/*
Theme Name: Academia Virtual
Theme URI: https://aula.aerobur.es
Author: Mario Alonso
Description: Theme a medida para la academia virtual
Version: 1.0
*/


/* Reset básico */
body {
    font-family: 'Merriweather', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
	font-weight: normal;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Contenedor general */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
}

/* Botones */
.btn, button, input[type="submit"] {
    display: inline-block;
    padding: 12px 25px;
    background-color: #1107fe;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.btn:hover, button:hover, input[type="submit"]:hover {
    background-color: #2980b9;
}

/* Listados */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #ecf0f1;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
}

ul li a {
    font-weight: bold;
    color: #2c3e50;
}

ul li a:hover {
    color: #2980b9;
}

/* Formularios */
form {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
}

form select, form input[type="text"], form input[type="number"] {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Resultados de test */
.correcto {
    background-color: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 8px;
}

.incorrecto {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .btn, button, input[type="submit"] {
        width: 100%;
        box-sizing: border-box;
    }
}



/* ====================== */
/* DASHBOARD ALUMNO STYLES */
/* ====================== */

.dashboard-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 0px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	width:100% !important;
	max-width: none !important;
}

.dashboard-container h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 275px));
    gap: 25px;
	justify-content: center;
}

.dashboard-curso-card {
    display: block;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
	padding-bottom: 20px;
}

.dashboard-curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	text-decoration: none !important;
}


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

.dashboard-curso-card h3 {
    font-size: 20px;
    color: #2c3e50;
    padding: 15px;
    margin: 0;
}

.dashboard-curso-card p {
    padding: 0 15px 15px;
    color: #3498db;
    font-weight: bold;
}

.dashboard-curso-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Progreso */
.progreso-curso {
    background-color: #ecf0f1;
    border-radius: 0;
    height: 8px;
    width: 90%;
    margin: 0 auto;
}

.progreso-barra {
    background-color: #3498db;
    height: 90%;
    transition: width 0.5s;
}

.progreso-texto {
    font-size: 14px;
    color: #2c3e50;
    padding: 10px 15px;
}


/* Separador entre secciones */
.dashboard-section {
    margin-top: 50px;
}

.dashboard-section h2 {
    font-size: 26px;
    color: #34495e;
    margin-bottom: 20px;
}



/* Mobile */
@media (max-width: 768px) {
    .dashboard-cursos {
        grid-template-columns: 1fr;
    }
}



/* ===================== */
/* ESTILOS SINGLE CURSO  */
/* ===================== */

.curso-view {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
	width:100%;
	max-width:none !important;
}

.curso-view h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.curso-view h2 {
    font-size: 28px;
    color: #34495e;
    margin-top: 40px;
    margin-bottom: 20px;
}

.curso-view ul {
    list-style: none;
    padding: 0;
}

.curso-view ul li {
    background-color: #ecf0f1;
    margin-bottom: 15px;
    padding: 18px 20px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.curso-view ul li a {
    font-size: 18px;
    color: #2c3e50;
    font-weight: bold;
}

.curso-view ul li:hover {
    background-color: #3498db;
}

.curso-view ul li:hover a {
    color: #fff;
}

/* Botones de Test */
.curso-view .btn {
    display: inline-block;
    margin: 15px 10px 0 0;
    background-color: #1107fe;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 16px;
}

.curso-view .btn:hover {
    background-color: #1107fe;
}

/* Actividades Placeholder */
.curso-view .actividad-placeholder {
    background-color: #f39c12;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .curso-view {
        padding: 20px;
    }

    .curso-view .btn {
        width: 100%;
        box-sizing: border-box;
    }
}



.volver-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background-color: #1107fe;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.volver-btn:hover {
    background-color: #1107fe;
}

.progreso-curso {
    background-color: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    height: 30px;
    margin-top: 10px;
}

.progreso-barra {
    background-color: #3498db;
    height: 90%;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 30px; /* igual a la altura de .progreso-curso */
    white-space: nowrap;
    transition: width 0.5s;
}


.progreso-texto {
    font-size: 14px;
    color: #2c3e50;
}

.dashboard-curso-card img.curso-thumb {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}


.progreso-texto {
    font-size: 14px;
    color: #2c3e50;
    padding: 8px 0;
    text-align: center;
}


.aula-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.aula-logo img {
    height: 50px;
}

.aula-usuario {
    position: relative;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.usuario-menu {
    position: absolute;
    right: 0;
    top: 120%;
    background-color: #34495e;
    padding: 10px 20px;
    border-radius: 8px;
    display: none;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.usuario-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.usuario-menu a:hover {
    text-decoration: underline;
}

.aula-usuario:hover .usuario-menu {
    display: block;
}


.dashboard-container {
    padding-top: 100px; /* Para no tapar el contenido */
}

.login-logo-img{
	height:100px;
}

.login-logo{
	text-align:center;
}

.lecciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 275px));
    gap: 20px;
    margin-top: 20px;
}

.lecciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 275px));
    gap: 20px;
    margin-top: 20px;
}

.leccion-card {
    display: block;
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #2c3e50;
    font-weight: normal;
}

.leccion-card:hover {
    background-color: #1107fe;
    transform: translateY(-5px);
    color: #fff;
	text-decoration: none !important;
}

.leccion-view {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 40px auto;
}

.leccion-view h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.leccion-content {
    font-size: 18px;
    color: #34495e;
    line-height: 1.7;
}

.pdf-container {
    margin-top: 30px;
}

.volver-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 30px;
    background-color: #95a5a6;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
}

.volver-btn:hover {
    background-color: #7f8c8d;
}

.progress-container {
    width: 100%;
    background-color: #ddd;
    height: 8px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #3498db;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.pdf-toolbar {
    background: transparent;
    color: black;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
	justify-content:center;
}

.pdf-toolbar button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.pdf-toolbar button:hover {
    background: #2980b9;
}

canvas {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.pdf-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#pdf-render {
    display: block;
    margin: 0 auto;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.progress-container {
    width: 100%;
    background-color: #ddd;
    height: 25px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px 0 0 5px;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #2c3e50;
    font-size: 14px;
}

.leccion-actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-accion {
    background-color: #3498db;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-accion:hover {
    background-color: #2980b9;
}


.actividades-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 275px));
    gap: 20px;
    margin-top: 20px;
}

.actividad-card {
    display: block;
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #2c3e50;
    font-weight: normal;
}

.actividad-card:hover {
    background-color: #1107fe;
    transform: translateY(-5px);
    color: #fff;
	text-decoration: none !important;
}

.actividad-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f4f6f8;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.actividad-escenario {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.actividad-escenario h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.actividad-escenario p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.actividad-escenario label {
    display: block;
    background-color: #ecf0f1;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.actividad-escenario label:hover {
    background-color: #dfe6e9;
}

.actividad-escenario input[type="radio"] {
    margin-right: 10px;
}

.actividad-escenario button {
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.actividad-escenario button:hover {
    background-color: #2980b9;
}

#resultado-escenario {
    font-size: 1.2em;
}

#resultado-escenario span {
    font-weight: bold;
}

.actividad-marcado {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 30px;
}

.actividad-marcado h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.pdf-container:fullscreen {
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-container canvas {
    max-width: 100%;
    height: auto;
}
.fullscreen-toolbar {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    z-index: 999999; /* Muy alto */
    display: none;
}

/* Contenedor principal del test */
.test-unico-container {
    max-width: none;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.test-unico-container2 {
    max-width: none;
    margin: 0px auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}


/* Bloque de pregunta */
.pregunta-block {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

/* Título pregunta */
.pregunta-block h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Opciones de test */
.opcion-test {
    display: block;
    background: #f1f1f1;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.opcion-test:hover {
    background-color: #e6f0ff;
    border-color: #a3c4f3;
}

.opcion-test input[type="radio"] {
    margin-right: 10px;
}

/* Botón finalizar */
.finalizar-test {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background 0.2s;
}

.finalizar-test:hover {
    background-color: #0056b3;
}

/* Resultado del test */
.test-unico-container h2 {
    color: #28a745;
}

.test-unico-container ul {
    padding-left: 20px;
    margin-top: 10px;
}

.test-unico-container ul li {
    margin-bottom: 6px;
}

/* Botón volver */
.volver-curso {
    display: inline-block;
    margin-top: 30px;
    background-color: #6c757d;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.volver-curso:hover {
    background-color: #5a6268;
}
.pregunta-block label.opcion-test {
    display: block;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
}

.opcion-correcta {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.opcion-incorrecta {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.pregunta-block input[type="radio"] {
    margin-right: 10px;
}

