@font-face { font-family: Mont; src: url(/fuentes/Mont-400.ttf); font-weight: 400; }
@font-face { font-family: Mont; src: url(/fuentes/Mont-600.ttf); font-weight: 600; }
@font-face { font-family: Mont; src: url(/fuentes/Mont-700.ttf); font-weight: 700; }
@font-face { font-family: Mont; src: url(/fuentes/Mont-800.ttf); font-weight: 800; }

:root {
  --lima: #D6F43C; --azul: #0000FF; --azul-claro: #F2F7FB; --negro: #000; --gris: #666;
  --gris-claro: #ABABAB; --linea: #E3E8EE; --verde: #0A8A3A; --rojo: #D12C2C; --fondo: #FFFFFF;
}
* { box-sizing: border-box; }
html { font-family: Mont, system-ui, sans-serif; color: var(--negro); }
body { margin: 0; background: var(--fondo); font-size: 15px; line-height: 1.5; min-height: 100vh; }
.barra-lima { height: 8px; background: var(--lima); }
[hidden] { display: none !important; }

h1 { font-weight: 800; font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-weight: 700; font-size: 19px; margin: 0 0 14px; }
.suave { color: var(--gris); font-weight: 400; }
.error { color: var(--rojo); min-height: 1.5em; margin: 10px 0 0; white-space: pre-line; }

.cabecera { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px;
  border-bottom: 1px solid var(--linea); }
.marca { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--gris); font-weight: 700; font-size: 14px; }
.marca img { height: 24px; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 64px; }

.boton { font: inherit; font-weight: 700; background: var(--azul); color: #fff; border: 0; border-radius: 6px;
  padding: 12px 22px; cursor: pointer; }
.boton:hover:not(:disabled) { background: #0000C8; }
.boton:disabled { background: var(--gris-claro); cursor: not-allowed; }
.boton.secundario { background: #fff; color: var(--azul); box-shadow: inset 0 0 0 1.5px var(--azul); }
.boton.secundario:hover:not(:disabled) { background: var(--azul-claro); }
.enlace { font: inherit; background: none; border: 0; color: var(--azul); cursor: pointer; font-weight: 600; padding: 4px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, label.zona:focus-within {
  outline: 3px solid var(--lima); outline-offset: 2px; }

/* Ingreso */
.ingreso { max-width: 360px; margin: 9vh auto 0; text-align: center; }
.logo-grande { width: 170px; margin-bottom: 28px; }
.pin { font: inherit; font-size: 34px; font-weight: 800; letter-spacing: 18px; text-align: center; width: 220px;
  padding: 10px 0 10px 18px; border: 2px solid var(--linea); border-radius: 8px; margin: 18px 0; }
.pin:focus { border-color: var(--azul); outline: none; }
.turnstile { min-height: 70px; display: flex; justify-content: center; margin-bottom: 14px; }
#form-ingreso .boton { width: 220px; }

/* Inicio */
.tarjeta { background: var(--azul-claro); border-radius: 10px; padding: 24px; margin-bottom: 36px; }
.zona { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; background: #fff;
  border: 2px dashed var(--gris-claro); border-radius: 8px; cursor: pointer; text-align: center; margin-bottom: 18px; }
.zona.sobre, .zona:hover { border-color: var(--azul); }
.zona.lista-archivo { border-style: solid; border-color: var(--azul); }
.zona-titulo { font-size: 16px; }
.campo { display: block; margin-bottom: 18px; }
.campo > span { display: block; font-weight: 700; margin-bottom: 6px; }
textarea, input[type=text] { font: inherit; width: 100%; border: 1.5px solid var(--linea); border-radius: 6px;
  padding: 10px 12px; background: #fff; }
textarea:focus, input[type=text]:focus { border-color: var(--azul); outline: none; }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 4px; text-decoration: none;
  color: inherit; border-bottom: 1px solid var(--linea); }
.lista li a:hover { background: var(--azul-claro); }
.lista .nombre { min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .detalle { grid-column: 1 / -1; font-size: 13px; color: var(--gris); }
.vacio { color: var(--gris); padding: 14px 4px; }

.estado { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--azul-claro);
  color: var(--azul); white-space: nowrap; align-self: center; }
.estado.aprobado { background: #E3F5E9; color: var(--verde); }
.estado.error { background: #FBE6E6; color: var(--rojo); }
.estado.revision, .estado.preguntas { background: var(--lima); color: var(--negro); }

/* Trabajando */
.trabajando { text-align: center; margin: 12vh auto; max-width: 460px; }
.trabajando h1 { font-size: 22px; margin-top: 22px; }
.giro { width: 46px; height: 46px; border: 5px solid var(--azul-claro); border-top-color: var(--azul);
  border-radius: 50%; margin: 0 auto; animation: giro 0.9s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* Preguntas */
.preguntas { max-width: 680px; }
.bloque { margin: 26px 0; }
.bloque > h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.opcion { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--linea);
  border-radius: 6px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.opcion:has(input:checked) { border-color: var(--azul); background: var(--azul-claro); }
.opcion input[type=radio] { accent-color: var(--azul); width: 18px; height: 18px; margin: 0; flex: none; }
.opcion .cuenta { margin-left: auto; font-size: 12px; color: var(--gris); }
.opcion input[type=text] { border: 0; padding: 0; background: transparent; }
.contador { font-size: 13px; color: var(--gris); margin-top: 4px; }
.contador.pasado { color: var(--rojo); font-weight: 700; }
.par { display: flex; gap: 10px; }
.par .opcion { flex: 1; }
.aviso { background: #FFF8D6; border-left: 3px solid #E0B800; padding: 10px 14px; margin: 14px 0; font-size: 14px; }
.resumen { background: var(--azul-claro); border-left: 3px solid var(--azul); padding: 12px 16px; }

/* Revisión */
.revision { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.visor { background: #E9EDF2; border-radius: 10px; padding: 18px; text-align: center; position: relative; }
.visor img { max-width: 100%; max-height: calc(100vh - 210px); box-shadow: 0 2px 14px rgba(0,0,0,.18); background: #fff; }
.visor .flecha { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 0;
  width: 42px; height: 42px; border-radius: 50%; font-size: 20px; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.visor .flecha:disabled { opacity: .3; cursor: default; }
.flecha.izq { left: 10px; } .flecha.der { right: 10px; }
.panel { position: sticky; top: 16px; }
.panel h1 { font-size: 20px; overflow-wrap: anywhere; }
.decision { display: flex; gap: 10px; margin: 16px 0 10px; }
.decision button { flex: 1; font: inherit; font-weight: 700; padding: 12px; border-radius: 6px; cursor: pointer;
  background: #fff; border: 2px solid var(--linea); }
.decision .si.activa { background: var(--verde); border-color: var(--verde); color: #fff; }
.decision .no.activa { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.decision .si:hover:not(.activa) { border-color: var(--verde); }
.decision .no:hover:not(.activa) { border-color: var(--rojo); }
.atajos { font-size: 12px; color: var(--gris); }
.miniaturas { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.mini { width: 54px; border: 2px solid var(--linea); border-radius: 4px; padding: 0; background: #fff; cursor: pointer;
  position: relative; }
.mini img { width: 100%; display: block; border-radius: 2px; }
.mini span { position: absolute; bottom: 2px; right: 2px; font-size: 10px; font-weight: 800; background: #fff;
  border-radius: 3px; padding: 0 3px; }
.mini.actual { outline: 3px solid var(--azul); outline-offset: 1px; }
.mini.aprobada { border-color: var(--verde); }
.mini.rechazada { border-color: var(--rojo); }
.progreso { height: 6px; background: var(--linea); border-radius: 3px; overflow: hidden; margin: 6px 0 14px; }
.progreso div { height: 100%; background: var(--azul); transition: width .2s; }
.notas { margin-top: 22px; font-size: 13px; }
.notas summary { cursor: pointer; font-weight: 700; }
.notas ul { padding-left: 18px; margin: 6px 0; }
.notas h4 { margin: 12px 0 2px; font-size: 13px; }
.etiqueta-ver { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gris); }
.sin-cambios { font-size: 12px; color: var(--verde); font-weight: 600; }

.aprobado { text-align: center; margin: 6vh auto; max-width: 560px; }
.sello { width: 64px; height: 64px; border-radius: 50%; background: var(--lima); display: grid; place-items: center;
  margin: 0 auto 18px; font-size: 32px; font-weight: 800; }
.aprobado .notas { text-align: left; }
.volver { display: inline-block; margin-bottom: 18px; color: var(--azul); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .revision { grid-template-columns: 1fr; }
  .panel { position: static; }
  .visor img { max-height: none; }
  main { padding: 20px 16px 48px; }
  .cabecera { padding: 12px 16px; }
  .marca span { display: none; }
}
