/* Consultas CONEAU — misma línea visual que la página principal de dirinfo
   (paleta, tipografías Unbounded + Plus Jakarta Sans, botones redondeados). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans.woff2) format('woff2');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/unbounded.woff2) format('woff2');
}

:root {
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --paper: #F2F6FB;
  --paper-raise: #FFFFFF;
  --ink: #0F2038;
  --ink-soft: #435671;
  --navy: #1B3868;
  --navy-deep: #0B1730;
  --navy-deep-2: #060D1C;
  --sky: #0E9FD6;
  --sky-strong: #0B87B8;
  --sky-dim: rgba(14, 159, 214, 0.14);
  --line: rgba(15, 32, 56, 0.16);
  --line-soft: rgba(15, 32, 56, 0.08);
  --on-dark: #EFF5FC;
  --on-dark-soft: rgba(239, 245, 252, 0.68);
  --on-dark-line: rgba(239, 245, 252, 0.16);

  --ok: #1B7F4B;
  --ok-bg: rgba(27, 127, 75, 0.12);
  --bad: #B3261E;
  --bad-bg: rgba(179, 38, 30, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky-strong); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: 24px; font-weight: 600; margin-bottom: 14px; }
h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }

.envoltura { max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-strong); margin: 0 0 6px;
}
.nota { color: var(--ink-soft); font-size: 13.5px; }

/* ---------- encabezado ---------- */
header.sitio {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--on-dark-line);
}
header.sitio .envoltura { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
header.sitio .marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
header.sitio .marca img { height: 32px; width: auto; display: block; border-radius: 3px; }
header.sitio .marca .nombre { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--on-dark); }
header.sitio .marca .nombre b { color: var(--sky); font-weight: 700; }
header.sitio .marca .sub { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); }
header.sitio nav { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
header.sitio nav a { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--on-dark-soft); transition: color .2s ease; }
header.sitio nav a:hover, header.sitio nav a[aria-current="page"] { color: var(--on-dark); }
header.sitio nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sky); padding-bottom: 2px; }
header.sitio .usuario { display: flex; align-items: center; gap: 12px; padding-left: 18px; border-left: 1px solid var(--on-dark-line); }
header.sitio .usuario .quien { font-size: 13px; color: var(--on-dark-soft); line-height: 1.3; text-align: right; }
header.sitio .usuario .quien b { display: block; color: var(--on-dark); font-weight: 600; }
.boton-salir {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--sky); background: none; border: 1px solid var(--on-dark-line); border-radius: 6px; padding: 6px 14px;
  transition: background .2s ease, color .2s ease;
}
.boton-salir:hover { background: rgba(239, 245, 252, .08); color: var(--on-dark); }
form.en-linea { display: inline; margin: 0; }

main.envoltura { padding-top: 34px; padding-bottom: 64px; }

/* ---------- tarjetas ---------- */
.tarjeta {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 22px;
}
.encabezado-pagina { margin-bottom: 26px; }
.encabezado-pagina h1 { margin-bottom: 6px; }
.encabezado-pagina p { color: var(--ink-soft); margin: 0; }
.titulo-con-accion { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.titulo-con-accion h1, .titulo-con-accion h2 { margin: 0; }

.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.indicador { background: var(--paper-raise); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.indicador .etiqueta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.indicador .valor { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--navy); margin-top: 4px; }

/* ---------- avisos ---------- */
.aviso { padding: 11px 16px; border-radius: 6px; margin: 0 0 16px; font-size: 14.5px; }
.aviso.error { background: var(--bad-bg); color: var(--bad); }
.aviso.ok { background: var(--ok-bg); color: var(--ok); }
.aviso.info { background: var(--sky-dim); color: var(--navy); }

/* ---------- formularios ---------- */
form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14.5px; }
form label small, fieldset small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12.5px; margin-top: 5px; }
input[type=text], input[type=password] {
  display: block; width: 100%; margin-top: 6px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: var(--paper-raise);
  border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input[type=text]:focus, input[type=password]:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-dim);
}
input:disabled { background: var(--paper); color: var(--ink-soft); }
input[type=radio], input[type=checkbox] { accent-color: var(--sky-strong); width: 16px; height: 16px; vertical-align: -2px; margin: 0 8px 0 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 16px; padding: 12px 18px 14px; }
fieldset:disabled { opacity: .5; }
legend { font-weight: 700; font-size: 14px; padding: 0 6px; color: var(--navy); }
label.opcion { font-weight: 500; margin: 6px 0; }
.columnas { columns: 2 260px; column-gap: 24px; }
.columnas label.opcion { break-inside: avoid; margin: 0 0 8px; }

button, .boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  color: var(--navy-deep-2); background: var(--sky);
  border: 0; border-radius: 6px; padding: 11px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
button:hover, .boton:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14, 159, 214, .35); }
.boton.secundario { background: none; color: var(--navy); border: 1px solid var(--line); }
.boton.secundario:hover { box-shadow: none; background: var(--sky-dim); }
.acciones { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- tablas ---------- */
.tabla-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--paper-raise); }
th {
  text-align: left; background: var(--paper);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(14, 159, 214, .04); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.inactivo td { color: var(--ink-soft); }
.estado-ok { color: var(--ok); font-weight: 700; }
.estado-error { color: var(--bad); font-weight: 700; }
.etiqueta-rol {
  display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 6px;
  background: var(--sky-dim); color: var(--navy);
}
.etiqueta-rol.admin { background: var(--navy); color: var(--on-dark); }

dl.datos { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
dl.datos dt { color: var(--ink-soft); }
dl.datos dd { margin: 0; font-weight: 600; }

/* ---------- login ---------- */
body.pagina-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(120% 90% at 50% 30%, #14284c 0%, var(--navy-deep) 55%, var(--navy-deep-2) 100%);
}
body.pagina-login main { width: 100%; max-width: 420px; }
.login {
  background: var(--paper-raise); border-radius: 12px; padding: 34px 34px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.login .escudo { display: block; height: 128px; width: auto; margin: 0 auto 18px; }
.login h1 { text-align: center; font-size: 22px; margin-bottom: 4px; }
.login h1 b { color: var(--sky-strong); }
.login .bajada { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin: 0 0 22px; }
.login button { width: 100%; margin-top: 4px; }
.login .pie-login { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin: 18px 0 0; }

@media (max-width: 760px) {
  header.sitio .usuario { border-left: 0; padding-left: 0; }
  header.sitio .marca .sub { display: none; }
  .tarjeta { padding: 18px; }
}

/* ---------- "Ver como" ---------- */
.franja-ver-como { background: #FFF4D6; border-bottom: 1px solid #E9C76A; color: #5C4400; font-size: 14px; }
.franja-ver-como .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.franja-ver-como .boton-salir { color: #5C4400; border-color: #D9B24F; }
.franja-ver-como .boton-salir:hover { background: #FBE7AE; color: #3D2D00; }
.boton-chico { font-size: 13px; padding: 5px 14px; }
td.acciones-fila { white-space: nowrap; text-align: right; }
td.acciones-fila > * { margin-left: 10px; }

/* ---------- selects y utilidades ---------- */
select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper-raise);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 16px; max-width: 100%;
}
select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-dim); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grupo-facultad {
  column-span: all; margin: 10px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sky-strong);
}
.grupo-facultad:first-child { margin-top: 0; }

/* ---------- informe ---------- */
main.envoltura:has(.barra-informe) { padding-top: 18px; }
.barra-informe {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  background: var(--paper-raise); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 14px;
}
.pestanas-informe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: 100%; }
.pestanas-informe a {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-align: center;
  padding: 9px 10px; border-radius: 6px; transition: background .15s ease, color .15s ease;
}
.pestanas-informe a:hover { background: var(--sky-dim); color: var(--navy); }
.pestanas-informe a[aria-current] { background: var(--navy); color: var(--on-dark); }
.filtros-informe { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin: 0 0 20px; padding: 0 4px; }
.filtro-carrera { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filtro-carrera label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.filtro-carrera select { font-size: 14.5px; padding: 8px 16px; min-width: 300px; max-width: min(460px, 80vw); }
.chk-genuinos { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; margin: 0; }

.titulo-cuadro { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.titulo-cuadro h2 { margin: 0; font-size: 18px; }
.titulo-cuadro span { font-size: 12.5px; color: var(--ink-soft); }
.aviso-parcial {
  background: var(--sky-dim); border-left: 3px solid var(--sky); border-radius: 6px;
  padding: 10px 14px; font-size: 13px; color: var(--ink); margin-bottom: 16px; line-height: 1.55;
}
.pendiente { text-align: center; padding: 40px 20px; color: var(--ink-soft); border: 2px dashed var(--line); border-radius: 8px; }
.pendiente strong { display: block; color: var(--navy); }
.placeholder { text-align: center; color: var(--ink-soft); padding: 70px 20px; }
.placeholder.chico { padding: 24px 12px; }

nav.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
nav.tabs a {
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--navy);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 14px; background: var(--paper-raise);
}
nav.tabs a:hover { background: var(--sky-dim); }
nav.tabs a[aria-current] { background: var(--sky); border-color: var(--sky); color: var(--navy-deep-2); }

.card { background: var(--paper-raise); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 18px; min-width: 0; }
.card-title {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy);
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.card-subtitle { font-size: 12.5px; color: var(--ink-soft); margin: -2px 0 12px; }
.btn-csv {
  float: right; margin-left: 10px; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: var(--sky-strong); background: var(--paper-raise); border: 1px solid var(--sky); border-radius: 6px; padding: 3px 12px;
}
.btn-csv:hover { background: var(--sky); color: var(--navy-deep-2); transform: none; box-shadow: none; }
.grid-cuadros { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; align-items: start; }
.grid-cuadros .card { margin-bottom: 0; }
.grid-cuadros:has(.t42) { grid-template-columns: repeat(auto-fill, minmax(600px, 1fr)); }
.grid-cuadros:has(.t44, .t45) { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); }
.nota-tabla { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

/* Tabla con la forma del informe CONEAU */
.tbl-wrap { overflow-x: auto; }
table.coneau { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--paper-raise); }
table.coneau th {
  text-transform: none; letter-spacing: 0; white-space: normal;
  text-align: center; padding: 7px 9px; font-size: 12px; font-weight: 700;
  background: var(--navy); color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .14);
}
table.coneau thead tr + tr th { background: #2B4F86; color: #DCE7F7; font-weight: 600; font-size: 11.5px; }
table.coneau td { text-align: center; padding: 6px 9px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
table.coneau tbody tr:nth-child(even) td { background: var(--paper); }
table.coneau tbody tr:hover td { background: var(--sky-dim); }
table.coneau td:first-child { font-weight: 700; color: var(--navy); }
table.coneau tr.fila-vacia td { opacity: .4; }
table.coneau .num-zero { color: #8A97A8; }
table.coneau .num-pos { color: var(--ink); }
table.coneau .destacado { font-weight: 700; color: var(--navy); }
table.coneau .sin-datos { color: var(--ink-soft); font-weight: 400; }
table.coneau.compacta { max-width: 620px; font-size: 12.5px; }
/* Exámenes e ingresantes */
table.coneau.verde th, table.coneau.cons th.th-exam { background: #146C5A; }
table.coneau.verde thead tr + tr th, table.coneau.cons thead tr + tr th.th-exam { background: #1E8A73; color: #DDF3EC; }
table.coneau.verde td:first-child { color: #146C5A; }
table.t43 { max-width: 420px; }
table.t43 td:last-child { font-size: 14px; font-weight: 700; }
table.t42 { max-width: 900px; }
table.t424 { max-width: 1150px; font-size: 12px; }
table.t424 th { white-space: nowrap; }
/* Cursantes por cohorte (matriz triangular) */
table.t44 { font-size: 12px; }
table.t44 th { background: #4B3A8F; }
table.t44 thead tr + tr th { background: #6450B0; color: #ECE6FB; }
table.t44 td:first-child { color: #4B3A8F; }
table.coneau td.diagonal { background: #EEEAFB; font-weight: 700; color: #4B3A8F; }
table.coneau td.vacio, table.coneau td.vacio45 { background: #F5F6F8; color: #B9C0CA; }
table.coneau td.pct-abandono, table.coneau td.pct-abandono-r { font-weight: 700; color: #B3261E; }
table.coneau td.pct-ok { font-weight: 700; color: #1B7F4B; }
table.coneau td.pct-medio { font-weight: 700; color: #A8620E; }
/* Graduados por cohorte */
table.t45 { font-size: 12px; }
table.t45 th { background: #0B5F7A; }
table.t45 thead tr + tr th { background: var(--sky-strong); color: #E2F4FB; }
table.t45 td:first-child { color: #0B5F7A; }
table.coneau td.diagonal45 { background: #E1F3FA; font-weight: 700; color: #0B5F7A; }

/* Celdas que abren listado */
td.celda-lista { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
td.celda-lista:hover, td.celda-lista:focus { outline: 2px solid var(--sky); outline-offset: -2px; }

/* Cursada: lista de asignaturas */
.materias { display: grid; grid-template-columns: minmax(260px, 25%) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel-asignaturas { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; padding: 12px; }
.buscar-asignatura input[type=search] { width: 100%; }
input[type=search] {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--paper-raise);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 14px; min-width: 0;
}
input[type=search]:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-dim); }
.lista-asignaturas { list-style: none; margin: 10px 0 0; padding: 0; overflow-y: auto; flex: 1; }
.lista-asignaturas a {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 6px;
  padding: 5px 8px; border-radius: 6px; border-left: 3px solid transparent;
  text-decoration: none; color: var(--ink); font-size: 13.5px; line-height: 1.3;
}
.lista-asignaturas a:hover { background: var(--paper); }
.lista-asignaturas a[aria-current] { background: var(--sky-dim); border-left-color: var(--sky); }
.lista-asignaturas .anio-badge, .lista-asignaturas .cod-badge {
  font-size: 10.5px; background: var(--paper); color: var(--ink-soft); border-radius: 6px;
  padding: 1px 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lista-asignaturas .anio-badge { width: 3.5em; }
.lista-asignaturas .cod-badge { width: 7.5em; }
.lista-asignaturas .nombre { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-asignaturas .sin-resultados { padding: 16px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.cabecera-asignatura h2, .cabecera-integral h2 { font-size: 19px; margin: 0 0 2px; }
.cabecera-asignatura p, .cabecera-integral p { margin: 0 0 6px; }
.car-badge {
  display: inline-block; background: var(--sky-dim); color: var(--navy); font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 6px; margin: 2px 4px 2px 0;
}

/* Vista integral */
.kpi-row { display: flex; gap: 14px; margin: 12px 0 18px; flex-wrap: wrap; }
.kpi-card { flex: 1; min-width: 130px; background: var(--paper-raise); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-align: center; }
.kpi-val { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.kpi-lbl { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.kpi-year { font-size: 11px; color: var(--ink-soft); }
svg.grafico { width: 100%; max-width: 860px; height: auto; display: block; }
svg.grafico .grilla { stroke: var(--line-soft); stroke-width: 1; }
svg.grafico .eje { font-size: 10px; fill: var(--ink-soft); font-family: var(--font-body); }
svg.grafico .leyenda { font-size: 11px; fill: var(--ink); font-family: var(--font-body); }
svg.grafico .serie-1 { fill: #2a78d6; }
svg.grafico .serie-2 { fill: #eb6834; }
svg.grafico .serie-3 { fill: #1baf7a; }

/* Modal de listado */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(6, 13, 28, .55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
body.con-modal { overflow: hidden; }
.modal-caja { background: var(--paper-raise); border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); width: min(780px, 100%); max-height: 86vh; display: flex; flex-direction: column; }
.modal-cab { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-cab h2 { flex: 1; font-size: 16px; margin: 0; line-height: 1.35; }
.modal-cab small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; }
.modal-cerrar { background: var(--paper); color: var(--ink); border-radius: 6px; width: 32px; height: 32px; padding: 0; font-size: 20px; line-height: 1; }
.modal-cerrar:hover { background: var(--line-soft); transform: none; box-shadow: none; }
.modal-filtro { padding: 10px 20px; border-bottom: 1px solid var(--line-soft); }
.modal-filtro input { width: 100%; }
.modal-cuerpo { overflow: auto; padding: 0 20px 16px; }
.modal-cuenta { font-size: 12px; color: var(--ink-soft); margin: 10px 0 4px; }
.modal-cuerpo table { font-size: 13px; }
.modal-cuerpo th { position: sticky; top: 0; }
.modal-vacio { text-align: center; color: var(--ink-soft); padding: 30px 12px; }
.modal-acciones { padding: 10px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.modal-acciones .btn-csv { float: none; }

@media (max-width: 900px) {
  .pestanas-informe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .materias { grid-template-columns: 1fr; }
  .panel-asignaturas { position: static; max-height: 360px; }
  .filtro-carrera select { min-width: 0; width: 100%; }
  .grid-cuadros, .grid-cuadros:has(.t44, .t45) { grid-template-columns: 1fr; }
}
@media print {
  header.sitio, .barra-informe, .panel-asignaturas, nav.tabs, .btn-csv, .franja-ver-como { display: none !important; }
  .materias { display: block; }
  .card { break-inside: avoid; border-color: #ccc; }
}

/* ---------- pie ---------- */
footer.pie { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12.5px; }
footer.pie .envoltura { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 18px; }
