:root { --oece: #8b1a2b; --oece-oscuro: #5e0f1c; --oece-claro: #f6e9eb; }
.bg-oece { background: linear-gradient(90deg, var(--oece-oscuro), var(--oece)); }
.text-oece { color: var(--oece); }
.btn-oece { background: var(--oece); border-color: var(--oece); color: #fff; }
.btn-oece:hover { background: var(--oece-oscuro); border-color: var(--oece-oscuro); color: #fff; }
.card-indicador { border-left: 4px solid var(--oece); }
.pregunta { border: 1px solid #dee2e6; border-radius: .5rem; padding: 1rem 1.25rem; margin-bottom: 1rem; background: #fff; }
.pregunta.respondida { border-color: #198754; background: #f4fbf6; }
.pregunta .form-check { padding: .35rem .5rem .35rem 2rem; border-radius: .375rem; }
.pregunta .form-check:hover { background: #f8f9fa; }
.alt-correcta { background: #d1e7dd; border-radius: .375rem; }
.alt-marcada-mal { background: #f8d7da; border-radius: .375rem; }
#cronometro { position: sticky; top: .5rem; z-index: 10; }
#cronometro .tiempo { font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 600; }
#cronometro.alerta .tiempo { color: #dc3545; animation: parpadeo 1s infinite; }
@keyframes parpadeo { 50% { opacity: .4; } }
.navegador-preguntas .btn { width: 2.4rem; margin: .1rem; padding: .2rem 0; font-size: .8rem; }
.barra-nivel { height: 1.6rem; }
.prioridad { width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--oece); color: #fff; font-weight: 600; }

/* --- Examen de una pregunta por pantalla --- */
#pila-preguntas .pregunta { display: none; }
#pila-preguntas .pregunta.activa { display: block; min-height: 16rem; }
.flechas-navegacion .btn-lg { min-width: 3.5rem; }
.navegador-preguntas .btn.actual { outline: 3px solid var(--oece); outline-offset: 1px; }

/* --- Protección del contenido (examen y panel de claves) --- */
body.protegido main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protegido main input, body.protegido main textarea { -webkit-user-select: text; user-select: text; }
.marca-agua { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; display: flex; flex-wrap: wrap; gap: 3.5rem 4rem; padding: 2rem; transform: rotate(-20deg) scale(1.4); opacity: .07; }
.marca-agua span { font-size: .95rem; white-space: nowrap; color: #000; }
.cortina { display: none; position: fixed; inset: 0; z-index: 2000; background: #212529; color: #fff; text-align: center; padding: 2rem; align-items: center; justify-content: center; font-size: 1.1rem; }
body.protegido.oculto .cortina { display: flex; }
body.protegido.oculto main > :not(.cortina):not(.marca-agua) { filter: blur(14px); }
@media print {
  body.protegido main, body.protegido nav, body.protegido footer, body.protegido .marca-agua { display: none !important; }
  body.protegido .cortina { display: flex !important; position: static; height: 90vh; background: #fff; color: #000; }
}
.border-oece { border-color: var(--oece) !important; border-width: 2px; }
/* --- Curso --- */
.contenido-curso h4 { color: var(--oece); margin-top: 1.5rem; font-size: 1.15rem; }
.contenido-curso h5 { margin-top: 1rem; font-size: 1rem; }
.contenido-curso table { font-size: .9rem; }
.contenido-curso p, .contenido-curso li { line-height: 1.6; }
.contenido-curso { overflow-x: auto; }
