/* ════════════════════════════════════════════════════════════════════
   NV Streaming — Ventanas v4.2 (nv-ventanas.css)
   Agregar cliente · Agregar cuenta · Reportar caída · Calculadora
   ────────────────────────────────────────────────────────────────────
   Todo depende de clases que pone js/nv-ventanas.js (.nv-cli, .nv-acc,
   .nv-calc, .nvc-*, .nva-*, .nvk-*, .nvr-*). Sin ese JS, las ventanas
   se ven exactamente como antes.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --nvv-ease: cubic-bezier(.2,.8,.2,1);
  --nvv-spring: cubic-bezier(.34,1.56,.64,1);
  --nvv-ok: #3ddc97;
  --nvv-warn: #f7b955;
  --nvv-bad: #ff6b7a;
}

/* ── Piezas comunes ─────────────────────────────────────────────── */
.nvv-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.nvv-av { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; font-weight: 800; letter-spacing: .02em; }
.nvv-pill { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--bg4); color: var(--text3); white-space: nowrap; }
.nvv-pill.ok { background: rgba(61,220,151,.12); color: var(--nvv-ok); }
.nvv-hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 7px; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.4; animation: nvvIn .25s var(--nvv-ease) both; }
.nvv-hint svg { flex-shrink: 0; margin-top: 1px; }
.nvv-hint.w { background: rgba(247,185,85,.09); border: 1px solid rgba(247,185,85,.28); color: var(--nvv-warn); }
.nvv-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.nvv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nvv-ring circle { fill: none; stroke-width: 4; }
.nvv-ring .bg { stroke: var(--border); }
.nvv-ring .fg { stroke: var(--accent2); stroke-linecap: round; transition: stroke-dashoffset .7s var(--nvv-ease); }
.nvv-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }

.nvv-flash { animation: nvvFlash .7s var(--nvv-ease); }
.nvv-pop { animation: nvvPop .35s var(--nvv-spring); }
.nvv-shake { animation: nvvShake .35s; }
.nvv-spin svg { animation: nvvSpin .45s var(--nvv-ease); }
@keyframes nvvIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes nvvFlash { 0% { box-shadow: 0 0 0 0 rgba(139,154,234,.55); background-color: rgba(139,154,234,.14); } 100% { box-shadow: 0 0 0 6px rgba(139,154,234,0); } }
@keyframes nvvPop { 0% { transform: scale(.86); } 100% { transform: scale(1); } }
@keyframes nvvShake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
@keyframes nvvSpin { to { transform: rotate(360deg); } }

/* ════════ 1 · Agregar cliente ════════ */
#modal-client.nv-cli .mc-modal { max-width: 820px !important; }
#modal-client .mc-body.nvc-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 18px; align-items: start; }
#modal-client .mc-body.nvc-grid > #modal-client-form { min-width: 0; }
.nvc-side { position: sticky; top: 0; display: grid; gap: 10px; animation: nvvIn .35s var(--nvv-ease) both; }
.nvc-ctc { border: 1px solid var(--border); border-radius: 14px; background: var(--bg3); padding: 14px; }
.nvc-ctc-h { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px dashed var(--border2); }
.nvc-ctc-h small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); font-weight: 800; }
.nvc-ctc-h b { font-size: 14px; }
.nvc-ctc dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 12px; }
.nvc-ctc dt { color: var(--text3); font-weight: 700; }
.nvc-ctc dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; border-radius: 5px; }
.nvc-ctc dd.e { color: var(--text3); opacity: .5; }
.nvc-gain { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text2); }
.nvc-gain b { font-size: 17px; font-variant-numeric: tabular-nums; }
.nvc-note { margin: 0; font-size: 11px; color: var(--text3); line-height: 1.45; }

.nvc-seats { display: grid; gap: 10px; margin-bottom: 12px; }
.nvc-seats-h { display: flex; justify-content: space-between; align-items: center; }
.nvc-lst { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: transparent; color: var(--text3); border-radius: 8px; padding: 4px 9px; font: 700 11px/1 inherit; cursor: pointer; }
.nvc-lst:hover, .nvc-lst.on { color: var(--text); border-color: var(--border2); }
.nvc-hide-list { display: none !important; }
.nvc-acc { border: 1px solid var(--border); border-radius: 13px; padding: 11px 12px; background: var(--bg3); transition: border-color .2s; animation: nvvIn .3s var(--nvv-ease) both; animation-delay: calc(var(--i,0) * 50ms); }
.nvc-acc.on { border-color: var(--accent); }
.nvc-acc-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12.5px; min-width: 0; }
.nvc-acc-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvc-bar { height: 3px; border-radius: 3px; background: var(--border); margin: 8px 0 10px; overflow: hidden; }
.nvc-bar i { display: block; height: 100%; background: var(--accent2); border-radius: 3px; transition: width .6s var(--nvv-ease); }
.nvc-row { display: flex; flex-wrap: wrap; gap: 7px; }
.nvc-seat { width: 46px; height: 46px; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 11px; border: 1px solid var(--border2); background: var(--bg2); color: var(--text2); font: 800 10px/1 inherit; cursor: pointer; transition: transform .15s var(--nvv-spring), border-color .15s, background .15s, color .15s; }
.nvc-seat:not(:disabled):hover { transform: translateY(-2px); border-color: var(--accent2); color: var(--text); }
.nvc-seat:disabled { cursor: not-allowed; opacity: .45; border-style: dashed; }
.nvc-seat .nvc-ini { font-size: 11px; }
.nvc-seat[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px var(--accent); }
.nvc-full, .nvc-ind { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--bg2); color: var(--text2); border-radius: 10px; padding: 8px 11px; font: 700 12px/1.2 inherit; cursor: pointer; transition: border-color .15s, color .15s, background .15s; min-width: 0; }
.nvc-full { margin-top: 10px; width: 100%; }
.nvc-ind span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvc-full:hover, .nvc-ind:hover { border-color: var(--accent2); color: var(--text); }
.nvc-full[aria-pressed="true"], .nvc-ind[aria-pressed="true"] { border-color: var(--accent); background: rgba(91,111,224,.14); color: var(--text); }
.nvc-inds { display: grid; gap: 8px; }

.nvc-rel { position: relative; }
.nvc-sug { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); display: none; padding: 5px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border2); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.nvc-sug.on { display: block; animation: nvvIn .18s var(--nvv-ease) both; }
.nvc-sug-h { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); padding: 5px 8px; }
.nvc-sug button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.nvc-sug button.hl, .nvc-sug button:hover { background: var(--bg4); }
.nvc-sug b { display: block; font-size: 13px; }
.nvc-sug small { display: block; font-size: 11px; color: var(--text3); }

.nvc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nvc-chips button, .nva-chips button, .nvk-filtros button { border: 1px solid var(--border); background: var(--bg3); color: var(--text2); border-radius: 99px; padding: 5px 11px; font: 700 11.5px/1.2 inherit; cursor: pointer; transition: border-color .15s, color .15s, background .15s, transform .15s var(--nvv-spring); }
.nvc-chips button:hover, .nva-chips button:hover, .nvk-filtros button:hover { color: var(--text); border-color: var(--border2); }
.nvc-chips button[aria-pressed="true"], .nva-chips button[aria-pressed="true"], .nvk-filtros button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.nvc-when { display: flex; gap: 6px; align-items: center; margin-top: 7px; font-size: 12px; color: var(--text3); }
.nvc-when:empty { display: none; }
.nvc-when b { color: var(--text); font-weight: 700; }

@media (max-width: 760px) {
  #modal-client .mc-body.nvc-grid { grid-template-columns: minmax(0,1fr); }
  .nvc-side { position: static; }
  .nvc-ctc dl { grid-template-columns: auto 1fr; }
}

/* ════════ 2 y 3 · Agregar cuenta ════════ */
#modal-account.nv-acc .modal { max-width: 880px !important; }
#modal-account.nv-acc-ind .modal { max-width: 800px !important; }
/* La cuadrícula ocupa el alto libre del modal: el formulario y la vista previa
   se desplazan cada uno por su cuenta y el pie con Guardar siempre queda visible */
#modal-account.nv-acc .modal { display: flex !important; flex-direction: column !important; }
.nva-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 290px; grid-template-rows: minmax(0,1fr); gap: 0; }
.nva-grid > .modal-body { min-width: 0; min-height: 0; overflow-y: auto !important; }
.nva-side { min-width: 0; min-height: 0; overflow-y: auto; align-content: start; display: grid; gap: 14px; padding: 20px 22px 20px 20px; border-left: 1px solid var(--border); background: color-mix(in srgb, var(--bg3) 45%, transparent); animation: nvvIn .35s var(--nvv-ease) both; }
#modal-account.nv-acc .modal-footer { flex-shrink: 0; }

/* Secciones numeradas y más compactas */
.nva-body { counter-reset: nvasec; display: grid; gap: 12px; align-content: start; }
.nva-body > .mc-section { margin-top: 0 !important; }
.nva-body > .mc-section:not([style*="display: none"]) { counter-increment: nvasec; }
.nva-body > .mc-section > .mc-section-title::before { content: counter(nvasec); display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.nva-body > .mc-section > .mc-section-title > svg { display: none; }
#modal-account.nv-acc #acc-country { width: 100%; }
.nva-occ-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
#nva-occ { font-size: 11px; color: var(--text3); font-weight: 700; }
.nva-occbar { display: flex; gap: 3px; }
.nva-occbar i { flex: 1; height: 4px; border-radius: 3px; background: color-mix(in srgb, var(--nvv-ok) 45%, transparent); }
.nva-occbar i.on { background: var(--accent2); }
.nva-card3d { perspective: 900px; cursor: pointer; }
.nva-c3 { position: relative; aspect-ratio: 1.6; max-width: 100%; transform-style: preserve-3d; transition: transform .7s var(--nvv-spring); }
.nva-c3.flip { transform: rotateY(180deg); }
.nva-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 15px; padding: 14px 15px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--pc) 70%, transparent), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--pc) 55%, #0b0b14), #0f0f1a);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); }
.nva-back { transform: rotateY(180deg); justify-content: flex-end; gap: 10px; }
.nva-r1 { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; gap: 8px; }
.nva-plan { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.14); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nva-em { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nva-pw { font-size: 12px; letter-spacing: .15em; opacity: .7; margin-top: 3px; }
.nva-r3 { display: flex; justify-content: space-between; gap: 10px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.nva-r3 b { display: block; font-size: 12px; letter-spacing: 0; text-transform: none; margin-top: 2px; opacity: 1; font-variant-numeric: tabular-nums; }
.nva-band { position: absolute; left: 0; right: 0; top: 18px; height: 30px; background: rgba(0,0,0,.45); }
.nva-num { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.nva-chip { width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(135deg,#e7c873,#b8913a); }
.nva-seatsv { display: flex; flex-wrap: wrap; gap: 5px; }
.nva-seatsv i { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--border2); background: var(--bg3); animation: nvvPop .35s var(--nvv-spring) both; animation-delay: calc(var(--i,0) * 35ms); }
.nva-st3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.nva-st3 div { padding: 8px 9px; border-radius: 11px; background: var(--bg3); border: 1px solid var(--border); min-width: 0; }
.nva-st3 small { display: block; font-size: 10px; color: var(--text3); font-weight: 700; }
.nva-st3 b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.nva-day { display: flex; gap: 11px; align-items: center; padding: 10px 11px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--border); }
.nva-day b { display: block; font-size: 12.5px; }
.nva-day small { display: block; font-size: 11px; color: var(--text3); margin-top: 2px; }
.nva-asig { display: flex; gap: 10px; align-items: flex-start; padding: 10px 11px; border-radius: 12px; border: 1px dashed var(--border2); cursor: pointer; font-size: 12px; }
.nva-asig input { margin-top: 2px; accent-color: var(--accent); }
.nva-asig b { display: block; }
.nva-asig small { display: block; color: var(--text3); font-size: 11px; margin-top: 2px; }

.nva-pwrow { display: flex; gap: 6px; align-items: stretch; }
.nva-pwrow > input { flex: 1; min-width: 0; }
.nva-ib { flex-shrink: 0; width: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text2); cursor: pointer; transition: color .15s, border-color .15s; }
.nva-ib:hover { color: var(--text); border-color: var(--accent2); }
.nva-meter { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.nva-meter i { flex: 1; height: 3px; border-radius: 3px; background: var(--border); transition: background .25s; }
.nva-meter span { flex: 0 0 72px; text-align: right; font-size: 10.5px; font-weight: 700; color: var(--text3); }
.nva-step { display: flex; align-items: stretch; gap: 6px; }
.nva-step > input { flex: 1; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
.nva-step > button { width: 40px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text); font: 700 17px/1 inherit; cursor: pointer; transition: transform .12s, border-color .15s; }
.nva-step > button:hover { border-color: var(--accent2); }
.nva-step > button:active { transform: scale(.9); }
.nva-pinbar { display: flex; justify-content: flex-end; margin: 4px 0 6px; }
.nva-mini { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--bg3); color: var(--text2); border-radius: 8px; padding: 5px 10px; font: 700 11.5px/1 inherit; cursor: pointer; }
.nva-mini:hover { color: var(--text); border-color: var(--accent2); }
.nva-roll { color: var(--accent2) !important; }
.nva-sel-hidden { display: none !important; }
.nva-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nva-flag { margin-right: 4px; }

/* Métodos de pago como tarjetas (solo estilo, los mismos radios) */
#modal-account.nv-acc label[id^="acc-pay-lbl-"] { transition: border-color .15s, background .15s, transform .15s var(--nvv-spring); }
#modal-account.nv-acc label[id^="acc-pay-lbl-"]:has(input:checked) { border-color: var(--accent) !important; background: rgba(91,111,224,.12) !important; }
#modal-account.nv-acc label[id^="acc-pay-lbl-"]:active { transform: scale(.97); }

@media (max-width: 760px) {
  .nva-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: none; overflow-y: auto; }
  .nva-grid > .modal-body { overflow: visible !important; }
  .nva-side { overflow: visible; grid-template-columns: minmax(0,1fr); padding: 0 16px 16px; border-left: 0; background: none; }
  .nva-card3d { max-width: 320px; }
}

/* ════════ 4 · Reportar caída ════════ */
.nvk-resumen { display: grid; gap: 10px; margin-bottom: 16px; }
.nvk-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.nvk-kpi { padding: 11px 13px; border-radius: 13px; background: var(--bg2); border: 1px solid var(--border); min-width: 0; }
.nvk-kpi small { display: block; font-size: 11px; color: var(--text3); font-weight: 700; }
.nvk-kpi b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.nvk-kpi.bad b { color: var(--nvv-bad); }
.nvk-list { display: grid; gap: 6px; }
.nvk-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); animation: nvvIn .3s var(--nvv-ease) both; animation-delay: calc(var(--i,0) * 45ms); flex-wrap: wrap; }
.nvk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nvv-bad); flex-shrink: 0; box-shadow: 0 0 0 0 rgba(255,107,122,.5); animation: nvkPulse 1.8s infinite; }
@keyframes nvkPulse { 70% { box-shadow: 0 0 0 7px rgba(255,107,122,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,122,0); } }
.nvk-t { flex: 1 1 180px; min-width: 0; }
.nvk-t b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvk-t small { display: block; font-size: 11px; color: var(--text3); margin-top: 1px; }
.nvk-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text2); border-radius: 8px; padding: 6px 10px; font: 700 11.5px/1 inherit; cursor: pointer; }
.nvk-btn:hover { color: var(--text); }
.nvk-btn.ok { color: var(--nvv-ok); border-color: rgba(61,220,151,.3); }
.nvk-btn.ok:hover { background: rgba(61,220,151,.1); }
.nvk-hb { display: flex; gap: 2px; margin-top: 8px; width: 100%; }
.nvk-hb i { flex: 1; height: 3px; border-radius: 2px; background: var(--nvv-ok); opacity: .55; animation: nvvIn .3s var(--nvv-ease) both; animation-delay: calc(var(--i,0) * 20ms); }
.nvk-hb i.x { background: var(--nvv-bad); opacity: 1; }
.nvk-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.nvk-filtros button span { opacity: .65; margin-left: 3px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .nvk-kpi b { font-size: 18px; } .nvk-kpi small { font-size: 10px; } }

/* ════════ 5 · Calculadora de reembolso ════════ */
.nvr-calc { display: grid; gap: 12px; margin-bottom: 12px; animation: nvvIn .3s var(--nvv-ease) both; }
.nvr-hero { display: flex; gap: 16px; align-items: center; }
.nvr-ring { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.nvr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nvr-ring circle { fill: none; stroke-width: 7; }
.nvr-ring .bg { stroke: var(--border); }
.nvr-ring .fg { stroke: var(--nvv-ok); stroke-linecap: round; transition: stroke-dashoffset .8s var(--nvv-ease); }
.nvr-calc.min .nvr-ring .fg { stroke: var(--nvv-warn); }
.nvr-ring > div { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.nvr-ring b { font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.nvr-ring small { font-size: 10px; color: var(--text3); font-weight: 700; }
.nvr-amt small { display: block; font-size: 11px; color: var(--text3); font-weight: 700; }
.nvr-amt b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.nvr-amt span { display: block; font-size: 11.5px; color: var(--text3); margin-top: 2px; }
.nvr-tl { position: relative; padding-bottom: 16px; }
.nvr-ln { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--border); }
.nvr-ln i { background: var(--text3); opacity: .45; transition: width .7s var(--nvv-ease); }
.nvr-ln em { background: var(--nvv-ok); transition: width .7s var(--nvv-ease); }
.nvr-hoy { position: absolute; top: -4px; width: 2px; height: 14px; border-radius: 2px; background: var(--text); }
.nvr-mk { position: absolute; bottom: 0; left: 0; font-size: 10.5px; color: var(--text3); font-variant-numeric: tabular-nums; }
.nvr-mk.r { left: auto; right: 0; }
.nvr-adj { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; font-size: 12px; color: var(--text2); }
.nvr-adj em { font-style: normal; color: var(--text3); }
.nvr-adj input { accent-color: var(--accent); width: 100%; }
.nvr-adj button { border: 1px solid var(--border); background: var(--bg3); color: var(--text2); border-radius: 8px; padding: 4px 9px; font: 700 11px/1.2 inherit; cursor: pointer; }
.nvr-msg { display: grid; gap: 8px; padding: 11px; border-radius: 13px; background: var(--bg3); border: 1px solid var(--border); }
.nvr-bub { justify-self: start; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; padding: 9px 11px; border-radius: 12px 12px 12px 4px; background: var(--bg2); border: 1px solid var(--border); }
.nvr-ch { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--text3); }
.nvr-ch b { color: var(--text2); }
.nvr-copy { justify-self: start; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border2); background: var(--bg2); color: var(--text2); border-radius: 8px; padding: 6px 10px; font: 700 11.5px/1 inherit; cursor: pointer; }
.nvr-copy:hover { color: var(--text); border-color: var(--accent2); }
.nvr-td { margin-top: 6px; border: 1px dashed var(--border2); background: transparent; color: var(--accent2); border-radius: 8px; padding: 5px 10px; font: 700 11.5px/1 inherit; cursor: pointer; }
.nvr-td:hover { border-style: solid; }
@media (max-width: 480px) {
  .nvr-hero { gap: 12px; }
  .nvr-ring { width: 76px; height: 76px; }
  .nvr-amt b { font-size: 23px; }
  .nvr-adj { grid-template-columns: minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .nvv-flash, .nvv-pop, .nvv-shake, .nvv-spin svg, .nvc-acc, .nvk-row, .nvk-hb i, .nva-seatsv i, .nvr-calc, .nvc-side, .nva-side, .nvk-dot { animation: none !important; }
  .nva-c3, .nvr-ring .fg, .nvv-ring .fg, .nvc-bar i { transition: none !important; }
}

/* v4.2 · contrato con el mismo formato que se envía, y perfiles en Agregar/Editar cuenta */
.nvc-doc { margin: 0; padding: 14px 15px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--border); font: 11.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 62vh; overflow: auto; }
.nvc-doc b { color: var(--text); font-weight: 700; border-radius: 4px; }
.nvc-doc i { font-style: normal; color: var(--text3); opacity: .6; }
.nva-plist { display: grid; gap: 7px; }
#nva-pl { display: grid; gap: 5px; }
.nva-pr { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border); font-size: 12px; animation: nvvIn .25s var(--nvv-ease) both; }
.nva-pr.libre { border-style: dashed; }
.nva-pn { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--bg4); color: var(--text3); font-size: 10.5px; font-weight: 800; }
.nva-pr b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nva-pr em { flex: 1; font-style: normal; color: var(--nvv-ok); font-weight: 700; }
.nva-pp { flex-shrink: 0; color: var(--text3); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .nva-pr { animation: none !important; } }

/* ════════════════════════════════════════════════════════════════════
   1b · Agregar cliente por pasos (v5.6)
   Una vista a la vez: 1 Cuenta · 2 Cliente · 3 Plazo y precio · 4 Contrato.
   Todo cuelga de #modal-client.nv56a (lo pone js/nv-ventanas-422.js).
   ════════════════════════════════════════════════════════════════════ */
#modal-client.nv56a {
  --a-rgb: var(--nv-accent-rgb, 124,140,255);
  --a-on: var(--nv6-on-accent, #fff);
  --a-ok: var(--green, #3ddc97);
  --a-spring: cubic-bezier(.34,1.4,.64,1);
  --a-ease: cubic-bezier(.2,.8,.2,1);
}
#modal-client.nv56a-pre #modal-client-form, #modal-client.nv56a-pre .nvc-side { opacity: 0; }
#modal-client.nv56a .mc-modal {
  width: calc(100% - 32px) !important; max-width: 860px !important;
  max-height: 88vh !important; max-height: 88dvh !important;
  display: flex !important; flex-direction: column !important; overflow: hidden !important;
  transition: max-width .34s var(--a-ease);
}
#modal-client.nv56a.nv56a-fin .mc-modal { max-width: 600px !important; }
#modal-client.nv56a .mc-header { flex-shrink: 0; }
#modal-client.nv56a .mc-body {
  flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto; overflow-x: hidden;
  padding: 18px 20px 20px !important; scroll-behavior: smooth;
}
#modal-client.nv56a .mc-body.nvc-grid { grid-template-columns: minmax(0,1fr) 284px; gap: 20px; }
#modal-client.nv56a.nv56a-fin .mc-body.nvc-grid { grid-template-columns: minmax(0,1fr); }
#modal-client.nv56a.nv56a-fin .nvc-side { display: none; }
#modal-client.nv56a .nvc-side { top: 0; align-self: start; }
#modal-client.nv56a .nvc-doc { max-height: calc(88vh - 230px); font-size: 11px; }
#modal-client.nv56a #modal-client-form { min-width: 0; }
#modal-client .nv56a-hide, #modal-client .nv56a-btn[hidden] { display: none !important; }

/* ── Barra de pasos ─────────────────────────────────────────────── */
.nv56a-nav { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 18px 11px; border-bottom: 1px solid var(--border); flex-shrink: 0; background: color-mix(in srgb, var(--bg2) 96%, var(--bg3)); }
.nv56a-nav ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.nv56a-nav li { display: flex; align-items: center; min-width: 0; }
.nv56a-nav li + li::before { content: ''; width: 24px; height: 1.5px; margin-right: 6px; border-radius: 2px; background: var(--border2); flex-shrink: 1; }
.nv56a-nav ol button {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 11px 4px 4px; border-radius: 99px;
  border: 1px solid transparent; background: transparent; color: var(--text3); cursor: pointer; white-space: nowrap;
  font: 600 12.5px/1 var(--nv-font-ui, inherit); transition: color .2s, background-color .2s, border-color .2s;
}
.nv56a-nav ol button:not(:disabled):hover { color: var(--text); background: var(--bg3); }
.nv56a-nav ol button:disabled { cursor: default; }
.nv56a-nav ol button.cur { color: var(--text); background: rgba(var(--a-rgb), .12); border-color: rgba(var(--a-rgb), .3); }
.nv56a-nav ol button.done { color: var(--text2); }
.nv56a-l { overflow: hidden; text-overflow: ellipsis; }
.nv56a-n {
  position: relative; width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--border2); font: 800 11px/1 var(--nv-font-num, inherit);
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.nv56a-n b, .nv56a-n svg { grid-area: 1/1; transition: opacity .2s, transform .3s var(--a-spring); }
.nv56a-n svg { opacity: 0; transform: scale(.3) rotate(-25deg); }
.nv56a-nav button.cur .nv56a-n { border-color: var(--accent); color: var(--accent2); box-shadow: 0 0 0 4px rgba(var(--a-rgb), .14); }
.nv56a-nav button.done .nv56a-n { background: var(--accent); border-color: var(--accent); color: var(--a-on); box-shadow: none; }
.nv56a-nav button.done .nv56a-n b { opacity: 0; transform: scale(.3); }
.nv56a-nav button.done .nv56a-n svg { opacity: 1; transform: none; }
.nv56a-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nv56a-bar i { display: block; height: 100%; width: 0; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .45s var(--a-ease); }
.nv56a-doctg { display: none; align-items: center; gap: 6px; flex-shrink: 0; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text2); font: 650 12px/1 var(--nv-font-ui, inherit); cursor: pointer; }
.nv56a-doctg[aria-expanded="true"] { color: var(--accent2); border-color: rgba(var(--a-rgb), .45); background: rgba(var(--a-rgb), .1); }

/* ── Vistas (una a la vez, deslizan) ────────────────────────────── */
.nv56a-vp { position: relative; }
.nv56a-vp.anim { overflow: hidden; transition: height .28s var(--a-ease); }
.nv56a-pane { position: absolute; top: 0; left: 0; right: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; display: grid; gap: 14px; align-content: start; }
.nv56a-pane.on { position: relative; height: auto; overflow: visible; visibility: visible; pointer-events: auto; }
.nv56a-pane.out-l, .nv56a-pane.out-r { height: auto; overflow: visible; visibility: visible; animation: .22s var(--a-ease) both; }
.nv56a-pane.out-l { animation-name: nv56aOutL; }
.nv56a-pane.out-r { animation-name: nv56aOutR; }
.nv56a-pane.in-r { animation: nv56aInR .3s var(--a-ease) both; }
.nv56a-pane.in-l { animation: nv56aInL .3s var(--a-ease) both; }
@keyframes nv56aOutL { to { opacity: 0; transform: translateX(-36px); } }
@keyframes nv56aOutR { to { opacity: 0; transform: translateX(36px); } }
@keyframes nv56aInR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes nv56aInL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.nv56a-pane.on > * { animation: nv56aUp .34s var(--a-ease) both; }
.nv56a-pane.on > :nth-child(2) { animation-delay: .03s; }
.nv56a-pane.on > :nth-child(3) { animation-delay: .06s; }
.nv56a-pane.on > :nth-child(4) { animation-delay: .09s; }
.nv56a-pane.on > :nth-child(n+5) { animation-delay: .12s; }
@keyframes nv56aUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nv56a-ph h4 { margin: 0; font: 700 16px/1.25 var(--nv-font-display, inherit); letter-spacing: -.01em; color: var(--text); }
.nv56a-ph p { margin: 3px 0 0; font-size: 12.5px; color: var(--text3); line-height: 1.4; }

/* Campos (los de siempre, más limpios) */
#modal-client.nv56a .mcf-label { font-size: 11px; font-weight: 650; letter-spacing: .01em; text-transform: none; color: var(--text3); }
#modal-client.nv56a .mc-modal .mcf-input, #modal-client.nv56a .mc-modal .mcf-select {
  height: 40px; padding: 0 12px; border-radius: 11px; font-size: 14px; color: var(--text) !important;
  background-color: var(--bg3) !important; border: 1px solid var(--border2) !important;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
#modal-client.nv56a .mc-modal .mcf-select { padding-right: 30px; }
#modal-client.nv56a .mc-modal .mcf-input:hover, #modal-client.nv56a .mc-modal .mcf-select:hover { border-color: color-mix(in srgb, var(--border2) 50%, var(--text3)) !important; }
#modal-client.nv56a .mc-modal .mcf-input:focus, #modal-client.nv56a .mc-modal .mcf-select:focus {
  background-color: var(--bg2) !important; border-color: rgba(var(--a-rgb), .65) !important; box-shadow: 0 0 0 3px rgba(var(--a-rgb), .16) !important;
}
#modal-client.nv56a .mc-modal .mcf-input.nv56a-bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent) !important; }
#modal-client.nv56a .mcf-field { gap: 5px; }
.nv56a-fname .mcf-input { height: 46px !important; font-size: 16px !important; font-weight: 600; }
.nv56a-sec { display: grid; gap: 10px; }
.nv56a-sec-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--text2); }
.nv56a-sec-h svg { color: var(--accent2); }
.nv56a-sec-h em { font-style: normal; font-weight: 500; color: var(--text3); }
.nv56a-hint { display: none; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; font-size: 12.5px; line-height: 1.35; color: var(--amber, #f7b955);
  background: color-mix(in srgb, var(--amber, #f7b955) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber, #f7b955) 32%, transparent); }
.nv56a-hint.on { display: flex; }
.nv56a-hint svg { flex-shrink: 0; }
.nv56a-link { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; border: 0; background: transparent; color: var(--accent2); font: 700 12px/1 var(--nv-font-ui, inherit); padding: 7px 9px; border-radius: 9px; cursor: pointer; transition: background-color .18s, transform .16s var(--a-spring); }
.nv56a-link:hover { background: rgba(var(--a-rgb), .12); }
.nv56a-link:active { transform: scale(.94); }

/* Segmentos con indicador que se desliza */
.nv56a-seg { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 13px; background: var(--bg3); border: 1px solid var(--border); isolation: isolate; }
.nv56a-seg button {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--text3); cursor: pointer; white-space: nowrap;
  font: 650 12.5px/1 var(--nv-font-ui, inherit); transition: color .22s;
}
.nv56a-seg button > span { overflow: hidden; text-overflow: ellipsis; }
.nv56a-seg-tipo button { flex: 1 1 auto; }
.nv56a-sm { display: none; }
#modal-client.nv56a .mc-modal .nv56a-money #f-precioVenta:focus { outline: none !important; box-shadow: none !important; }
.nv56a-seg button:not(:disabled):hover { color: var(--text2); }
.nv56a-seg button.on { color: var(--text); }
.nv56a-seg button:disabled { opacity: .38; cursor: not-allowed; }
.nv56a-seg button em { font-style: normal; font: 800 10.5px/1 var(--nv-font-num, inherit); padding: 3px 6px; border-radius: 99px; background: var(--bg4); color: var(--text3); transition: background-color .22s, color .22s; }
.nv56a-seg button.on em { background: rgba(var(--a-rgb), .2); color: var(--accent2); }
.nv56a-seg button.on[data-c="whatsapp"] svg { color: #25d366; }
.nv56a-seg button.on[data-c="telegram"] svg { color: #2aabee; }
.nv56a-ind { position: absolute; z-index: 0; left: 0; top: 3px; border-radius: 10px; background: var(--bg2); opacity: 0; pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.35), inset 0 0 0 1px rgba(var(--a-rgb), .38);
  transition: transform .34s var(--a-spring), width .34s var(--a-spring), opacity .2s; }

/* ── Paso 1 · Cuenta ────────────────────────────────────────────── */
.nv56a-p0, .nv56a-pick { display: grid; gap: 12px; min-width: 0; }
.nv56a-pick[hidden], .nv56a-sum-f[hidden] { display: none !important; }
#modal-client .nv56a-perfil { display: none; }
#modal-client .nv56a-perfil.nv56a-showlist { display: flex; animation: nv56aUp .25s var(--a-ease) both; }
#modal-client .nv56a-perfil.nv56a-showlist > .mcf-block-label, #modal-client .nv56a-perfil #mcf-fullAcc-info { display: none !important; }
.nv56a-p0f:empty { display: none; }
.nv56a-tools { display: flex; align-items: center; gap: 8px; }
.nv56a-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; background: var(--bg3); border: 1px solid var(--border); color: var(--text3); transition: border-color .18s, box-shadow .18s; }
.nv56a-search:focus-within { border-color: rgba(var(--a-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--a-rgb), .14); }
#modal-client .nv56a-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--text); font: 13px/1 var(--nv-font-ui, inherit); }
#modal-client .nv56a-search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.6); }
.nv56a-count { flex: 1; font-size: 12px; color: var(--text3); }
.nv56a-lst { height: 32px; }
.nv56a-cards { display: grid; gap: 8px; }
.nv56a-cards.nv56a-swap > * { animation: nv56aUp .28s var(--a-ease) both; animation-delay: calc(var(--i,0) * 26ms); }
.nv56a-none { padding: 14px; text-align: center; font-size: 12.5px; color: var(--text3); }
.nv56a-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border-radius: 16px; border: 1px dashed var(--border2); color: var(--text3); text-align: center; font-size: 12.5px; }
.nv56a-empty b { color: var(--text); font-size: 13.5px; }
.nv56a-acc, .nv56a-card { border: 1px solid var(--border); border-radius: 14px; background: var(--bg3); animation: nv56aUp .3s var(--a-ease) both; animation-delay: calc(var(--i,0) * 26ms); }
.nv56a-acc { overflow: hidden; transition: border-color .22s, box-shadow .22s, background-color .22s; }
.nv56a-acc:not(.open):hover { border-color: var(--border2); }
.nv56a-acc.open { border-color: var(--border2); background: color-mix(in srgb, var(--bg3) 72%, var(--bg4)); }
.nv56a-acc.sel { border-color: rgba(var(--a-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--a-rgb), .12); }
.nv56a-acc-h, .nv56a-card { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: var(--text); text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.nv56a-acc-h { border: 0; background: transparent; }
.nv56a-card { position: relative; transition: transform .18s var(--a-spring), border-color .2s, background-color .2s, box-shadow .2s; }
.nv56a-card:hover { transform: translateY(-1px); border-color: rgba(var(--a-rgb), .45); }
.nv56a-card.sel { border-color: var(--accent); background: rgba(var(--a-rgb), .1); box-shadow: 0 10px 26px -16px rgba(var(--a-rgb), .9); }
.nv56a-acc-h:focus-visible, .nv56a-card:focus-visible, .nv56a-seat:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.nv56a-acc-ic { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--a-rgb), .12); color: var(--accent2); }
.nv56a-acc-t { flex: 1; min-width: 0; }
.nv56a-acc-t b { display: block; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv56a-acc-t small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv56a-dots { display: flex; gap: 3px; flex-shrink: 0; }
.nv56a-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); opacity: .35; }
.nv56a-dots i.f { background: var(--a-ok); opacity: 1; }
.nv56a-free { flex-shrink: 0; font: 700 11px/1 var(--nv-font-ui, inherit); padding: 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--a-ok) 13%, transparent); color: var(--a-ok); white-space: nowrap; }
.nv56a-chev { display: grid; color: var(--text3); transition: transform .28s var(--a-ease); }
.nv56a-acc.open .nv56a-chev { transform: rotate(180deg); }
.nv56a-ok { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--a-on); transform: scale(0); transition: transform .32s var(--a-spring); }
.nv56a-card[aria-pressed="true"] > .nv56a-ok, .nv56a-seat[aria-pressed="true"] > .nv56a-ok { transform: scale(1); }
.nv56a-card > .nv56a-ok { position: absolute; top: -7px; right: -7px; box-shadow: 0 0 0 3px var(--bg2); }
.nv56a-acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--a-ease); }
.nv56a-acc.open > .nv56a-acc-b { grid-template-rows: 1fr; }
.nv56a-acc-b > div { min-height: 0; overflow: hidden; }
.nv56a-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; padding: 4px 12px 12px; }
#modal-client .nvc-seat.nv56a-seat { width: auto; height: auto; place-items: initial; align-content: initial; font: inherit; }
#modal-client .nvc-full.nv56a-card, #modal-client .nvc-ind.nv56a-card { margin: 0; width: 100%; font: inherit; }
#modal-client .nvc-full.nv56a-card[aria-pressed="true"], #modal-client .nvc-ind.nv56a-card[aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--a-rgb), .1); color: var(--text); }
.nv56a-seat {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; border-radius: 11px;
  border: 1px solid var(--border2); background: var(--bg2); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: transform .18s var(--a-spring), border-color .18s, background-color .18s, box-shadow .18s;
}
.nv56a-seat:not(:disabled):hover { transform: translateY(-2px); border-color: rgba(var(--a-rgb), .6); box-shadow: 0 10px 20px -14px rgba(var(--a-rgb), 1); }
.nv56a-seat.busy { cursor: default; background: transparent; border-style: dashed; opacity: .6; }
.nv56a-sn { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--bg4); color: var(--text2); font: 800 12px/1 var(--nv-font-num, inherit); transition: background-color .2s, color .2s; }
.nv56a-seat:not(.busy) .nv56a-sn { background: color-mix(in srgb, var(--a-ok) 15%, transparent); color: var(--a-ok); }
.nv56a-st { flex: 1; min-width: 0; }
.nv56a-st b { display: block; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv56a-st small { display: block; margin-top: 1px; font-size: 10.5px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv56a-seat > .nv56a-ok { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--bg2); }
.nv56a-seat[aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--a-rgb), .16); box-shadow: 0 0 0 3px rgba(var(--a-rgb), .16); }
.nv56a-seat[aria-pressed="true"] .nv56a-sn { background: var(--accent); color: var(--a-on); }
.nv56a-picked { animation: nv56aPicked .42s var(--a-spring); }
@keyframes nv56aPicked { 0% { transform: scale(1); } 35% { transform: scale(.94); } 100% { transform: scale(1); } }

/* ── Paso 2 · Cliente ───────────────────────────────────────────── */
.nv56a-sum { display: grid; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid rgba(var(--a-rgb), .3);
  background: linear-gradient(135deg, rgba(var(--a-rgb), .13), rgba(var(--a-rgb), .03) 62%), var(--bg3); }
.nv56a-sum-h { display: flex; align-items: center; gap: 11px; min-width: 0; }
.nv56a-sum-ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: #fff;
  background: color-mix(in srgb, var(--pc, var(--accent)) 24%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--pc, var(--accent)) 42%, transparent); }
.nv56a-sum-ic img, .nv56a-sum-ic svg { width: 22px; height: 22px; object-fit: contain; }
.nv56a-sum-t { flex: 1; min-width: 0; }
.nv56a-sum-t small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv56a-sum-t b { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv56a-sum-t i { font-weight: 500; color: var(--text3); }
#modal-client.nv56a .nv56a-sum-f .mcf-row-perfil { grid-template-columns: 88px minmax(0,1fr) 96px; gap: 8px; }
#modal-client.nv56a .nv56a-sum-f .mcf-input { height: 36px; font-size: 13.5px; font-weight: 600; background-color: color-mix(in srgb, var(--bg2) 70%, transparent) !important; font-variant-numeric: tabular-nums; }
#modal-client.nv56a .mcf-row-contacto { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 10px; }
#modal-client.nv56a .mcf-row-contacto > .nv56a-canal { grid-column: 1 / -1; order: 1; }
#modal-client.nv56a .mcf-row-contacto > .nv56a-canal .mcf-select { display: none !important; }
#modal-client.nv56a #fg-contacto { grid-column: 1 / -1 !important; order: 2; }
#modal-client.nv56a #fg-tipoContacto2, #modal-client.nv56a #fg-contacto2 { order: 3; }
#modal-client.nv56a #fg-tipoContacto3, #modal-client.nv56a #fg-contacto3 { order: 4; }
#modal-client.nv56a #fg-tipoContacto2, #modal-client.nv56a #fg-tipoContacto3 { grid-column: 1 !important; }
#modal-client.nv56a #fg-contacto2, #modal-client.nv56a #fg-contacto3 { grid-column: 2 !important; }
#modal-client.nv56a #fg-add-contacto { order: 5; }
#modal-client.nv56a #fg-add-contacto button { width: 100%; justify-content: center; height: 36px; padding: 0 12px !important; border: 1px dashed var(--border2) !important; border-radius: 11px !important; transition: border-color .18s, background-color .18s, transform .16s var(--a-spring); }
#modal-client.nv56a #fg-add-contacto button:hover { border-color: rgba(var(--a-rgb), .55) !important; background: rgba(var(--a-rgb), .08) !important; }
#modal-client.nv56a #fg-add-contacto button:active { transform: scale(.97); }
#modal-client.nv56a .mcf-row-contacto > .nv56a-resp { grid-column: 1 / -1; order: 6; }
#modal-client.nv56a .nv56a-resp .mcf-label span { font-size: 11px !important; opacity: .7 !important; }
#modal-client.nv56a #resp-dropdown { background: var(--bg2) !important; border: 1px solid var(--border2) !important; border-radius: 12px !important; box-shadow: 0 18px 40px rgba(0,0,0,.45) !important; }
#modal-client.nv56a .nvc-sug { border-radius: 13px; }
.nv56a-dupslot:empty { display: none; }
.nv56a-dupslot .nv510-dup { margin-top: 0; }

/* ── Paso 3 · Plazo y precio ────────────────────────────────────── */
.nv56a-price { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--bg3); border: 1px solid var(--border); }
.nv56a-price-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nv56a-price-h label { font-size: 13px; font-weight: 700; color: var(--text); }
.nv56a-price-h small { font-size: 11.5px; color: var(--text3); }
.nv56a-money { display: flex; align-items: center; gap: 4px; border-bottom: 2px solid var(--border2); transition: border-color .2s; }
.nv56a-money:focus-within { border-color: var(--accent); }
.nv56a-money > span { font: 700 28px/1 var(--nv-font-num, inherit); color: var(--text3); }
.nv56a-money-in { flex: 1; min-width: 0; }
#modal-client.nv56a .mc-modal .nv56a-money #f-precioVenta {
  height: 52px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
  font: 700 32px/1 var(--nv-font-num, inherit) !important; letter-spacing: -.02em; -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.nv56a-money #f-precioVenta::-webkit-inner-spin-button, .nv56a-money #f-precioVenta::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nv56a-sug:empty { display: none; }
.nv56a-sug button, .nv56a-chips button { border: 1px solid var(--border2); background: var(--bg2); color: var(--text2); border-radius: 99px; padding: 6px 11px; font: 600 12px/1.2 var(--nv-font-ui, inherit); cursor: pointer; transition: border-color .18s, color .18s, background-color .18s, transform .16s var(--a-spring); }
.nv56a-sug button b { color: var(--text); }
.nv56a-sug button:hover, .nv56a-chips button:hover { border-color: rgba(var(--a-rgb), .55); color: var(--text); }
.nv56a-sug button:active, .nv56a-chips button:active { transform: scale(.94); }
.nv56a-plazo { display: grid; gap: 10px; }
#modal-client.nv56a .nv56a-plazo .nvc-chips { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; margin: 0; }
#modal-client.nv56a .nv56a-plazo .nvc-chips button { height: 40px; padding: 0 4px; border-radius: 12px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text2); font: 700 12.5px/1 var(--nv-font-ui, inherit);
  transition: transform .2s var(--a-spring), background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
#modal-client.nv56a .nv56a-plazo .nvc-chips button:hover { border-color: rgba(var(--a-rgb), .55); color: var(--text); transform: translateY(-1px); }
#modal-client.nv56a .nv56a-plazo .nvc-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--a-on); box-shadow: 0 8px 20px -12px rgba(var(--a-rgb), 1); animation: nv56aPicked .38s var(--a-spring); }
#modal-client.nv56a .nv56a-plazo .mcf-field { max-width: 260px; }
#modal-client.nv56a .nv56a-plazo .nvc-when { margin: 0; font-size: 12.5px; }
.nv56a-total { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--a-rgb), .2), rgba(var(--a-rgb), .05)); border: 1px solid rgba(var(--a-rgb), .36); }
.nv56a-total.on { display: flex; }
.nv56a-total-l { min-width: 0; }
.nv56a-total small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.nv56a-total em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--text2); }
.nv56a-total b { font: 800 26px/1 var(--nv-font-num, inherit); color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nv56a-pay { display: grid; gap: 8px; }
.nv56a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nv56a-chips button[aria-pressed="true"] { background: rgba(var(--a-rgb), .16); border-color: var(--accent); color: var(--text); }

/* ── Paso 4 · Contrato ──────────────────────────────────────────── */
.nv56a-okh { display: flex; align-items: center; gap: 14px; }
.nv56a-okh b { display: block; font: 700 17px/1.2 var(--nv-font-display, inherit); color: var(--text); }
.nv56a-okh small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text3); }
.nv56a-ck { width: 52px; height: 52px; flex-shrink: 0; animation: nv56aPop .55s var(--a-spring) both; }
.nv56a-ck circle { fill: color-mix(in srgb, var(--a-ok) 12%, transparent); stroke: var(--a-ok); stroke-width: 2.5; stroke-dasharray: 146; stroke-dashoffset: 146; animation: nv56aDraw .5s var(--a-ease) .05s forwards; }
.nv56a-ck path { fill: none; stroke: var(--a-ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: nv56aDraw .32s var(--a-ease) .42s forwards; }
@keyframes nv56aDraw { to { stroke-dashoffset: 0; } }
@keyframes nv56aPop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.nv56a-cdoc { border-radius: 16px; border: 1px solid var(--border); background: var(--bg3); overflow: hidden; }
.nv56a-cdoc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--border); }
.nv56a-cdoc-h > span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--text2); }
.nv56a-cdoc-h > span svg { color: var(--accent2); }
#nv56a-ctext { display: block; width: 100%; box-sizing: border-box; height: min(46vh, 420px); min-height: 200px; resize: vertical; margin: 0; border: 0; outline: 0; background: transparent; color: var(--text2);
  padding: 12px 14px; font: 11.8px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; transition: background-color .2s, box-shadow .2s; }
#nv56a-ctext:not([readonly]) { background: var(--bg2); box-shadow: inset 0 0 0 2px rgba(var(--a-rgb), .4); color: var(--text); }
.nv56a-sent { display: none; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; color: var(--a-ok);
  background: color-mix(in srgb, var(--a-ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a-ok) 30%, transparent); }
.nv56a-sent.on { display: flex; animation: nv56aUp .3s var(--a-ease) both; }
.nv56a-sent svg { flex-shrink: 0; }

/* ── Pie y botones ──────────────────────────────────────────────── */
#modal-client.nv56a .mc-footer { gap: 8px; padding: 12px 18px !important; border-top: 1px solid var(--border) !important; background: color-mix(in srgb, var(--bg2) 94%, var(--bg3)) !important; flex-wrap: nowrap; }
.nv56a-meta { margin-right: auto; font: 600 12px/1 var(--nv-font-ui, inherit); color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nv56a-meta:empty { display: none; }
#modal-client.nv56a.nv56a-fin #nv56a-copy { margin-left: auto; }
#modal-client .nv56a-btn {
  position: relative; display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px !important; border-radius: 12px !important;
  font: 650 13px/1 var(--nv-font-ui, inherit) !important; cursor: pointer; white-space: nowrap; min-width: 0;
  transition: transform .16s var(--a-spring), background-color .2s, border-color .2s, color .2s, box-shadow .2s, filter .2s !important;
}
#modal-client .nv56a-btn svg { transition: transform .22s var(--a-spring); flex-shrink: 0; }
#modal-client .nv56a-pri:not(.nv6-btn) { background: var(--accent) !important; border: 1px solid var(--accent) !important; color: var(--a-on) !important; box-shadow: 0 8px 20px -12px rgba(var(--a-rgb), 1); }
#modal-client .nv56a-pri:not(.nv6-btn):hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 14px 28px -12px rgba(var(--a-rgb), 1); }
#modal-client .nv56a-ghost:not(.nv6-btn) { background: transparent !important; border: 1px solid var(--border2) !important; color: var(--text2) !important; box-shadow: none; }
#modal-client .nv56a-ghost:not(.nv6-btn):hover { background: var(--bg3) !important; color: var(--text) !important; }
#modal-client .nv56a-soft { background: rgba(var(--a-rgb), .12) !important; border: 1px solid rgba(var(--a-rgb), .32) !important; color: var(--accent2) !important; }
#modal-client .nv56a-soft:hover { background: rgba(var(--a-rgb), .2) !important; transform: translateY(-1px); }
#modal-client .nv56a-btn:active:not(:disabled) { transform: scale(.95) !important; transition-duration: .06s !important; }
#modal-client .nv56a-btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
#modal-client .nv56a-btn.nv56a-hide, #modal-client .nv56a-btn[hidden] { display: none !important; }
#nv56a-next:hover svg { transform: translateX(3px); }
#nv56a-back:hover svg { transform: translateX(-3px); }
#nv56a-otro:hover svg { transform: rotate(90deg); }
#modal-client #btn-save-client.is-loading { pointer-events: none; color: transparent !important; }
#modal-client #btn-save-client.is-loading:not(.nv6-btn)::after { content: ''; position: absolute; left: calc(50% - 8px); top: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--a-on); border-right-color: transparent; animation: nvvSpin .6s linear infinite; }
.nv56a-ico { display: inline-grid; width: 15px; height: 15px; place-items: center; }
.nv56a-ico > svg { grid-area: 1/1; transition: transform .32s var(--a-spring), opacity .2s; }
.nv56a-ico > svg:last-child { opacity: 0; transform: scale(.3) rotate(-30deg); }
.nv56a-hecho .nv56a-ico > svg:first-child { opacity: 0; transform: scale(.3); }
.nv56a-hecho .nv56a-ico > svg:last-child { opacity: 1; transform: none; }
#modal-client #nv56a-copy.nv56a-hecho { border-color: var(--a-ok) !important; color: var(--a-ok) !important; background: color-mix(in srgb, var(--a-ok) 12%, transparent) !important; }
#modal-client #nv56a-send.nv56a-hecho { background: var(--a-ok) !important; border-color: var(--a-ok) !important; color: #06210f !important; box-shadow: 0 10px 24px -12px var(--a-ok); }
.nv56a-fly .nv56a-ico { animation: nv56aFly .5s var(--a-ease); }
@keyframes nv56aFly { 0% { transform: none; opacity: 1; } 50% { transform: translate(14px,-12px) scale(.7); opacity: 0; } 51% { transform: translate(-10px,8px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.nv56a-rise { animation: nv56aRise .38s var(--a-spring) both; animation-delay: calc(var(--i,0) * 45ms + .25s); }
@keyframes nv56aRise { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ── Pantallas medianas: el contrato se abre con "Ver contrato" ───── */
@media (max-width: 760px) {
  #modal-client.nv56a .mc-body.nvc-grid { grid-template-columns: minmax(0,1fr); }
  #modal-client.nv56a .nvc-side { display: none; }
  #modal-client.nv56a.nv56a-docon:not(.nv56a-fin) .nvc-side { display: grid; position: static; order: -1; animation: nv56aUp .28s var(--a-ease) both; }
  #modal-client.nv56a.nv56a-docon:not(.nv56a-fin) .nvc-side .nvc-doc { max-height: 42vh; }
  #modal-client.nv56a:not(.nv56a-fin) .nv56a-doctg { display: inline-flex; }
}
/* ── Teléfono: hoja inferior compacta ─────────────────────────────── */
@media (max-width: 600px) {
  html.nv-v510 #modal-client.nv56a.nv510, #modal-client.nv56a { padding: 0 !important; align-items: flex-end !important; }
  html.nv-v510 #modal-client.nv56a.nv510 > .modal, #modal-client.nv56a > .mc-modal {
    width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 94vh !important; max-height: 94dvh !important;
    border-radius: 22px 22px 0 0 !important; border: 1px solid var(--border) !important; border-bottom: 0 !important;
  }
  html.nv-v510 #modal-client.nv56a.nv510.show > .modal { animation: nv56aSheet .34s var(--a-ease) both !important; }
  #modal-client.nv56a .mc-body { padding: 14px 14px 16px !important; }
  .nv56a-nav { padding: 8px 12px 9px; gap: 6px; }
  .nv56a-nav ol { gap: 3px; }
  .nv56a-nav li + li::before { width: 10px; margin-right: 3px; }
  .nv56a-nav ol button { padding: 3px; }
  .nv56a-nav ol button:not(.cur) .nv56a-l { display: none; }
  .nv56a-nav ol button.cur { padding-right: 10px; }
  .nv56a-doctg span { display: none; }
  .nv56a-doctg { width: 32px; padding: 0; justify-content: center; }
  .nv56a-seg-tipo button > svg { display: none; }
  .nv56a-seg button { padding: 0 6px; gap: 5px; font-size: 12px; }
  .nv56a-seats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nv56a-dots { display: none; }
  #modal-client.nv56a .nv56a-sum-f .mcf-row-perfil { grid-template-columns: 64px minmax(0,1fr) 78px; }
  #modal-client.nv56a .mcf-row-contacto { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); }
  #modal-client.nv56a .nv56a-plazo .nvc-chips button { font-size: 11px; white-space: nowrap; letter-spacing: -.01em; }
  .nv56a-lg { display: none; }
  .nv56a-sm { display: inline; }
  #modal-client.nv56a .nv56a-plazo .mcf-field { max-width: none; }
  #modal-client.nv56a .mc-footer { padding: 10px 12px max(10px, env(safe-area-inset-bottom)) !important; gap: 6px; flex-wrap: wrap !important; }
  #modal-client .nv56a-btn { height: 44px; padding: 0 12px !important; flex: 1 1 auto; }
  #modal-client.nv56a .mc-footer .nv56a-meta { display: none; }
  #modal-client.nv56a.nv56a-fin .mc-footer .nv56a-f4 { flex: 1 1 calc(50% - 6px); }
  #modal-client.nv56a.nv56a-fin #nv56a-copy { margin-left: 0; }
  #nv56a-ctext { height: 36vh; }
  .nv56a-total b { font-size: 22px; }
}
@keyframes nv56aSheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  #modal-client.nv56a .mc-modal, .nv56a-vp.anim, .nv56a-ind, .nv56a-bar i, .nv56a-acc-b { transition: none !important; }
  .nv56a-pane, .nv56a-pane > *, .nv56a-acc, .nv56a-card, .nv56a-picked, .nv56a-rise, .nv56a-fly .nv56a-ico > svg, .nv56a-ck, .nv56a-sent.on, .nv56a-total.on,
  #modal-client.nv56a .nv56a-plazo .nvc-chips button[aria-pressed="true"] { animation: none !important; }
  .nv56a-ck circle, .nv56a-ck path { animation: none !important; stroke-dashoffset: 0; }
}
/* La lista de clientes que ya tienes queda por encima de la seccion Contacto */
#modal-client.nv56a .nvc-rel { position: relative; z-index: 6; }
#modal-client.nv56a .nvc-rel:has(.nvc-sug.on) { z-index: 40; }
