/* =====================================================================================================================
   NEXUSDEPOT · identidad visual
   Paleta: azul marino (#0B2545) para estructura, verde azulado (#0D9488 / #14B8A6) como color de marca, ámbar (#F59E0B)
   y cielo (#38BDF8) como acentos de contenedores. Prefijo de clases: nx-
   ===================================================================================================================== */

:root {
  --nx-navy-950: #050D1A;
  --nx-navy-900: #0B1A31;
  --nx-navy-800: #0B2545;
  --nx-navy-700: #13335C;
  --nx-navy-600: #1D4475;
  --nx-teal-600: #0D9488;
  --nx-teal-500: #14B8A6;
  --nx-teal-300: #5EEAD4;
  --nx-amber: #F59E0B;
  --nx-sky: #38BDF8;
  --nx-red: #EF4444;
  --nx-ink: #0F172A;
  --nx-muted: #64748B;
  --nx-line: #E2E8F0;
  --nx-radius: 14px;
  --nx-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------- Piezas comunes ---------------------------------------------- */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .72rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 .92rem/1.2 var(--nx-font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.nx-btn:active { transform: translateY(1px); }
.nx-btn-primary { background: var(--nx-teal-600); color: #fff; box-shadow: 0 8px 22px -10px rgba(13,148,136,.8); }
.nx-btn-primary:hover { background: #0F766E; color: #fff; }
.nx-btn-ghost { background: rgba(255,255,255,.06); color: #E2E8F0; border-color: rgba(255,255,255,.16); }
.nx-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.nx-btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.nx-btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.nx-btn-block { width: 100%; }
.nx-btn:disabled { opacity: .65; cursor: not-allowed; }

.nx-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: nx-giro .7s linear infinite; }
.is-loading .nx-spinner { display: inline-block; }
@keyframes nx-giro { to { transform: rotate(360deg); } }

.nx-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font: 700 .7rem/1 var(--nx-font); letter-spacing: .14em; text-transform: uppercase; color: var(--nx-teal-500); }
.nx-code {
  display: inline-block; padding: .18rem .5rem; border-radius: 6px; font: 700 .72rem/1.3 'JetBrains Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase; background: rgba(13,148,136,.12); color: var(--nx-teal-600); border: 1px solid rgba(13,148,136,.25);
}
.nx-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--nx-teal-500), var(--nx-navy-600)); color: #fff; font: 700 .9rem var(--nx-font); flex: 0 0 auto;
}
.nx-pill { font: 600 .68rem/1 var(--nx-font); padding: .3rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.nx-pill-current { background: rgba(13,148,136,.14); color: var(--nx-teal-600); }
.nx-pill-off { background: rgba(239,68,68,.12); color: #B91C1C; }

/* ------------------------------------------- Fondo de pantallas públicas ------------------------------------------- */
/* Las pantallas públicas no cargan Bootstrap: mismo modelo de caja (el padding no se suma al ancho) */
.nx-auth-body *, .nx-auth-body *::before, .nx-auth-body *::after,
.nx-ctx-body *, .nx-ctx-body *::before, .nx-ctx-body *::after,
.nx-error-body *, .nx-error-body *::before, .nx-error-body *::after { box-sizing: border-box; }
.nx-auth-body, .nx-ctx-body {
  margin: 0; min-height: 100vh; font-family: var(--nx-font); color: #E2E8F0;
  background: radial-gradient(1200px 600px at 85% -10%, #123B6B 0%, transparent 60%), linear-gradient(160deg, var(--nx-navy-900), var(--nx-navy-950) 70%);
  -webkit-font-smoothing: antialiased;
}
.nx-ctx-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.nx-ctx-grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.nx-ctx-glow { position: absolute; width: 620px; height: 620px; left: -180px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,.22), transparent 65%); }

/* -------------------------------------------------- Autenticación -------------------------------------------------- */
.nx-auth { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.nx-auth > * { min-width: 0; }
.nx-auth-hero { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.nx-auth-logo { width: 240px; max-width: 70%; }
.nx-auth-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.12; font-weight: 800; color: #fff; margin: 12px 0 0; max-width: 560px; letter-spacing: -.01em; }
.nx-auth-hero h1 span { color: var(--nx-teal-300); }
.nx-auth-hero > p { color: #94A3B8; font-size: 1rem; line-height: 1.65; max-width: 520px; margin: 0; }
.nx-auth-features { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; max-width: 520px; }
.nx-auth-features li { display: flex; gap: 14px; align-items: flex-start; color: #CBD5E1; font-size: .92rem; line-height: 1.45; }
.nx-auth-features i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(20,184,166,.12); color: var(--nx-teal-300); border: 1px solid rgba(20,184,166,.25); }
.nx-auth-features strong { display: block; color: #fff; font-weight: 600; }
.nx-auth-containers { display: grid; grid-template-columns: repeat(3, 74px); grid-auto-rows: 30px; gap: 6px; margin-top: 18px; opacity: .9; }
.nx-auth-containers .c { border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 7px, rgba(0,0,0,.14) 7px 9px); }
.nx-auth-containers .c1 { background-color: var(--nx-teal-500); grid-column: 1 / 3; }
.nx-auth-containers .c2 { background-color: var(--nx-amber); }
.nx-auth-containers .c3 { background-color: var(--nx-sky); }
.nx-auth-containers .c4 { background-color: #1E3A5F; grid-column: 2 / 4; }
.nx-auth-containers .c5 { background-color: var(--nx-teal-600); grid-column: 1 / 4; }
.nx-auth-containers .c6 { display: none; }

.nx-auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.nx-auth-card {
  width: 100%; max-width: 420px; padding: 38px 34px; border-radius: 20px; color: var(--nx-ink);
  background: #fff; box-shadow: 0 30px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
}
.nx-auth-card h2 { font-size: 1.55rem; font-weight: 800; margin: 10px 0 6px; color: var(--nx-navy-800); letter-spacing: -.01em; }
.nx-auth-sub { color: var(--nx-muted); font-size: .9rem; line-height: 1.55; margin: 0 0 24px; }
.nx-field { margin-bottom: 16px; }
.nx-field label { display: block; font-size: .8rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.nx-field small { display: block; margin-top: 6px; font-size: .78rem; }
.nx-field small.nx-ok { color: #047857; } .nx-field small.nx-bad { color: #B91C1C; }
.nx-input { position: relative; display: flex; align-items: center; border: 1.5px solid var(--nx-line); border-radius: 10px; background: #F8FAFC; transition: border-color .2s, box-shadow .2s, background .2s; }
.nx-input:focus-within { border-color: var(--nx-teal-600); background: #fff; box-shadow: 0 0 0 4px rgba(13,148,136,.14); }
.nx-input.is-invalid { border-color: var(--nx-red); box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.nx-input > i { width: 42px; text-align: center; color: #94A3B8; font-size: .95rem; }
.nx-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .8rem .8rem .8rem 0; font: 500 .95rem var(--nx-font); color: var(--nx-ink); }
.nx-eye { border: 0; background: transparent; color: #94A3B8; width: 42px; height: 42px; cursor: pointer; }
.nx-eye:hover { color: var(--nx-teal-600); }
.nx-auth-error { margin: -4px 0 14px; padding: .65rem .8rem; border-radius: 10px; background: #FEF2F2; color: #B91C1C; font-size: .85rem; border: 1px solid #FECACA; }
.nx-auth-links { text-align: center; margin-top: 16px; font-size: .86rem; }
.nx-auth-links a { color: var(--nx-teal-600); text-decoration: none; font-weight: 600; }
.nx-auth-links a:hover { text-decoration: underline; }
.nx-auth-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--nx-line); color: var(--nx-muted); font-size: .78rem; text-align: center; }
.nx-auth-note i { color: var(--nx-teal-600); margin-right: 4px; }
.nx-auth-card .nx-eyebrow { color: var(--nx-teal-600); }
.nx-auth-foot { margin-top: 18px; color: #64748B; font-size: .78rem; }
.nx-auth-card .nx-btn.is-loading .nx-btn-text { opacity: .7; }

/* --------------------------------------------- Selector de depósito --------------------------------------------- */
.nx-ctx-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 40px; border-bottom: 1px solid rgba(148,163,184,.12); background: rgba(5,13,26,.35); backdrop-filter: blur(8px); }
.nx-ctx-logo { height: 40px; }
.nx-ctx-user { display: flex; align-items: center; gap: 12px; }
.nx-ctx-user-text { display: flex; flex-direction: column; line-height: 1.2; }
.nx-ctx-user-text strong { color: #fff; font-size: .9rem; }
.nx-ctx-user-text small { color: #94A3B8; font-size: .76rem; text-transform: capitalize; }
.nx-ctx-logout { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: .5rem .8rem; border-radius: 9px; color: #CBD5E1; text-decoration: none; border: 1px solid rgba(148,163,184,.2); font-size: .82rem; font-weight: 600; }
.nx-ctx-logout:hover { color: #fff; background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4); }

.nx-ctx-main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 48px 32px 32px; }
.nx-ctx-hero { max-width: 760px; margin-bottom: 30px; }
.nx-ctx-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: .38rem .75rem; border-radius: 999px; background: rgba(20,184,166,.12); color: var(--nx-teal-300); border: 1px solid rgba(20,184,166,.3); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nx-ctx-hero h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 16px 0 10px; letter-spacing: -.015em; }
.nx-ctx-hero p { color: #94A3B8; font-size: 1rem; line-height: 1.6; margin: 0; }
.nx-ctx-alert { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; padding: .85rem 1rem; border-radius: 12px; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: #FCD34D; font-size: .9rem; }

.nx-ctx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.nx-ctx-count { color: #94A3B8; font-size: .88rem; }
.nx-ctx-count strong { color: #fff; }
.nx-ctx-search { display: flex; align-items: center; gap: 10px; min-width: 300px; padding: 0 .9rem; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(148,163,184,.2); color: #94A3B8; }
.nx-ctx-search input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; padding: .7rem 0; font: 500 .9rem var(--nx-font); }
.nx-ctx-search:focus-within { border-color: var(--nx-teal-500); }

.nx-ctx-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.nx-depot-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; text-align: left; width: 100%;
  padding: 22px 22px 18px; border-radius: 16px; cursor: pointer; font-family: var(--nx-font);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); color: #E2E8F0;
  border: 1px solid rgba(148,163,184,.18); box-shadow: 0 18px 40px -28px rgba(0,0,0,.8);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.nx-depot-card:hover, .nx-depot-card:focus-visible { transform: translateY(-3px); border-color: rgba(20,184,166,.65); box-shadow: 0 24px 50px -24px rgba(20,184,166,.45); outline: none; background: linear-gradient(180deg, rgba(20,184,166,.12), rgba(255,255,255,.03)); }
.nx-depot-card-stripes { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--nx-teal-500) 0 40%, var(--nx-amber) 40% 70%, var(--nx-sky) 70%); opacity: .9; }
.nx-depot-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nx-depot-card .nx-code { background: rgba(94,234,212,.1); color: var(--nx-teal-300); border-color: rgba(94,234,212,.28); }
.nx-status { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; }
.nx-status .dot { width: 8px; height: 8px; border-radius: 50%; }
.nx-status.is-on { color: #6EE7B7; } .nx-status.is-on .dot { background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.nx-status.is-off { color: #FCA5A5; } .nx-status.is-off .dot { background: #F87171; }
.nx-depot-card-name { font-size: 1.22rem; font-weight: 700; color: #fff; line-height: 1.25; }
.nx-depot-card-loc { display: flex; gap: 10px; color: #94A3B8; font-size: .86rem; line-height: 1.45; min-height: 42px; }
.nx-depot-card-loc i { margin-top: 3px; color: var(--nx-teal-300); }
.nx-depot-card-loc small { display: block; color: #64748B; }
.nx-depot-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(148,163,184,.2); }
.nx-depot-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.nx-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; padding: .25rem .5rem; border-radius: 6px; background: rgba(245,158,11,.14); color: #FCD34D; }
.nx-tag-current { background: rgba(20,184,166,.16); color: var(--nx-teal-300); }
.nx-depot-card-cta { font-size: .86rem; font-weight: 700; color: var(--nx-teal-300); white-space: nowrap; }
.nx-depot-card-cta i { transition: transform .2s; }
.nx-depot-card:hover .nx-depot-card-cta i { transform: translateX(4px); }
.nx-depot-card.is-current { border-color: rgba(20,184,166,.5); }
.nx-depot-card.is-disabled { cursor: not-allowed; opacity: .55; filter: grayscale(.6); }
.nx-depot-card.is-disabled:hover { transform: none; box-shadow: none; border-color: rgba(148,163,184,.18); background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); }
.nx-depot-card.is-disabled .nx-depot-card-cta { color: #94A3B8; }
.nx-depot-card.is-loading { pointer-events: none; }
.nx-depot-card.is-loading .nx-depot-card-cta::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border-radius: 50%; border: 2px solid rgba(94,234,212,.3); border-top-color: var(--nx-teal-300); animation: nx-giro .7s linear infinite; vertical-align: -1px; }
.is-busy .nx-depot-card:not(.is-loading) { opacity: .5; pointer-events: none; }
.nx-ctx-noresults { color: #94A3B8; text-align: center; padding: 28px; }

.nx-ctx-empty { max-width: 560px; margin: 20px auto; text-align: center; padding: 44px 32px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px dashed rgba(148,163,184,.3); }
.nx-ctx-empty-icon { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; background: rgba(245,158,11,.12); color: var(--nx-amber); font-size: 1.8rem; }
.nx-ctx-empty h2 { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0 0 10px; }
.nx-ctx-empty p { color: #94A3B8; line-height: 1.6; margin: 0 0 22px; }
.nx-ctx-footer { position: relative; z-index: 1; text-align: center; color: #475569; font-size: .78rem; padding: 24px; }

/* ---------------------------------------------- Estructura de la app ---------------------------------------------- */
.nx-sidebar .nx-brand { display: flex !important; align-items: center; justify-content: center; height: 64px !important; padding: 10px 16px !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.nx-brand-full { height: 34px; max-width: 100%; }
.nx-brand-mini { display: none; height: 34px; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .nx-brand-full { display: none; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .nx-brand-mini { display: block; }
.nx-sidebar-context { margin: 14px 10px 4px; padding: 12px 12px; border-radius: 12px; background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.22); display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.nx-sidebar-context-label { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-teal-300); }
.nx-sidebar-context-name { color: #fff; font-weight: 600; font-size: .9rem; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-sidebar-context .nx-code { align-self: flex-start; background: rgba(94,234,212,.1); color: var(--nx-teal-300); border-color: rgba(94,234,212,.25); }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .nx-sidebar-context { display: none; }
.nx-sidebar .nav-sidebar .nav-link.active { background: var(--nx-teal-600) !important; color: #fff !important; box-shadow: none !important; }

.nx-topbar { min-height: 64px; border-bottom: 1px solid var(--border, #E2E8F0) !important; }
.nx-page-title { font-weight: 700; color: var(--text, #0F172A); font-size: 1rem; }
.nx-depot-switch, .nx-user { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 6px 10px; border-radius: 12px; cursor: pointer; color: var(--text, #0F172A); font-family: var(--nx-font); }
.nx-depot-switch { border: 1px solid rgba(13,148,136,.3); background: rgba(13,148,136,.08); margin-right: 10px; }
.nx-depot-switch:hover, .nx-user:hover { background: rgba(13,148,136,.12); }
.nx-depot-switch > i:first-child { color: var(--nx-teal-600); font-size: 1.05rem; }
.nx-depot-switch-text, .nx-user-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.nx-depot-switch-text small, .nx-user-text small { font-size: .66rem; color: var(--text2, #64748B); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.nx-user-text small { text-transform: capitalize; letter-spacing: 0; }
.nx-depot-switch-text strong { font-size: .86rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.nx-user-text strong { font-size: .86rem; }
.nx-depot-switch-caret { font-size: .7rem; color: var(--text2, #64748B); }
.nx-depot-menu { min-width: 300px; padding: 6px; border-radius: 12px; }
.nx-depot-menu-head { padding: 8px 12px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text2, #64748B); }
.nx-depot-item { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; border-radius: 8px; padding: 8px 12px !important; }
.nx-depot-item-main { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nx-depot-item-main strong { font-size: .88rem; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-depot-item-main small { font-size: .74rem; color: var(--text2, #64748B); text-transform: capitalize; }
.nx-depot-item.is-current { background: rgba(13,148,136,.08); }
.nx-depot-item:disabled { opacity: 1; }
.nx-depot-item.is-loading { opacity: .6; pointer-events: none; }
.nx-depot-all { font-size: .85rem; font-weight: 600; color: var(--nx-teal-600) !important; border-radius: 8px; }
.nx-footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8rem; }

/* ---------------------------------------------------- Inicio ---------------------------------------------------- */
.nx-home { padding: 24px 8px 32px; }
.nx-home-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 30px 32px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 240px at 100% 0%, rgba(20,184,166,.35), transparent 60%), linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-900));
  box-shadow: 0 20px 50px -30px rgba(11,37,69,.9);
}
.nx-home-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--nx-teal-500) 0 40%, var(--nx-amber) 40% 70%, var(--nx-sky) 70%); }
.nx-home-hero h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; margin: 10px 0 8px; text-transform: capitalize; color: #fff !important; }
.nx-home-hero p { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #CBD5E1; }
.nx-home-hero .nx-code { background: rgba(94,234,212,.12); color: var(--nx-teal-300); border-color: rgba(94,234,212,.3); }
.nx-home-hero .nx-eyebrow { color: var(--nx-teal-300); }
.nx-home-hero-text { position: relative; z-index: 1; }
.nx-home-hero .nx-btn { position: relative; z-index: 1; }

.nx-home-context { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.nx-kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px; border-radius: 14px; background: var(--bg-card, #fff); border: 1px solid var(--border, #E2E8F0); box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,.05)); min-width: 0; }
.nx-kpi-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-bg, #E6F7F5); color: var(--accent, #0D9488); margin-bottom: 8px; }
.nx-kpi-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text2, #64748B); }
.nx-kpi-value { font-size: 1.15rem; font-weight: 700; color: var(--text, #0F172A); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-kpi-sub { font-size: .8rem; color: var(--text2, #64748B); }

.nx-panel { padding: 22px 24px; border-radius: 16px; background: var(--bg-card, #fff); border: 1px solid var(--border, #E2E8F0); box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,.05)); }
.nx-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.nx-panel-head h2 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--text, #0F172A); }
.nx-access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.nx-access { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 12px; border: 1px solid var(--border, #E2E8F0); text-decoration: none; color: var(--text, #0F172A); background: var(--bg-card2, #F8FAFC); transition: border-color .2s, transform .2s, background .2s; }
.nx-access:hover { border-color: var(--accent, #0D9488); transform: translateY(-2px); color: var(--text, #0F172A); }
.nx-access-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-bg, #E6F7F5); color: var(--accent, #0D9488); }
.nx-access strong { display: block; font-size: .92rem; }
.nx-access small { color: var(--text2, #64748B); font-size: .76rem; }
.nx-access-go { margin-left: auto; color: var(--text3, #94A3B8); font-size: .8rem; }
.nx-empty-inline { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--accent-bg, #E6F7F5); color: var(--text, #0F172A); font-size: .9rem; }
.nx-empty-inline i { color: var(--accent, #0D9488); margin-top: 3px; }

/* ----------------------------------------------- Contraseña (modal) ----------------------------------------------- */
.nx-strength { height: 5px; border-radius: 4px; background: #E2E8F0; margin-top: 8px; overflow: hidden; }
.nx-strength-bar { height: 100%; width: 0; transition: width .25s, background .25s; }
.nx-strength-bar.is-weak { background: var(--nx-red); }
.nx-strength-bar.is-medium { background: var(--nx-amber); }
.nx-strength-bar.is-strong { background: var(--nx-teal-600); }
.toggle-password { cursor: pointer; }

/* ---------------------------------------------------- Errores ---------------------------------------------------- */
.nx-error-body { margin: 0; min-height: 100vh; display: grid; place-items: center; font-family: var(--nx-font); background: #F3F6FA; color: var(--nx-ink); padding: 24px; }
.nx-error { text-align: center; max-width: 460px; }
.nx-error-logo { height: 44px; margin-bottom: 28px; }
.nx-error-code { font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--nx-navy-800); letter-spacing: -.03em; background: linear-gradient(90deg, var(--nx-navy-800), var(--nx-teal-600)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nx-error h1 { font-size: 1.4rem; margin: 12px 0 8px; }
.nx-error p { color: var(--nx-muted); line-height: 1.6; margin: 0 0 24px; }

/* -------------------------------------------------- Responsive -------------------------------------------------- */
@media (max-width: 1100px) {
  .nx-home-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nx-auth { grid-template-columns: minmax(0, 1fr); }
  .nx-auth-hero { padding: 36px 24px 8px; gap: 14px; }
  .nx-auth-features, .nx-auth-containers, .nx-auth-hero > p { display: none; }
  .nx-auth-hero h1 { font-size: 1.5rem; }
  .nx-auth-panel { justify-content: flex-start; padding-top: 18px; }
}
@media (max-width: 640px) {
  .nx-ctx-top { padding: 14px 16px; }
  .nx-ctx-logo { height: 32px; }
  .nx-ctx-user-text, .nx-ctx-logout span { display: none; }
  .nx-ctx-main { padding: 28px 16px; }
  .nx-ctx-search { min-width: 0; width: 100%; }
  .nx-auth-card { padding: 28px 22px; }
  .nx-home-context { grid-template-columns: 1fr; }
  .nx-home-hero { padding: 24px 20px; }
  .nx-depot-switch-text small { display: none; }
  .nx-depot-switch-text strong { max-width: 110px; }
  .nx-depot-switch { margin-right: 4px; padding: 6px 8px; }
}
