/* ═══════════════════════════════════════════════════════════════════
   NotiWeb · DISEÑO 2 — portada «pro» y cronograma (10/10/2026)
   Se carga DESPUÉS de app.css y pisa lo anterior. Colores siempre por
   tokens (claro/oscuro); SUNAT azul y SUNAFIL fucsia no cambian de tema.
   ═══════════════════════════════════════════════════════════════════ */
:root { --marca-grad: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #0891b2 100%); --ambar: #d97706; --rojo: #dc2626; }
/* ── Fondo descansado (pedido 10/10/2026: «un fondo agradable a la vista y no solo blanco») ──
   Claro: gris azulado suave con dos halos tenues (azul arriba a la derecha, turquesa abajo a
   la izquierda); las tarjetas siguen blancas y resaltan sobre él. Oscuro: azul noche, con las
   tarjetas un tono más claras que el fondo. Menú y barra superior semitransparentes. */
html:not([data-theme="dark"]) { --bg: #e9eef5; --hover: #eef2f8; --linea: #dfe5ee; }
html[data-theme="dark"] { --bg: #0b1220; --card: #151f32; --linea: #26344c; --hover: #1d2a42; --gris-bg: #22314a; }
/* 2.ª vuelta (pedido: «agrégale una imagen profesional»; contasync.co solo como EJEMPLO, «lo
   nuestro tiene que tener su propio estilo»): img/fondo.svg y fondo-oscuro.svg con la identidad
   de NotiWeb — manchas orgánicas azul/turquesa, trama de puntos que se desvanece, ondas de
   «señal» abajo y mosaicos de cristal con campana, sobre, calendario y escudo. ⚠ Nada de arcos
   concéntricos ni burbujas redondas (eso es de la otra web). */
body { background: #f0f4fb url("../img/fondo.svg") center / cover no-repeat fixed; }
html[data-theme="dark"] body { background: #0b1220 url("../img/fondo-oscuro.svg") center / cover no-repeat fixed; }
.nw-top { background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px); border-bottom-color: rgba(91, 110, 245, .12); }
html[data-theme="dark"] .nw-top { background: rgba(15, 23, 42, .60); }
.nw-tarjeta, .nw-kpi { box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(30, 58, 138, .06); }
html[data-theme="dark"] .nw-tarjeta, html[data-theme="dark"] .nw-kpi { box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25); }

/* Menú lateral */
.nw-side { background: rgba(255, 255, 255, .62); backdrop-filter: blur(16px); border-right-color: rgba(91, 110, 245, .12); }
html[data-theme="dark"] .nw-side { background: rgba(13, 20, 38, .72); }
.nw-logo { box-shadow: 0 6px 16px rgba(37, 99, 235, .35); }
.nw-op { transition: background .15s, color .15s; }

/* Encabezado de la portada */
.nw-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; margin-bottom: 18px; color: #fff;
    background: var(--marca-grad); box-shadow: 0 12px 32px rgba(30, 58, 138, .28); display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.nw-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.nw-hero::before { content: ""; position: absolute; right: 120px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.nw-hero-txt { position: relative; z-index: 1; }
.nw-hero-fecha { opacity: .8; font-size: .88rem; font-weight: 500; }
.nw-hero h1 { font-size: 1.75rem; margin: 2px 0 6px; letter-spacing: -.02em; }
.nw-hero p { margin: 0; opacity: .92; }
.nw-hero-acc { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nw-hero-progreso { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.nw-btn-blanco { background: #fff; color: #1e3a8a; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.nw-btn-blanco:hover:not(:disabled) { background: #eff6ff; }
.nw-btn-cristal { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.nw-btn-cristal:hover { background: rgba(255, 255, 255, .22); }
.nw-progreso.claro { background: rgba(255, 255, 255, .25); }
.nw-progreso.claro div { background: #fff; }

/* Indicadores con icono (también son filtros) */
.nw-kpi { flex-direction: row; align-items: center; gap: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s; }
.nw-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 24, 40, .1); }
.nw-kpi > div { display: flex; flex-direction: column; min-width: 0; }
.nw-kpi small { font-size: .78rem; }
.nw-kpi b.sunat { color: var(--sunat); }
.nw-kpi b.rojo { color: var(--rojo); }
.nw-kpi b.ambar { color: var(--ambar); }
.nw-kpi-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.nw-kpi-ico.azul { background: #eef2ff; color: #4f46e5; }
.nw-kpi-ico.sunat { background: #dbeafe; color: var(--sunat); }
.nw-kpi-ico.rojo { background: #fee2e2; color: var(--rojo); }
.nw-kpi-ico.ambar { background: #fef3c7; color: var(--ambar); }
html[data-theme="dark"] .nw-kpi-ico { background: rgba(255, 255, 255, .06); }

/* Tira del cronograma */
.nw-crono-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.nw-crono-cab h3 { margin: 0; }
.nw-enlace-chico { font-size: .85rem; font-weight: 600; text-decoration: none; }
.nw-crono-cab h3 { margin-right: auto; }
.nw-crono-tira { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.nw-crono-dia { border: 1px solid var(--linea); border-radius: 12px; padding: 6px 10px; background: var(--card); position: relative;
    display: flex; align-items: center; gap: 10px; min-width: 0; }
.nw-crono-txt { min-width: 0; line-height: 1.25; }
.nw-crono-fecha { font-size: 1.25rem !important; margin: 0 !important; text-align: center; min-width: 30px; }
.nw-crono-fecha small { font-size: .62rem !important; }
.nw-crono-mias { margin-top: 0 !important; }
.nw-crono { padding-top: 12px !important; padding-bottom: 12px !important; }
.nw-crono-dia.mias { border-color: var(--sunat); box-shadow: inset 0 0 0 1px var(--sunat); background: color-mix(in srgb, var(--sunat) 6%, var(--card)); }
.nw-crono-dia.hoy { background: var(--sunat); color: #fff; border-color: var(--sunat); }
.nw-crono-dia.hoy .nw-crono-sire, .nw-crono-dia.hoy .nw-crono-mias, .nw-crono-dia.hoy .nw-crono-grupo { color: rgba(255, 255, 255, .88); }
.nw-crono-dia.paso { opacity: .45; }
.nw-crono-grupo { font-size: .72rem; font-weight: 700; color: var(--tenue); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-crono-fecha { font-size: 1.7rem; font-weight: 800; line-height: 1.1; margin: 4px 0 2px; letter-spacing: -.02em; }
.nw-crono-fecha small { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; color: inherit; opacity: .7; letter-spacing: .05em; }
.nw-crono-sire { font-size: .75rem; color: var(--tenue); }
.nw-crono-mias { font-size: .76rem; font-weight: 700; margin-top: 4px; color: var(--sunat); }
.nw-crono-dia:not(.mias) .nw-crono-mias { color: var(--tenue); font-weight: 500; }
.nw-crono-nota { font-size: .78rem; color: var(--tenue); }

/* Dos columnas: atender primero + próximos vencimientos */
.nw-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nw-lista-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nw-lista-card h3 { margin-bottom: 6px; }
.nw-limpio { color: var(--tenue); display: flex; align-items: center; gap: 8px; padding: 14px 4px; }
.nw-fila-mini { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; border: 0; background: none; color: var(--txt); font: inherit; text-align: left; cursor: pointer; width: 100%; }
.nw-fila-mini:hover { background: var(--hover); }
.nw-fila-mini.estatica { cursor: default; }
.nw-fila-mini.estatica:hover { background: none; }
.nw-fila-mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nw-fila-mini-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nw-fila-mini-txt small { color: var(--tenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-fila-mini-der { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nw-avatar { width: 36px; height: 36px; border-radius: 11px; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex-shrink: 0; letter-spacing: .02em; }
.nw-avatar.chico { width: 26px; height: 26px; border-radius: 8px; font-size: .68rem; }
.nw-fecha-bloque { width: 44px; height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.nw-fecha-bloque b { font-size: 1.15rem; }
.nw-fecha-bloque small { font-size: .62rem; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.nw-fecha-bloque.err { background: var(--err-bg); color: var(--err); }
.nw-fecha-bloque.warn { background: var(--warn-bg); color: var(--warn); }
.nw-fecha-bloque.info { background: var(--info-bg); color: var(--info); }
.nw-fecha-bloque.gris { background: var(--gris-bg); color: var(--tenue); }

/* Tabla de empresas */
.nw-emp-celda { display: flex; align-items: center; gap: 12px; }
.nw-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.nw-chips:empty { display: none; }
.nw-vence { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.nw-ok-punto { color: var(--ok); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); }
.nw-tabla tbody tr { transition: background .12s; }

/* Esqueleto de carga */
.nw-esqueleto-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nw-esqueleto { height: 92px; border-radius: var(--radio); background: linear-gradient(90deg, var(--gris-bg), var(--hover), var(--gris-bg)); background-size: 200% 100%; animation: nw-brillo 1.2s infinite; }
@keyframes nw-brillo { to { background-position: -200% 0; } }

/* Página Vencimientos */
.nw-crono-tabla th { text-align: center; white-space: nowrap; }
.nw-crono-tabla th.mio { color: var(--sunat); background: color-mix(in srgb, var(--sunat) 7%, var(--card)); }
.nw-crono-tabla th .nw-globo { display: inline-grid; margin-left: 4px; vertical-align: middle; }
.nw-crono-tabla td { text-align: center; white-space: nowrap; }
.nw-crono-tabla td b { display: block; font-variant-numeric: tabular-nums; }
.nw-crono-tabla td small { color: var(--tenue); font-size: .72rem; }
.nw-crono-tabla td.mio { background: color-mix(in srgb, var(--sunat) 5%, transparent); }
.nw-crono-tabla td.paso { opacity: .4; }
.nw-crono-tabla tr.actual td { font-weight: 600; }
.nw-crono-tabla td.err b { color: var(--err); }
.nw-crono-tabla td.warn b { color: var(--warn); }
.nw-crono-tabla td.info b { color: var(--info); }
.nw-crono-per { text-align: left !important; font-weight: 600; }
.nw-pie-nota { font-size: .8rem; margin: 10px 2px 18px; }
.nw-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nw-grupo { border: 1px solid var(--linea); border-radius: 12px; padding: 12px; }
.nw-grupo-cab { display: flex; flex-direction: column; margin-bottom: 8px; }
.nw-grupo-cab span { font-size: .8rem; }
.nw-grupo-emp { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .9rem; }

/* Formulario en dos columnas */
.nw-fila-form { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.nw-check-alto { padding-bottom: 10px; }

/* ── Visor de mensaje: documentos + vista previa + seguimiento ─────── */
.nw-visor-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.nw-visor-grid.con-vista { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
.nw-visor-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nw-sec-titulo { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tenue); margin-top: 6px; }
.nw-docs { display: flex; flex-direction: column; gap: 8px; }
.nw-doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 12px; background: var(--card); }
.nw-doc.activo { border-color: var(--sunat); box-shadow: inset 0 0 0 1px var(--sunat); }
.nw-doc-ico { width: 40px; height: 46px; border-radius: 8px; background: #fee2e2; color: #b91c1c; font-size: .66rem; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
html[data-theme="dark"] .nw-doc-ico { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.nw-doc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nw-doc-txt b { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-doc-txt small { color: var(--tenue); }
.nw-doc-acc { display: flex; align-items: center; gap: 4px; }
.nw-visor-vista { display: flex; flex-direction: column; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; min-height: 70vh; background: var(--gris-bg); }
.nw-visor-vista-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; background: var(--card); border-bottom: 1px solid var(--linea); }
.nw-visor-vista-cab b { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-visor-pdf { flex: 1; width: 100%; border: 0; min-height: 66vh; background: #fff; }
.nw-visor-texto { width: 100%; height: 34vh; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.nw-gestion { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--linea); border-radius: 14px; }
.nw-seg-gestion { flex-wrap: wrap; }
.nw-seg-gestion button { font-size: .82rem; padding: 6px 10px; }
.nw-seg-gestion button.activo.ok { color: var(--ok); }
.nw-seg-gestion button.activo.warn { color: var(--warn); }
.nw-seg-gestion button.activo.info { color: var(--info); }
.nw-gestion textarea { resize: vertical; font: inherit; }
.nw-gestion-pie { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nw-ok-txt { color: var(--ok); font-size: .88rem; }
.nw-historial summary { cursor: pointer; color: var(--tenue); font-size: .85rem; }
.nw-historial ul { margin: 8px 0 0; padding-left: 18px; color: var(--tenue); font-size: .82rem; display: flex; flex-direction: column; gap: 4px; }

/* ── Enviar al cliente ─────────────────────────────────────────────── */
.nw-enviar { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--linea); border-radius: 14px; }
.nw-enviar textarea { resize: vertical; font: inherit; }
.nw-enviar-fila { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nw-enviar-fila .nw-input { flex: 1; min-width: 180px; }
.nw-btn-wa { background: #16a34a; color: #fff; }
.nw-btn-wa:hover:not(:disabled) { background: #15803d; }
.nw-chico { font-size: .8rem; }
.nw-fila-form.dos { grid-template-columns: 1fr 1fr; }

/* ── Bandeja unificada ─────────────────────────────────────────────── */
.nw-select { width: auto; min-width: 180px; max-width: 260px; padding: 9px 10px; }
.nw-contador { margin: 0 2px 8px; font-size: .85rem; }
.nw-bandeja { padding: 6px; }
.nw-bandeja .nw-msj { align-items: center; }
.nw-msj-empresa { font-size: .78rem; font-weight: 600; color: var(--tenue); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-chip.sunat-chip { background: var(--sunat); color: #fff; }

@media (max-width: 1100px) { .nw-crono-tira { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nw-crono-cab .nw-crono-nota { display: none; } }
@media (max-width: 1000px) {
    .nw-visor-grid.con-vista { grid-template-columns: minmax(0, 1fr); }
    .nw-visor-vista { min-height: 60vh; }
}
@media (max-width: 900px) {
    /* ⚠ minmax(0,1fr) y no 1fr: con 1fr la pista no baja de su min-content y la
       tarjeta se salía del ancho del celular (medido: 473 px en 375). */
    .nw-dos { grid-template-columns: minmax(0, 1fr); }
    .nw-esqueleto-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .nw-hero { padding: 20px; border-radius: 16px; }
    .nw-hero h1 { font-size: 1.35rem; }
    .nw-crono-tira { grid-template-columns: repeat(7, 112px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .nw-crono-dia { scroll-snap-align: start; }
    .nw-kpi { padding: 12px; gap: 10px; }
    .nw-kpi-ico { width: 38px; height: 38px; border-radius: 11px; }
    .nw-kpi b { font-size: 1.5rem; }
    .nw-kpi small { display: none; }
    .nw-fila-form { grid-template-columns: 1fr; }
    .nw-tabla-tarjetas .nw-emp-celda { justify-content: flex-end; }
    .nw-tabla-tarjetas .nw-vence { align-items: flex-end; }
}

/* ═══ Portada «pro» (11/10/2026) — prefijo nw-p2- ═══ */
.nw-p2-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 32px; }
.nw-p2-hero h1 { font-size: 2rem; }
.nw-p2-hero p { font-size: 1.02rem; max-width: 640px; }
.nw-p2-pulso { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.nw-p2-pulso span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(4px); }
.nw-p2-pulso span.alerta { background: rgba(254, 243, 199, .95); color: #92400e; border-color: transparent; }
.nw-p2-hero-der { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nw-p2-anillo { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.nw-p2-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nw-p2-anillo circle { fill: none; stroke-width: 11; }
.nw-p2-anillo .pista { stroke: rgba(255, 255, 255, .18); }
.nw-p2-anillo .avance { stroke: #6ee7b7; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.nw-p2-anillo-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.nw-p2-anillo-txt b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.nw-p2-anillo-txt small { font-size: .72rem; opacity: .85; margin-top: 3px; text-transform: uppercase; letter-spacing: .06em; }

.nw-p2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.nw-p2-kpi { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center;
    padding: 18px 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea); color: var(--txt); text-decoration: none;
    font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: transform .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.nw-p2-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k); }
.nw-p2-kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 24, 40, .12); }
.nw-p2-kpi.sunat { --k: var(--sunat); } .nw-p2-kpi.rojo { --k: var(--rojo); } .nw-p2-kpi.ambar { --k: var(--ambar); } .nw-p2-kpi.verde { --k: #059669; }
.nw-p2-kpi-ico { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--k);
    background: color-mix(in srgb, var(--k) 12%, transparent); }
.nw-p2-kpi-cifra { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--k); }
.nw-p2-kpi-tit { font-weight: 700; font-size: .92rem; }
.nw-p2-kpi-sub { grid-column: 1 / -1; margin-top: 8px; font-size: .78rem; color: var(--tenue); }
.nw-p2-kpi-sub u { text-decoration: none; color: var(--k); font-weight: 600; }

.nw-p2-cuerpo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 18px; align-items: start; margin-bottom: 22px; }
.nw-p2-lado { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.nw-p2-sec-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.nw-p2-sec-cab h3 { margin: 0; font-size: 1.08rem; }
.nw-p2-sec-cab small { color: var(--tenue); font-size: .8rem; }
.nw-p2-sec-cab.fuera { margin: 4px 2px 10px; flex-wrap: wrap; }

.nw-p2-tareas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nw-p2-tarea { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linea); background: var(--card);
    border-left: 4px solid var(--t); transition: background .15s; }
.nw-p2-tarea:hover { background: var(--hover); }
.nw-p2-tarea.n0, .nw-p2-tarea.n2 { --t: var(--rojo); } .nw-p2-tarea.n1 { --t: #ea580c; } .nw-p2-tarea.n3, .nw-p2-tarea.n4 { --t: var(--ambar); } .nw-p2-tarea.n5 { --t: #94a3b8; }
.nw-p2-tarea-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; color: var(--t); background: color-mix(in srgb, var(--t) 12%, transparent); }
.nw-p2-tarea-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nw-p2-tarea-txt b { font-size: .92rem; }
.nw-p2-tarea-txt small { color: var(--tenue); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-p2-emp { color: var(--txt); font-weight: 600; }
.nw-p2-ver { margin-top: 10px; background: none; border: 0; cursor: pointer; }
.nw-p2-todo-ok { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 14px; background: color-mix(in srgb, #059669 8%, var(--card)); }
.nw-p2-todo-ok-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #059669; color: #fff; flex-shrink: 0; }
.nw-p2-todo-ok b { font-size: 1.1rem; } .nw-p2-todo-ok p { margin: 4px 0 0; color: var(--tenue); }

.nw-p2-cal-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nw-p2-cal-lista li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; }
.nw-p2-cal-lista li.mias { border-color: color-mix(in srgb, var(--sunat) 35%, transparent); background: color-mix(in srgb, var(--sunat) 6%, var(--card)); }
.nw-p2-cal-lista li.hoy { background: var(--sunat); color: #fff; } .nw-p2-cal-lista li.hoy small { color: rgba(255, 255, 255, .85) !important; }
.nw-p2-cal-lista li.paso { opacity: .45; }
.nw-p2-cal-dia { width: 44px; text-align: center; line-height: 1; flex-shrink: 0; }
.nw-p2-cal-dia b { display: block; font-size: 1.35rem; font-weight: 800; }
.nw-p2-cal-dia small { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.nw-p2-cal-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nw-p2-cal-txt b { font-size: .84rem; } .nw-p2-cal-txt small { font-size: .74rem; color: var(--tenue); }
.nw-p2-cal-der { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nw-p2-nota { display: block; margin-top: 8px; font-size: .74rem; }

.nw-p2-atajos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nw-p2-atajo { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--linea); color: var(--txt); text-decoration: none; transition: border-color .15s, background .15s; min-width: 0; }
.nw-p2-atajo:hover { border-color: var(--sunat); background: color-mix(in srgb, var(--sunat) 5%, var(--card)); }
.nw-p2-atajo-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--sunat) 12%, transparent); color: var(--sunat); flex-shrink: 0; }
.nw-p2-atajo span:last-child { display: flex; flex-direction: column; min-width: 0; }
.nw-p2-atajo b { font-size: .82rem; } .nw-p2-atajo small { font-size: .72rem; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nw-p2-leyenda { display: flex; gap: 14px; font-size: .78rem; color: var(--tenue); align-items: center; }
.nw-p2-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.nw-p2-leyenda i.p, .nw-p2-semaforo { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.p.ok, .nw-p2-semaforo.ok { background: #10b981; } .p.warn, .nw-p2-semaforo.warn { background: #f59e0b; } .p.err, .nw-p2-semaforo.err { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.nw-p2-actual td { background: color-mix(in srgb, var(--sunat) 5%, transparent); }

@media (max-width: 1200px) { .nw-p2-cuerpo { grid-template-columns: minmax(0, 1fr); } .nw-p2-lado { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .nw-p2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-p2-lado { grid-template-columns: minmax(0, 1fr); } .nw-p2-anillo { width: 90px; height: 90px; } }
@media (max-width: 560px) { .nw-p2-kpis { grid-template-columns: minmax(0, 1fr); } .nw-p2-hero { padding: 22px; } .nw-p2-hero h1 { font-size: 1.5rem; }
    .nw-p2-tarea { flex-wrap: wrap; } .nw-p2-atajos-grid { grid-template-columns: minmax(0, 1fr); } }
/* Atajos debajo de la agenda (columna izquierda); el cronograma solo a la derecha. */
.nw-p2-izq { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.nw-p2-izq .nw-p2-atajos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) { .nw-p2-lado { display: flex; } }
@media (max-width: 760px) { .nw-p2-izq .nw-p2-atajos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nw-p2-izq .nw-p2-atajos-grid { grid-template-columns: minmax(0, 1fr); } }
/* Portada v2.1 (11/10/2026): cronograma en TIRA compacta de ancho completo; agenda | atajos a la par. */
.nw-p2-cal { padding: 12px 16px !important; margin-bottom: 18px; }
.nw-p2-cal-cab { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.nw-p2-cal-cab h3 { margin: 0; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; }
.nw-p2-cal-cab a { margin-left: auto; }
.nw-p2-tira { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.nw-p2-dia { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 11px; border: 1px solid var(--linea); background: var(--card); min-width: 0; }
.nw-p2-dia.mias { border-color: color-mix(in srgb, var(--sunat) 45%, transparent); background: color-mix(in srgb, var(--sunat) 7%, var(--card)); }
.nw-p2-dia.hoy { background: var(--sunat); border-color: var(--sunat); color: #fff; }
.nw-p2-dia.hoy small, .nw-p2-dia.hoy .nw-p2-dia-c { color: rgba(255, 255, 255, .9) !important; }
.nw-p2-dia.paso { opacity: .45; }
.nw-p2-dia-f { text-align: center; line-height: 1; flex-shrink: 0; }
.nw-p2-dia-f b { display: block; font-size: 1.25rem; font-weight: 800; }
.nw-p2-dia-f small { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.nw-p2-dia-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.nw-p2-dia-t b { font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-p2-dia-t small { font-size: .68rem; color: var(--tenue); white-space: nowrap; }
.nw-p2-dia-c { font-size: .68rem; font-weight: 700; color: var(--tenue); white-space: nowrap; }
.nw-p2-dia.mias .nw-p2-dia-c { color: var(--sunat); }
.nw-p2-cuerpo { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important; }
.nw-p2-cuerpo .nw-p2-atajos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1350px) { .nw-p2-tira { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .nw-p2-cuerpo { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 700px) { .nw-p2-tira { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-p2-cuerpo .nw-p2-atajos-grid { grid-template-columns: minmax(0, 1fr); } }

/* ═══ Tablero v3 (11/10/2026): sobrio y ordenado — prefijo nw-t3- ═══ */
/* Seguro contra desbordes: la página NUNCA pasa del ancho de la ventana (la barra de arriba la estiraba). */
.nw-shell { max-width: 100vw; }
.nw-principal { overflow-x: clip; }
.nw-top > * { flex-shrink: 0; }
.menu-arriba .nw-arr-menu { flex-shrink: 1; }
@media (max-width: 1500px) { .menu-arriba .nw-arr-menu > a.nw-arr-op span { display: none; } }

.nw-t3-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.nw-t3-fecha { font-size: .8rem; font-weight: 600; color: var(--tenue); letter-spacing: .02em; }
.nw-t3-cab h1 { margin: 2px 0 4px; font-size: 1.6rem; letter-spacing: -.02em; }
.nw-t3-cab p { margin: 0; color: var(--tenue); font-size: .95rem; }
.nw-t3-acc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nw-t3-progreso { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.nw-t3-progreso .nw-progreso { width: 160px; }

.nw-t3-metricas { display: grid; grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--linea);
    border-radius: 16px; margin-bottom: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.nw-t3-met { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 0; border-left: 1px solid var(--linea); background: none;
    color: var(--txt); text-decoration: none; text-align: left; font: inherit; cursor: pointer; min-width: 0; transition: background .15s; }
.nw-t3-met:hover { background: var(--hover); }
.nw-t3-met.principal { border-left: 0; cursor: default; background: color-mix(in srgb, var(--sunat) 4%, var(--card)); }
.nw-t3-met-tit { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--tenue); text-transform: uppercase; letter-spacing: .04em; }
.nw-t3-met-cifra { font-size: 1.9rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nw-t3-met-cifra small { font-size: 1rem; font-weight: 700; margin-left: 2px; color: var(--tenue); }
.nw-t3-met-cifra.rojo { color: var(--rojo); }
.nw-t3-met-sub { font-size: .76rem; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-t3-met-sub u { text-decoration: none; color: var(--sunat); font-weight: 600; }
.nw-t3-barra { height: 6px; border-radius: 99px; background: var(--gris-bg); overflow: hidden; margin: 2px 0 2px; }
.nw-t3-barra i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #10b981, #059669); }
.nw-t3-met-tit i.p { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
i.p.azul { background: var(--sunat); } i.p.rojo { background: var(--rojo); } i.p.ambar { background: var(--ambar); } i.p.gris { background: #94a3b8; }

.nw-t3-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; margin-bottom: 22px; align-items: start; }
.nw-t3-card { padding: 16px 18px !important; }
.nw-t3-card-cab { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.nw-t3-card-cab h3 { margin: 0; font-size: 1rem; }
.nw-t3-card-cab small { color: var(--tenue); font-size: .78rem; }
.nw-t3-card-cab a { margin-left: auto; }
.nw-t3-cuenta { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--rojo); color: #fff; font-size: .74rem; font-weight: 700; display: inline-grid; place-items: center; }

.nw-t3-lista { list-style: none; margin: 0; padding: 0; }
.nw-t3-lista li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--linea); }
.nw-t3-lista li:first-child { border-top: 0; }
.nw-t3-marca { width: 4px; align-self: stretch; border-radius: 4px; background: var(--t); flex-shrink: 0; }
.nw-t3-lista li.n0, .nw-t3-lista li.n2 { --t: var(--rojo); } .nw-t3-lista li.n1 { --t: #ea580c; } .nw-t3-lista li.n3, .nw-t3-lista li.n4 { --t: var(--ambar); } .nw-t3-lista li.n5 { --t: #94a3b8; }
.nw-t3-lista-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nw-t3-lista-txt b { font-size: .9rem; }
.nw-t3-lista-txt small { color: var(--tenue); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-t3-accion { font-size: .8rem; font-weight: 600; color: var(--sunat); text-decoration: none; white-space: nowrap; padding: 6px 10px; border-radius: 8px; }
.nw-t3-accion:hover { background: var(--sunat-suave); }
.nw-t3-ver { margin-top: 6px; background: none; border: 0; cursor: pointer; }
.nw-t3-ok { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, #10b981 9%, var(--card)); color: #047857; }
.nw-t3-ok div { display: flex; flex-direction: column; } .nw-t3-ok span { color: var(--tenue); font-size: .82rem; }

.nw-t3-venc { width: 100%; border-collapse: collapse; font-size: .82rem; }
.nw-t3-venc td { padding: 7px 6px; border-top: 1px solid var(--linea); white-space: nowrap; color: var(--tenue); }
.nw-t3-venc tr:first-child td { border-top: 0; }
.nw-t3-venc td b { color: var(--txt); font-variant-numeric: tabular-nums; }
.nw-t3-venc td.g { color: var(--txt); font-weight: 600; }
.nw-t3-venc td.e { color: var(--sunat); font-weight: 700; text-align: right; }
.nw-t3-venc td.d { text-align: right; font-size: .76rem; }
.nw-t3-venc tr.mias td.g { color: var(--sunat); }
.nw-t3-venc tr.mias { background: color-mix(in srgb, var(--sunat) 5%, transparent); }
.nw-t3-venc tr.hoy td { color: var(--sunat); font-weight: 700; }
.nw-t3-venc tr.paso { opacity: .45; }
.nw-t3-nota { display: block; margin-top: 8px; font-size: .74rem; }

@media (max-width: 1250px) { .nw-t3-metricas { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nw-t3-met:nth-child(4) { border-left: 0; } .nw-t3-met:nth-child(n+4) { border-top: 1px solid var(--linea); } }
@media (max-width: 1050px) { .nw-t3-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .nw-t3-metricas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-t3-met { border-left: 0; border-top: 1px solid var(--linea); }
    .nw-t3-met.principal { grid-column: 1 / -1; border-top: 0; } .nw-t3-cab h1 { font-size: 1.35rem; } }

/* ═══ Buscador de funciones (Ctrl+K) ═══ */
.nw-bus-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--linea);
    background: var(--card); color: var(--tenue); font: inherit; font-size: .85rem; cursor: pointer; min-width: 0; }
.nw-bus-btn:hover { border-color: var(--sunat); color: var(--txt); }
.nw-bus-btn kbd, .nw-bus-entrada kbd, .nw-bus-pie kbd { font: 600 .68rem/1 inherit; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--linea); background: var(--hover); color: var(--tenue); }
.nw-bus-velo { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .35); backdrop-filter: blur(2px); }
.nw-bus-panel { position: fixed; z-index: 81; top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); max-height: 72vh;
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--linea); border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); overflow: hidden; }
.nw-bus-entrada { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linea); color: var(--tenue); }
.nw-bus-entrada input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 1.02rem; color: var(--txt); min-width: 0; }
.nw-bus-res { overflow-y: auto; padding: 6px 8px 8px; }
.nw-bus-grupo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tenue); padding: 10px 8px 4px; }
.nw-bus-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--txt); font: inherit; text-align: left; cursor: pointer; }
.nw-bus-item.sel { background: var(--sunat-suave); }
.nw-bus-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--hover); color: var(--sunat); flex-shrink: 0; }
.nw-bus-item.sel .nw-bus-ico { background: var(--sunat); color: #fff; }
.nw-bus-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nw-bus-item-txt b { font-size: .9rem; } .nw-bus-item-txt small { font-size: .76rem; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-bus-enter { color: var(--sunat); font-weight: 700; }
.nw-bus-vacio { padding: 18px 10px; color: var(--tenue); font-size: .9rem; }
.nw-bus-pie { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--linea); font-size: .74rem; color: var(--tenue); }
.nw-bus-pie span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 1350px) { .nw-bus-txt, .nw-bus-btn kbd { display: none; } .nw-bus-btn { padding: 0 10px; } }

/* Barra superior: que TODO quepa (medido 11/10/2026: el menú pedía 950 px y tenía 749 → se montaba sobre el buscador). */
.menu-arriba .nw-arr-menu { flex-shrink: 0; }
.nw-bus-btn { max-width: 230px; }
.nw-bus-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-selemp { flex: 0 1 230px; }
@media (max-width: 1700px) { .menu-arriba .nw-arr-menu > a.nw-arr-op span { display: none; } }
@media (max-width: 1350px) { .menu-arriba .nw-arr-grupo > .nw-arr-op span:not(.nw-arr-flecha) { display: none; } }

/* ═══ Seguimiento por etapas (11/10/2026): Por atender → En proceso → Esperando respuesta → Terminado ═══ */
.nw-etapa { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px;
    background: color-mix(in srgb, var(--c) 12%, var(--card)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); white-space: nowrap; }
.nw-etapa::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.nw-etapa.err { --c: var(--rojo); } .nw-etapa.warn { --c: #d97706; } .nw-etapa.info { --c: var(--sunat); } .nw-etapa.ok { --c: #059669; }

.nw-seg-etapas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--linea);
    border-radius: 14px; overflow: hidden; margin: 4px 0 12px; }
.nw-seg-etapa { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 12px 16px; border: 0;
    border-left: 1px solid var(--linea); background: none; color: var(--txt); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.nw-seg-etapa:first-child { border-left: 0; }
.nw-seg-etapa:hover { background: var(--hover); }
.nw-seg-etapa-txt { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-seg-etapa b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.nw-seg-etapa small { grid-column: 1 / -1; color: var(--tenue); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-seg-etapa.activo { background: var(--sunat-suave); }
.nw-seg-etapa.activo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sunat); }
.nw-seg-etapa.atender b { color: var(--rojo); } .nw-seg-etapa.proceso b { color: #d97706; } .nw-seg-etapa.espera b { color: var(--sunat); } .nw-seg-etapa.cerrado b { color: #059669; }

.nw-seg-alertas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nw-seg-alerta { border: 1px solid color-mix(in srgb, var(--rojo) 35%, transparent); background: color-mix(in srgb, var(--rojo) 8%, var(--card));
    color: var(--rojo); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.nw-seg-alerta.chat { --r: var(--sunat); border-color: color-mix(in srgb, var(--sunat) 35%, transparent); background: var(--sunat-suave); color: var(--sunat); }
.nw-seg-alerta.activo { outline: 2px solid currentColor; }

.nw-msj-sigue { margin-top: 4px; font-size: .8rem; color: var(--tenue); }
.nw-msj-sigue.alerta { color: var(--rojo); font-weight: 600; }

.nw-segui { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--linea); border-radius: 14px;
    background: color-mix(in srgb, var(--sunat) 3%, var(--card)); margin-bottom: 14px; }
.nw-segui-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nw-segui-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; }
.nw-segui-pasos li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .74rem; color: var(--tenue); text-align: center; }
.nw-segui-pasos li span { z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem;
    background: var(--card); border: 2px solid var(--linea); color: var(--tenue); }
.nw-segui-pasos li:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--linea); }
.nw-segui-pasos li.hecho span { background: #059669; border-color: #059669; color: #fff; }
.nw-segui-pasos li.hecho::after { background: #059669 !important; }
.nw-segui-pasos li.actual { color: var(--txt); font-weight: 700; }
.nw-segui-pasos li.actual span { border-color: var(--sunat); background: var(--sunat); color: #fff; box-shadow: 0 0 0 4px var(--sunat-suave); }
.nw-segui-sigue { padding: 9px 12px; border-radius: 10px; background: var(--card); border: 1px dashed var(--linea); font-size: .88rem; }
.nw-segui-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nw-segui-mas summary, .nw-segui .nw-historial summary { cursor: pointer; color: var(--tenue); font-size: .84rem; }
.nw-segui-campos { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.nw-segui-campos label { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 600; }
.nw-segui-campos textarea { resize: vertical; font: inherit; }
.nw-segui-ayuda { display: block; margin: -4px 0 8px; }

@media (max-width: 900px) { .nw-seg-etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-seg-etapa { border-top: 1px solid var(--linea); }
    .nw-seg-etapa:first-child { grid-column: 1 / -1; border-top: 0; } }

/* ═══ Menú de la cuenta (11/10/2026, como FaciWeb) ═══ */
.nw-cta { position: relative; flex-shrink: 0; }
.nw-cta-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--linea);
    background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; font: 700 .82rem/1 inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.nw-cta-avatar.grande { width: 44px; height: 44px; font-size: .95rem; flex-shrink: 0; cursor: default; }
.nw-cta-velo { position: fixed; inset: 0; z-index: 70; }
.nw-cta-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 71; width: 300px; max-width: calc(100vw - 24px); background: var(--card);
    border: 1px solid var(--linea); border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); padding: 8px; display: flex; flex-direction: column; }
.nw-cta-cab { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--linea); margin-bottom: 4px; }
.nw-cta-cab > div { display: flex; flex-direction: column; min-width: 0; }
.nw-cta-cab b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-cta-cab small { color: var(--tenue); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-cta-rol { color: var(--sunat) !important; font-weight: 600; }
.nw-cta-tema { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--linea); margin-bottom: 4px; font-size: .88rem; }
.nw-cta-tema .nw-seg button { padding: 4px 10px; font-size: .8rem; }
.nw-cta-op { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--txt);
    font: inherit; font-size: .88rem; text-align: left; text-decoration: none; cursor: pointer; }
.nw-cta-op:hover { background: var(--hover); }
.nw-cta-op.salir { color: var(--rojo); border-top: 1px solid var(--linea); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* Página Instalar */
.nw-inst-estado { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.nw-inst-pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.nw-inst-pasos h3, .nw-inst-pasos + .nw-tarjeta h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; }
.nw-inst-pasos ol, .nw-inst-pasos + .nw-tarjeta ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.6; }
.nw-inst-n { width: 24px; height: 24px; border-radius: 50%; background: var(--sunat); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; }
@media (max-width: 900px) { .nw-inst-pasos { grid-template-columns: minmax(0, 1fr); } }

/* ═══ Portada v4 (12/10/2026): pendientes con la EMPRESA primero + próximos vencimientos por empresa ═══ */
.nw-t3-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
.nw-t3-card { display: flex; flex-direction: column; }
.nw-t4-lista { list-style: none; margin: 0; padding: 0; flex: 1; }
.nw-t4-lista li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--linea); min-height: 56px; }
.nw-t4-lista li:first-child { border-top: 0; }
.nw-t4-lista li.n0, .nw-t4-lista li.n2 { --t: var(--rojo); } .nw-t4-lista li.n1 { --t: #ea580c; }
.nw-t4-lista li.n3, .nw-t4-lista li.n4 { --t: var(--ambar); } .nw-t4-lista li.n5 { --t: #94a3b8; }
.nw-t4-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nw-t4-fila1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nw-t4-fila1 b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nw-t4-txt small { color: var(--tenue); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-t4-txt small b { color: var(--txt); font-variant-numeric: tabular-nums; }
.nw-t4-chip { flex-shrink: 0; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
    color: var(--t); background: color-mix(in srgb, var(--t) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.nw-t4-cuenta-ambar { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--ambar); color: #fff; font-size: .74rem; font-weight: 700; display: inline-grid; place-items: center; }
.nw-t4-dias { flex-shrink: 0; min-width: 74px; text-align: center; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 10px;
    background: var(--hover); color: var(--tenue); font-variant-numeric: tabular-nums; }
.nw-t4-dias.err { background: color-mix(in srgb, var(--rojo) 12%, var(--card)); color: var(--rojo); }
.nw-t4-dias.warn { background: color-mix(in srgb, #f59e0b 14%, var(--card)); color: #b45309; }
.nw-t4-dias.info { background: var(--sunat-suave); color: var(--sunat); }
.nw-t4-dias.ok { background: color-mix(in srgb, #10b981 10%, var(--card)); color: #047857; }
.nw-t4-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--linea); }
.nw-t4-pie-der { display: flex; gap: 14px; margin-left: auto; }
@media (max-width: 1050px) { .nw-t3-grid { grid-template-columns: minmax(0, 1fr); } }

.nw-t4-hecho { color: #059669; text-decoration: line-through; text-decoration-color: color-mix(in srgb, #059669 50%, transparent); }
.nw-t4-hecho b { color: #059669 !important; }
