Compare commits

...
16 changed files with 97 additions and 175 deletions

No files matched your search

+17
View File
@@ -1,3 +1,4 @@
"""Routers FastAPI por módulo, con autoregistro, y lo que comparten: plantillas y navegación.
**Para agregar un router no se edita `app/main.py`.** Basta un módulo en este paquete que
@@ -18,6 +19,7 @@ exponga `router: APIRouter`; `montar_routers` lo descubre con `pkgutil.iter_modu
cada `render` (debe ser barata: una consulta de conteo).
"""
import hashlib
import importlib
import pkgutil
import re
@@ -147,6 +149,21 @@ plantillas.env.finalize = sin_marca_heredada
# `pendiente(clave)`.
plantillas.env.globals["textos"] = app.textos
def _version_estaticos() -> str:
"""Huella del contenido de `app/static/` (`?v=` de las hojas de estilo y los scripts): cambia
con cualquier archivo, no solo con la versión de la aplicación. Con `?v=` igual a la versión,
un cambio de estilos sin cambio de versión dejaba al navegador con la hoja anterior en caché."""
huella = hashlib.sha256()
for ruta in sorted((RAIZ_APP / "static").rglob("*")):
if ruta.is_file():
huella.update(ruta.relative_to(RAIZ_APP).as_posix().encode())
huella.update(ruta.read_bytes())
return huella.hexdigest()[:12]
plantillas.env.globals["version_estaticos"] = _version_estaticos()
# Plazo y vencimiento de una alerta como se muestran (una cerrada no vence; la D-01 de una carga
# es una revisión de 30 días).
plantillas.env.globals["plazo_de_alerta"] = lambda a: _alertas.etiqueta_plazo(
+65 -68
View File
@@ -49,7 +49,6 @@
--grafica-ejes: #8A929C;
/* Tipografía (self-hosted en /static/fuentes; ver 2. Base) */
--fuente: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--fuente-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--fuente-acceso: "Manrope", var(--fuente);
/* Forma */
--radio-sm: 6px;
@@ -93,8 +92,6 @@
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fuentes/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fuentes/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fuentes/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fuentes/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fuentes/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); 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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fuentes/manrope-latin-600-normal.woff2") format("woff2"); 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: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fuentes/manrope-latin-700-normal.woff2") format("woff2"); 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: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fuentes/manrope-latin-800-normal.woff2") format("woff2"); 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; }
@@ -110,7 +107,7 @@ a { color: var(--color-verde-texto); text-decoration: none; }
a:hover { color: var(--color-marino); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--fuente-mono); font-size: 12.5px; padding: 1px 6px; border-radius: 5px; background: var(--color-fondo); color: var(--color-texto); }
code { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12.5px; padding: 1px 6px; border-radius: 5px; background: var(--color-fondo); color: var(--color-texto); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--color-verde); outline-offset: 2px; }
[hidden] { display: none !important; }
@@ -139,11 +136,11 @@ strong { font-weight: 600; }
.marca { display: block; padding: 8px 12px 20px; color: inherit; }
.marca:hover { text-decoration: none; }
.marca .logo { width: 138px; }
.marca__ceja { display: block; margin-top: 10px; font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-verde-texto); }
.marca__ceja { display: block; margin-top: 10px; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-verde-texto); }
/* Un solo <nav class="nav"> y sin modificadores en el enlace: tests/test_auth.py cuenta
class="nav__enlace" y class="nav__enlace es-activo" exactos (Inicio y Cartera: data-principal). */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__seccion { padding: 24px 12px 8px; font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.nav__seccion { padding: 24px 12px 8px; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.nav__enlace {
display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 12px; border-radius: var(--radio-xs);
color: var(--color-texto); font-size: 14px; text-decoration: none;
@@ -157,10 +154,10 @@ strong { font-weight: 600; }
.nav__candado { width: 14px; height: 14px; opacity: 0.6; }
.nav__contador {
min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radio-pildora); background: var(--tono-aviso-fondo); color: var(--tono-aviso);
font-family: var(--fuente-mono); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
}
.nav__enlace.es-activo .nav__contador { background: rgba(255, 255, 255, 0.16); color: #fff; }
.lateral__pie { margin-top: auto; padding: 16px 12px 0; font-family: var(--fuente-mono); font-size: 11px; color: var(--color-texto-suave); }
.lateral__pie { margin-top: auto; padding: 16px 12px 0; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; color: var(--color-texto-suave); }
.principal { position: relative; min-width: 0; overflow-x: clip; }
.principal::before { /* destello verde (decorativo) */
content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: var(--color-verde);
@@ -178,7 +175,7 @@ strong { font-weight: 600; }
.encabezado__usuario form { margin: 0; }
.usuario { display: flex; align-items: center; gap: 10px; }
.usuario__nombre { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; }
.usuario__rol { display: block; font-family: var(--fuente-mono); font-size: 11px; color: var(--color-texto-suave); }
.usuario__rol { display: block; font-family: var(--fuente); font-size: 11px; color: var(--color-texto-suave); }
.avatar {
width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--color-verde); color: #fff;
display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
@@ -200,10 +197,10 @@ strong { font-weight: 600; }
.pagina__encabezado:has(> .pagina__titulo) { flex-direction: column; align-items: flex-start; gap: 8px; }
.pagina__textos { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 760px; }
.pagina__textos--ancho { max-width: none; }
.pagina__ceja { font-family: var(--fuente-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-verde-texto); }
.pagina__ceja { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-verde-texto); }
.pagina__titulo { font-size: 30px; font-weight: 600; line-height: 1.15; text-wrap: pretty; }
.pagina__titulo--28 { font-size: 28px; line-height: 1.2; }
.pagina__titulo--id { font-family: var(--fuente-mono); font-weight: 500; letter-spacing: -0.01em; word-break: break-all; }
.pagina__titulo--id { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -0.01em; word-break: break-all; }
.pagina__bajada { font-size: 15px; line-height: 1.5; color: var(--color-texto-suave); max-width: 720px; text-wrap: pretty; }
.pagina__meta { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--color-texto-suave); }
.pagina__acciones { display: flex; gap: 10px; flex-wrap: wrap; }
@@ -246,12 +243,12 @@ strong { font-weight: 600; }
a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-sutil); color: var(--color-texto); text-decoration: none; }
/* Cifra seleccionada (filtro activo): un solo estilo en toda la app. */
.resumen__cifra.es-seleccionada, .resumen__cifra[aria-current="true"] { background: rgba(63, 138, 124, 0.08); box-shadow: inset 0 -2px 0 var(--color-verde); }
.resumen__etiqueta { display: flex; align-items: center; gap: 7px; font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.resumen__etiqueta { display: flex; align-items: center; gap: 7px; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.resumen__etiqueta .punto { width: 7px; height: 7px; background: var(--punto, currentColor); }
.resumen__valor { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.resumen__valor strong { font-size: 24px; font-weight: 600; line-height: 1; white-space: nowrap; }
.resumen__valor strong.resumen__valor--20 { font-size: 20px; }
.resumen__valor small { font-family: var(--fuente-mono); font-size: 12.5px; color: var(--color-texto-suave); }
.resumen__valor small { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--color-texto-suave); }
.resumen__nota { font-size: 12.5px; color: var(--color-texto-suave); }
.resumen--interna { border: 0; border-radius: 0; border-bottom: 1px solid var(--color-borde-suave); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.resumen--interna .resumen__cifra { padding: 16px 24px; gap: 8px; }
@@ -278,11 +275,11 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
.totales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.totales__tarjeta { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 22px; border-radius: var(--radio-tarjeta); background: var(--color-marino); color: #fff; }
.totales__tarjeta strong { font-size: 26px; font-weight: 600; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.totales__tarjeta span { font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.totales__tarjeta span { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.facetas__grupo { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; gap: 10px 24px; padding: 16px 22px; }
.facetas__grupo + .facetas__grupo { border-top: 1px solid var(--color-borde-suave); }
.facetas__textos { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facetas__titulo { font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto); font-weight: 500; }
.facetas__titulo { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto); font-weight: 500; }
.facetas__ayuda { font-size: 13px; line-height: 1.35; color: var(--color-texto-suave); }
.segmentos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.segmento {
@@ -294,7 +291,7 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
.segmento__nombre { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segmento__nombre .punto { width: 7px; height: 7px; flex: none; background: var(--punto, var(--color-marino)); }
.segmento__fila strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.segmento__fila small { flex: none; min-width: 34px; text-align: right; font-family: var(--fuente-mono); font-size: 11.5px; color: var(--color-texto-suave); }
.segmento__fila small { flex: none; min-width: 34px; text-align: right; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--color-texto-suave); }
.segmento__barra { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--color-borde-suave); overflow: hidden; }
.segmento__barra::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--parte, 0%); border-radius: 2px; background: var(--punto, var(--color-marino)); }
.segmento--todos { --punto: var(--color-texto-tenue); }
@@ -314,12 +311,12 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
/* 4.4 Datos (dl) ------------------------------------------------------------------------------ */
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; }
.datos__par { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.datos__par dt { font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); line-height: 1.4; }
.datos__par dt { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); line-height: 1.4; }
/* :where() deja el dd en especificidad de elemento: una clase propia del dd (dd.score, dd.umbral
de screening/*) conserva su tamaño. */
:where(.datos__par) dd { font-size: 14.5px; font-weight: 500; word-break: break-word; }
.datos__par dd small, .datos__nota { display: block; font-family: var(--fuente-mono); font-size: 12px; font-weight: 400; color: var(--color-texto-suave); margin-top: 2px; }
.datos--metricas dd { font-family: var(--fuente-mono); font-size: 18px; font-weight: 500; }
.datos__par dd small, .datos__nota { display: block; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 400; color: var(--color-texto-suave); margin-top: 2px; }
.datos--metricas dd { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 500; }
.datos--metricas dd.texto { font-family: var(--fuente); }
/* Rejilla con líneas de 1px (datos operativos, campos de cartera, hechos). El -1px deja que la
tarjeta recorte las líneas del borde. */
@@ -333,12 +330,12 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
.hechos { grid-template-columns: 1fr 1fr; margin: 0; gap: 1px; background: var(--color-borde-suave); border: 1px solid var(--color-borde); border-radius: var(--radio-md); overflow: hidden; }
.hechos .datos__par { box-shadow: none; padding: 12px 14px; gap: 4px; }
.hechos dt { font-size: 10.5px; }
.hechos dd { font-family: var(--fuente-mono); font-size: 13.5px; font-weight: 400; }
.hechos dd { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 400; }
.datos--lista { display: block; }
.datos--lista .datos__par { display: grid; grid-template-columns: minmax(140px, 180px) minmax(0, 1fr); gap: 8px 24px; padding: 16px 24px; border-bottom: 1px solid var(--color-borde-suave); }
.datos--lista .datos__par:last-child { border-bottom: 0; }
.datos--lista dt { font-family: var(--fuente); font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--color-texto); }
.datos--lista dt small { display: block; margin-top: 2px; font-family: var(--fuente-mono); font-size: 11.5px; font-weight: 400; color: var(--color-texto-suave); }
.datos--lista dt small { display: block; margin-top: 2px; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11.5px; font-weight: 400; color: var(--color-texto-suave); }
.datos--lista dd { font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--color-texto-cuerpo); display: flex; flex-direction: column; gap: 8px; text-wrap: pretty; }
/* Bloques divididos con línea vertical (Sujeto obligado) */
.bloques { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border-bottom: 1px solid var(--color-borde-suave); }
@@ -352,7 +349,7 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
.tabla-contenedor--alto { max-height: 520px; overflow-y: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th {
text-align: left; padding: 12px 16px; font-family: var(--fuente-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
text-align: left; padding: 12px 16px; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
text-transform: uppercase; color: var(--color-texto-suave); background: var(--color-sutil); border-bottom: 1px solid var(--color-borde); white-space: nowrap;
}
.tabla--blanca th { background: var(--color-superficie); }
@@ -376,29 +373,29 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
.tabla__ir { width: 40px; text-align: right; }
.tabla__ir .icono { width: 16px; height: 16px; opacity: 0.45; }
.fila-enlace { cursor: pointer; }
.id-enlace { font-family: var(--fuente-mono); font-size: 13.5px; font-weight: 500; color: var(--color-verde-texto); white-space: nowrap; }
.id-cliente { font-family: var(--fuente-mono); font-size: 13px; color: var(--color-texto); border-bottom: 1px dashed var(--color-borde-fuerte); white-space: nowrap; }
.id-enlace { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 500; color: var(--color-verde-texto); white-space: nowrap; }
.id-cliente { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--color-texto); border-bottom: 1px dashed var(--color-borde-fuerte); white-space: nowrap; }
.id-cliente:hover { color: var(--color-verde-texto); text-decoration: none; }
.vence { display: block; font-family: var(--fuente-mono); font-size: 13px; line-height: 1.35; white-space: nowrap; }
.vence { display: block; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13px; line-height: 1.35; white-space: nowrap; }
.vence__rel { display: block; font-size: 12px; color: var(--color-texto-suave); }
.vence__rel.es-vencida { color: var(--tono-peligro); font-weight: 500; }
.celda-doble { line-height: 1.35; }
.celda-doble b { display: block; font-size: 13.5px; font-weight: 500; }
.celda-doble small { display: block; font-family: var(--fuente-mono); font-size: 11.5px; color: var(--color-texto-suave); }
.celda-doble small { display: block; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--color-texto-suave); }
.celda-regla { max-width: 340px; }
.punto[data-nivel-alerta="critica"] { background: var(--tono-peligro); }
.punto[data-nivel-alerta="preventiva"] { background: var(--tono-aviso-punto); }
.punto[data-nivel-alerta="informativa"] { background: var(--color-verde); }
.celda-num { font-family: var(--fuente-mono); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.celda-fecha { font-family: var(--fuente-mono); font-size: 13px; color: var(--color-texto-suave); white-space: nowrap; }
.desglose { font-family: var(--fuente-mono); font-size: 12px; color: var(--color-texto-suave); white-space: nowrap; }
.celda-num { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.celda-fecha { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--color-texto-suave); white-space: nowrap; }
.desglose { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--color-texto-suave); white-space: nowrap; }
.desglose--envuelve { white-space: normal; min-width: 240px; max-width: 340px; line-height: 1.45; }
.barra-score { position: relative; display: inline-block; width: 72px; height: 4px; border-radius: var(--radio-pildora); background: var(--color-borde-suave); overflow: hidden; vertical-align: middle; }
.barra-score > span { position: absolute; inset: 0 auto 0 0; width: var(--valor, 0%); border-radius: inherit; background: var(--punto, var(--color-verde)); }
/* .score acotado a tablas: screening/detalle.html usa dd.score con su propio estilo. */
.tabla .score { display: inline-flex; align-items: center; gap: 10px; }
.tabla .score > b { width: 40px; text-align: right; font-family: var(--fuente-mono); font-size: 13.5px; font-weight: 500; }
.encabezado-rejilla { display: grid; grid-template-columns: repeat(6, auto); gap: 12px; padding: 10px 24px; background: var(--color-sutil); border-bottom: 1px solid var(--color-borde-suave); font-family: var(--fuente-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); overflow: hidden; }
.tabla .score > b { width: 40px; text-align: right; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 500; }
.encabezado-rejilla { display: grid; grid-template-columns: repeat(6, auto); gap: 12px; padding: 10px 24px; background: var(--color-sutil); border-bottom: 1px solid var(--color-borde-suave); font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); overflow: hidden; }
/* 4.6 Badges (macros badge, badge_nivel, badge_estado_alerta, badge_nivel_alerta) y etiquetas -- */
.badge {
@@ -431,7 +428,7 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
/* Etiquetas cuadradas (códigos, catálogos, lotes, versiones) */
.etiqueta {
display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radio-sm); background: var(--color-fondo);
color: var(--color-texto-suave); font-family: var(--fuente-mono); font-size: 12px; white-space: nowrap; vertical-align: middle;
color: var(--color-texto-suave); font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; vertical-align: middle;
}
.etiqueta--alta { height: 26px; padding: 0 10px; border-radius: 7px; }
.etiqueta--catalogo { height: 24px; padding: 0 9px; color: var(--color-texto); }
@@ -451,7 +448,7 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
.chip:hover { border-color: var(--color-borde-hover); color: var(--color-texto); text-decoration: none; }
.chip.es-activo, .chip[aria-pressed="true"], .chip[aria-current="true"], .chip:has(input:checked) { background: var(--color-marino); border-color: var(--color-marino); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--color-verde); outline-offset: 2px; }
.chip--mono { height: 36px; padding: 0 14px; font-family: var(--fuente-mono); }
.chip--mono { height: 36px; padding: 0 14px; font-family: var(--fuente); font-variant-numeric: tabular-nums; }
.pestanas {
display: flex; gap: 4px; overflow-x: auto; width: fit-content; max-width: 100%; padding: 5px; margin: 0; list-style: none;
border-radius: var(--radio-md); background: var(--vidrio); border: 1px solid var(--color-borde); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
@@ -463,10 +460,10 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
.pestanas a:hover, .pestanas button:hover { background: #fff; color: var(--color-texto); text-decoration: none; }
.pestanas [aria-current="page"], .pestanas [aria-selected="true"] { background: var(--color-marino); color: #fff; }
.pestanas [aria-current="page"]:hover, .pestanas [aria-selected="true"]:hover { background: var(--color-marino); color: #fff; }
.pestanas small { font-family: var(--fuente-mono); font-size: 11.5px; opacity: 0.65; }
.pestanas small { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11.5px; opacity: 0.65; }
/* Índice fijo de anclas (ficha del cliente) */
.pestanas--ancla { position: sticky; top: 0; z-index: 5; width: auto; margin: 0 -6px; padding: 6px; border: 0; background: rgba(242, 242, 242, 0.82); }
.pestanas--ancla .badge { height: 18px; min-width: 18px; padding: 0 5px; justify-content: center; font-family: var(--fuente-mono); font-size: 11px; }
.pestanas--ancla .badge { height: 18px; min-width: 18px; padding: 0 5px; justify-content: center; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; }
.pestanas--ancla .badge::before { display: none; }
/* 4.8 Botones y paginación --------------------------------------------------------------------- */
@@ -509,11 +506,11 @@ form:has(input[type="file"]:valid) .boton--rojo-con-archivo:not([disabled]):hove
.boton--icono { width: 36px; height: 36px; padding: 0; border-radius: 9px; }
.boton--icono.boton--chico { width: 32px; height: 32px; }
.paginacion { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; }
.paginacion__rango { font-family: var(--fuente-mono); font-size: 12px; color: var(--color-texto-suave); }
.paginacion__rango { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--color-texto-suave); }
.paginacion__paginas { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.paginacion__pagina {
min-width: 36px; height: 36px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--color-borde); background: #fff; color: var(--color-texto);
font-family: var(--fuente-mono); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.paginacion__pagina:hover { border-color: var(--color-verde); color: var(--color-texto); text-decoration: none; }
.paginacion__pagina[aria-current="page"] { background: var(--color-marino); border-color: var(--color-marino); color: #fff; }
@@ -521,7 +518,7 @@ form:has(input[type="file"]:valid) .boton--rojo-con-archivo:not([disabled]):hove
.paginacion__pagina .icono { width: 16px; height: 16px; }
.paginacion--simple .paginacion__pagina { min-width: 32px; height: 32px; }
.paginacion--simple .paginacion__pagina:hover { border-color: var(--color-borde-hover); }
.paginacion__hueco { min-width: 24px; text-align: center; color: var(--color-texto-suave); font-family: var(--fuente-mono); font-size: 13px; }
.paginacion__hueco { min-width: 24px; text-align: center; color: var(--color-texto-suave); font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13px; }
/* 4.9 Formularios (campo, campo__entrada) ------------------------------------------------------ */
.formulario { display: flex; flex-direction: column; gap: 18px; }
@@ -535,7 +532,7 @@ form:has(input[type="file"]:valid) .boton--rojo-con-archivo:not([disabled]):hove
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo__etiqueta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1.35; }
.campo__etiqueta--inicio { justify-content: flex-start; align-items: center; }
.campo__etiqueta small { font-family: var(--fuente-mono); font-weight: 400; color: var(--color-texto-suave); }
.campo__etiqueta small { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-weight: 400; color: var(--color-texto-suave); }
.campo__control { position: relative; }
.campo__entrada {
width: 100%; height: 42px; padding: 0 12px; border-radius: var(--radio-boton); border: 1px solid var(--color-borde); background: #fff;
@@ -544,7 +541,7 @@ form:has(input[type="file"]:valid) .boton--rojo-con-archivo:not([disabled]):hove
.campo__entrada:focus { border-color: var(--color-verde); box-shadow: var(--anillo-foco); }
.campo__entrada::placeholder { color: var(--color-texto-tenue); }
.campo__entrada:disabled { background: var(--color-sutil); }
.campo__entrada--mono { font-family: var(--fuente-mono); font-size: 13.5px; }
.campo__entrada--mono { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.campo__entrada--38 { height: 38px; padding: 0 10px; }
select.campo__entrada {
appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis;
@@ -557,7 +554,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.campo--crece { flex: 1 1 320px; }
.campo--buscar .campo__entrada { padding-left: 40px; }
.campo--buscar .campo__control > .icono { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; opacity: 0.55; pointer-events: none; }
.campo__prefijo, .campo__sufijo { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--fuente-mono); color: var(--color-texto-suave); pointer-events: none; }
.campo__prefijo, .campo__sufijo { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--fuente); font-variant-numeric: tabular-nums; color: var(--color-texto-suave); pointer-events: none; }
.campo__prefijo { left: 12px; font-size: 14px; }
.campo__sufijo { right: 12px; font-size: 12px; letter-spacing: 0.04em; }
.campo__control:has(.campo__prefijo) .campo__entrada { padding-left: 28px; }
@@ -569,7 +566,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.campo__ayuda { font-size: 12.5px; color: var(--color-texto-suave); line-height: 1.4; }
.campo__error { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--tono-peligro); line-height: 1.4; }
.campo__error::before { content: ""; width: 6px; height: 6px; margin-top: 5px; flex: none; border-radius: 50%; background: currentColor; }
.contador { font-family: var(--fuente-mono); font-size: 12px; color: var(--color-texto-suave); }
.contador { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--color-texto-suave); }
.contador.es-suficiente { color: var(--tono-exito); }
/* Casilla (checkbox en caja) */
.casilla { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radio-boton); border: 1px solid var(--color-borde); background: #fff; font-size: 14px; cursor: pointer; }
@@ -607,9 +604,9 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.zona-archivo__ayuda { font-size: 12.5px; color: var(--color-texto-suave); }
.zona-archivo--grande .zona-archivo__ayuda { font-size: 13px; }
.archivo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radio-md); border: 1px solid var(--color-borde); background: var(--color-sutil); }
.archivo__ext { width: 40px; height: 40px; flex: none; border-radius: var(--radio-boton); background: #fff; border: 1px solid var(--color-borde); display: flex; align-items: center; justify-content: center; font-family: var(--fuente-mono); font-size: 10.5px; font-weight: 500; color: var(--tono-exito); text-transform: uppercase; }
.archivo__ext { width: 40px; height: 40px; flex: none; border-radius: var(--radio-boton); background: #fff; border: 1px solid var(--color-borde); display: flex; align-items: center; justify-content: center; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 10.5px; font-weight: 500; color: var(--tono-exito); text-transform: uppercase; }
.archivo__textos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.archivo__nombre { font-family: var(--fuente-mono); font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archivo__nombre { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archivo__meta { font-size: 12.5px; color: var(--color-texto-suave); }
/* Franja de filtros bajo el encabezado de una tarjeta */
.filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 14px; padding: 16px 24px 18px; background: var(--color-sutil); border-bottom: 1px solid var(--color-borde); align-items: end; }
@@ -711,9 +708,9 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.cumplimiento__titulo { font-size: 14.5px; font-weight: 600; }
.cumplimiento__detalle { font-size: 14px; line-height: 1.45; color: var(--color-texto-tenue); text-wrap: pretty; min-width: 0; }
.cumplimiento__renglon.es-vencido .cumplimiento__titulo, .cumplimiento__renglon.es-vencido .cumplimiento__detalle { color: var(--tono-peligro); }
.cumplimiento__renglon .badge { font-family: var(--fuente-mono); font-size: 12px; }
.cumplimiento__renglon .badge { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; }
.cumplimiento__renglon.es-cero .cumplimiento__detalle { color: var(--color-texto-suave); }
.cumplimiento__renglon .cumplimiento__detalle a[data-cifra] { font-family: var(--fuente-mono); font-weight: 600; }
.cumplimiento__renglon .cumplimiento__detalle a[data-cifra] { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-weight: 600; }
.cumplimiento__alertas { padding: 0 24px 14px; overflow-x: auto; }
.cumplimiento__alertas tr.es-vencida td { color: var(--tono-peligro); }
[data-momento="vigente"] { --punto: #3F8A7C; }
@@ -729,7 +726,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.recorrido__arriba, .recorrido__abajo { display: flex; justify-content: space-between; gap: 12px; }
.recorrido__arriba { align-items: center; }
.recorrido__abajo { align-items: flex-end; }
.recorrido__numero { font-family: var(--fuente-mono); font-size: 12px; color: var(--color-texto-suave); }
.recorrido__numero { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--color-texto-suave); }
.recorrido__titulo { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.recorrido__estado { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--color-verde-fuerte); }
.recorrido__estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-verde); }
@@ -740,7 +737,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 18px -10px rgba(63, 138, 124, 0.8);
color: #fff; display: flex; align-items: center; justify-content: center;
}
.indicador { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fuente-mono); font-size: 12px; color: var(--color-verde-fuerte); white-space: nowrap; }
.indicador { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--color-verde-fuerte); white-space: nowrap; }
.indicador::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--punto, var(--color-verde)); }
.indicador--gris { height: 28px; padding: 0 12px; border-radius: var(--radio-pildora); background: var(--color-fondo); font-family: var(--fuente); font-size: 12.5px; color: var(--color-texto-suave); }
@@ -754,7 +751,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.seccion-numerada .formulario__rejilla { padding: 22px 24px 24px; }
.anillo {
width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--color-borde-fuerte); background: #fff; color: var(--color-texto);
font-family: var(--fuente-mono); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
}
.anillo .icono { display: none; width: 14px; height: 14px; }
.anillo--chico { width: 22px; height: 22px; font-size: 11px; }
@@ -767,7 +764,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.indice a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--color-texto); text-decoration: none; }
.indice a:hover { background: var(--color-sutil); color: var(--color-texto); text-decoration: none; }
.indice__titulo { flex: 1; font-size: 14px; line-height: 1.3; }
.indice__cuenta { font-family: var(--fuente-mono); font-size: 11.5px; color: var(--color-texto-suave); }
.indice__cuenta { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--color-texto-suave); }
[data-estado-seccion="completa"] .indice__cuenta { color: var(--tono-exito); }
[data-estado-seccion="error"] .indice__cuenta { color: var(--tono-peligro); }
.avance { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 16px; border-bottom: 1px solid var(--color-borde-suave); }
@@ -780,8 +777,8 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.lista-verificacion .icono { width: 15px; height: 15px; margin-top: 2px; color: var(--color-verde-texto); }
.personas { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 24px; }
.personas__fila { display: grid; grid-template-columns: 28px minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 10px; align-items: center; }
.personas__fila--titulos { font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.personas__n { width: 28px; height: 28px; border-radius: var(--radio-xs); background: var(--color-fondo); font-family: var(--fuente-mono); font-size: 12px; color: var(--color-texto-suave); display: flex; align-items: center; justify-content: center; }
.personas__fila--titulos { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.personas__n { width: 28px; height: 28px; border-radius: var(--radio-xs); background: var(--color-fondo); font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--color-texto-suave); display: flex; align-items: center; justify-content: center; }
.personas__quitar { width: 40px; height: 40px; border-radius: var(--radio-boton); border: 1px solid transparent; background: transparent; color: var(--color-texto-suave); font-size: 20px; line-height: 1; }
.personas__quitar:hover { background: var(--color-sutil); border-color: var(--color-borde); }
.personas__quitar:disabled { opacity: 0.3; cursor: default; }
@@ -795,10 +792,10 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.requisito.es-completo .requisito__marca { border: 0; background: var(--color-verde); }
.requisito__texto { flex: 1; font-size: 14px; line-height: 1.4; text-wrap: pretty; }
.listas { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 18px 24px 6px; }
.listas__item { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--color-sutil); border: 1px solid var(--color-borde-suave); font-family: var(--fuente-mono); font-size: 12.5px; font-weight: 500; }
.listas__item { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--color-sutil); border: 1px solid var(--color-borde-suave); font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 500; }
.listas__item .icono { width: 14px; height: 14px; color: var(--color-verde-texto); }
.listas__item.es-coincidencia { background: var(--tono-peligro-fondo); border-color: var(--tono-peligro-borde); color: var(--tono-peligro); }
.score-grande { font-family: var(--fuente-mono); font-size: 30px; font-weight: 500; line-height: 1; }
.score-grande { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 500; line-height: 1; }
.acordeon > summary { list-style: none; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid var(--color-borde-suave); cursor: pointer; }
.acordeon > summary::-webkit-details-marker { display: none; }
.acordeon > summary:hover { background: var(--color-sutil); }
@@ -821,7 +818,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.grupo-opciones > legend { padding: 0; margin-bottom: 8px; }
/* Perfil declarado contra observado (operaciones/_perfil.html: ficha y detalle de crédito) */
.celda-criterio { padding-left: 28px !important; line-height: 1.45; text-wrap: pretty; }
.regla-ref { margin-left: 6px; font-family: var(--fuente-mono); font-size: 11.5px; color: var(--tono-exito); white-space: nowrap; }
.regla-ref { margin-left: 6px; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--tono-exito); white-space: nowrap; }
.sub-linea { margin-top: 3px; }
/* Beneficiario controlador: grafo (static/beneficiario.js lo dibuja en svg#grafo) */
@@ -838,7 +835,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.linea-tiempo__evento { position: relative; display: flex; flex-direction: column; gap: 6px; margin-left: 5px; padding: 12px 0 14px 24px; border-left: 2px solid var(--color-borde-suave); }
.linea-tiempo__evento:last-child { border-left-color: transparent; }
.linea-tiempo__evento::before { content: ""; position: absolute; left: -8px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--punto, var(--color-texto-tenue)); }
.linea-tiempo__fecha { font-family: var(--fuente-mono); font-size: 12.5px; font-weight: 500; color: var(--color-texto); }
.linea-tiempo__fecha { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 500; color: var(--color-texto); }
.linea-tiempo__evento[data-tipo="apertura"] { --punto: var(--color-marino); }
.linea-tiempo__evento[data-tipo="nota"], .linea-tiempo__evento[data-tipo="documento"] { --punto: var(--color-verde); }
.linea-tiempo__evento[data-tipo="cambio_estado"], .linea-tiempo__evento[data-tipo="asignacion"] { --punto: var(--tono-aviso-punto); }
@@ -857,10 +854,10 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.nivel:hover { border-color: var(--color-borde-hover); color: var(--color-texto); text-decoration: none; }
.nivel.es-activo, .nivel[aria-current="true"] { border-color: var(--color-marino); background: var(--color-sutil); }
.nivel__arriba { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.nivel__rango { font-family: var(--fuente-mono); font-size: 11.5px; color: var(--color-texto-suave); }
.nivel__rango { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--color-texto-suave); }
.nivel__cifra { display: flex; align-items: baseline; gap: 8px; }
.nivel__cifra strong { font-size: 28px; font-weight: 600; line-height: 1; }
.nivel__cifra small { font-family: var(--fuente-mono); font-size: 13px; color: var(--color-texto-suave); }
.nivel__cifra small { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--color-texto-suave); }
[data-nivel-riesgo="bajo"] { --punto: #3F8A7C; }
[data-nivel-riesgo="medio"] { --punto: #B7791F; }
[data-nivel-riesgo="alto"] { --punto: #A8321F; }
@@ -879,7 +876,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.ventana__base { left: 0; right: 0; background: var(--color-fondo); }
.ventana__vigente { left: 0; width: var(--ancho, 0%); background: rgba(17, 29, 46, 0.22); }
.ventana__nueva { left: var(--pos, 0%); right: 0; background: var(--color-verde); opacity: 0.85; }
.ventana__fecha { position: absolute; top: 0; left: var(--pos, 0%); transform: translateX(-50%); font-family: var(--fuente-mono); font-size: 11px; color: var(--color-texto-suave); white-space: nowrap; }
.ventana__fecha { position: absolute; top: 0; left: var(--pos, 0%); transform: translateX(-50%); font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; color: var(--color-texto-suave); white-space: nowrap; }
.ventana__fecha--abajo { top: 24px; }
.ventana__fecha--inicio { transform: none; }
.ventana__fecha--fin { left: auto; right: 0; transform: none; }
@@ -891,7 +888,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.leyenda__nueva { --punto: var(--color-verde); }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; }
.pasos__item { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; border-right: 1px solid var(--color-borde-suave); border-bottom: 1px solid var(--color-borde-suave); margin-bottom: -1px; }
.pasos__n { width: 26px; height: 26px; border-radius: 50%; background: var(--color-marino); color: #fff; font-family: var(--fuente-mono); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.pasos__n { width: 26px; height: 26px; border-radius: 50%; background: var(--color-marino); color: #fff; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.pasos__titulo { font-size: 14px; font-weight: 600; }
.pasos__texto { font-size: 13.5px; line-height: 1.55; color: var(--color-texto-suave); text-wrap: pretty; }
@@ -915,10 +912,10 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.lab__lateral { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.indicadores { min-width: 640px; }
.indicadores__fila { display: grid; grid-template-columns: minmax(150px, 1.1fr) 92px minmax(0, 2.4fr); gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--color-borde-suave); align-items: start; }
.indicadores__fila--titulos { padding: 11px 24px; background: var(--color-sutil); border-bottom-color: var(--color-borde); font-family: var(--fuente-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.indicadores__fila--titulos { padding: 11px 24px; background: var(--color-sutil); border-bottom-color: var(--color-borde); font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); }
.indicadores__nombre { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; min-width: 0; font-size: 14px; line-height: 1.35; text-wrap: pretty; }
.indicadores__nombre b { font-family: var(--fuente-mono); font-weight: 500; color: var(--color-verde-texto); }
.indicadores__nombre small { font-family: var(--fuente-mono); font-size: 11.5px; color: var(--color-texto-suave); word-break: break-all; }
.indicadores__nombre b { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--color-verde-texto); }
.indicadores__nombre small { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--color-texto-suave); word-break: break-all; }
/* Cuántos niveles tiene cada indicador lo decide el modelo, no la hoja (CLAUDE.md). */
.indicadores__niveles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.indicadores__nivel { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@@ -930,7 +927,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.lab input.campo__entrada:invalid { border-color: var(--tono-peligro); background: var(--tono-peligro-fondo); }
.lab__mensajes { display: flex; flex-direction: column; gap: 8px; }
.lab__mensajes:empty { display: none; }
.suma { display: flex; align-items: center; gap: 8px; padding: 14px 24px; font-family: var(--fuente-mono); font-size: 13.5px; color: var(--tono-exito); }
.suma { display: flex; align-items: center; gap: 8px; padding: 14px 24px; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--tono-exito); }
.suma.es-error { color: var(--tono-peligro); font-weight: 500; }
.umbrales { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 18px 24px 22px; }
/* Acotado a .umbrales: screening/listas.html usa dd.umbral con su propio estilo. */
@@ -956,12 +953,12 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
/* 6. Utilidades (al final para ganar a los componentes) ===================================== */
.mono { font-family: var(--fuente-mono); }
.cifra { font-family: var(--fuente-mono); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--fuente); font-variant-numeric: tabular-nums; }
.cifra { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums; }
.es-der { text-align: right; }
.es-centro { text-align: center; }
.sin-salto { white-space: nowrap; }
.rotulo { font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); line-height: 1.4; }
.rotulo { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); line-height: 1.4; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.punto { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.separador { width: 3px; height: 3px; border-radius: 50%; background: var(--color-texto-tenue); flex: none; }
@@ -1071,7 +1068,7 @@ textarea.campo__entrada--compacta { min-height: 84px; padding: 10px 12px; }
.consola__titulo { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.consola__cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding: 16px 20px; margin: 0; }
.consola__cifras dt { font-size: 12px; color: var(--color-texto-suave); text-transform: uppercase; letter-spacing: 0.06em; }
.consola__cifras dd { margin: 4px 0 0; font-family: var(--fuente-mono); font-size: 24px; font-weight: 600; }
.consola__cifras dd { margin: 4px 0 0; font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 600; }
.acceso__texto { font-size: 14px; color: var(--color-texto-cuerpo); text-align: center; }
.consola__filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--color-borde-suave); }
.consola__filtros .campo__entrada { height: 36px; width: auto; min-width: 180px; }
+3 -2
View File
@@ -1,10 +1,11 @@
Fuentes self-hosted de collina-pld (sin CDN en tiempo de ejecución).
Origen: paquetes npm @fontsource/ibm-plex-sans, @fontsource/ibm-plex-mono y @fontsource/manrope,
Origen: paquetes npm @fontsource/ibm-plex-sans y @fontsource/manrope,
versión 5.3.0, descargados de cdn.jsdelivr.net (solo los .woff2; npm no entra al proyecto).
Subconjunto "latin": 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.
IBM Plex Sans 400/500/600 e IBM Plex Mono 400/500: toda la app.
IBM Plex Sans 400/500/600: toda la app (donde los números deben alinearse, con
font-variant-numeric: tabular-nums; la app no usa fuente monoespaciada).
Manrope 600/700/800: solo la pantalla de acceso.
Las @font-face viven en app/static/app.css. Licencia: SIL Open Font License 1.1 (LICENCIA-*.txt).
@@ -1,93 +0,0 @@
Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
+2 -2
View File
@@ -84,13 +84,13 @@
}
// Solo lo visual sale de tokens de app.css (--grafica-*, --fuente*): barras con esquinas
// superiores de 4 px, rejilla tenue, ejes en mono y leyenda arriba al centro.
// superiores de 4 px, rejilla tenue, ejes con cifras tabulares y leyenda arriba al centro.
function dibujar(vigente, simulada) {
const lienzo = $("#lab-grafica");
if (!window.Chart || !lienzo) return;
const estilo = getComputedStyle(document.documentElement);
const token = (variable) => estilo.getPropertyValue(variable).trim();
const ejes = { color: token("--grafica-ejes"), font: { family: token("--fuente-mono"), size: 10.5 } };
const ejes = { color: token("--grafica-ejes"), font: { family: token("--fuente"), size: 10.5 } };
const barra = { borderRadius: 4, maxBarThickness: 44, categoryPercentage: 0.7, barPercentage: 0.9 };
const datos = {
labels: ["Bajo", "Medio", "Alto"],
+1 -1
View File
@@ -7,7 +7,7 @@
{{ cifra("Liquidados", p.conteos.liquidado, href="/creditos?status=liquidado") }}
</div>
etiqueta rótulo en mono, arriba
etiqueta rótulo en mayúsculas, arriba
valor cifra grande (texto o Markup)
nota texto chico junto a la cifra
pie línea de ayuda debajo (.resumen__nota)
+1 -1
View File
@@ -11,7 +11,7 @@
{% set acciones %}<a class="boton boton--chico" href="…">Ver</a>{% endset %}
{% call tarjeta("Créditos", acciones=acciones) %}…{% endcall %}
Un {% set %} de bloque es Markup y no se escapa; una cadena normal sí.
Igual con `subtitulo` si lleva marcado (cifras en mono, enlaces).
Igual con `subtitulo` si lleva marcado (cifras tabulares, enlaces).
plano True: el cuerpo sin relleno (tablas, listas y rejillas a sangre).
id id de la sección (anclas del índice de la ficha).
clase clases extra de la sección (tarjeta--vidrio, tarjeta--alerta, ancla…).
+2 -2
View File
@@ -24,7 +24,7 @@
<title>{% block titulo %}Inicio{% endblock %} · PLD/FT</title>
<link rel="icon" type="image/png" href="/static/img/favicon.png">
<link rel="preload" href="/static/fuentes/ibm-plex-sans-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="/static/app.css?v={{ version }}">
<link rel="stylesheet" href="/static/app.css?v={{ version_estaticos }}">
{%- block cabecera %}{% endblock %}
</head>
<body>
@@ -115,7 +115,7 @@
{%- endif %}
<div class="toasts" id="toasts" aria-live="polite"></div>
<script src="/static/app.js?v={{ version }}" defer></script>
<script src="/static/app.js?v={{ version_estaticos }}" defer></script>
{%- block scripts %}{% endblock %}
</body>
</html>
+1 -1
View File
@@ -198,5 +198,5 @@
{% endblock %}
{% block scripts %}
<script src="/static/beneficiario.js?v={{ version }}" defer></script>
<script src="/static/beneficiario.js?v={{ version_estaticos }}" defer></script>
{% endblock %}
+1 -1
View File
@@ -73,5 +73,5 @@
{% endblock %}
{% block scripts %}
<script src="/static/alta.js?v={{ version }}" defer></script>
<script src="/static/alta.js?v={{ version_estaticos }}" defer></script>
{% endblock %}
+1 -1
View File
@@ -126,5 +126,5 @@
{% endblock %}
{% block scripts %}
<script src="/static/alta.js?v={{ version }}" defer></script>
<script src="/static/alta.js?v={{ version_estaticos }}" defer></script>
{% endblock %}
+1 -1
View File
@@ -162,5 +162,5 @@
{% block scripts %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.min.js" defer></script>
<script src="/static/laboratorio.js?v={{ version }}" defer></script>
<script src="/static/laboratorio.js?v={{ version_estaticos }}" defer></script>
{% endblock %}
+1 -1
View File
@@ -12,7 +12,7 @@
.comparacion__lado { border: 1px solid var(--color-borde); border-radius: var(--radio); padding: var(--espacio-4); }
.comparacion__lado h3 { margin: 0 0 var(--espacio-2); font-size: var(--texto-sm); color: var(--color-texto-suave); text-transform: uppercase; letter-spacing: 0.04em; }
.comparacion__nombre { font-size: var(--texto-lg); font-weight: 700; }
.comparacion__norm { font-family: var(--fuente-mono); font-size: var(--texto-sm); color: var(--color-texto-suave); }
.comparacion__norm { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: var(--texto-sm); color: var(--color-texto-suave); }
.score { font-size: var(--texto-xl); font-weight: 700; }
.texto-suave { color: var(--color-texto-suave); }
.historial { margin: 0; padding-left: var(--espacio-4); font-size: var(--texto-sm); }
+1 -1
View File
@@ -12,7 +12,7 @@
.version { border: 1px solid var(--color-borde); border-radius: var(--radio); padding: var(--espacio-4); }
.version.es-vigente { border-color: var(--color-primario); }
.version h3 { margin: 0 0 var(--espacio-2); }
.version__hash { font-family: var(--fuente-mono); font-size: var(--texto-xs); color: var(--color-texto-suave); word-break: break-all; }
.version__hash { font-family: var(--fuente); font-variant-numeric: tabular-nums; font-size: var(--texto-xs); color: var(--color-texto-suave); word-break: break-all; }
.umbral { font-size: var(--texto-lg); font-weight: 700; }
.texto-suave { color: var(--color-texto-suave); }
</style>