/* NV Gestor 7.5 · Verificar con TXT. Modal flotante minimalista con los colores del tema activo. */
html.nvtxt-bloq { overflow: hidden; }
.nvtxt-capa {
  --a: var(--accent, #5B6FE0); --a2: var(--accent2, #8B9AEA); --on-a: var(--nv54-on-accent, #fff);
  --s0: var(--bg, #080810); --s1: var(--bg2, #0d0d17); --s2: var(--bg3, #13131e);
  --ln: color-mix(in srgb, var(--text, #fff) 8%, transparent); --ln2: color-mix(in srgb, var(--text, #fff) 14%, transparent);
  --tx: var(--text, #eeeeff); --tx2: var(--text2, #b8c0de); --tx3: var(--text3, #7880a8);
  --ok: var(--green2, #34d399); --warn: var(--amber2, #fcd34d); --bad: var(--red2, #f87171);
  --fb: 'Onest', 'Geist', 'DM Sans', 'Segoe UI', system-ui, sans-serif; --fm: 'JetBrains Mono', ui-monospace, monospace;
  --ez: cubic-bezier(.22, 1, .36, 1);
  position: fixed; inset: 0; z-index: 100025; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: color-mix(in srgb, var(--s0) 62%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s ease; font-family: var(--fb); color: var(--tx); font-size: 14px; line-height: 1.45;
}
.nvtxt-capa[hidden] { display: none !important; }
.nvtxt-capa.ver { opacity: 1; }
.nvtxt-capa *, .nvtxt-capa *::before, .nvtxt-capa *::after { box-sizing: border-box; }
.nvtxt-capa button, .nvtxt-capa input, .nvtxt-capa select, .nvtxt-capa textarea { font-family: inherit; color: inherit; }
.nvtxt-capa :focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.nvtxt-capa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.nvtxt-caja { width: min(640px, 100%); max-height: min(720px, 100%); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; outline: none;
  background: var(--s1); border: 1px solid var(--ln2); box-shadow: 0 40px 110px -30px rgba(0, 0, 0, .8);
  transform: translateY(14px) scale(.97); transition: transform .4s var(--ez), width .45s var(--ez); }
.nvtxt-capa.ver .nvtxt-caja { transform: none; }
.nvtxt-caja:has(.nvtxt-stats) { width: min(860px, 100%); }
.nvtxt-cab { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px 20px; border-bottom: 1px solid var(--ln); }
.nvtxt-cab > div { flex: 1; min-width: 0; }
.nvtxt-cab h2 { margin: 0; font: 700 18px/1.2 var(--fb); letter-spacing: -.02em; }
.nvtxt-cab p { margin: 2px 0 0; font-size: 13px; color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvtxt-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--a2); background: color-mix(in srgb, var(--a) 14%, transparent); }
.nvtxt-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--ln); background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--tx3); transition: color .2s, background .2s, transform .3s var(--ez); }
.nvtxt-ico:hover { color: var(--tx); background: var(--s2); }
.nvtxt-ico[data-x="cerrar"]:hover { transform: rotate(90deg); }
.nvtxt-ico.mini { width: 30px; height: 30px; border-radius: 8px; border-color: transparent; }
.nvtxt-ico.mini svg { width: 15px; height: 15px; }
.nvtxt-ico-vacio { width: 30px; }

.nvtxt-cuerpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 0; scrollbar-width: thin; scrollbar-color: var(--ln2) transparent; }
.nvtxt-cuerpo.entra > * { animation: nvtxtSube .38s var(--ez) backwards; }
.nvtxt-cuerpo.entra > :nth-child(2) { animation-delay: .03s; } .nvtxt-cuerpo.entra > :nth-child(3) { animation-delay: .06s; } .nvtxt-cuerpo.entra > :nth-child(4) { animation-delay: .09s; } .nvtxt-cuerpo.entra > :nth-child(5) { animation-delay: .12s; } .nvtxt-cuerpo.entra > :nth-child(6) { animation-delay: .15s; }

/* Paso 1: carga */
.nvtxt-paso { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--tx2); }
.nvtxt-paso span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--fm); color: var(--a2); background: color-mix(in srgb, var(--a) 14%, transparent); }
.nvtxt-paso:not(:first-child) { margin-top: 20px; }
.nvtxt-fila { display: flex; flex-wrap: wrap; gap: 8px; }
.nvtxt-sel { flex: 1 1 200px; }
.nvtxt-sel select { width: 100%; min-height: 40px; padding: 0 34px 0 12px; border-radius: 11px; border: 1px solid var(--ln2); color: var(--tx); font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--s0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.nvtxt-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--ln); background: var(--s0); }
.nvtxt-seg button { border: 0; background: transparent; cursor: pointer; padding: 0 12px; min-height: 32px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--tx3); transition: background .2s, color .2s; }
.nvtxt-seg button[aria-pressed="true"] { background: var(--s2); color: var(--tx); box-shadow: 0 0 0 1px var(--ln2); }
.nvtxt-zona { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border-radius: 16px; border: 1.5px dashed var(--ln2); background: var(--s0); cursor: pointer; text-align: center; transition: border-color .2s, background .2s, transform .3s var(--ez); }
.nvtxt-zona:hover { border-color: color-mix(in srgb, var(--a) 50%, transparent); }
.nvtxt-zona.sobre { border-color: var(--a); background: color-mix(in srgb, var(--a) 8%, var(--s0)); transform: scale(1.01); }
.nvtxt-zona-ico { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; display: grid; place-items: center; color: var(--a2); background: color-mix(in srgb, var(--a) 12%, transparent); transition: transform .35s var(--ez); }
.nvtxt-zona:hover .nvtxt-zona-ico, .nvtxt-zona.sobre .nvtxt-zona-ico { transform: translateY(-3px); }
.nvtxt-zona b { font-size: 14.5px; }
.nvtxt-zona small { font-size: 12.5px; color: var(--tx3); }
.nvtxt-archivos { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.nvtxt-archivos:empty { display: none; }
.nvtxt-arch { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 12px; border: 1px solid var(--ln); background: var(--s0); color: var(--ok); animation: nvtxtSube .3s var(--ez) backwards; animation-delay: calc(var(--i) * 40ms); }
.nvtxt-arch b { flex: 1; min-width: 0; color: var(--tx); font-weight: 550; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvtxt-arch small { font-size: 12px; color: var(--tx3); white-space: nowrap; }
.nvtxt-pegar { margin-top: 10px; }
.nvtxt-pegar summary { cursor: pointer; font-size: 13px; color: var(--tx2); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.nvtxt-pegar summary::before { content: "+"; font: 600 14px var(--fm); color: var(--a2); transition: transform .25s; }
.nvtxt-pegar[open] summary::before { transform: rotate(45deg); }
.nvtxt-pegar textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--s0); color: var(--tx); font: 400 13px/1.55 var(--fm); resize: vertical; outline: none; }
.nvtxt-pegar textarea:focus { border-color: var(--a); }
.nvtxt-priv { margin: 14px 0 0; font-size: 12px; color: var(--tx3); }

.nvtxt-pie { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 18px -20px 0; padding: 12px 20px; border-top: 1px solid var(--ln); background: color-mix(in srgb, var(--s1) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nvtxt-esp { flex: 1; }
.nvtxt-b { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; background: var(--a); color: var(--on-a); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: filter .2s, transform .15s, opacity .2s; }
.nvtxt-b svg { width: 16px; height: 16px; }
.nvtxt-b:hover { filter: brightness(1.1); }
.nvtxt-b:active { transform: scale(.97); }
.nvtxt-b:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.nvtxt-b.sec { background: transparent; border-color: var(--ln2); color: var(--tx); }
.nvtxt-b.sec:hover { background: var(--s2); filter: none; }

/* Paso 2: resultado */
.nvtxt-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.nvtxt-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ln); background: var(--s0); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .25s var(--ez); }
.nvtxt-stat:hover { border-color: var(--ln2); transform: translateY(-1px); }
.nvtxt-stat[aria-pressed="true"] { border-color: color-mix(in srgb, var(--a) 55%, transparent); background: color-mix(in srgb, var(--a) 8%, var(--s0)); }
.nvtxt-stat b { font: 600 21px/1.1 var(--fm); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nvtxt-stat span { font-size: 12px; color: var(--tx2); line-height: 1.3; }
.nvtxt-stat small { font-size: 11px; color: var(--tx3); }
.nvtxt-stat.vigente b { color: var(--ok); } .nvtxt-stat.vencida b { color: var(--bad); } .nvtxt-stat.falta b { color: var(--warn); } .nvtxt-stat.sobra b { color: var(--a2); }
.nvtxt-avisos { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: var(--tx2); background: color-mix(in srgb, var(--warn) 8%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); }
.nvtxt-avisos svg { width: 16px; height: 16px; color: var(--warn); }
.nvtxt-avisos button { border: 0; background: none; padding: 0; color: var(--tx); font-size: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tx) 30%, transparent); text-underline-offset: 3px; }
.nvtxt-barra { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 10px; }
.nvtxt-buscar { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--ln2); background: var(--s0); color: var(--tx3); }
.nvtxt-buscar:focus-within { border-color: var(--a); color: var(--tx2); }
.nvtxt-buscar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--tx); font-size: 13.5px; }
.nvtxt-chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nvtxt-chip { flex-shrink: 0; border: 1px solid var(--ln); background: transparent; border-radius: 999px; padding: 0 11px; min-height: 30px; font-size: 12.5px; font-weight: 550; color: var(--tx2); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.nvtxt-chip:hover { border-color: var(--ln2); color: var(--tx); }
.nvtxt-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--a) 14%, transparent); border-color: color-mix(in srgb, var(--a) 45%, transparent); color: var(--tx); }

.nvtxt-lista { display: flex; flex-direction: column; border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; }
.nvtxt-item { position: relative; display: grid; grid-template-columns: 4px minmax(0, 1fr) auto 128px 30px; align-items: center; gap: 12px; padding: 9px 8px 9px 0; border-top: 1px solid var(--ln); background: var(--s1); transition: background .2s; }
.nvtxt-item:first-child { border-top: 0; }
.nvtxt-item:hover { background: color-mix(in srgb, var(--s2) 55%, var(--s1)); }
.nvtxt-lista.anim .nvtxt-item { animation: nvtxtSube .32s var(--ez) backwards; animation-delay: calc(var(--i) * 18ms); }
.nvtxt-marca { align-self: stretch; margin: 6px 0; border-radius: 0 3px 3px 0; background: var(--ok); }
.nvtxt-item.falta .nvtxt-marca { background: var(--warn); } .nvtxt-item.sobra .nvtxt-marca { background: var(--a2); }
.nvtxt-quien { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nvtxt-quien b { font: 550 13px/1.35 var(--fm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvtxt-quien small { font-size: 12px; color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvtxt-quien em { font-style: normal; color: var(--warn); }
.nvtxt-fechas { display: flex; gap: 10px; font-size: 12px; color: var(--tx2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nvtxt-fechas span { display: flex; flex-direction: column; line-height: 1.25; }
.nvtxt-fechas small { font-size: 10.5px; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.nvtxt-fechas .dif { color: var(--warn); }
.nvtxt-est { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--tx3); background: color-mix(in srgb, var(--tx3) 14%, transparent); }
.nvtxt-est::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nvtxt-est.vigente { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.nvtxt-est.pronto { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.nvtxt-est.vencida { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.nvtxt-est.notxt { color: var(--a2); background: color-mix(in srgb, var(--a2) 12%, transparent); }
.nvtxt-vacio { padding: 36px 16px; text-align: center; color: var(--tx3); }
.nvtxt-vacio b { display: block; color: var(--tx); font-size: 15px; margin-bottom: 4px; }
.nvtxt-vacio p { margin: 0; font-size: 13px; }
.nvtxt-mas { margin: 0; padding: 10px; text-align: center; font-size: 12px; color: var(--tx3); }

/* Botón dentro de cada plataforma */
.nvtxt-btn-plat { display: inline-flex !important; align-items: center; gap: 6px; margin-left: auto; font-size: 12px !important; padding: 5px 11px !important; white-space: nowrap; border-radius: 9px;
  color: var(--text2, #ccc) !important; background: transparent !important; border: 1px solid color-mix(in srgb, var(--text, #fff) 14%, transparent) !important; transition: color .2s, border-color .2s, background .2s; }
.nvtxt-btn-plat svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nvtxt-btn-plat:hover { color: var(--text, #fff) !important; border-color: color-mix(in srgb, var(--accent, #5B6FE0) 55%, transparent) !important; background: color-mix(in srgb, var(--accent, #5B6FE0) 10%, transparent) !important; }

@keyframes nvtxtSube { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 640px) {
  .nvtxt-capa { padding: 10px; align-items: flex-end; }
  .nvtxt-caja { max-height: 100%; border-radius: 18px; }
  .nvtxt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvtxt-stats .nvtxt-stat:first-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; }
  .nvtxt-item { grid-template-columns: 4px minmax(0, 1fr) auto; row-gap: 6px; }
  .nvtxt-item .nvtxt-fechas { grid-column: 2; grid-row: 2; }
  .nvtxt-item .nvtxt-est { grid-column: 3; grid-row: 1; }
  .nvtxt-item .nvtxt-ico, .nvtxt-item .nvtxt-ico-vacio { grid-column: 3; grid-row: 2; justify-self: end; }
  .nvtxt-pie { flex-wrap: wrap; }
  .nvtxt-pie .nvtxt-esp { display: none; }
  .nvtxt-pie .nvtxt-b { flex: 1 1 40%; justify-content: center; min-width: 0; white-space: nowrap; }
  .nvtxt-pie .nvtxt-b:last-child:not(:first-child) { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nvtxt-capa *, .nvtxt-capa *::before, .nvtxt-capa *::after, .nvtxt-caja { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Defensa contra estilos generales de la web */
.nvtxt-capa .nvtxt-caja:focus, .nvtxt-capa .nvtxt-caja:focus-visible { outline: none; }
.nvtxt-capa button, .nvtxt-capa select, .nvtxt-capa input, .nvtxt-capa textarea { text-transform: none; letter-spacing: normal; box-shadow: none; }
.nvtxt-capa .nvtxt-b { width: auto; height: auto; min-width: 0; margin: 0; line-height: 1.2; justify-content: center; }
.nvtxt-capa .nvtxt-sel select { text-align: left !important; text-align-last: left !important; height: 40px; line-height: normal; }
.nvtxt-capa .nvtxt-seg button[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--ln2); }

@media (max-width: 640px) {
  .nvtxt-capa .nvtxt-pie { flex-wrap: wrap !important; }
  .nvtxt-capa .nvtxt-pie .nvtxt-b { flex: 1 1 40% !important; }
  .nvtxt-capa .nvtxt-pie .nvtxt-b:last-child:not(:first-child) { flex-basis: 100% !important; }
}

/* ── 7.5.2 Renovar fechas desde el archivo ── */
.nvtxt-capa .nvtxt-renovar { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 10px 10px 10px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--s0)); animation: nvtxtSube .35s var(--ez) backwards; }
.nvtxt-capa .nvtxt-ren-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.nvtxt-capa .nvtxt-ren-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nvtxt-capa .nvtxt-ren-ico.gira svg { animation: nvtxtGira 1s linear infinite; }
@keyframes nvtxtGira { to { transform: rotate(360deg); } }
.nvtxt-capa .nvtxt-ren-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.nvtxt-capa .nvtxt-ren-txt b { font-size: 13.5px; font-weight: 600; color: var(--tx); line-height: 1.3; }
.nvtxt-capa .nvtxt-ren-txt small { font-size: 12px; color: var(--tx3); line-height: 1.35; }
.nvtxt-capa .nvtxt-ren-txt small button { all: unset; cursor: pointer; color: var(--ok); text-decoration: underline; text-underline-offset: 2px; }
.nvtxt-capa .nvtxt-renovar .nvtxt-b { background: var(--ok) !important; color: #06281c !important; flex-shrink: 0; }
.nvtxt-capa .nvtxt-renovar .nvtxt-b.sec { background: transparent !important; color: var(--tx) !important; border-color: var(--ln2) !important; }
.nvtxt-capa .nvtxt-ren-bts { display: flex; gap: 6px; flex-shrink: 0; }
.nvtxt-capa .nvtxt-renovar.pregunta { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.nvtxt-capa .nvtxt-renovar.ok { border-style: dashed; }
.nvtxt-capa .nvtxt-hecho { color: var(--ok); }
.nvtxt-capa .nvtxt-hecho svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .nvtxt-capa .nvtxt-renovar { flex-wrap: wrap; }
  .nvtxt-capa .nvtxt-renovar > .nvtxt-b, .nvtxt-capa .nvtxt-ren-bts { flex: 1 1 100%; }
  .nvtxt-capa .nvtxt-ren-bts .nvtxt-b { flex: 1; justify-content: center; }
  .nvtxt-capa .nvtxt-renovar > .nvtxt-b { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nvtxt-capa .nvtxt-ren-ico.gira svg { animation: none; } }
