/* =====================================================================
   ANTI.EXAMEN5 · Sistema visual base (mundo aguayo)
   ---------------------------------------------------------------------
   El fondo es la urdimbre: casi negro con un tinte anil. El color no se
   reparte como adorno: llega en franjas tejidas que hacen de estructura
   (cabecera, uniones entre secciones, linea de tiempo) y en los estados.
     grave   -> fucsia     cuenta para anular
     leve    -> naranja    solo queda registrada
     perdon  -> verde      salida breve perdonada
     accion  -> maiz       lo que el usuario debe pulsar
   Esquinas rectas en todo: la tela no tiene esquinas redondas.
   ===================================================================== */

@font-face {
  font-family: "Archivo AE";
  src: url("../fuentes/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo AE";
  src: url("../fuentes/archivo-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian AE";
  src: url("../fuentes/martian.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian AE";
  src: url("../fuentes/martian-ext.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F;
}

:root {
  /* Urdimbre */
  --urdimbre:   #11121b;
  --urdimbre-2: #171925;
  --urdimbre-3: #1e2130;
  --urdimbre-4: #262a3c;
  --hebra:      #2b2f42;
  --hebra-2:    #3d4259;

  /* Lana: el texto */
  --texto:   #f1efe8;
  --texto-2: #cbc9d8;
  --texto-3: #9d9db3;

  /* Hilos del aguayo */
  --fucsia:  #e1307a;
  --verde:   #2fb86a;
  --naranja: #f07a2b;
  --maiz:    #f2c94c;
  --anil:    #4352c9;
  --rojo:    #d8362f;
  --lana:    #efe9da;
  --vino:    #4a1d2c;

  /* Roles */
  --accion:        var(--maiz);
  --accion-hover:  #f7d872;
  --accion-texto:  #1b1505;
  --grave:         #ff5b93;
  --grave-fondo:   rgba(225, 48, 122, .15);
  --leve:          #ffa05a;
  --leve-fondo:    rgba(240, 122, 43, .15);
  --perdon:        #58d68f;
  --perdon-fondo:  rgba(47, 184, 106, .15);
  --info:          #9aa6ff;
  --info-fondo:    rgba(67, 82, 201, .2);

  /* Tipografia */
  --f-texto: "Archivo AE", "Segoe UI", system-ui, sans-serif;
  --f-mono:  "Martian AE", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --t-display: clamp(2.6rem, 1.15rem + 4.6vw, 5.4rem);
  --t-h2:      clamp(1.95rem, 1.2rem + 2.3vw, 3.15rem);
  --t-h3:      clamp(1.2rem, 1.05rem + .45vw, 1.45rem);
  --t-cuerpo:  1.0625rem;
  --t-chico:   .9rem;
  --t-micro:   .75rem;

  /* Espacio (base 4) */
  --e1: .25rem; --e2: .5rem; --e3: .75rem; --e4: 1rem; --e5: 1.5rem;
  --e6: 2rem;   --e7: 3rem;  --e8: 4rem;   --e9: 6rem; --e10: 8rem;

  --ancho: 1240px;
  --margen: clamp(1.1rem, .4rem + 3vw, 2.75rem);

  /* Movimiento */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Profundidad: sombras con desplazamiento, tintadas de la urdimbre */
  --sombra-1: 0 1px 2px rgba(4, 4, 10, .45), 0 6px 18px rgba(4, 4, 10, .35);
  --sombra-2: 0 2px 6px rgba(4, 4, 10, .5), 0 22px 60px rgba(4, 4, 10, .55);

  /* Franjas tejidas reutilizables */
  --orillo: repeating-linear-gradient(90deg,
     var(--fucsia) 0 22px, var(--maiz) 22px 28px, var(--verde) 28px 50px,
     var(--lana) 50px 52px, var(--anil) 52px 74px, var(--naranja) 74px 92px,
     var(--maiz) 92px 98px);

  color-scheme: dark;
  accent-color: var(--maiz);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--urdimbre);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: var(--t-cuerpo);
  font-stretch: 100%;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ------------------------------------------- superficies del navegador */
::selection { background: var(--maiz); color: var(--accion-texto); }
html { scrollbar-color: var(--hebra-2) var(--urdimbre); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--urdimbre); }
::-webkit-scrollbar-thumb { background: var(--hebra-2); border: 2px solid var(--urdimbre); }
input, textarea { caret-color: var(--maiz); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }
a { color: var(--texto); text-decoration-color: var(--hebra-2); text-decoration-thickness: 1px;
    text-underline-offset: .22em; transition: text-decoration-color .15s ease, color .15s ease; }
a:hover { text-decoration-color: var(--maiz); }
.mono, code, kbd, time, .num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 0;
}
code { font-size: .88em; color: var(--maiz); }

.solo-lectores {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar { position: absolute; left: var(--e4); top: -100px; z-index: 100; padding: var(--e3) var(--e4);
          background: var(--maiz); color: var(--accion-texto); font-weight: 700; }
.saltar:focus { top: var(--e4); }

/* ------------------------------------------------------------- iconos */
.icono { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.icono.giro { animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------- texto */
.contenedor { width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; }
.display {
  font-size: var(--t-display);
  font-weight: 820;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.h2 { font-size: var(--t-h2); font-weight: 760; font-stretch: 112%; line-height: 1.06; letter-spacing: -0.025em; }
.h3 { font-size: var(--t-h3); font-weight: 680; font-stretch: 104%; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); color: var(--texto-2); line-height: 1.55; max-width: 52ch; }
.sutil { color: var(--texto-3); font-size: var(--t-chico); }
.medida { max-width: 68ch; }

/* ------------------------------------------------------------- botones */
.boton {
  --b-fondo: var(--accion); --b-texto: var(--accion-texto);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .7em 1.35em .8em;
  border: 0;
  border-radius: 0;
  background: var(--b-fondo);
  color: var(--b-texto);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -.005em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
/* El orillo: el borde tejido del boton principal. */
.boton::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--orillo); background-size: 98px 4px;
}
.boton:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .boton:hover { --b-fondo: var(--accion-hover); } }
.boton[disabled], .boton[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

.boton-2 {
  --b-fondo: transparent; --b-texto: var(--texto);
  box-shadow: inset 0 0 0 1px var(--hebra-2);
}
.boton-2::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .boton-2:hover { --b-fondo: var(--urdimbre-3); box-shadow: inset 0 0 0 1px var(--texto-3); }
}
.boton-peligro { --b-fondo: transparent; --b-texto: var(--grave); box-shadow: inset 0 0 0 1px rgba(255, 91, 147, .55); }
.boton-peligro::after { display: none; }
@media (hover: hover) and (pointer: fine) { .boton-peligro:hover { --b-fondo: var(--grave-fondo); } }
.boton-texto {
  --b-fondo: transparent; --b-texto: var(--texto-2);
  min-height: 40px; padding-inline: .6em; font-weight: 600;
}
.boton-texto::after { display: none; }
@media (hover: hover) and (pointer: fine) { .boton-texto:hover { --b-texto: var(--texto); --b-fondo: var(--urdimbre-3); } }
.boton.grande { min-height: 56px; font-size: 1.08rem; padding-inline: 1.6em; }
.boton.chico  { min-height: 36px; font-size: .9rem; padding: .45em .85em .5em; }
.boton.chico::after { height: 3px; }
.boton.bloque { width: 100%; }
.boton .icono { width: 1.15em; height: 1.15em; }
.boton.cargando { pointer-events: none; }
.boton.cargando > :not(.icono-carga) { opacity: .35; }
.boton .icono-carga { position: absolute; inset: 0; margin: auto; animation: girar .8s linear infinite; }

/* -------------------------------------------------------------- campos */
.campo { display: grid; gap: var(--e2); }
.campo + .campo { margin-top: var(--e5); }
.etiqueta { font-size: var(--t-chico); font-weight: 650; color: var(--texto); }
.ayuda { font-size: .82rem; color: var(--texto-3); line-height: 1.45; }
.error-campo { font-size: .85rem; color: var(--grave); line-height: 1.4; display: flex; gap: .4em; align-items: flex-start; }
.error-campo .icono { margin-top: .1em; }

.entrada, select.entrada, textarea.entrada {
  width: 100%;
  min-height: 48px;
  padding: .7em .9em;
  border: 0;
  border-radius: 0;
  background: var(--urdimbre-2);
  box-shadow: inset 0 0 0 1px var(--hebra-2);
  color: var(--texto);
  transition: box-shadow .15s ease, background-color .15s ease;
}
textarea.entrada { min-height: 140px; resize: vertical; line-height: 1.6; }
.entrada::placeholder { color: #8b8ca3; }
.entrada:hover { box-shadow: inset 0 0 0 1px var(--texto-3); }
.entrada:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--maiz); background: var(--urdimbre-3); }
.entrada[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--grave); }
select.entrada { appearance: none; padding-right: 2.6em;
  background-image: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%),
                    linear-gradient(135deg, var(--texto-2) 50%, transparent 50%);
  background-position: right 1.15em center, right .8em center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.con-boton { position: relative; }
.con-boton .entrada { padding-right: 3.2em; }
.con-boton .boton-texto { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 40px; }

.casilla { display: flex; gap: var(--e3); align-items: flex-start; cursor: pointer; line-height: 1.5; }
.casilla input { width: 20px; height: 20px; margin: .15em 0 0; flex: none; }

/* --------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .28em .6em .3em;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 600;
  letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
  background: var(--urdimbre-4); color: var(--texto-2);
}
.chip.grave  { background: var(--grave-fondo);  color: var(--grave); }
.chip.leve   { background: var(--leve-fondo);   color: var(--leve); }
.chip.perdon { background: var(--perdon-fondo); color: var(--perdon); }
.chip.info   { background: var(--info-fondo);   color: var(--info); }
.chip.accion { background: rgba(242, 201, 76, .14); color: var(--maiz); }
.chip.solido-grave { background: var(--fucsia); color: #fff; }

/* -------------------------------------------------------- franjas tejidas */
.franja {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(8, 8, 14, .22) 0 1px, transparent 1px 4px),
    linear-gradient(180deg,
      var(--anil) 0 14%, var(--lana) 14% 22%, var(--fucsia) 22% 44%,
      var(--maiz) 44% 56%, var(--verde) 56% 78%, var(--lana) 78% 86%, var(--anil) 86% 100%);
}
.franja.fina { height: 6px; background: var(--orillo); background-size: 98px 6px; }

/* -------------------------------------------------------------- avisos */
.avisos {
  position: fixed; z-index: 80; top: 84px; left: 50%;
  width: min(440px, calc(100vw - 2rem)); transform: translateX(-50%);
  display: grid; gap: var(--e2); pointer-events: none;
}
.aviso {
  pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--e3); align-items: start;
  padding: var(--e4) var(--e4) calc(var(--e4) + 3px);
  background: var(--urdimbre-3);
  box-shadow: var(--sombra-2), inset 0 0 0 1px var(--hebra-2);
  color: var(--texto);
  position: relative;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
@starting-style { .aviso { opacity: 0; transform: translateY(-14px) scale(.98); } }
.aviso.saliendo { opacity: 0; transform: translateY(-8px); transition-duration: 160ms; }
.aviso::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--info); }
.aviso.grave::after  { background: var(--fucsia); }
.aviso.leve::after   { background: var(--naranja); }
.aviso.perdon::after { background: var(--verde); }
.aviso.ok::after     { background: var(--verde); }
.aviso .icono { width: 22px; height: 22px; margin-top: 1px; }
.aviso.grave .icono-aviso  { color: var(--grave); }
.aviso.leve .icono-aviso   { color: var(--leve); }
.aviso.perdon .icono-aviso, .aviso.ok .icono-aviso { color: var(--perdon); }
.aviso strong { display: block; font-weight: 700; line-height: 1.3; }
.aviso p { color: var(--texto-2); font-size: .92rem; line-height: 1.45; margin-top: 2px; }
.aviso .cerrar-aviso { min-height: 28px; padding: 2px 6px; margin: -4px -6px 0 0; }

/* ------------------------------------------------- dialogo y cortinas */
.cortina {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: var(--e5);
  background: rgba(8, 8, 14, .82);
  backdrop-filter: blur(6px);
  transition: opacity 220ms ease;
}
@starting-style { .cortina { opacity: 0; } }
.dialogo {
  width: min(520px, 100%);
  max-height: calc(100dvh - 3rem); overflow: auto;
  background: var(--urdimbre-2);
  box-shadow: var(--sombra-2), inset 0 0 0 1px var(--hebra-2);
  position: relative;
  transition: transform 260ms var(--ease-out), opacity 220ms ease;
}
@starting-style { .dialogo { opacity: 0; transform: translateY(10px) scale(.985); } }
.dialogo::before { content: ""; display: block; height: 6px; background: var(--orillo); background-size: 98px 6px; }
.dialogo-cuerpo { padding: var(--e6); }
.dialogo h2 { margin-bottom: var(--e3); }
.dialogo-acciones { display: flex; gap: var(--e3); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--e6); }

/* ---------------------------------------------------------- esqueletos */
.esqueleto {
  background: linear-gradient(90deg, var(--urdimbre-3) 0 40%, var(--urdimbre-4) 50%, var(--urdimbre-3) 60% 100%);
  background-size: 300% 100%;
  animation: brillo 1.4s ease-in-out infinite;
  min-height: 1em;
}
@keyframes brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* =====================================================================
   EL TELAR
   La sesion de examen como tela que se teje: el tiempo avanza de
   izquierda a derecha y cada incidencia es un hilo que cruza la tela
   en el minuto en que ocurrio. Es el mismo componente en la portada,
   en la barra del alumno y en cada fila de resultados del docente.
   ===================================================================== */
.telar {
  --alto: 120px;
  --avance: 1;              /* 0..1: cuanto lleva tejido */
  position: relative;
  height: var(--alto);
  isolation: isolate;
}
.telar-tela, .telar-hueco {
  position: absolute; inset: 0;
}
/* La parte aun no tejida: solo la urdimbre, hilos verticales tensos. */
.telar-hueco {
  background:
    repeating-linear-gradient(90deg, rgba(203, 201, 216, .13) 0 1px, transparent 1px 7px),
    var(--urdimbre-2);
}
/* La tela tejida: franjas del aguayo con el pallay al centro. */
.telar-tela {
  background:
    repeating-linear-gradient(90deg, rgba(8, 8, 14, .26) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg,
      var(--anil) 0 6%, var(--lana) 6% 8%, var(--fucsia) 8% 18%, var(--maiz) 18% 21%,
      var(--verde) 21% 33%, var(--maiz) 33% 36%, transparent 36% 64%, var(--maiz) 64% 67%,
      var(--verde) 67% 79%, var(--maiz) 79% 82%, var(--fucsia) 82% 92%, var(--lana) 92% 94%,
      var(--anil) 94% 100%),
    url("../img/pallay.svg") 0 50% / auto 28% repeat-x,
    var(--vino);
  clip-path: inset(0 calc((1 - var(--avance)) * 100%) 0 0);
}
.telar.sin-pallay .telar-tela {
  background:
    repeating-linear-gradient(90deg, rgba(8, 8, 14, .26) 0 1px, transparent 1px 4px),
    linear-gradient(180deg,
      var(--anil) 0 12%, var(--lana) 12% 18%, var(--fucsia) 18% 36%, var(--maiz) 36% 44%,
      var(--verde) 44% 56%, var(--maiz) 56% 64%, var(--fucsia) 64% 82%, var(--lana) 82% 88%,
      var(--anil) 88% 100%);
}
/* La lanzadera: el punto donde se esta tejiendo ahora. */
.telar-lanzadera {
  position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px;
  left: calc(var(--avance) * 100%);
  background: var(--lana);
  box-shadow: 0 0 0 1px rgba(8, 8, 14, .6), 0 4px 16px rgba(239, 233, 218, .25);
}
.telar.terminado .telar-lanzadera { display: none; }

/* Huecos: el tiempo que el alumno estuvo fuera queda sin tejer. */
.telar-ausencias { position: absolute; inset: 0; pointer-events: none; }
.telar-ausencia {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--pos) * 100%); width: calc(var(--ancho) * 100%); min-width: 2px;
  background: repeating-linear-gradient(90deg, rgba(203, 201, 216, .16) 0 1px, transparent 1px 6px), var(--urdimbre-2);
  box-shadow: inset 1px 0 0 rgba(8, 8, 14, .7), inset -1px 0 0 rgba(8, 8, 14, .7);
}

/* Hilos de incidencia */
.telar-hilos { position: absolute; inset: 0; }
.hilo {
  --color: var(--fucsia);
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--pos) * 100%);
  width: 6px; margin-left: -3px;
  padding: 0; border: 0;
  background: var(--color);
  box-shadow: 0 0 0 1.5px var(--urdimbre), 0 0 0 1px rgba(8, 8, 14, .6) inset;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), opacity 200ms ease;
  transform-origin: 50% 0;
}
.hilo.leve   { --color: var(--naranja); width: 4px; margin-left: -2px; }
.hilo.perdon { --color: var(--verde);   width: 4px; margin-left: -2px; }
.hilo.justificada { --color: var(--texto-3); width: 4px; margin-left: -2px; }
.hilo.nuevo { animation: hilo-entra 520ms var(--ease-out) both; }
@keyframes hilo-entra { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hilo:focus-visible { outline: 2px solid var(--lana); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .hilo:hover { transform: scaleX(1.6); } }

/* Etiquetas sobre la tela */
.telar-etiqueta {
  position: absolute; bottom: calc(100% + 10px);
  left: calc(var(--pos) * 100%);
  transform: translateX(-12px);
  padding-left: 10px;
  white-space: nowrap;
  font-size: .75rem; line-height: 1.25;
  pointer-events: none;
  transition: opacity 260ms ease, transform 360ms var(--ease-out);
}
.telar-etiqueta::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: -14px; width: 2px; background: var(--color, var(--fucsia));
}
.telar-etiqueta time { display: block; color: var(--texto-3); font-size: .75rem; }
.telar-etiqueta b { font-weight: 650; color: var(--texto); }
.telar-etiqueta.alta { bottom: calc(100% + 50px); }
.telar-etiqueta.alta::before { bottom: -54px; }
.telar-etiqueta.izq { transform: translateX(calc(-100% + 12px)); padding-left: 0; padding-right: 10px; text-align: right; }
.telar-etiqueta.izq::before { left: auto; right: 0; }
@starting-style { .telar-etiqueta { opacity: 0; transform: translate(-12px, 6px); } }

/* Ficha que abre un hilo */
.ficha-hilo {
  position: absolute; z-index: 5; top: calc(100% + 10px);
  width: 250px; padding: var(--e4);
  background: var(--urdimbre-3);
  box-shadow: var(--sombra-2), inset 0 0 0 1px var(--hebra-2);
  font-size: .88rem;
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
}
@starting-style { .ficha-hilo { opacity: 0; transform: translateY(-4px); } }
.ficha-hilo dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: var(--e2); }
.ficha-hilo dt { color: var(--texto-3); }
.ficha-hilo dd { font-family: var(--f-mono); font-size: .8rem; }

/* Version compacta: barra de tiempo del alumno y filas del docente */
.telar.mini { --alto: 14px; }
.telar.mini .telar-lanzadera { top: -3px; bottom: -3px; width: 2px; }
.telar.mini .hilo { width: 3px; margin-left: -1.5px; box-shadow: 0 0 0 1px var(--urdimbre); }
.telar.mini .hilo.leve, .telar.mini .hilo.perdon, .telar.mini .hilo.justificada { width: 2px; margin-left: -1px; }
.telar.mini .telar-hueco { background: repeating-linear-gradient(90deg, rgba(203, 201, 216, .14) 0 1px, transparent 1px 5px), var(--urdimbre-3); }

/* --------------------------------------------- aviso de configuracion */
.falta-config {
  position: sticky; top: 0; z-index: 95;
  display: flex; gap: var(--e3); align-items: center; justify-content: center; flex-wrap: wrap;
  padding: var(--e3) var(--e4);
  background: var(--maiz); color: var(--accion-texto); font-weight: 650; font-size: .92rem; text-align: center;
}

/* ------------------------------------------------- movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .boton:active { transform: none; }
  .hilo.nuevo { animation: none; }
}

/* ---------------------------------------------------------- impresion */
@media print {
  .no-imprimir, .avisos { display: none !important; }
}
