/* =====================
   Showroom — dark premium
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #0a0c14;
  --panel: #0d111b;
  --accent: #6c63ff;
  --accent-2: #a9a3ff;
  --accent-3: #c7c2ff;
  --teal: #00d4aa;
  --teal-2: #5fe3c3;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #4a5568;
  --line: rgba(255,255,255,.08);
  --mono: 'Courier New', Courier, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  width: 100%; min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#bg { position: fixed; inset: 0; z-index: 0; opacity: .35; pointer-events: none; }

/* ── Header / nav ── */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: 980px; margin: 0 auto;
  padding: 1.5rem 1.5rem .5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
}
.brand-name { font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: .82rem; }
.nav-links a { color: rgba(226,232,240,.6); text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-access {
  border: 1px solid rgba(108,99,255,.4); border-radius: 7px;
  padding: .35rem .7rem; color: var(--accent-2) !important;
}
.nav-access:hover { background: rgba(108,99,255,.12); }

/* ── Page / hero ── */
.page { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }

.hero { text-align: center; padding: 3rem 0 3.5rem; }
.kicker {
  display: inline-block; font-family: var(--mono);
  font-size: .68rem; letter-spacing: .18em; color: var(--teal);
  border: 1px solid rgba(0,212,170,.3); border-radius: 20px;
  padding: .35rem .9rem; margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 600;
  line-height: 1.15; letter-spacing: -.02em;
  max-width: 640px; margin: 0 auto .9rem;
}
.hero-sub {
  font-size: clamp(.95rem, 2.4vw, 1.05rem); color: rgba(226,232,240,.6);
  max-width: 540px; margin: 0 auto; line-height: 1.6;
}

/* ── Soluciones ── */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sec-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--dim); }
.sec-hint { font-size: .78rem; color: rgba(226,232,240,.45); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }

.card {
  display: flex; flex-direction: column; text-align: left;
  width: 100%; font-family: inherit; cursor: pointer;
  background: linear-gradient(180deg, rgba(108,99,255,.08), rgba(108,99,255,.03));
  border: 1px solid rgba(108,99,255,.3); border-radius: 14px;
  padding: 1.1rem; color: var(--text);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(108,99,255,.6); box-shadow: 0 10px 40px rgba(108,99,255,.16); }
.card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.card--teal { background: linear-gradient(180deg, rgba(0,212,170,.09), rgba(0,212,170,.03)); border-color: rgba(0,212,170,.32); }
.card--teal:hover { border-color: rgba(0,212,170,.6); box-shadow: 0 10px 40px rgba(0,212,170,.16); }
.card--muted { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.1); }
.card--muted:hover { border-color: rgba(255,255,255,.25); box-shadow: 0 10px 40px rgba(0,0,0,.3); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .8rem; }
.card-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(108,99,255,.14); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
}
.card-ico svg { width: 21px; height: 21px; }
.card--teal .card-ico { background: rgba(0,212,170,.14); color: var(--teal-2); }
.card--muted .card-ico { background: rgba(255,255,255,.05); color: #cbd5e1; }
.badge-live {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: var(--teal);
  border: 1px solid rgba(0,212,170,.35); border-radius: 5px; padding: .15rem .45rem;
}
.card-name { font-size: 1.05rem; font-weight: 600; margin-bottom: .15rem; }
.card-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--accent); margin-bottom: .55rem; }
.card--teal .card-tag { color: var(--teal); }
.card--muted .card-tag { color: var(--muted); }
.card-pitch { font-size: .82rem; color: rgba(226,232,240,.6); line-height: 1.5; margin-bottom: .9rem; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--accent-2); }
.card--teal .card-more { color: var(--teal-2); }
.card--muted .card-more { color: #cbd5e1; }
.card-more svg { width: 14px; height: 14px; }

.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--dim);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ── Detalle (overlay) ── */
body.detail-open { overflow: hidden; }
.detail {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(7,9,15,.9); backdrop-filter: blur(8px);
  overflow-y: auto; padding: 2rem 1.25rem 3rem;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.detail-inner {
  max-width: 740px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.4rem 1.8rem;
  animation: rise .22s ease;
}
@keyframes rise { from { transform: translateY(10px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

.back {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: rgba(226,232,240,.6); font-size: .85rem; padding: .2rem 0; margin-bottom: 1rem;
}
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }

.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.svc-id { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.svc-name { font-size: 1.3rem; font-weight: 600; }
.svc-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--accent); border: 1px solid rgba(108,99,255,.3); border-radius: 5px; padding: .2rem .5rem; }
.svc-tag--teal { color: var(--teal); border-color: rgba(0,212,170,.3); }
.svc-tag--gray { color: var(--muted); border-color: rgba(255,255,255,.15); }

/* switcher */
.switcher { display: inline-flex; background: rgba(255,255,255,.03); border: 1px solid rgba(108,99,255,.18); border-radius: 11px; padding: 4px; gap: 3px; }
.lvl-btn { font-family: inherit; font-size: .82rem; padding: .5rem 1rem; border: none; border-radius: 8px; background: none; color: rgba(226,232,240,.55); cursor: pointer; transition: background .15s ease, color .15s ease; }
.lvl-btn:hover { color: var(--text); }
.lvl-btn.is-active { background: rgba(108,99,255,.22); color: var(--accent-3); font-weight: 500; }

.depth { display: flex; align-items: center; gap: .45rem; margin: .8rem .2rem 1.4rem; }
.depth-bar { height: 3px; width: 34px; border-radius: 2px; background: rgba(255,255,255,.12); transition: background .2s ease; }
.depth-bar.is-on { background: var(--accent); }
.depth-bar.is-on.is-last { background: var(--teal); }
.depth-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: var(--dim); margin-left: .3rem; }

/* niveles */
.lead { font-size: 1.05rem; line-height: 1.6; color: rgba(226,232,240,.9); margin-bottom: 1.2rem; }
.outcomes { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.3rem; }
.outcome { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: rgba(226,232,240,.85); }
.oc-ico { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: rgba(0,212,170,.12); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.oc-ico svg { width: 14px; height: 14px; }
.usecase { font-size: .85rem; color: var(--muted); border-left: 2px solid rgba(108,99,255,.4); padding-left: .7rem; }

.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.mod { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; padding: .85rem; }
.mod-name { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .25rem; }
.mod-desc { font-size: .8rem; color: rgba(226,232,240,.55); line-height: 1.45; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.chip { font-size: .75rem; background: rgba(108,99,255,.1); border: 1px solid rgba(108,99,255,.28); border-radius: 6px; padding: .25rem .6rem; color: var(--accent-3); }
.chip--teal { background: rgba(0,212,170,.1); border-color: rgba(0,212,170,.3); color: var(--teal-2); }
.chip--gray { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #cbd5e1; }

.arch { width: 100%; height: auto; margin-bottom: 1.5rem; }
.arch text { font-family: var(--sans); }

.secgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.secitem { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: rgba(226,232,240,.72); }
.sec-ico { color: var(--teal); flex-shrink: 0; display: flex; }
.sec-ico svg { width: 16px; height: 16px; }

.level .sec-label { display: block; margin: 0 0 .7rem; }

.soon { font-size: .9rem; color: var(--muted); background: rgba(255,255,255,.02); border: 1px dashed var(--line); border-radius: 10px; padding: 1.4rem; text-align: center; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .nav-links a:not(.nav-access) { display: none; }
  .secgrid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .detail, .detail-inner { animation: none; }
  .card { transition: none; }
  #bg { display: none; }
}

/* ── Página de acceso (sistemas.html) ── */
a.card { text-decoration: none; color: var(--text); }
.subhead { text-align: center; padding: 2.5rem 0 2.5rem; }
.subhead h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: .5rem; }
.subhead p { color: rgba(226,232,240,.6); font-size: .95rem; }
.card-meta-line { display: flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.card-meta-line svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.card-actions .chip { text-decoration: none; cursor: pointer; }
.card.soon { background: rgba(255,255,255,.02); border-style: dashed; border-color: rgba(255,255,255,.12); cursor: default; }
.card.soon:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,.12); }
.card.soon .card-ico { background: rgba(255,255,255,.05); color: var(--dim); }
.card.soon .card-name { color: rgba(226,232,240,.7); }
.badge-soon { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid rgba(74,85,104,.5); border-radius: 5px; padding: .2rem .5rem; }

@media (max-width: 560px) {
  .lvl-btn { padding: .45rem .7rem; font-size: .78rem; }
}

/* ── Tarjetas de servicio (home plano) ── */
.scards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.scard {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(108,99,255,.07), rgba(108,99,255,.025));
  border: 1px solid rgba(108,99,255,.3); border-radius: 14px; padding: 18px 18px 20px;
}
.scard--teal { background: linear-gradient(180deg, rgba(0,212,170,.08), rgba(0,212,170,.025)); border-color: rgba(0,212,170,.32); }
.scard--muted { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.1); }
.scard-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.scard-ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(108,99,255,.14); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
}
.scard-ico svg { width: 21px; height: 21px; }
.scard--teal .scard-ico { background: rgba(0,212,170,.14); color: var(--teal-2); }
.scard--muted .scard-ico { background: rgba(255,255,255,.05); color: #cbd5e1; }
.scard-id { flex: 1; min-width: 0; }
.scard-name { display: block; font-size: 1.05rem; font-weight: 600; }
.scard-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--accent); }
.scard-tag--teal { color: var(--teal); }
.scard-tag--gray { color: var(--muted); }
.scard-desc { font-size: .9rem; color: rgba(226,232,240,.72); line-height: 1.55; margin-bottom: 1rem; }
.scard .sec-label { display: block; margin-bottom: .65rem; }
.feats { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.feats li { display: flex; align-items: flex-start; gap: .55rem; font-size: .85rem; color: rgba(226,232,240,.82); line-height: 1.4; }
.feats li svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--teal); margin-top: .1rem; }
.scard--muted .feats li svg { color: var(--accent-2); }

.scard-ctas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1.1rem; }
.scard-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .03em;
  color: var(--accent-2); text-decoration: none;
  border: 1px solid rgba(108,99,255,.4); border-radius: 8px; padding: .5rem .8rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.scard-cta:hover { background: rgba(108,99,255,.12); border-color: rgba(108,99,255,.6); color: var(--accent-3); }
.scard-cta:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.scard--teal .scard-cta { color: var(--teal-2); border-color: rgba(0,212,170,.4); }
.scard--teal .scard-cta:hover { background: rgba(0,212,170,.12); border-color: rgba(0,212,170,.6); color: var(--teal); }

/* ── Navegador interno (/sistemas) ── */
.nv-head { margin: .5rem 0 1.2rem; }
.nv-head h1 { font-size: clamp(1.5rem,4vw,2rem); font-weight: 600; letter-spacing: -.02em; }
.nv-head p { color: rgba(226,232,240,.55); font-size: .9rem; margin-top: .3rem; }
.nv-tier { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--dim); margin: 1.1rem 0 .7rem; }
.nv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 12px; }
.nv-card { display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(108,99,255,.07), rgba(108,99,255,.025)); border: 1px solid rgba(108,99,255,.3); border-radius: 14px; padding: 16px; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.nv-card:hover { transform: translateY(-3px); border-color: rgba(108,99,255,.6); box-shadow: 0 10px 40px rgba(108,99,255,.16); }
.nv-card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nv-card--teal { background: linear-gradient(180deg, rgba(0,212,170,.08), rgba(0,212,170,.025)); border-color: rgba(0,212,170,.32); }
.nv-card--muted { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.1); }
.nv-chd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nv-ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; background: rgba(108,99,255,.14); color: var(--accent-2); display: flex; align-items: center; justify-content: center; }
.nv-ico svg { width: 19px; height: 19px; }
.nv-card--teal .nv-ico { background: rgba(0,212,170,.14); color: var(--teal-2); }
.nv-card--muted .nv-ico { background: rgba(255,255,255,.05); color: #cbd5e1; }
.nv-name { font-size: 1.02rem; font-weight: 600; }
.nv-tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; color: var(--accent); }
.nv-card--teal .nv-tag { color: var(--teal); } .nv-card--muted .nv-tag { color: var(--muted); }
.nv-live { margin-left: auto; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; color: var(--teal); border: 1px solid rgba(0,212,170,.35); border-radius: 5px; padding: .15rem .4rem; }
.nv-more { font-size: .78rem; color: var(--accent-2); margin-top: auto; padding-top: .6rem; }
.nv-card--teal .nv-more { color: var(--teal-2); } .nv-card--muted .nv-more { color: var(--muted); }
.nv-card { position: relative; }
.nv-launch { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(108,99,255,.14); color: var(--accent-2); border: 1px solid rgba(108,99,255,.28); transition: background .14s ease, color .14s ease, transform .14s ease; z-index: 2; }
.nv-launch:hover { background: rgba(108,99,255,.3); color: var(--accent-3); transform: translateY(-1px); }
.nv-launch svg { width: 16px; height: 16px; }
.nv-card--teal .nv-launch { background: rgba(0,212,170,.14); color: var(--teal-2); border-color: rgba(0,212,170,.3); }
.nv-card--teal .nv-launch:hover { background: rgba(0,212,170,.28); color: var(--teal); }
.nv-card--muted .nv-launch { background: rgba(255,255,255,.06); color: #cbd5e1; border-color: rgba(255,255,255,.12); }
/* ── Consola de monitoreo ── */
.nv-sem { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: #64748b; }
.nv-sem--ok { background: var(--teal); box-shadow: 0 0 8px rgba(0,212,170,.55); }
.nv-sem--warn { background: #f5a623; box-shadow: 0 0 8px rgba(245,166,35,.55); }
.nv-sem--crit { background: #ff6b6b; box-shadow: 0 0 8px rgba(255,107,107,.6); }
.nv-sem--unknown { background: #64748b; }
.nv-sem--lg { width: 18px; height: 18px; }
.nv-mon-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom: 6px; }
.nv-mon--ok { border-color: rgba(0,212,170,.3); } .nv-mon--warn { border-color: rgba(245,166,35,.35); } .nv-mon--crit { border-color: rgba(255,107,107,.4); }
.nv-mon-h { font-size: 1.05rem; color: var(--text); font-weight: 600; }
.nv-mchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nv-mchip { font-family: var(--mono); font-size: .66rem; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: .15rem .45rem; }
.nv-mtier { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; color: var(--muted); margin: 16px 0 8px; }
.nv-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.nv-mcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(255,255,255,.02); }
.nv-mtop { display: flex; align-items: center; gap: 8px; }
.nv-mname { font-size: .92rem; color: var(--text); font-weight: 500; }
.nv-mlink { margin-left: auto; font-size: .72rem; color: var(--accent-2); white-space: nowrap; }
.nv-kpis { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.nv-kpi { font-size: .74rem; color: var(--muted); } .nv-kpi b { color: var(--accent-3); font-weight: 600; }
.nv-mrows { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.nv-mrow { display: flex; align-items: center; gap: 10px; padding: .5rem .7rem; background: rgba(255,255,255,.02); }
.nv-mrn { color: var(--text); font-size: .85rem; min-width: 150px; }
.nv-mrd { color: var(--muted); font-size: .78rem; flex: 1; }
.nv-mon-down { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 6px; }
.nv-hidden { display: none !important; }
.nv-logrow { padding: .5rem .7rem; background: rgba(255,255,255,.02); }
.nv-logmeta { display: flex; align-items: center; gap: 8px; }
.nv-logts { margin-left: auto; font-family: var(--mono); font-size: .68rem; color: var(--dim); white-space: nowrap; }
.nv-logline { font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: pre-wrap; word-break: break-word; margin-top: .25rem; line-height: 1.35; }
.nv-head--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nv-envtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.02); margin-top: 4px; flex-shrink: 0; }
.nv-envtoggle button { background: transparent; border: 0; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; padding: .4rem .85rem; cursor: pointer; }
.nv-envtoggle button.is-on { background: rgba(108,99,255,.22); color: var(--accent-3); }
.nv-envtoggle button:hover:not(.is-on) { color: var(--text); }
/* Panel de servicios: 2 por fila + indicadores + botones */
.nv-grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .nv-grid2 { grid-template-columns: repeat(2, 1fr); } }
.nv-card--wide { position: relative; }
.nv-ind { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.nv-ipill { font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .5rem; }
.nv-ipill b { color: var(--accent-3); font-weight: 600; }
.nv-card--teal .nv-ipill b { color: var(--teal-2); }
.nv-dim { color: var(--dim); font-size: .72rem; }
.nv-cardbtns { display: flex; gap: 8px; margin-top: auto; padding-top: .7rem; flex-wrap: wrap; }
.nv-cbtn { font-size: .74rem; padding: .38rem .75rem; border-radius: 8px; border: 1px solid rgba(108,99,255,.28); background: rgba(108,99,255,.1); color: var(--accent-2); cursor: pointer; font-family: inherit; text-decoration: none; }
.nv-cbtn:hover { background: rgba(108,99,255,.22); color: var(--accent-3); }
.nv-card--teal .nv-cbtn { border-color: rgba(0,212,170,.3); background: rgba(0,212,170,.1); color: var(--teal-2); }
.nv-ccard { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.nv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.nv-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; padding: .35rem .6rem; border-radius: 8px; border: 1px solid rgba(108,99,255,.4); color: var(--accent-2); background: rgba(108,99,255,.06); text-decoration: none; }
.nv-chip:hover { background: rgba(108,99,255,.14); }
.nv-chip--plan { border-style: dashed; border-color: var(--line); color: var(--muted); background: transparent; cursor: default; }
.nv-chip--wip { border-color: rgba(230,184,96,.4); color: #e6b860; background: rgba(230,184,96,.05); }
.nv-back { display: inline-flex; align-items: center; gap: .4rem; background: none; border: none; cursor: pointer; font-family: inherit; color: rgba(226,232,240,.6); font-size: .85rem; padding: .2rem 0; margin-bottom: 1rem; }
.nv-back:hover { color: var(--text); }
.nv-svc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 1.2rem; }
.nv-layer { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 6px; background: rgba(255,255,255,.015); }
.nv-lname { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--dim); margin-bottom: .6rem; }
.nv-nodes { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-node { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; padding: .45rem .65rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text); text-decoration: none; }
.nv-node--link { border-color: rgba(108,99,255,.45); background: rgba(108,99,255,.07); }
.nv-node--link:hover { background: rgba(108,99,255,.14); }
.nv-node--info { border-style: dashed; color: var(--muted); }
.nv-conn { height: 13px; width: 1px; background: rgba(108,99,255,.3); margin: 0 auto; }
.nv-eb { font-family: var(--mono); font-size: .56rem; letter-spacing: .06em; padding: .08rem .35rem; border-radius: 4px; border: 1px solid; }
.nv-eb--prod { color: var(--teal); border-color: rgba(0,212,170,.4); }
.nv-eb--staging { color: #e6b860; border-color: rgba(230,184,96,.4); }
.nv-eb--tailnet { color: var(--accent-2); border-color: rgba(108,99,255,.4); }
.nv-eb--infra { color: var(--muted); border-color: rgba(255,255,255,.14); }
.nv-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; font-size: .74rem; color: var(--muted); }
.nv-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nv-sw { width: 9px; height: 9px; border-radius: 3px; border: 1px solid; }
.nv-grp { margin-bottom: 1.1rem; }
.nv-gname { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--accent); margin-bottom: .55rem; }
.nv-st { font-family: var(--mono); font-size: .56rem; padding: .08rem .35rem; border-radius: 4px; border: 1px solid; margin-left: 2px; }
.nv-st--live { color: var(--teal); border-color: rgba(0,212,170,.4); }
.nv-st--wip { color: #e6b860; border-color: rgba(230,184,96,.4); }
.nv-st--planned { color: var(--muted); border-color: rgba(255,255,255,.14); }

.nv-ico--teal { background: rgba(0,212,170,.14); color: var(--teal-2); }
.nv-card--teal:hover { border-color: rgba(0,212,170,.6); box-shadow: 0 10px 40px rgba(0,212,170,.16); }
.nv-name--sm { font-size: .95rem; }
.nv-name--lg { font-size: 1.2rem; }
.nv-chip--static { cursor: default; }
.nv-sw--prod { border-color: rgba(0,212,170,.5); }
.nv-sw--staging { border-color: rgba(230,184,96,.5); }
.nv-sw--tailnet { border-color: rgba(108,99,255,.5); }
.nv-sw--infra { border-color: rgba(255,255,255,.2); }

/* ── Config / formularios del navegador interno ── */
.nv-desc { font-size: .82rem; color: rgba(226,232,240,.6); line-height: 1.5; margin: .2rem 0 .6rem; }
.nv-empty { font-size: .9rem; color: var(--muted); padding: 1.2rem 0; }
.nv-mut { color: var(--muted); font-size: .78rem; }
.nv-hdr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1.2rem; }
.nv-hdr h1 { font-size: clamp(1.5rem,4vw,2rem); font-weight: 600; letter-spacing: -.02em; }
.nv-form { display: flex; flex-direction: column; gap: .5rem; }
.nv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: .35rem 0; }
.nv-key { font-family: var(--mono); font-size: .76rem; color: var(--muted); min-width: 150px; }
.nv-inp { flex: 1; min-width: 180px; background: #11141f; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; color: var(--text); font-size: .85rem; font-family: inherit; }
.nv-inp:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.nv-btn { font-family: inherit; font-size: .8rem; font-weight: 600; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; padding: .5rem .9rem; cursor: pointer; }
.nv-btn:hover { filter: brightness(1.08); }
.nv-btn--sm { padding: .35rem .65rem; font-size: .74rem; }
.nv-btn--gh { background: transparent; color: var(--accent-2); border-color: rgba(108,99,255,.4); }
.nv-logbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 12px; }
.nv-logbar .nv-inp { flex: 0 1 auto; }
.nv-logbar #log-q { flex: 1 1 200px; min-width: 160px; }
.nv-logsel { cursor: pointer; }
.nv-msg { font-size: .75rem; color: var(--muted); }
.nv-msg--ok { color: var(--teal); } .nv-msg--err { color: #ff8f8f; }
.nv-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.nv-table th { text-align: left; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; color: var(--dim); padding: .5rem .55rem; border-bottom: 1px solid var(--line); }
.nv-table td { padding: .6rem .55rem; border-bottom: 1px solid var(--line); color: rgba(226,232,240,.85); vertical-align: top; }
.nv-pill { display: inline-block; font-family: var(--mono); font-size: .62rem; padding: .12rem .45rem; border-radius: 5px; border: 1px solid rgba(108,99,255,.4); color: var(--accent-2); }
.nv-pill--on { color: var(--teal); border-color: rgba(0,212,170,.4); }
.nv-pill--off { color: var(--muted); border-color: rgba(255,255,255,.14); }
.nv-rmrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: .6rem; font-size: .85rem; color: var(--text); }
.nv-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.nv-lnk { font-size: .78rem; color: var(--accent-2); cursor: pointer; text-decoration: none; }
.nv-lnk:hover { text-decoration: underline; }
.nv-editrow td { background: rgba(255,255,255,.02); }
.nv-chkgrid { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .4rem 0 .6rem; }
.nv-chk { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: rgba(226,232,240,.85); }
.nv-chkgroup { margin: .5rem 0; }
.nv-prow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.nv-code { font-family: var(--mono); font-size: .82rem; background: #11141f; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .65rem; margin: .35rem 0; color: var(--accent-3); word-break: break-all; }
