/* ============================================================
   tests.css — Estilos compartidos para páginas de test
   Módulo: Sistemas Eléctricos en Centrales
   ============================================================ */

:root {
    --primary: #4353ff;
    --bg: #f9f9fb;
    --correct: #2e7d32;
    --wrong: #d32f2f;
    --text: #333;
}

/* Body base */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
}

/* Layout centrado para el cuestionario RLC (testCircuitoSerie) */
body.layout-quiz {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Layout columna para la página Genially (testFactorDeCalidad) */
body.layout-genially {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* === Test tipo cuestionario interactivo (testCircuitoSerie) === */

.quiz-card {
    width: 100%;
    max-width: 550px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.quiz-card h2 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
    color: var(--text);
}

.option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 1rem;
}

.option:hover:not(.disabled) {
    background: #f0f4ff;
    border-color: var(--primary);
}

.letter {
    font-weight: bold;
    margin-right: 15px;
    color: #777;
    width: 20px;
}

.option.correct {
    background-color: #e8f5e9;
    border-color: var(--correct);
    color: var(--correct);
}

.option.wrong {
    background-color: #ffebee;
    border-color: var(--wrong);
    color: var(--wrong);
}

.disabled {
    cursor: default;
    pointer-events: none;
}

/* Pista colapsable */
.hint-section { margin-top: 20px; }

.hint-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.hint-content {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background: #f0f2ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #444;
}

/* Footer del quiz */
.quiz-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-next {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.5;
    pointer-events: none;
    transition: 0.3s;
}

.btn-next.active {
    opacity: 1;
    pointer-events: auto;
}

/* === Test tipo Genially (testFactorDeCalidad) === */

.page-header {
    width: 100%;
    background: linear-gradient(135deg, #005582 0%, #007bbd 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-header h1 {
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #555;
}

.main-container {
    width: 90%;
    max-width: 900px;
    background-color: white;
    margin: 20px 0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #007bbd;
}

.intro-text {
    border-left: 4px solid #ff9800;
    padding-left: 15px;
    margin-bottom: 25px;
    color: #333;
}

.quiz-wrapper {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.page-footer {
    margin-top: auto;
    padding: 20px;
    color: #777;
    font-size: 0.8rem;
    text-align: center;
}

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #007bbd;
    font-weight: bold;
}

.btn-back:hover {
    text-decoration: underline;
}
