/* Diseño "Clásico deNuchi": menú azul de la marca (#173895), detalles en rojo (#F80000) y fondo claro.
   Se aplica siempre, aunque la computadora esté en modo oscuro. */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
  --bg: #f3f5fa; --surface: #ffffff; --surface-2: #f5f7fc; --border: #e1e5ef; --text: #141a33; --muted: #646b80;
  --primary: #173895; --primary-ink: #ffffff; --primary-soft: #e8edf9; --accent: #f80000;
  --success: #15803d; --success-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7;
  --danger: #c62828; --danger-soft: #fde8e8; --autofill: #fff7d6;
  --sidebar: #173895; --sidebar-ink: #dfe6fa; --sidebar-muted: #a9b7e3; --sidebar-strong: #ffffff;
  --sidebar-hover: rgba(255, 255, 255, .08); --sidebar-active: rgba(255, 255, 255, .16); --sidebar-border: rgba(255, 255, 255, .14);
  --topbar: #ffffff; --brand-ink: #ffffff; --brand-tile: #ffffff;
  --auth-bg: linear-gradient(160deg, #0f2a78 0%, #173895 60%, #2348b8 100%);
  --dark-stage: #111113; --dark-stage-hover: #1f1f22;
  --shadow: 0 1px 2px rgba(16, 24, 64, .05), 0 1px 3px rgba(16, 24, 64, .08);
  color-scheme: light;
}

/* ---------- Marca (logo) ---------- */
.brand-home { display: block; color: inherit; text-decoration: none; }
.brand-logo { display: flex; align-items: center; gap: 10px; color: var(--brand-ink, inherit); }
.brand-logo .brand-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tile, #fff); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-logo .brand-icon img { width: 40px; height: 40px; object-fit: contain; }
.brand-logo .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-logo .brand-name { font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-logo .brand-sub { font-family: "Montserrat", system-ui, sans-serif; font-weight: 600; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.sidebar .brand-logo { padding: 2px 6px 20px; color: var(--brand-ink, #fff); }
.tbar .brand-logo { color: var(--primary); }
.tbar .brand-logo .brand-icon { background: transparent; }
.auth-logo { background: #fff; border-radius: 16px; padding: 14px; width: 132px; height: 132px; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.auth-logo img { width: 104px; height: 104px; object-fit: contain; }
.sidebar { background: var(--sidebar); }
h1, .page-head h1 { font-family: "Montserrat", system-ui, sans-serif; letter-spacing: -.01em; }
