/* EDA — Evaluador de Aprendizajes · estilos del alumno (móvil primero) */
:root {
  --fondo: #f3f5f9; --tarjeta: #fff; --texto: #19202e; --suave: #5b6676; --borde: #d9dfe9;
  --prim: #1f4fd8; --prim-osc: #173ba8; --ok: #0e7a55; --rojo: #c0262d; --rojo-cl: #fdecec; --ambar: #8a5a00; --ambar-cl: #fff3d9;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fondo); color: var(--texto);
  line-height: 1.45; font-size: 17px; overscroll-behavior: none; touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, select { -webkit-user-select: text; user-select: text; }
main { max-width: 640px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 14px 28px; position: relative; z-index: 1; min-height: 100vh; }
h1 { font-size: 1.35em; line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: 1.15em; margin: .4em 0; }
.oculto { display: none !important; }
.suave { color: var(--suave); }

.marca { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: 60; pointer-events: none; background-repeat: repeat; transform: rotate(-24deg); }

.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; padding: 18px; }
.tarjeta.roja { background: var(--rojo-cl); border-color: #f1b5b8; }
.tarjeta.roja h1 { color: var(--rojo); }
.logo { width: 64px; height: 64px; border-radius: 18px; background: var(--prim); color: #fff; font-weight: 800; font-size: 22px;
  display: grid; place-items: center; margin: 5vh 0 12px; letter-spacing: .04em; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input, select { width: 100%; font: inherit; padding: 13px 14px; border: 2px solid var(--borde); border-radius: 12px; background: #fff; color: var(--texto); }
input:focus, select:focus { outline: none; border-color: var(--prim); }
input.codigo { text-transform: uppercase; letter-spacing: .3em; font-weight: 800; font-size: 1.5em; text-align: center; }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 14px; background: var(--prim); color: #fff; padding: 13px 18px; cursor: pointer; width: 100%; margin-top: 16px; }
.btn.grande { padding: 16px 18px; font-size: 1.08em; }
.btn.ok { background: var(--ok); }
.btn.sec { background: #e5e9f1; color: var(--texto); }
.btn:disabled { opacity: .4; }
.btn:active:not(:disabled) { filter: brightness(.9); }
.error { color: var(--rojo); font-weight: 600; min-height: 1.4em; margin-top: 10px; }
.nota-pie { text-align: center; color: var(--suave); font-size: .85em; }
.reglas { padding-left: 1.2em; } .reglas li { margin: .55em 0; }

.barra-sup { display: flex; align-items: center; gap: 8px; font-size: .8em; color: var(--suave); margin-bottom: 6px; }
.punto { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.punto.mal { background: var(--rojo); }
.top-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.enc { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.prog { color: var(--suave); }
.tiempo { font-variant-numeric: tabular-nums; font-size: 1.5em; }
.tiempo.poco { color: var(--rojo); }
.barra { height: 10px; background: #dfe4ee; border-radius: 99px; overflow: hidden; margin: 6px 0 14px; }
.barra div { height: 100%; width: 100%; background: var(--prim); }
.barra.poco div { background: var(--rojo); }
.aviso { background: var(--ambar-cl); border: 1px solid #efd08c; color: var(--ambar); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; font-size: .92em; }
.texto-preg { font-size: 1.18em; font-weight: 650; white-space: pre-wrap; margin: 4px 0 14px; overflow-wrap: anywhere; }
.img-preg { display: block; max-width: 100%; max-height: 42vh; margin: 6px auto 12px; border-radius: 10px; border: 1px solid var(--borde); background: #fff; }
.opciones { display: grid; gap: 10px; }
.op { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; font: inherit; font-weight: 550; color: var(--texto);
  background: #fff; border: 2px solid var(--borde); border-radius: 14px; padding: 14px; min-height: 58px; cursor: pointer; }
.op.sel { border-color: var(--prim); background: #ebf0ff; }
.op .letra { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e5e9f1; display: grid; place-items: center; font-weight: 800; }
.op.sel .letra { background: var(--prim); color: #fff; }
.op .cuerpo { flex: 1; overflow-wrap: anywhere; }
.op img { display: block; max-width: 100%; max-height: 26vh; border-radius: 8px; margin-top: 6px; }
.img-preg, .op img { cursor: zoom-in; }
#vPreg .btn { position: sticky; bottom: 10px; box-shadow: 0 6px 18px rgba(20, 30, 60, .2); }

.centro { padding-top: 12vh; text-align: center; }
.icono { font-size: 3.4em; line-height: 1; margin-bottom: 8px; }
.nota { font-size: 1.3em; font-weight: 800; color: var(--ok); }

.cubierta { position: fixed; inset: 0; z-index: 90; background: rgba(20, 28, 48, .92); display: grid; place-items: center; padding: 20px; text-align: center; }
.giro { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #d6dcea; border-top-color: var(--prim); margin: 0 auto 10px; animation: g 1s linear infinite; }
@keyframes g { to { transform: rotate(360deg); } }
.zoom { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 12px; }
.zoom img { max-width: 100%; max-height: 92vh; }
.zoom-x { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccd; font-size: .85em; }
