/* NEXOS Vial IA — navegación (propuesta data/ux, 01/12/2026). Se apoya en tokens.css y componentes.3f5af94fc5.css de la marca.
   Todo lo nuevo lleva prefijo «nx-»; no redefine ninguna clase existente salvo los dos ajustes marcados [ajuste]. */
:root { --nx-ancho-nav: 232px; --nx-ancho-riel: 56px; --nx-alto-demo: 0px; --nx-alto-sub: 48px; }
html, body { height: 100%; }
button { font: inherit; color: inherit; }

/* ── Barra superior: marca · migas con selector de ámbito · buscador · cuenta ── */
.cabecera { gap: var(--nx-e-3); }
.nx-hamb { display: none; width: 34px; height: 34px; border: 0; background: none; color: #fff; border-radius: var(--nx-r-2); place-items: center; cursor: pointer; }
.nx-migas { order: 1; display: flex; align-items: center; gap: 2px; min-width: 0; }
.nx-migas .sep { color: rgba(255, 255, 255, .28); font-size: 16px; margin: 0 2px; }
.nx-ambito { position: relative; min-width: 0; }
.nx-ambito > button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 10px; border-radius: var(--nx-r-2); border: 1px solid transparent; background: none; color: #fff;
  font: 500 var(--nx-t-13)/1 var(--nx-fuente-texto); cursor: pointer; max-width: 230px; }
.nx-ambito > button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-ambito > button:hover, .nx-ambito.abierto > button { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.nx-ambito > button .nx-ico { color: #8FA0BC; width: 12px; height: 12px; }
.nx-ambito > button small { font: 500 var(--nx-t-11)/1 var(--nx-fuente-dato); color: #8FA0BC; }
.nx-buscador { order: 4; display: flex; align-items: center; gap: 8px; height: 32px; width: 230px; padding: 0 8px 0 10px; border-radius: var(--nx-r-2); border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: #A8B5CA; font-size: var(--nx-t-13); cursor: pointer; }
.nx-buscador:hover { background: rgba(255, 255, 255, .11); } .nx-buscador kbd { margin-left: auto; background: rgba(255, 255, 255, .12); }
.nx-cuenta { order: 5; position: relative; }
.nx-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: var(--nx-superficie-3); color: #fff; font: 600 var(--nx-t-12)/1 var(--nx-fuente-texto); cursor: pointer; display: grid; place-items: center; }
.nx-avatar.g { width: 56px; height: 56px; font-size: var(--nx-t-20); cursor: default; }

/* ── Menús desplegables (selector de ámbito, cuenta) ── */
.nx-menu { position: absolute; top: 40px; left: 0; z-index: 60; min-width: 280px; background: var(--nx-superficie-2); border: 1px solid var(--nx-borde-fuerte); border-radius: var(--nx-r-3); box-shadow: var(--nx-sombra-2); padding: 6px; color: var(--nx-texto); }
.nx-menu.der { left: auto; right: 0; }
.nx-menu .nx-rotulo { display: block; padding: 8px 10px 4px; margin: 0; }
.nx-menu a, .nx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; background: none; border-radius: var(--nx-r-2); color: var(--nx-texto); font-size: var(--nx-t-13); text-align: left; cursor: pointer; }
.nx-menu a:hover, .nx-menu button:hover { background: var(--nx-superficie-3); text-decoration: none; }
.nx-menu a.actual { box-shadow: inset 2px 0 0 var(--nx-senal); background: var(--nx-superficie-3); }
.nx-menu a small, .nx-menu .meta { margin-left: auto; color: var(--nx-texto-3); font-size: var(--nx-t-12); white-space: nowrap; }
.nx-menu a > div { min-width: 0; } .nx-menu a > div small { display: block; margin: 2px 0 0; }
.nx-menu hr { border: 0; border-top: 1px solid var(--nx-borde); margin: 6px 0; }
.nx-menu .quien { padding: 8px 10px; } .nx-menu .quien b { display: block; } .nx-menu .quien span { color: var(--nx-texto-2); font-size: var(--nx-t-12); }

/* ── Marco: barra lateral + contenido ── */
.nx-marco { display: grid; grid-template-columns: var(--nx-ancho-nav) minmax(0, 1fr); height: calc(100vh - var(--nx-alto-barra) - var(--nx-alto-demo)); }
@supports (height: 100dvh) { .nx-marco { height: calc(100dvh - var(--nx-alto-barra) - var(--nx-alto-demo)); } }
.nx-marco.riel { grid-template-columns: var(--nx-ancho-riel) minmax(0, 1fr); }
.nx-nav { background: var(--nx-superficie-1); border-right: 1px solid var(--nx-borde); padding: var(--nx-e-3) var(--nx-e-2); overflow: auto; display: flex; flex-direction: column; gap: 1px; min-height: 0; }
.nx-nav .nx-rotulo { padding: 14px 10px 6px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-nav a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--nx-r-2); color: var(--nx-texto-2); font: 500 var(--nx-t-13)/1 var(--nx-fuente-texto); white-space: nowrap; position: relative; }
.nx-nav a:hover { background: var(--nx-superficie-2); color: var(--nx-texto); text-decoration: none; }
.nx-nav a.activa { background: var(--nx-superficie-2); color: var(--nx-texto); box-shadow: inset 2px 0 0 var(--nx-senal); }
.nx-nav a.activa .nx-ico { color: var(--nx-acento-texto); }
.nx-nav a .badge { margin-left: auto; } .nx-nav a .n { margin-left: auto; color: var(--nx-texto-3); font: 500 var(--nx-t-12)/1 var(--nx-fuente-dato); }
.nx-nav .pie { margin-top: auto; padding-top: var(--nx-e-3); border-top: 1px solid var(--nx-borde); display: flex; flex-direction: column; gap: 1px; }
.nx-marco.riel .nx-nav { padding: var(--nx-e-3) 9px; align-items: stretch; }
.nx-marco.riel .nx-nav a { padding: 0; justify-content: center; } .nx-marco.riel .nx-nav a > span:not(.badge), .nx-marco.riel .nx-nav a .n { display: none; }
.nx-marco.riel .nx-nav .nx-rotulo { height: 1px; padding: 0; margin: 8px 6px; background: var(--nx-borde); font-size: 0; }
.nx-marco.riel .nx-nav a .badge { position: absolute; top: 2px; right: 2px; padding: 0 5px; font-size: 10px; }
.nx-contenido { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
#pagina { flex: 1 1 auto; min-width: 0; outline: 0; } #pagina > .pagina { width: 100%; padding-top: var(--nx-e-6); }
.nx-contenido > .app { height: auto; flex: 1; min-height: 0; }
#pagina[hidden], #banda:empty, #subbarra:empty { display: none; }

/* ── Subbarra del análisis: nombre, estado, pestañas y acción principal ── */
.nx-subbarra { flex: none; display: flex; align-items: center; gap: var(--nx-e-3); height: var(--nx-alto-sub); padding: 0 var(--nx-e-4); background: var(--nx-superficie-1); border-bottom: 1px solid var(--nx-borde); min-width: 0; }
.nx-subbarra .titulo { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.nx-subbarra .titulo b { font: 600 var(--nx-t-14)/1 var(--nx-fuente-titulo); overflow: hidden; text-overflow: ellipsis; }
.nx-subbarra .titulo .nx-dato { color: var(--nx-texto-3); }
.nx-subbarra .chip { margin: 0; }
.nx-subbarra .pestanas { border: 0; align-self: stretch; padding: 0; margin-left: var(--nx-e-2) !important; }
.nx-subbarra .pestanas a { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 2px solid transparent; color: var(--nx-texto-2); font: 600 var(--nx-t-13)/1 var(--nx-fuente-texto); white-space: nowrap; }
.nx-subbarra .pestanas a:hover { color: var(--nx-texto); text-decoration: none; } .nx-subbarra .pestanas a.activa { color: var(--nx-texto); border-bottom-color: var(--nx-senal); }
.nx-subbarra .pestanas a.activa .n { background: var(--nx-estado-pendiente-fondo); color: var(--nx-estado-pendiente); }
.nx-subbarra .fin { margin-left: auto; display: flex; align-items: center; gap: var(--nx-e-2); white-space: nowrap; } .nx-subbarra .fin .boton { height: 32px; }

/* ── Páginas interiores ── */
.nx-pag-cab { display: flex; align-items: flex-end; gap: var(--nx-e-4); margin-bottom: var(--nx-e-5); flex-wrap: wrap; }
.nx-pag-cab > div:first-child { min-width: 0; flex: 1 1 320px; } .nx-pag-cab .nx-rotulo { display: block; } .nx-pag-cab .sub { margin-bottom: 0; }
.nx-pag-cab .fin { display: flex; gap: var(--nx-e-2); flex-wrap: wrap; }
.nx-rejilla { display: grid; gap: var(--nx-e-4); grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: var(--nx-e-4); }
.nx-rejilla > * { grid-column: span 12; min-width: 0; }
.nx-c3 { grid-column: span 3 !important; } .nx-c4 { grid-column: span 4 !important; } .nx-c5 { grid-column: span 5 !important; } .nx-c6 { grid-column: span 6 !important; } .nx-c7 { grid-column: span 7 !important; } .nx-c8 { grid-column: span 8 !important; }
.panel { padding: var(--nx-e-4); } .panel > h2 { display: flex; align-items: center; gap: 8px; margin-bottom: var(--nx-e-3); } .panel > h2 .fin { margin-left: auto; font: 500 var(--nx-t-12)/1 var(--nx-fuente-texto); }
.panel.sin-relleno { padding: 0; overflow: hidden; } .panel.sin-relleno > h2 { padding: var(--nx-e-4) var(--nx-e-4) 0; }
.nx-kpi { background: var(--nx-superficie-1); border: 1px solid var(--nx-borde); border-radius: var(--nx-r-3); padding: var(--nx-e-4); display: block; color: inherit; }
a.nx-kpi:hover { border-color: var(--nx-borde-fuerte); text-decoration: none; }
.nx-kpi .etq { font: 600 var(--nx-t-11)/1.2 var(--nx-fuente-texto); letter-spacing: var(--nx-rotulo-espaciado); text-transform: uppercase; color: var(--nx-texto-3); display: flex; gap: 6px; align-items: center; }
.nx-kpi .valor { font: 600 28px/1 var(--nx-fuente-dato); letter-spacing: -.02em; margin: 10px 0 6px; } .nx-kpi .valor small { font-size: var(--nx-t-13); color: var(--nx-texto-3); font-weight: 500; }
.nx-kpi .pie { font-size: var(--nx-t-12); color: var(--nx-texto-2); } .nx-kpi.aviso .valor { color: var(--nx-estado-pendiente); } .nx-kpi.mal .valor { color: var(--nx-estado-rechazado); }
/* Lista de tareas («Para ti») */
.nx-tareas { list-style: none; margin: 0; padding: 0; }
.nx-tareas li { display: flex; align-items: center; gap: var(--nx-e-3); padding: 10px 0; border-top: 1px solid var(--nx-borde); } .nx-tareas li:first-child { border-top: 0; padding-top: 0; }
.nx-tareas .ic { width: 32px; height: 32px; border-radius: var(--nx-r-2); display: grid; place-items: center; flex: none; background: var(--nx-superficie-3); color: var(--nx-texto-2); }
.nx-tareas .ic.aviso { background: var(--nx-estado-pendiente-fondo); color: var(--nx-estado-pendiente); } .nx-tareas .ic.mal { background: var(--nx-estado-rechazado-fondo); color: var(--nx-estado-rechazado); }
.nx-tareas .ic.ok { background: var(--nx-estado-aprobado-fondo); color: var(--nx-estado-aprobado); } .nx-tareas .ic.info { background: var(--nx-info-fondo); color: var(--nx-info); }
.nx-tareas .txt { min-width: 0; flex: 1; } .nx-tareas .txt b { display: block; font-weight: 600; } .nx-tareas .txt small { color: var(--nx-texto-2); font-size: var(--nx-t-12); display: block; margin-top: 2px; }
.nx-tareas .boton { height: 32px; flex: none; }
/* Tarjeta de área (de maquetas/areas.html de la marca) */
.nx-area { background: var(--nx-superficie-1); border: 1px solid var(--nx-borde); border-radius: var(--nx-r-3); overflow: hidden; display: flex; flex-direction: column; color: inherit; }
a.nx-area:hover { border-color: var(--nx-borde-fuerte); text-decoration: none; }
.nx-area .nx-mapa-vista { height: 132px; border-bottom: 1px solid var(--nx-borde); }
.nx-area .cuerpo { padding: var(--nx-e-4); display: flex; flex-direction: column; gap: var(--nx-e-3); flex: 1; }
.nx-area h3 { font: 600 var(--nx-t-16)/1.2 var(--nx-fuente-titulo); display: flex; align-items: center; gap: var(--nx-e-2); flex-wrap: wrap; } .nx-area h3 .chip { margin: 0 0 0 auto; }
.nx-area .lugar { color: var(--nx-texto-3); font-size: var(--nx-t-12); margin: 4px 0 0; }
.nx-area .datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--nx-e-2); }
.nx-area .datos b { display: block; font: 600 var(--nx-t-20)/1 var(--nx-fuente-dato); letter-spacing: -.02em; } .nx-area .datos span { font-size: var(--nx-t-12); color: var(--nx-texto-3); display: block; margin-top: 5px; }
.nx-area .pie { display: flex; align-items: center; gap: var(--nx-e-2); margin-top: auto; padding-top: var(--nx-e-3); border-top: 1px solid var(--nx-borde); font-size: var(--nx-t-12); color: var(--nx-texto-2); }
/* Tablas */
.nx-tabla { overflow-x: auto; } .nx-tabla table { min-width: 640px; }
td .chip { margin: 0 4px 0 0; } td .nx-avance { width: 110px; margin: 0 8px 0 0; display: inline-flex; vertical-align: middle; } td small, .nx-sec { display: block; color: var(--nx-texto-3); font-size: var(--nx-t-12); margin-top: 2px; }
td .boton, th .boton { height: 30px; padding: 0 10px; } td.acc { text-align: right; white-space: nowrap; } tr.enlace { cursor: pointer; }
td .nx-medidor { width: 90px; display: inline-block; vertical-align: middle; margin: 0 8px 0 0; height: 5px; } td .nx-medidor > span { background: var(--nx-accion); }
.nx-progreso { height: 6px; border-radius: 3px; background: var(--nx-superficie-3); overflow: hidden; } .nx-progreso > span { display: block; height: 100%; background: var(--nx-info); border-radius: 3px; }
td .nx-progreso { width: 110px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.nx-filtros { display: flex; gap: var(--nx-e-2); flex-wrap: wrap; margin-bottom: var(--nx-e-3); align-items: center; } .nx-filtros .nx-campo, .nx-filtros .nx-select { width: auto; min-width: 150px; }
select.nx-campo, .nx-select { appearance: none; color: var(--nx-texto); background-color: var(--nx-superficie-2); border-color: var(--nx-borde-fuerte); height: 34px; max-width: none; }
.nx-roles { display: flex; gap: 10px; flex-wrap: wrap; } .nx-roles label { display: inline-flex; gap: 5px; align-items: center; font-size: var(--nx-t-13); white-space: nowrap; } .nx-roles input { accent-color: var(--nx-accion); }
.nx-banda { display: flex; align-items: center; gap: var(--nx-e-3); padding: 10px var(--nx-e-4); border-radius: var(--nx-r-2); background: var(--nx-info-fondo); color: var(--nx-info); font-size: var(--nx-t-13); margin-bottom: var(--nx-e-4); }
.nx-banda.aviso { background: var(--nx-estado-pendiente-fondo); color: var(--nx-estado-pendiente); } .nx-banda .boton { margin-left: auto; height: 30px; color: var(--nx-texto); flex: none; }
.nx-banda.pegada { margin: 0; border-radius: 0; flex: none; }
.nx-barras { display: grid; grid-template-columns: max-content 1fr max-content; gap: 8px 12px; align-items: center; font-size: var(--nx-t-13); }
.nx-barras .b { height: 8px; border-radius: 4px; background: var(--nx-superficie-3); overflow: hidden; } .nx-barras .b > span { display: block; height: 100%; border-radius: 4px; }
.nx-barras .v { font: 500 var(--nx-t-12)/1 var(--nx-fuente-dato); color: var(--nx-texto-2); text-align: right; }
.nx-pasos { display: flex; gap: 4px; margin-top: 8px; } .nx-pasos span { flex: 1; height: 4px; border-radius: 2px; background: var(--nx-superficie-3); } .nx-pasos .hecho { background: var(--nx-relleno-aprobado); } .nx-pasos .ahora { background: var(--nx-info); }
.nx-soltar { border: 1.5px dashed var(--nx-borde-fuerte); border-radius: var(--nx-r-3); padding: var(--nx-e-8) var(--nx-e-5); text-align: center; color: var(--nx-texto-2); background: var(--nx-superficie-2); }
.nx-soltar b { display: block; color: var(--nx-texto); font: 600 var(--nx-t-16)/1.3 var(--nx-fuente-titulo); margin: 10px 0 4px; }
.nx-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nx-e-3) var(--nx-e-4); } .nx-form label { display: block; font-size: var(--nx-t-12); color: var(--nx-texto-2); } .nx-form label > .nx-campo { margin-top: 5px; display: block; } .nx-form .todo { grid-column: 1 / -1; }
.nx-casilla { display: flex !important; gap: 8px; align-items: center; color: var(--nx-texto) !important; font-size: var(--nx-t-13) !important; } .nx-casilla input { accent-color: var(--nx-accion); width: 15px; height: 15px; }

/* ── Estados: vacío, carga, error ── */
.nx-vacio { text-align: center; padding: var(--nx-e-10) var(--nx-e-5); color: var(--nx-texto-2); max-width: 460px; margin: 0 auto; }
.nx-vacio .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--nx-superficie-3); color: var(--nx-texto-2); display: grid; place-items: center; margin: 0 auto var(--nx-e-4); }
.nx-vacio .ic.mal { background: var(--nx-estado-rechazado-fondo); color: var(--nx-estado-rechazado); } .nx-vacio .ic.ok { background: var(--nx-estado-aprobado-fondo); color: var(--nx-estado-aprobado); }
.nx-vacio b { display: block; font: 600 var(--nx-t-16)/1.3 var(--nx-fuente-titulo); color: var(--nx-texto); margin-bottom: 6px; } .nx-vacio p { margin: 0 0 var(--nx-e-4); font-size: var(--nx-t-13); }
.nx-vacio .nx-dato { color: var(--nx-texto-3); display: block; margin-top: var(--nx-e-3); }
.nx-esq { border-radius: var(--nx-r-1); background: linear-gradient(90deg, var(--nx-superficie-2) 0, var(--nx-superficie-3) 40%, var(--nx-superficie-2) 80%) 0 0 / 200% 100%; animation: nx-esq 1.4s linear infinite; height: 12px; margin: 10px 0; }
@keyframes nx-esq { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .nx-esq { animation: none; } }

/* ── Mapa y revisión dentro del marco ── */
.lat .fila a { color: inherit; } .ficha { max-height: 62%; }
.nx-publicado { display: flex; gap: 8px; align-items: center; font-size: var(--nx-t-12); color: var(--nx-texto-2); }
.nx-revision { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; flex: 1; min-height: 0; }
.nx-revision > .cola { border-right: 1px solid var(--nx-borde); background: var(--nx-superficie-1); display: flex; flex-direction: column; min-height: 0; }
.nx-revision > .centro { overflow: auto; padding: var(--nx-e-5); min-width: 0; }
.nx-revision > .centro .nx-evidencia img { max-height: 46vh; }
.nx-revision > .contexto { border-left: 1px solid var(--nx-borde); background: var(--nx-superficie-1); overflow: auto; padding: var(--nx-e-4); }
.nx-revision .contexto .nx-mapa-vista { height: 200px; border-radius: var(--nx-r-2); border: 1px solid var(--nx-borde); margin-bottom: var(--nx-e-4); }
.nx-revision .acciones { position: sticky; bottom: calc(-1 * var(--nx-e-5)); background: var(--nx-fondo); padding: var(--nx-e-3) 0 var(--nx-e-5); margin-bottom: calc(-1 * var(--nx-e-5)); }
.cola-item .nx-glifo { justify-self: center; }

/* ── Paleta de órdenes (Ctrl/Cmd + K) ── */
.nx-velo { position: fixed; inset: 0; z-index: 200; background: rgba(5, 9, 15, .6); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; }
.nx-paleta { width: 620px; max-width: 100%; background: var(--nx-superficie-2); border: 1px solid var(--nx-borde-fuerte); border-radius: var(--nx-r-4); box-shadow: var(--nx-sombra-3); overflow: hidden; }
.nx-paleta .campo { display: flex; align-items: center; gap: 10px; padding: 0 var(--nx-e-4); height: 52px; border-bottom: 1px solid var(--nx-borde); color: var(--nx-texto-3); }
.nx-paleta input { flex: 1; background: none; border: 0; outline: 0; color: var(--nx-texto); font: 400 var(--nx-t-16)/1 var(--nx-fuente-texto); }
.nx-paleta .res { max-height: 46vh; overflow: auto; padding: 6px; }
.nx-paleta .nx-rotulo { display: block; padding: 10px 10px 4px; margin: 0; }
.nx-paleta a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: var(--nx-r-2); color: var(--nx-texto); font-size: var(--nx-t-13); }
.nx-paleta a small { margin-left: auto; color: var(--nx-texto-3); font: 500 var(--nx-t-11)/1 var(--nx-fuente-dato); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.nx-paleta a.sel, .nx-paleta a:hover { background: var(--nx-superficie-3); text-decoration: none; } .nx-paleta a .nx-ico { color: var(--nx-texto-3); }
.nx-paleta .pie { display: flex; gap: var(--nx-e-4); padding: 8px var(--nx-e-4); border-top: 1px solid var(--nx-borde); color: var(--nx-texto-3); font-size: var(--nx-t-12); } .nx-paleta .pie kbd { background: var(--nx-superficie-3); color: var(--nx-texto-2); margin-right: 4px; }

/* ── Móvil y tableta ── */
@media (max-width: 1100px) {
  .nx-c3, .nx-c4 { grid-column: span 6 !important; } .nx-c5, .nx-c7, .nx-c8 { grid-column: span 12 !important; }
  .nx-revision { grid-template-columns: 300px minmax(0, 1fr); } .nx-revision > .contexto { display: none; }
  .nx-contenido > .app { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); } .nx-contenido > .app > .lat { display: none; }
}
@media (max-width: 860px) {
  /* [ajuste] la marca apila la cabecera por debajo de 700 px; con el cajón lateral se queda en una sola fila */
  .cabecera { flex-wrap: nowrap; height: var(--nx-alto-barra); padding: 0 10px; gap: 6px; }
  .cabecera .marca { padding-right: 8px; border-right: 0; } .cabecera .marca > span { display: none; }
  .nx-hamb { display: grid; order: -1; }
  .nx-migas .nx-ambito:not(:last-child), .nx-migas .sep { display: none; } .nx-ambito > button { max-width: 170px; } .nx-ambito > button small { display: none; }
  .nx-buscador { width: 34px; padding: 0; justify-content: center; border-color: transparent; background: none; } .nx-buscador span, .nx-buscador kbd { display: none; }
  .nx-menu { position: fixed; left: 8px; right: 8px; top: 56px; min-width: 0; } .nx-menu.der { left: 8px; }
  .nx-marco, .nx-marco.riel { grid-template-columns: minmax(0, 1fr); }
  .nx-nav { position: fixed; left: 0; top: var(--nx-alto-barra); bottom: var(--nx-alto-demo); width: 280px; z-index: 40; transform: translateX(-100%); transition: transform var(--nx-normal) var(--nx-curva); box-shadow: var(--nx-sombra-3); }
  .nx-marco.cajon .nx-nav { transform: none; }
  .nx-marco.riel .nx-nav { padding: var(--nx-e-3) var(--nx-e-2); } .nx-marco.riel .nx-nav a { padding: 0 10px; justify-content: flex-start; } .nx-marco.riel .nx-nav a > span:not(.badge), .nx-marco.riel .nx-nav a .n { display: inline; }
  .nx-marco.riel .nx-nav .nx-rotulo { height: auto; padding: 14px 10px 6px; margin: 0; background: none; font-size: var(--nx-t-11); } .nx-marco.riel .nx-nav a .badge { position: static; }
  .nx-fondo-cajon { position: fixed; inset: var(--nx-alto-barra) 0 var(--nx-alto-demo) 0; background: rgba(5, 9, 15, .6); z-index: 39; }
  .nx-contenido > .pagina { padding: var(--nx-e-4) var(--nx-e-4) var(--nx-e-10); }
  .nx-c3, .nx-c4, .nx-c6 { grid-column: span 12 !important; } .nx-c3.medio { grid-column: span 6 !important; }
  .nx-kpi .valor { font-size: 24px; }
  .nx-tareas li { flex-wrap: wrap; } .nx-tareas .txt { flex: 1 1 calc(100% - 48px); } .nx-tareas .boton { margin-left: 44px; }
  .nx-subbarra { height: auto; flex-wrap: wrap; padding: 8px 12px 0; gap: 6px; } .nx-subbarra .titulo { flex: 1 1 100%; } .nx-subbarra .titulo .nx-dato { display: none; }
  .nx-subbarra .pestanas { order: 3; flex: 1 1 100%; overflow-x: auto; margin: 0 -12px !important; padding: 0 4px; height: 40px; } .nx-subbarra .fin { position: absolute; right: 12px; top: 60px; } .nx-subbarra .fin .nx-publicado { display: none; }
  .nx-contenido > .app { display: flex; flex-direction: column; } .nx-contenido > .app > #mapa { flex: 0 0 44vh; } .nx-contenido > .app > .der { flex: 1; border-left: 0; border-top: 1px solid var(--nx-borde); } .ficha { max-height: none; }
  .nx-revision { display: flex; flex-direction: column; } .nx-revision > .cola { order: 2; border-right: 0; border-top: 1px solid var(--nx-borde); max-height: 40vh; } .nx-revision > .centro { padding: var(--nx-e-4); overflow: visible; }
  .nx-contenido.rev { display: block; } .nx-revision .acciones { bottom: 0; margin-bottom: 0; padding-bottom: var(--nx-e-3); }
  .nx-form { grid-template-columns: 1fr; } .nx-pag-cab .fin { width: 100%; }
  h1 { font-size: var(--nx-t-20); }
}
/* remates */
.nx-filtros .nx-campo { font-size: var(--nx-t-13); } td.acc .boton { vertical-align: middle; }

/* ── Adiciones de la implementación (N0 a N5) ── */
.nx-subbarra { position: sticky; top: 0; z-index: 20; }
.nx-subbarra .nx-sin-publicar { color: var(--nx-estado-pendiente); }
.nx-miga-fija { display: flex; align-items: center; height: 32px; padding: 0 10px; color: #fff; font: 500 var(--nx-t-13)/1 var(--nx-fuente-texto); border-radius: var(--nx-r-2); max-width: 230px; }
.nx-miga-fija:hover { background: rgba(255, 255, 255, .08); text-decoration: none; } .nx-miga-fija > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-menu-lista { max-height: 50vh; overflow: auto; } .nx-filtro-menu { margin: 4px 6px 6px; width: calc(100% - 12px); }
.nx-menu a:focus-visible, .nx-menu button:focus-visible { outline: 2px solid var(--nx-senal-clara); outline-offset: -2px; }
.nx-nav a:focus-visible, .nx-subbarra a:focus-visible, .nx-ambito > button:focus-visible, .nx-buscador:focus-visible, .nx-avatar:focus-visible, .nx-hamb:focus-visible { outline: 2px solid var(--nx-senal-clara); outline-offset: -2px; }
.nx-fondo-cajon[hidden] { display: none; } .nx-fondo-cajon { display: none; }
#capa-paleta:empty { display: none; }
.nx-deshacer { margin-left: 10px; background: none; border: 0; color: var(--nx-acento-texto); font: 600 var(--nx-t-13)/1 var(--nx-fuente-texto); cursor: pointer; text-decoration: underline; padding: 4px; }
.nx-confirmar { font-size: var(--nx-t-13); color: var(--nx-texto); margin-right: 8px; white-space: normal; }
.nx-form-nueva { margin-bottom: var(--nx-e-4); } .nx-form-nueva[hidden] { display: none; }
.nx-form-nueva .acciones { margin-bottom: 0; } .nx-form-nueva .error { color: var(--nx-estado-rechazado); margin: var(--nx-e-3) 0 0; font-size: var(--nx-t-13); }
.nx-editor { display: flex; gap: var(--nx-e-4); align-items: center; flex-wrap: wrap; padding: var(--nx-e-2) 0; } .nx-editor .acciones { margin: 0 0 0 auto; }
tr.editor > td { background: var(--nx-superficie-2); }
.nx-soporte { display: flex; gap: 6px; align-items: center; } .nx-soporte .nx-campo { min-width: 220px; }
.nx-conmutador { display: inline-flex; margin: 0; } .nx-conmutador button { height: 36px; }
td.roles .nx-roles { max-width: 360px; }
.nx-solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.error-txt { color: var(--nx-estado-rechazado) !important; }
.nx-subidas { margin-top: var(--nx-e-4); } .nx-subidas:empty { display: none; }
.nx-subida .nx-progreso { margin-top: 8px; display: block; } .nx-subida .acc { display: flex; gap: 6px; flex: none; }
.nx-soltar.sobre { border-color: var(--nx-senal); background: var(--nx-superficie-3); } .nx-soltar:focus-visible { outline: 2px solid var(--nx-senal-clara); outline-offset: 2px; }
.nx-tareas .nx-progreso + small { margin-top: 4px; }

/* Tarjeta de área: mosaico decorativo (en lugar del mapa estático del prototipo) */
.nx-area .arte { width: 100%; height: 132px; display: block; background: #0B1220; border-bottom: 1px solid var(--nx-borde); }
.nx-area .arte .c { fill: none; stroke: #1F3150; stroke-width: 7; stroke-linecap: round; } .nx-area .arte .via { fill: none; stroke: #0B1220; stroke-width: 11; stroke-linecap: round; }
.nx-area .arte .tr1, .nx-area .arte .tr2 { fill: none; stroke-linecap: round; stroke-width: 5; } .nx-area .arte .tr1 { stroke: #E8A33D; stroke-dasharray: 22 100; stroke-dashoffset: -10; } .nx-area .arte .tr2 { stroke: #DC2F26; stroke-dasharray: 12 100; stroke-dashoffset: -55; }
:root[data-tema="claro"] .nx-area .arte { background: #E9EEF5; } :root[data-tema="claro"] .nx-area .arte .c { stroke: #CBD5E1; } :root[data-tema="claro"] .nx-area .arte .via { stroke: #E9EEF5; }

/* Mapa y revisión: una sola estructura, dos disposiciones. El mapa no se recrea al cambiar (plan N5.3). */
#vista-analisis { position: relative; }
#vista-analisis.modo-revision { grid-template-columns: 340px minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "tabs ficha mapa" "lista ficha mapa"; }
#vista-analisis.modo-revision > .lat { display: none; } #vista-analisis.modo-revision > .der { display: contents; }
.modo-revision #pestanas-cola { grid-area: tabs; background: var(--nx-superficie-1); border-right: 1px solid var(--nx-borde); }
.modo-revision #lista { grid-area: lista; background: var(--nx-superficie-1); border-right: 1px solid var(--nx-borde); min-height: 0; }
.modo-revision #ficha { grid-area: ficha; max-height: none; overflow: auto; padding: var(--nx-e-5) var(--nx-e-6); border-bottom: 0; min-height: 0; }
.modo-revision #mapa { grid-area: mapa; border-left: 1px solid var(--nx-borde); }
.modo-revision #ficha .nx-evidencia img { max-height: 46vh; }
.modo-revision #ficha .acciones { position: sticky; bottom: calc(-1 * var(--nx-e-5)); background: var(--nx-fondo); padding: var(--nx-e-3) 0 var(--nx-e-5); margin-bottom: calc(-1 * var(--nx-e-5)); z-index: 2; }
.nx-teclas { text-align: center; } .nx-cruce { margin-top: var(--nx-e-4); }
.nx-capas-boton { display: none; position: absolute; left: 12px; top: 12px; z-index: 4; height: 34px; background: var(--nx-superficie-2); }
#banda-lector { margin: 0 0 var(--nx-e-4); }
.cola-item .nx-glifo { justify-self: center; }

@media (max-width: 1100px) {
  #vista-analisis.modo-revision { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "tabs ficha" "lista ficha"; } #vista-analisis.modo-revision > #mapa { display: none; }
  .nx-capas-boton { display: inline-flex; }
  #vista-analisis.capas-abiertas > .lat { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 6; box-shadow: var(--nx-sombra-3); }
}
@media (max-width: 860px) {
  #vista-analisis { display: flex; flex-direction: column; min-height: 0; } #vista-analisis > #mapa { flex: 0 0 44vh; order: 1; } #vista-analisis > .der { flex: 1 1 auto; order: 2; border-left: 0; border-top: 1px solid var(--nx-borde); overflow: visible; }
  #vista-analisis .lista { min-height: 0; max-height: none; }
  #vista-analisis.modo-revision > .der { display: contents; } #vista-analisis.modo-revision > #mapa { display: block; flex: 0 0 220px; order: 5; border-left: 0; border-top: 1px solid var(--nx-borde); }
  .modo-revision #ficha { order: 1; flex: none; padding: var(--nx-e-4); overflow: visible; } .modo-revision #pestanas-cola { order: 3; border-right: 0; border-top: 1px solid var(--nx-borde); } .modo-revision #lista { order: 4; border-right: 0; flex: none; max-height: 40vh; }
  .modo-revision #ficha .acciones { bottom: 0; margin-bottom: 0; padding-bottom: var(--nx-e-3); }
  .nx-contenido.rev { display: block; overflow: auto; } .nx-subbarra { flex-wrap: wrap; }
  .nx-subbarra .fin { position: static; margin-left: auto; } .nx-nav a { height: 44px; } .nx-menu a, .nx-menu button { min-height: 44px; }
  .boton, .nx-campo, select.nx-campo { min-height: 40px; } td .boton { min-height: 36px; }
}
@media (hover: none) { .nx-teclas { display: none; } }
@media (max-width: 860px) { .nx-fondo-cajon:not([hidden]) { display: block; } }
#vista-analisis.capas-abiertas .nx-capas-boton { left: auto; right: 12px; top: 56px; } .nx-capas-boton { z-index: 8; }
@media (prefers-reduced-motion: reduce) { .nx-nav { transition: none; } }
.nx-conmutador button { white-space: nowrap; }
