/* =====================================================================
   Campus Maflo
   El emblema de Maflo son tres anillos entrelazados. Aqui el avance del
   alumno traza uno de ellos: la banda de marca y el anillo amarillo son
   la misma idea, no un grafico de tablero generico.
   CSS a mano, sin build step. Tema claro/oscuro con interruptor.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Marca, fijos en los dos temas */
  --magenta: #c0255a;
  --magenta-hover: #a81d4f;
  --cyan: #176e8c;
  --cyan-claro: #3fb6d9;
  --amarillo: #f2c230;
  --verde: #15754a;
  --tinta: #15161b;

  /* Banda de credencial: magenta -> violeta -> cian.
     Los tres extremos pasan 4.5:1 contra texto blanco. */
  --banda: linear-gradient(118deg, #c0255a 0%, #7a2a72 52%, #176e8c 100%);

  /* Superficie */
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #15161b;
  --muted: #565a65;
  --line: #dde2e9;
  --line-fuerte: #c6ccd6;

  /* Estados */
  --estado-neutro-bg: #eceff3;
  --estado-neutro-tx: #565a65;
  --estado-curso-bg: #e2f2f8;
  --estado-curso-tx: #0f5d78;
  --estado-listo-bg: #fdf1cf;
  --estado-listo-tx: #7a5800;
  --estado-ok-bg: #e0f1e8;
  --estado-ok-tx: #15754a;

  --r: 10px;
  --r-sm: 6px;
  --sombra: 0 1px 2px rgb(21 22 27 / .06), 0 10px 24px -14px rgb(21 22 27 / .28);
  --sombra-alta: 0 2px 4px rgb(21 22 27 / .08), 0 18px 36px -18px rgb(21 22 27 / .35);
  --wrap: 1120px;
  --salida: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0f1116;
  --surface: #171a21;
  --surface-2: #1e222b;
  --text: #edeff3;
  --muted: #a3aab6;
  --line: #2a2f3a;
  --line-fuerte: #3a4150;

  --magenta: #f0588a;
  --magenta-hover: #f67ba3;
  --cyan: #5cc6e6;
  --verde: #4fbf85;

  --estado-neutro-bg: #22262f;
  --estado-neutro-tx: #a3aab6;
  --estado-curso-bg: #122c38;
  --estado-curso-tx: #7fd3ec;
  --estado-listo-bg: #332a0d;
  --estado-listo-tx: #f2c230;
  --estado-ok-bg: #132b20;
  --estado-ok-tx: #5fcf92;

  --sombra: 0 1px 2px rgb(0 0 0 / .4), 0 10px 24px -14px rgb(0 0 0 / .7);
  --sombra-alta: 0 2px 4px rgb(0 0 0 / .5), 0 18px 36px -18px rgb(0 0 0 / .8);
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-color: var(--line-fuerte) transparent; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--magenta);
}

/* Las superficies que no dibujamos tambien son del diseno. */
::selection { background: color-mix(in srgb, var(--cyan-claro) 36%, transparent); color: var(--text); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-fuerte); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta); }

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3 { margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
h2 { font-size: 1.1rem; letter-spacing: -.008em; }
h3 { font-size: .98rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Primer tabulador de quien navega con teclado */
.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-fuerte); border-radius: var(--r-sm);
  padding: 10px 16px; font-weight: 700; font-size: .88rem;
  text-decoration: none; box-shadow: var(--sombra-alta);
  transition: top .15s var(--salida);
}
.saltar:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.cifra { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* =====================================================================
   Barra de navegacion
   ===================================================================== */
.barra {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.barra__inner { display: flex; align-items: center; gap: 14px; min-height: 58px; flex-wrap: wrap; padding-block: 8px; }

.marca { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.marca__texto { display: flex; flex-direction: column; line-height: 1.04; }
.marca__texto strong { font-size: .92rem; letter-spacing: .09em; font-weight: 800; }
.marca__texto small { font-size: .6rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.menu a {
  color: var(--muted); padding: 7px 12px; border-radius: var(--r-sm);
  font-size: .87rem; font-weight: 600; text-decoration: none;
}
.menu a:hover { background: var(--surface-2); color: var(--text); }
.menu a[aria-current="page"] { background: var(--surface-2); color: var(--text); }

.sesion {
  display: flex; align-items: center; gap: 6px;
  margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line);
}
.sesion__nombre { font-size: .8rem; font-weight: 600; line-height: 1.2; }
.sesion__rol { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }

.icono-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: none; color: var(--muted); cursor: pointer;
  font-size: 1.1rem; transition: background .15s, color .15s;
}
.icono-btn:hover { background: var(--surface-2); color: var(--text); }

/* El boton muestra el tema al que te lleva, no el que ya tienes */
.tema__sol { display: none; }
:root[data-theme="dark"] .tema__sol { display: block; }
:root[data-theme="dark"] .tema__luna { display: none; }

/* =====================================================================
   Banda de credencial
   ===================================================================== */
.banda {
  background: var(--banda);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.banda::after {
  /* Eco del emblema: un arco amplio, apenas visible, detras del contenido. */
  content: "";
  position: absolute; right: -120px; top: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 60px solid rgb(255 255 255 / .06);
  pointer-events: none;
}
.banda__inner {
  display: flex; align-items: center; gap: 36px;
  /* padding-block, no padding: el margen lateral lo pone .wrap */
  padding-block: 34px 38px;
  position: relative; z-index: 1;
}
.banda__texto { flex: 1; min-width: 0; }
.banda h1 { color: #fff; margin-bottom: 6px; }
.banda__meta {
  font-size: .84rem; color: rgb(255 255 255 / .82);
  margin: 0 0 16px;
}
.banda__meta b { color: #fff; font-weight: 600; }

.banda__volver {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgb(255 255 255 / .9); text-decoration: none;
  font-size: .84rem; font-weight: 600;
  margin-bottom: 10px;
}
.banda__volver:hover { color: #fff; text-decoration: underline; }
.banda__volver:focus-visible { outline-color: #fff; }
.banda__paso {
  font-size: 1.02rem; line-height: 1.45;
  max-width: 54ch; margin: 0 0 18px;
  color: rgb(255 255 255 / .95);
}
.banda__alerta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgb(0 0 0 / .26); border: 1px solid rgb(255 255 255 / .28);
  border-radius: var(--r-sm); padding: 8px 12px;
  font-size: .85rem; margin: 0 0 16px;
}

.banda--compacta .banda__inner { padding-block: 22px 24px; }
.banda--compacta h1 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.6rem); }

/* ---------- Anillo de avance ---------- */
.anillo { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.anillo__caja { position: relative; width: var(--tam); height: var(--tam); flex-shrink: 0; }
.anillo__svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo__pista { fill: none; stroke: rgb(255 255 255 / .22); }
.anillo__arco {
  fill: none; stroke: var(--amarillo); stroke-linecap: round;
  stroke-dasharray: var(--c);
  stroke-dashoffset: var(--c);
  animation: trazo 1.1s var(--salida) .12s forwards;
}
@keyframes trazo { to { stroke-dashoffset: var(--off); } }

.anillo__centro {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
}
.anillo__pct { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0; }
.anillo__pct span { font-size: .9rem; font-weight: 600; }
.anillo__linea {
  font-size: .8rem; color: rgb(255 255 255 / .85);
  text-align: center; max-width: 190px; margin: 0;
}
.anillo__linea b { font-weight: 600; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .anillo__arco { animation: none; stroke-dashoffset: var(--off); }
}

/* =====================================================================
   Contenido
   ===================================================================== */
main { padding: 26px 0 72px; }
.seccion + .seccion { margin-top: 30px; }
.seccion__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}

.aviso {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  margin-bottom: 20px; font-size: .9rem; box-shadow: var(--sombra);
}
.aviso i { font-size: 1.15rem; flex-shrink: 0; }
.aviso--ok { border-color: var(--verde); background: var(--estado-ok-bg); color: var(--estado-ok-tx); }
.aviso--alerta { border-color: var(--amarillo); background: var(--estado-listo-bg); color: var(--estado-listo-tx); }
.aviso--error { border-color: var(--magenta); background: color-mix(in srgb, var(--magenta) 10%, var(--surface)); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px;
}
.panel + .panel { margin-top: 16px; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}

.columnas { display: grid; gap: 18px; }
@media (min-width: 860px) {
  .columnas--principal { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

/* =====================================================================
   Fichas de modulo
   ===================================================================== */
.modulos {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
}
.modulo {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .18s, box-shadow .18s, transform .18s var(--salida);
}
.modulo:hover {
  border-color: var(--line-fuerte);
  box-shadow: var(--sombra-alta);
  transform: translateY(-2px);
  color: var(--text);
}
.modulo__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modulo__icono {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--muted); font-size: 1.25rem;
}
.modulo--curso .modulo__icono { background: var(--estado-curso-bg); color: var(--estado-curso-tx); }
.modulo--listo .modulo__icono { background: var(--estado-listo-bg); color: var(--estado-listo-tx); }
.modulo--ok .modulo__icono { background: var(--estado-ok-bg); color: var(--estado-ok-tx); }

.modulo__clave {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.modulo__nombre { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.modulo__pie { font-size: .82rem; color: var(--muted); line-height: 1.4; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .71rem; font-weight: 700; letter-spacing: .01em;
  padding: 4px 9px; border-radius: 99px; white-space: nowrap;
  background: var(--estado-neutro-bg); color: var(--estado-neutro-tx);
}
.chip--curso { background: var(--estado-curso-bg); color: var(--estado-curso-tx); }
.chip--listo { background: var(--estado-listo-bg); color: var(--estado-listo-tx); }
.chip--ok { background: var(--estado-ok-bg); color: var(--estado-ok-tx); }

/* =====================================================================
   Recursos
   ===================================================================== */
.recursos { display: grid; gap: 10px; }
.recurso {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface);
  color: var(--text); text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
.recurso:hover { border-color: var(--line-fuerte); box-shadow: var(--sombra); color: var(--text); }
.recurso__icono { font-size: 1.5rem; color: var(--magenta); flex-shrink: 0; }
.recurso__texto { flex: 1; min-width: 0; }
.recurso__texto b { display: block; font-weight: 600; }

/* =====================================================================
   Botones
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .88rem;
  padding: 10px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--line-fuerte); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn--primario {
  background: var(--magenta); border-color: var(--magenta); color: #fff;
  box-shadow: var(--sombra);
}
.btn--primario:hover { background: var(--magenta-hover); border-color: var(--magenta-hover); color: #fff; }
:root[data-theme="dark"] .btn--primario { color: #1a0a11; }
:root[data-theme="dark"] .btn--primario:hover { color: #1a0a11; }

/* Dentro de la banda: solido blanco sobre el campo de marca */
.banda .btn--primario {
  background: #fff; border-color: #fff; color: var(--tinta);
}
.banda .btn--primario:hover { background: #f1f3f6; border-color: #f1f3f6; color: var(--tinta); }
.banda .btn:focus-visible { outline-color: #fff; }

.btn--sm { padding: 7px 13px; font-size: .82rem; }
.btn--bloque { width: 100%; }
.btn--plano { border-color: transparent; background: none; }
.btn--plano:hover { background: var(--surface-2); }

/* =====================================================================
   Formularios
   ===================================================================== */
.campo { margin-bottom: 16px; }
.campo > label {
  display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px;
  letter-spacing: .01em;
}
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: .92rem;
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-fuerte); background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.campo input::placeholder, .campo textarea::placeholder { color: var(--muted); }
.campo input:hover, .campo select:hover { border-color: var(--muted); }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--magenta) 22%, transparent);
}
.campo textarea { min-height: 84px; resize: vertical; }
.campo__ayuda { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.campo__error { font-size: .8rem; color: var(--magenta); margin-top: 6px; font-weight: 600; }
.campo--invalido input, .campo--invalido select { border-color: var(--magenta); }

.rejilla-campos { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .rejilla-campos--2 { grid-template-columns: 1fr 1fr; } }

.check { display: flex; align-items: center; gap: 9px; font-size: .88rem; }
.check input { width: auto; accent-color: var(--magenta); }
.check label { margin: 0; font-weight: 500; }

.linea-campos { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.linea-campos .campo { margin-bottom: 0; }

/* =====================================================================
   Tablas
   ===================================================================== */
.tabla-scroll { overflow-x: auto; margin: 0 -20px -20px; padding: 0 20px 20px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabla th {
  text-align: left; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); font-weight: 700;
  padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tabla td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: none; }
.tabla tbody tr:hover { background: var(--surface-2); }
.tabla a { font-weight: 700; text-decoration: none; }
.tabla a:hover { text-decoration: underline; }

.avance-mini { display: flex; align-items: center; gap: 9px; }
.avance-mini__barra {
  width: 56px; height: 6px; border-radius: 99px;
  background: var(--surface-2); overflow: hidden; flex-shrink: 0;
}
.avance-mini__relleno { height: 100%; background: var(--verde); border-radius: 99px; }

/* =====================================================================
   Simulador
   ===================================================================== */
.reloj {
  display: flex; flex-direction: column; align-items: center;
  background: rgb(0 0 0 / .26); border: 1px solid rgb(255 255 255 / .28);
  border-radius: var(--r); padding: 10px 18px; flex-shrink: 0;
}
.reloj__tiempo { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.reloj__etiqueta { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; opacity: .85; }
.reloj--poco { background: var(--magenta); border-color: var(--magenta); }

.pregunta__cabeza { display: flex; gap: 14px; align-items: flex-start; }
.pregunta__numero {
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); color: var(--muted);
  font-size: .82rem; font-weight: 700;
}
.pregunta__numero--ok { background: var(--estado-ok-bg); color: var(--estado-ok-tx); }
.pregunta__numero--mal { background: color-mix(in srgb, var(--magenta) 16%, var(--surface)); color: var(--magenta); }
.pregunta__texto { margin: 0; font-weight: 600; line-height: 1.45; }

.opciones { border: 0; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.opcion {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opcion:hover { border-color: var(--line-fuerte); background: var(--surface-2); }
.opcion input { margin: 2px 0 0; accent-color: var(--magenta); flex-shrink: 0; }
.opcion:has(input:checked) {
  border-color: var(--magenta);
  background: color-mix(in srgb, var(--magenta) 7%, var(--surface));
}

.tema { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.tema + .tema { border-top: 1px solid var(--line); }
.tema__texto { width: 180px; flex-shrink: 0; display: flex; flex-direction: column; }
.tema__barra {
  flex: 1; height: 8px; border-radius: 99px;
  background: var(--surface-2); overflow: hidden;
}
.tema__relleno { height: 100%; border-radius: 99px; }
.tema__pct { width: 48px; text-align: right; font-weight: 700; font-size: .88rem; }

@media (max-width: 600px) {
  .tema { flex-wrap: wrap; }
  .tema__texto { width: auto; flex: 1; }
}

/* =====================================================================
   Documento de lectura larga (aviso de privacidad)
   ===================================================================== */
.documento {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  max-width: 72ch;
}
.documento h2 {
  margin: 28px 0 10px; font-size: 1.05rem;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.documento h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.documento p { margin: 0 0 14px; }
.documento ul { margin: 0 0 16px; padding-left: 20px; }
.documento li { margin-bottom: 6px; }
.documento code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .9em; background: var(--surface-2);
  padding: 2px 5px; border-radius: 4px;
}

.vacio { text-align: center; padding: 44px 20px; color: var(--muted); }
.vacio i { font-size: 2rem; display: block; margin-bottom: 10px; color: var(--line-fuerte); }
.vacio p { max-width: 42ch; margin: 0 auto; }

/* =====================================================================
   Credencial temporal
   ===================================================================== */
.credencial {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px dashed var(--line-fuerte);
  border-radius: var(--r-sm); padding: 12px 14px; margin-top: 12px;
}
.credencial code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; color: var(--text);
}

/* =====================================================================
   Pantalla de acceso
   ===================================================================== */
.acceso {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 28px 18px;
  background: var(--banda);
}
.acceso__caja {
  width: 100%; max-width: 408px;
  background: var(--surface); border-radius: 14px;
  padding: 30px 28px; box-shadow: 0 4px 10px rgb(0 0 0 / .14), 0 30px 60px -24px rgb(0 0 0 / .5);
}
.acceso__marca { text-align: center; margin-bottom: 24px; }
.acceso__marca img { margin-bottom: 14px; }
.acceso__marca p { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }
.acceso__pie { font-size: .8rem; color: var(--muted); text-align: center; margin: 20px 0 0; line-height: 1.5; }

/* =====================================================================
   Paginacion
   ===================================================================== */
.paginacion {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
}
.paginacion__estado { font-size: .84rem; color: var(--muted); }

/* =====================================================================
   Telefono
   ===================================================================== */
@media (max-width: 720px) {
  .banda__inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 24px 28px; }
  .anillo { flex-direction: row; align-items: center; gap: 16px; align-self: stretch; --tam: 104px; }
  .anillo__pct { font-size: 1.5rem; }
  .anillo__linea { text-align: left; max-width: none; flex: 1; min-width: 0; }
  .banda__paso { font-size: .96rem; }
  .sesion__nombre, .sesion__rol { display: none; }
  .menu a { padding: 7px 9px; font-size: .84rem; }
  .modulos { grid-template-columns: 1fr; }
  main { padding: 20px 0 56px; }
}
