/* ════════════════════════════════════════════════════════════════
   NV Gestor 7.4 · Suscripciones (panel del administrador)
   Para hoy · Cuentas (lista + ficha) · Pagos · Precios.
   Usa los colores del tema activo del Gestor (--accent, --bg…).
   ════════════════════════════════════════════════════════════════ */
html.nvs-bloq { overflow: hidden; }
.nvs-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); --s3: var(--bg4, #1a1a28);
  --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', 'Geist Mono', ui-monospace, monospace;
  --ez: cubic-bezier(.22, 1, .36, 1); --ez2: cubic-bezier(.65, 0, .35, 1);
  position: fixed; inset: 0; z-index: 100020; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: color-mix(in srgb, var(--s0) 60%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  opacity: 0; transition: opacity .32s ease; font-family: var(--fb); color: var(--tx); font-size: 14px; line-height: 1.45;
}
.nvs-capa[hidden] { display: none !important; }
.nvs-capa.nvs-ver { opacity: 1; }
.nvs-capa *, .nvs-capa *::before, .nvs-capa *::after { box-sizing: border-box; }
.nvs-capa button, .nvs-capa input, .nvs-capa select, .nvs-capa textarea { font-family: inherit; color: inherit; }
.nvs-capa :focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.nvs-capa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nvs-capa kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--ln2); border-bottom-width: 2px; font: 600 10.5px/1 var(--fm); color: var(--tx3); background: var(--s1); }

/* Hoja */
.nvs-hoja {
  position: relative; width: min(1020px, 100%); height: min(720px, 100%); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; background: var(--s1); outline: none;
  border: 1px solid var(--ln2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .25);
  transform: translateY(18px) scale(.96); opacity: 0; transition: transform .45s var(--ez), opacity .3s ease;
}
.nvs-ver .nvs-hoja { transform: none; opacity: 1; }
.nvs-hoja::before { content: ""; position: absolute; inset: 0 0 auto; height: 180px; pointer-events: none;
  background: radial-gradient(60% 100% at 18% 0%, color-mix(in srgb, var(--a) 14%, transparent), transparent 70%); }

/* Cabecera */
.nvs-cab { position: relative; display: flex; align-items: center; gap: 8px; padding: 18px 22px 0; }
.nvs-titulo { margin-right: auto; min-width: 0; }
.nvs-eti { margin: 0 0 4px; font: 600 11px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--a2); }
.nvs-cab h2 { margin: 0; font: 750 22px/1.05 var(--fb); letter-spacing: -.035em; }
.nvs-buscar { flex: 0 1 300px; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px 0 12px; border-radius: 11px; border: 1px solid var(--ln2); background: var(--s0); color: var(--tx3); transition: border-color .2s, box-shadow .2s, flex-basis .4s var(--ez); }
.nvs-buscar:focus-within { flex-basis: 380px; border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 16%, transparent); color: var(--tx2); }
.nvs-buscar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--tx); font: 400 14px var(--fb); outline: none; }
.nvs-buscar input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; }
.nvs-buscar:focus-within kbd { opacity: 0; }
.nvs-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--ln); background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--tx3); text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .35s var(--ez); }
.nvs-ico:hover { color: var(--tx); background: var(--s2); border-color: var(--ln2); }
.nvs-ico:active { transform: scale(.94); }
.nvs-ico[data-nvs="cerrar"]:hover { transform: rotate(90deg); }
.nvs-ico.gira svg { animation: nvsGira .7s var(--ez2); }
.nvs-ico.chico { width: 32px; height: 32px; border-radius: 9px; }
.nvs-ico.chico svg { width: 16px; height: 16px; }
.nvs-ico.wa { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.nvs-ico.wa:hover { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.nvs-ico.copiado { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.nvs-ico.copiado svg { animation: nvsPop .35s var(--ez); }

/* Resumen */
.nvs-kpis { position: relative; display: grid; grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr)); gap: 6px; margin: 14px 22px 0; }
.nvs-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--ln); background: color-mix(in srgb, var(--s2) 55%, transparent); cursor: pointer; text-align: left; overflow: hidden;
  transition: border-color .2s, background .2s, transform .3s var(--ez); animation: nvsSube .55s var(--ez) both; animation-delay: calc(var(--i) * 45ms); }
.nvs-kpi:hover { border-color: var(--ln2); background: var(--s2); transform: translateY(-2px); }
.nvs-kpi[data-k="dinero"] { cursor: default; }
.nvs-kpi[data-k="dinero"]:hover { transform: none; }
.nvs-kpi small { font-size: 11.5px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nvs-kpi small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; background: var(--tx3); }
.nvs-kpi[data-k="prueba"] small::before { background: var(--a2); }
.nvs-kpi[data-k="plan"] small::before { background: var(--ok); }
.nvs-kpi[data-k="vencido"] small::before, .nvs-kpi[data-k="pagos"] small::before { background: var(--warn); }
.nvs-kpi[data-k="dinero"] small::before { background: var(--ok); border-radius: 50%; }
.nvs-kpi[data-k=""] small::before { display: none; }
.nvs-kpi b { font: 600 19px/1 var(--fm); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nvs-kpi[data-k="pagos"] b { color: var(--warn); }
.nvs-kpi[data-k="dinero"] b { color: var(--ok); }
.nvs-mezcla { display: flex; gap: 2px; width: 100%; height: 6px; margin-top: 2px; border-radius: 4px; overflow: hidden; background: var(--ln); }
.nvs-mezcla i { width: var(--w); background: var(--tx3); transform-origin: left; animation: nvsBarra .9s .25s var(--ez) both; }
.nvs-mezcla i.plan { background: var(--ok); } .nvs-mezcla i.prueba { background: var(--a2); } .nvs-mezcla i.vencido { background: var(--warn); } .nvs-mezcla i.suspendidas { background: var(--bad); }

/* Pestañas */
.nvs-tabs { position: relative; display: flex; gap: 2px; margin: 14px 22px 0; padding: 3px; border-radius: 12px; background: var(--s0); border: 1px solid var(--ln); align-self: flex-start; }
.nvs-tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 0 14px; min-height: 32px; border-radius: 9px; font-weight: 550; font-size: 13.5px; color: var(--tx3); cursor: pointer; transition: color .25s; }
.nvs-tabs button:hover { color: var(--tx2); }
.nvs-tabs button[aria-selected="true"] { color: var(--tx); }
.nvs-tabs-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--s2); box-shadow: 0 0 0 1px var(--ln2), 0 6px 18px -8px rgba(0, 0, 0, .6); transition: transform .45s var(--ez), width .45s var(--ez); }
.nvs-tabs em { font-style: normal; font: 650 10.5px/1 var(--fm); min-width: 18px; padding: 4px 5px; border-radius: 999px; text-align: center; background: var(--warn); color: #15110a; animation: nvsPop .4s var(--ez); }
.nvs-tabs em[hidden] { display: none; }

/* Cuerpo */
.nvs-cuerpo { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 22px 22px; scrollbar-width: thin; scrollbar-color: var(--ln2) transparent; }
.nvs-entra > * { animation: nvsSube .42s var(--ez) backwards; }
.nvs-err { color: var(--bad); }
.nvs-nota { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: var(--tx2); background: color-mix(in srgb, var(--warn) 9%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.nvs-atajos { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 22px; border-top: 1px solid var(--ln); font-size: 12px; color: var(--tx3); }
.nvs-atajos span { display: inline-flex; align-items: center; gap: 4px; }

/* Carga */
.nvs-esq { display: flex; flex-direction: column; gap: 8px; }
.nvs-esq > div { display: grid; grid-template-columns: 40px 1fr 90px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ln); animation: nvsSube .4s var(--ez) both; animation-delay: calc(var(--i) * 60ms); }
.nvs-esq i, .nvs-esq b, .nvs-esq small, .nvs-esq em { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--s2) 25%, var(--s3) 50%, var(--s2) 75%); background-size: 300% 100%; animation: nvsBrillo 1.3s linear infinite; }
.nvs-esq i { width: 40px; height: 40px; border-radius: 12px; }
.nvs-esq span { display: flex; flex-direction: column; gap: 7px; }
.nvs-esq b { height: 12px; width: 42%; } .nvs-esq small { height: 10px; width: 64%; } .nvs-esq em { height: 22px; border-radius: 999px; }
.nvs-cargando { display: flex; gap: 6px; padding: 8px 0; }
.nvs-cargando i { width: 6px; height: 6px; border-radius: 50%; background: var(--a2); animation: nvsPunto 1s ease-in-out infinite; }
.nvs-cargando i:nth-child(2) { animation-delay: .15s; } .nvs-cargando i:nth-child(3) { animation-delay: .3s; }

/* Vacío */
.nvs-vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 56px 16px; border: 1px dashed var(--ln2); border-radius: 18px; color: var(--tx2); }
.nvs-vacio b { font: 700 18px var(--fb); letter-spacing: -.02em; color: var(--tx); }
.nvs-vacio p { margin: 0; max-width: 420px; font-size: 14px; }
.nvs-vacio.ok { border-style: solid; background: radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, var(--ok) 8%, transparent), transparent 70%); }
.nvs-palomita { width: 56px !important; height: 56px !important; margin-bottom: 8px; color: var(--ok); stroke-width: 2.4 !important; }
.nvs-palomita circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: nvsTrazo .7s .1s var(--ez) forwards; opacity: .5; }
.nvs-palomita path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: nvsTrazo .45s .6s var(--ez) forwards; }

/* Avatares y estados */
.nvs-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 650 14px/1 var(--fb); color: var(--on-a); background: linear-gradient(135deg, var(--a), var(--a2)); flex-shrink: 0; }
.nvs-av.revendedor { color: #fff; background: linear-gradient(135deg, #b45309, #f59e0b); }
.nvs-av.moderador { color: #fff; background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.nvs-av.equipo { background: color-mix(in srgb, var(--a) 16%, var(--s2)); color: var(--a2); }
.nvs-av.prueba { background: color-mix(in srgb, var(--ok) 14%, var(--s2)); color: var(--ok); }
.nvs-av.mini { width: 30px; height: 30px; border-radius: 9px; font-size: 11.5px; }
.nvs-av.grande { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
.nvs-quien { min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.nvs-quien b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvs-quien b span { font-weight: 400; color: var(--tx3); }
.nvs-quien small { font-size: 12.5px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvs-est { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 999px; white-space: nowrap; color: var(--tx3); background: color-mix(in srgb, var(--tx3) 14%, transparent); }
.nvs-est::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nvs-est.prueba { color: var(--a2); background: color-mix(in srgb, var(--a2) 13%, transparent); }
.nvs-est.plan { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.nvs-est.vencido { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.nvs-est.suspendidas { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.nvs-est.mini { font-size: 11px; padding: 3px 8px 3px 7px; }
.nvs-tiempo { display: block; height: 4px; border-radius: 4px; background: var(--ln); overflow: hidden; }
.nvs-tiempo i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--a), var(--a2)); transform-origin: left; transform: scaleX(var(--pc)); animation: nvsBarra 1s var(--ez) both; }
.nvs-tiempo.poco i { background: linear-gradient(90deg, var(--warn), color-mix(in srgb, var(--warn) 60%, var(--bad))); }
.nvs-rest { font-size: 11.5px; color: var(--tx3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Botones */
.nvs-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: var(--a); color: var(--on-a) !important; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: filter .2s, transform .15s, background .2s, border-color .2s; }
.nvs-b:hover { filter: brightness(1.1); }
.nvs-b:active { transform: scale(.97); }
.nvs-b:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.nvs-b.ok { background: var(--ok); color: #06130d !important; }
.nvs-b.sec { background: transparent; border-color: var(--ln2); color: var(--tx) !important; }
.nvs-b.sec:hover { background: var(--s2); filter: none; }
.nvs-b.aviso { background: transparent; border-color: color-mix(in srgb, var(--warn) 42%, transparent); color: var(--warn) !important; }
.nvs-b.aviso:hover { background: color-mix(in srgb, var(--warn) 10%, transparent); filter: none; }
.nvs-b.peligro { background: transparent; border-color: color-mix(in srgb, var(--bad) 42%, transparent); color: var(--bad) !important; }
.nvs-b.peligro:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); filter: none; }
.nvs-b.mini { min-height: 28px; padding: 0 10px; font-size: 12px; background: transparent; border-color: var(--ln2); color: var(--tx2) !important; }
.nvs-enlace { border: 0; background: none; padding: 4px 0; font-size: 12.5px; font-weight: 550; color: var(--a2); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.nvs-enlace:hover { text-decoration-color: currentColor; }
.nvs-dias { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--ln); background: var(--s0); }
.nvs-dias span { font-size: 12px; color: var(--tx3); padding: 0 8px 0 6px; }
.nvs-dias button { border: 0; background: transparent; cursor: pointer; min-height: 30px; padding: 0 10px; border-radius: 9px; font: 600 12px var(--fm); color: var(--tx2); white-space: nowrap; flex-shrink: 0; transition: background .2s, color .2s, transform .15s; }
.nvs-dias button:hover { background: var(--s2); color: var(--tx); }
.nvs-dias button:active { transform: scale(.92); }
.nvs-dias button:disabled { opacity: .45; }

/* ── Para hoy ── */
.nvs-hoy { display: flex; flex-direction: column; gap: 22px; }
.nvs-bloque header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.nvs-bloque h3 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 700 15.5px/1.2 var(--fb); letter-spacing: -.015em; }
.nvs-bloque h3 em { font-style: normal; font: 600 11px/1 var(--fm); padding: 4px 7px; border-radius: 999px; background: var(--s2); color: var(--tx2); }
.nvs-bloque[data-b="pagos"] h3 em { background: var(--warn); color: #15110a; }
.nvs-bloque header p { margin: 0; font-size: 13px; color: var(--tx3); }
.nvs-bloque-l { display: flex; flex-direction: column; gap: 8px; }
.nvs-aviso { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px 10px 14px; border-radius: 14px; border: 1px solid var(--ln); background: var(--s1); overflow: hidden;
  animation: nvsSube .42s var(--ez) both; animation-delay: calc(var(--i) * 40ms); transition: border-color .2s, background .2s; }
.nvs-aviso::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--a2); }
.nvs-aviso.plan::before { background: var(--ok); } .nvs-aviso.vencido::before { background: var(--warn); }
.nvs-aviso:hover { border-color: var(--ln2); background: color-mix(in srgb, var(--s2) 60%, var(--s1)); }
.nvs-cuando { color: var(--tx2); font-weight: 550; }
.nvs-aviso.vencido .nvs-cuando { color: var(--warn); }
.nvs-aviso-a { display: flex; align-items: center; gap: 6px; }

/* ── Cuentas: lista + ficha ── */
.nvs-cuentas { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.nvs-col { min-width: 0; display: flex; flex-direction: column; }
.nvs-filtros { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.nvs-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.nvs-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ln); background: transparent; border-radius: 999px; padding: 0 10px; min-height: 30px; font-size: 12.5px; font-weight: 550; color: var(--tx2); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.nvs-chip em { font: 500 11px var(--fm); font-style: normal; color: var(--tx3); }
.nvs-chip:hover { border-color: var(--ln2); color: var(--tx); }
.nvs-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); }
.nvs-chip[aria-pressed="true"] em { color: var(--a2); }
.nvs-filtros2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.nvs-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--ln); background: var(--s0); }
.nvs-seg button { border: 0; background: transparent; cursor: pointer; padding: 0 11px; min-height: 30px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--tx3); transition: background .2s, color .2s; }
.nvs-seg button[aria-pressed="true"] { background: var(--s2); color: var(--tx); box-shadow: 0 0 0 1px var(--ln2); }
.nvs-orden { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx3); }
.nvs-orden select { min-height: 36px; padding: 0 30px 0 10px; border-radius: 10px; border: 1px solid var(--ln); 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 10px center; color: var(--tx); font-size: 13px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.nvs-lista-cab { display: flex; align-items: center; gap: 12px; padding: 6px 14px; font-size: 12px; color: var(--tx3); }
.nvs-check { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; cursor: pointer; }
.nvs-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nvs-check i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--ln2); background: var(--s0); transition: background .2s, border-color .2s, transform .2s var(--ez); }
.nvs-check input:checked + i, .nvs-check input:indeterminate + i { background: var(--a); border-color: var(--a); }
.nvs-check input:checked + i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; transform: scale(1.06); }
.nvs-check input:indeterminate + i { background-image: linear-gradient(#fff, #fff); background-size: 9px 2px; background-position: center; background-repeat: no-repeat; }
.nvs-check input:focus-visible + i { outline: 2px solid var(--a2); outline-offset: 2px; }
.nvs-lista { display: flex; flex-direction: column; border: 1px solid var(--ln); border-radius: 16px; overflow: hidden; background: var(--s1); }
.nvs-lista > .nvs-vacio { border: 0; border-radius: 0; }
.nvs-fila { position: relative; display: flex; align-items: center; gap: 4px; padding-left: 12px; border-top: 1px solid var(--ln); transition: background .2s; }
.nvs-lista.anim .nvs-fila { animation: nvsSube .38s var(--ez) both; animation-delay: calc(var(--i) * 26ms); }
.nvs-fila:first-child { border-top: 0; }
.nvs-fila::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--a); transform: scaleY(0); transition: transform .35s var(--ez); }
.nvs-fila:hover { background: color-mix(in srgb, var(--s2) 55%, transparent); }
.nvs-fila.sel { background: color-mix(in srgb, var(--a) 9%, var(--s1)); }
.nvs-fila.sel::after { transform: none; }
.nvs-fila.marcada { background: color-mix(in srgb, var(--a) 6%, var(--s1)); }
.nvs-fila.brilla { animation: nvsDestello 1.4s ease both; }
.nvs-fila-b { flex: 1; min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) 96px 110px; align-items: center; gap: 10px; padding: 9px 12px 9px 6px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.nvs-vig { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.nvs-ficha { position: sticky; top: 0; min-width: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--ln); background: linear-gradient(180deg, color-mix(in srgb, var(--s2) 70%, var(--s1)), var(--s1) 240px); display: flex; flex-direction: column; gap: 16px; }
.nvs-ficha.nvs-entra > * { animation: nvsFicha .4s var(--ez) both; }
.nvs-ficha.nvs-entra > :nth-child(2) { animation-delay: .03s; } .nvs-ficha.nvs-entra > :nth-child(3) { animation-delay: .06s; } .nvs-ficha.nvs-entra > :nth-child(4) { animation-delay: .09s; }
.nvs-ficha.nvs-entra > :nth-child(5) { animation-delay: .12s; } .nvs-ficha.nvs-entra > :nth-child(6) { animation-delay: .15s; } .nvs-ficha.nvs-entra > :nth-child(7) { animation-delay: .18s; }
.nvs-ficha-vacia { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 12px; color: var(--tx3); }
.nvs-ficha-vacia svg { width: 30px; height: 30px; margin-bottom: 6px; color: var(--a2); }
.nvs-ficha-vacia b { color: var(--tx); font-size: 16px; }
.nvs-ficha-vacia p { margin: 0; font-size: 13.5px; max-width: 280px; }
.nvs-ficha-vacia .nvs-tip { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; font-size: 12px; }
.nvs-atras { display: none; align-self: flex-start; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; color: var(--tx2); font-size: 13px; font-weight: 550; cursor: pointer; }
.nvs-ficha-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.nvs-ficha-cab h3 { margin: 0; font: 700 19px/1.2 var(--fb); letter-spacing: -.025em; overflow-wrap: anywhere; }
.nvs-ficha-cab p { margin: 3px 0 0; font-size: 13px; color: var(--tx3); }
.nvs-contacto { display: flex; flex-direction: column; gap: 6px; }
.nvs-dc { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--s0); border: 1px solid var(--ln); color: var(--tx3); }
.nvs-dc > span { flex: 1; min-width: 0; color: var(--tx); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvs-dc .nvs-ico { border-color: transparent; }
.nvs-vigencia { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--a2) 22%, transparent); background: color-mix(in srgb, var(--a2) 7%, transparent); }
.nvs-vigencia.plan { border-color: color-mix(in srgb, var(--ok) 25%, transparent); background: color-mix(in srgb, var(--ok) 7%, transparent); }
.nvs-vigencia.vencido { border-color: color-mix(in srgb, var(--warn) 28%, transparent); background: color-mix(in srgb, var(--warn) 7%, transparent); }
.nvs-vigencia.suspendidas { border-color: color-mix(in srgb, var(--bad) 28%, transparent); background: color-mix(in srgb, var(--bad) 7%, transparent); }
.nvs-vigencia.eliminadas { border-color: var(--ln2); background: var(--s0); }
.nvs-vigencia div { display: flex; flex-direction: column; gap: 2px; }
.nvs-vigencia small { font-size: 12px; color: var(--tx3); }
.nvs-vigencia b { font: 650 22px/1.15 var(--fb); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nvs-vigencia .nvs-tiempo { height: 6px; }
.nvs-acc { display: flex; flex-direction: column; gap: 8px; }
.nvs-acc .nvs-dias { align-self: flex-start; }
.nvs-acc2 { display: flex; flex-wrap: wrap; gap: 6px; }
.nvs-acc > .nvs-b { align-self: flex-start; }
.nvs-acc:has(> .nvs-b) { flex-direction: row; flex-wrap: wrap; }
.nvs-datos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ln); background: var(--ln); }
.nvs-datos > div { padding: 10px 12px; background: var(--s1); }
.nvs-datos dt { font-size: 11.5px; color: var(--tx3); margin-bottom: 3px; }
.nvs-datos dd { margin: 0; font-size: 13px; }
.nvs-sub { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; font-size: 13.5px; }
.nvs-eq-res { margin: 0 0 6px; font-size: 12.5px; color: var(--tx3); }
.nvs-eq-l { display: flex; flex-direction: column; gap: 6px; }
.nvs-eq { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; background: var(--s0); border: 1px solid var(--ln); animation: nvsSube .35s var(--ez) both; animation-delay: calc(var(--i) * 40ms); }
.nvs-eq .nvs-quien b { font-size: 13px; } .nvs-eq .nvs-quien small { font-size: 11.5px; }

/* Barra de selección múltiple */
.nvs-lote { position: fixed; z-index: 3; left: 50%; bottom: 50px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; border: 1px solid var(--ln2); background: color-mix(in srgb, var(--s3) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 60px -16px rgba(0, 0, 0, .7);
  transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .4s var(--ez), opacity .25s, visibility 0s .4s; }
.nvs-lote.ver { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ez), opacity .25s, visibility 0s; }
.nvs-lote { max-width: calc(100% - 24px); }
.nvs-lote b { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nvs-hoja { contain: layout; }
.nvs-capa .nvs-hoja:focus, .nvs-capa .nvs-hoja:focus-visible { outline: none; }

/* ── Pagos ── */
.nvs-pagos { display: flex; flex-direction: column; gap: 10px; }
.nvs-pago { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--ln); background: var(--s1);
  animation: nvsSube .45s var(--ez) both; animation-delay: calc(var(--i) * 50ms); transition: transform .42s var(--ez), opacity .35s ease, border-color .2s; }
.nvs-pago:hover { border-color: var(--ln2); }
.nvs-pago.sale { transform: translateX(48px) scale(.98); opacity: 0; border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.nvs-pago.sale.no { transform: translateX(-48px) scale(.98); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.nvs-pago.rechazando { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.nvs-pago-m { display: flex; flex-direction: column; gap: 4px; }
.nvs-pago-m small { font-size: 12px; color: var(--tx3); }
.nvs-pago-m b { font: 600 26px/1 var(--fm); letter-spacing: -.04em; }
.nvs-pago-m span { font-size: 12.5px; color: var(--tx2); }
.nvs-pago-i { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13.5px; }
.nvs-pago-i > b { font-size: 15px; }
.nvs-pago-i > small { color: var(--tx3); font-size: 12.5px; }
.nvs-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nvs-tags > span { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 4px 0 10px; border-radius: 9px; background: var(--s0); border: 1px solid var(--ln); font-size: 12.5px; color: var(--tx2); }
.nvs-tags > span:not(.nvs-ref) { padding-right: 10px; }
.nvs-tags code { font: 600 12.5px var(--fm); color: var(--tx); }
.nvs-tags .nvs-ico { width: 24px; height: 24px; border: 0; border-radius: 6px; }
.nvs-tags .nvs-ico svg { width: 14px; height: 14px; }
.nvs-nota-p { font-style: italic; color: var(--tx2); font-size: 13px; }
.nvs-pago-a { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.nvs-motivo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--ln); animation: nvsSube .3s var(--ez) both; }
.nvs-motivo[hidden] { display: none; }
.nvs-motivo label { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--tx3); }
.nvs-motivo div { display: flex; gap: 6px; }
.nvs-motivo input { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ln2); background: var(--s0); color: var(--tx); font: 400 14px var(--fb); outline: none; }
.nvs-motivo input:focus { border-color: var(--bad); }

/* ── Precios ── */
.nvs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nvs-card { border: 1px solid var(--ln); border-radius: 18px; padding: 18px; background: var(--s1); display: flex; flex-direction: column; gap: 14px; animation: nvsSube .45s var(--ez) both; }
.nvs-card:nth-child(2) { animation-delay: .05s; } .nvs-card:nth-child(3) { animation-delay: .1s; } .nvs-card:nth-child(4) { animation-delay: .15s; } .nvs-card:nth-child(5) { animation-delay: .2s; }
.nvs-card.ancha { grid-column: 1 / -1; }
.nvs-card header { display: flex; gap: 12px; align-items: center; }
.nvs-card h3 { margin: 0; font: 700 16.5px/1.2 var(--fb); letter-spacing: -.02em; }
.nvs-card header p { margin: 3px 0 0; font-size: 13px; color: var(--tx3); }
.nvs-precios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nvs-precios label, .nvs-campos label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--tx3); min-width: 0; }
.nvs-precios small { font-size: 11.5px; color: var(--tx3); }
.nvs-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.nvs-in { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--s0); transition: border-color .2s, box-shadow .2s; }
.nvs-in:focus-within { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 16%, transparent); }
.nvs-in em { font-style: normal; font: 500 13px var(--fm); color: var(--tx3); }
.nvs-in input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--tx); font: 600 15px var(--fm); outline: none; }
.nvs-card textarea { width: 100%; resize: vertical; min-height: 96px; padding: 12px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--s0); color: var(--tx); font: 400 14px/1.6 var(--fm); outline: none; }
.nvs-card textarea:focus { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 16%, transparent); }
.nvs-guardar { position: sticky; bottom: -22px; z-index: 2; margin: 16px -22px -22px; padding: 10px 22px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; background: color-mix(in srgb, var(--s1) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--ln); }
.nvs-guardar span { margin-right: 6px; font-size: 13px; color: var(--tx3); transition: color .2s; }
.nvs-guardar span.on { color: var(--warn); }
.nvs-guardar .nvs-b { margin-left: 6px; }

/* Confirmación */
.nvs-dlg-capa { position: fixed; inset: 0; z-index: 100040; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; font-family: 'Onest', 'Geist', system-ui, sans-serif; }
.nvs-dlg-capa[hidden] { display: none !important; }
.nvs-dlg-capa.ver { opacity: 1; }
.nvs-dlg { --a: var(--accent, #5B6FE0); --on-a: var(--nv54-on-accent, #fff); --ln2: color-mix(in srgb, var(--text, #fff) 16%, transparent); --bad: var(--red2, #f87171); --warn: var(--amber2, #fcd34d); --tx: var(--text, #fff); --s2: var(--bg3, #13131e);
  width: min(440px, 100%); padding: 22px; border-radius: 20px; background: var(--bg2, #0d0d17); color: var(--text, #fff); border: 1px solid color-mix(in srgb, var(--text, #fff) 12%, transparent); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(12px) scale(.97); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.nvs-dlg-capa.ver .nvs-dlg { transform: none; }
.nvs-dlg h3 { margin: 0 0 8px; font: 700 19px/1.25 'Onest', system-ui, sans-serif; letter-spacing: -.02em; }
.nvs-dlg p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text2, #b8c0de); }
.nvs-dlg input { width: 100%; margin-top: 14px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--bg, #000); color: var(--text, #fff); font: 600 15px 'JetBrains Mono', monospace; letter-spacing: .1em; outline: none; }
.nvs-dlg input:focus { border-color: var(--bad); }
.nvs-dlg-pie { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.nvs-dlg .nvs-b { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; background: var(--a); color: var(--on-a); cursor: pointer; font: 600 13.5px 'Onest', system-ui, sans-serif; }
.nvs-dlg .nvs-b:disabled { opacity: .45; cursor: not-allowed; }
.nvs-dlg .nvs-b.sec { background: transparent; border-color: var(--ln2); color: var(--tx); }
.nvs-dlg .nvs-b.peligro[data-d="si"] { background: var(--bad); color: #fff; }
.nvs-dlg .nvs-b.aviso[data-d="si"] { background: var(--warn); color: #15110a; }

@keyframes nvsSube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes nvsFicha { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes nvsPunto { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@keyframes nvsBarra { from { transform: scaleX(0); } }
@keyframes nvsBrillo { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@keyframes nvsGira { to { transform: rotate(360deg); } }
@keyframes nvsPop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes nvsTrazo { to { stroke-dashoffset: 0; } }
@keyframes nvsDestello { 0%, 30% { background: color-mix(in srgb, var(--ok) 16%, transparent); } 100% { background: transparent; } }
.nvs-aviso.brilla { animation: nvsDestello 1.4s ease both; }

/* Pantallas medianas: la ficha pasa a deslizarse encima de la lista */
@media (max-width: 980px) {
  .nvs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nvs-cuentas { grid-template-columns: minmax(0, 1fr); }
  .nvs-ficha { position: fixed; z-index: 4; top: 0; right: 0; bottom: 0; width: min(460px, 100%); border-radius: 0; border-width: 0 0 0 1px; overflow-y: auto; padding-top: 14px;
    background: var(--s1); box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .7); transform: translateX(105%); transition: transform .45s var(--ez); }
  .nvs-cuentas.con-ficha .nvs-ficha { transform: none; }
  .nvs-atras { display: inline-flex; }
  .nvs-hoja { transform-style: flat; }
  .nvs-atajos { display: none; }
  .nvs-lote { bottom: 16px; }
}
@media (max-width: 720px) {
  .nvs-capa { padding: 10px; }
  .nvs-hoja { border-radius: 18px; }
  .nvs-cab { flex-wrap: wrap; padding: 18px 16px 0; }
  .nvs-titulo { flex: 1 1 auto; }
  .nvs-buscar, .nvs-buscar:focus-within { order: 3; flex: 1 1 100%; }
  .nvs-buscar kbd { display: none; }
  .nvs-kpis, .nvs-tabs { margin-left: 16px; margin-right: 16px; }
  .nvs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
  .nvs-kpi { padding: 10px; gap: 4px; border-radius: 12px; }
  .nvs-kpi small { font-size: 11px; } .nvs-kpi small::before { display: none; }
  .nvs-kpi b { font-size: 17px; }
  .nvs-kpi[data-k=""] { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .nvs-kpi[data-k=""] .nvs-mezcla { flex-basis: 100%; }
  .nvs-tabs { align-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .nvs-tabs button { flex: 1 0 auto; justify-content: center; padding: 0 10px; font-size: 13px; }
  .nvs-cuerpo { padding: 14px 16px 24px; }
  .nvs-fila-b { grid-template-columns: 36px minmax(0, 1fr) auto; padding-right: 10px; }
  .nvs-fila-b .nvs-av { width: 36px; height: 36px; border-radius: 11px; }
  .nvs-vig { display: none; }
  .nvs-aviso { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .nvs-aviso .nvs-av { width: 36px; height: 36px; }
  .nvs-aviso-a { grid-column: 1 / -1; flex-wrap: wrap; }
  .nvs-aviso-a .nvs-b { flex: 1; }
  .nvs-pago { grid-template-columns: 1fr; gap: 12px; }
  .nvs-pago-a { flex-direction: row; flex-wrap: wrap; }
  .nvs-pago-a .nvs-b { flex: 1; }
  .nvs-cards { grid-template-columns: 1fr; }
  .nvs-precios { grid-template-columns: 1fr 1fr; }
  .nvs-eq { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .nvs-eq .nvs-est { display: none; }
  .nvs-guardar { bottom: -24px; margin: 16px -16px -24px; padding: 12px 16px; }
  .nvs-guardar kbd { display: none; }
  .nvs-lote { left: 12px; right: 12px; transform: translateY(24px); flex-wrap: wrap; }
  .nvs-lote.ver { transform: none; }
  .nvs-lote b { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nvs-capa *, .nvs-capa *::before, .nvs-capa *::after, .nvs-hoja, .nvs-dlg { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Defensa contra estilos generales de la web */
.nvs-capa button, .nvs-capa select, .nvs-capa input, .nvs-capa textarea { text-transform: none; letter-spacing: normal; }
.nvs-capa .nvs-b { width: auto; height: auto; margin: 0; line-height: 1.2; }
.nvs-capa .nvs-orden select { text-align: left !important; text-align-last: left !important; line-height: normal; }
