/* ═══════════════════════════════════════════════════════════════════
   NCS LATAM · Marca compartida para las páginas internas
   (formulario de soporte, caso, cotización, portal de clientes, acceso,
   panel /admin, verificación de certificados y chat).
   Misma tipografía y colores que Inicio y Cursos (ver /DESIGN.md).
   Se carga al final del <head> de cada página.
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/fonts/newsreader-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url('/fonts/newsreader-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/fonts/montserrat-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }

/* Tokens de marca (mismos valores que el sitio) — prioridad sobre los de cada página */
html:root {
  --ncs-ink: #0c1e36; --ncs-blue: #1d4e89; --ncs-blue-mid: #2a6dbf; --ncs-sky: #8cc0ee; --ncs-mist: #d6e8f7;
  --ncs-bg: #f2f4f7; --ncs-serif: 'Newsreader', Georgia, serif; --ncs-sans: 'Instrument Sans', system-ui, sans-serif;
  /* variables usadas por el panel, portal y formularios */
  --hf: var(--ncs-serif);
  --brand: #1d4e89; --brand2: #2a6dbf; --accent: #2a6dbf; --tint: #e4eefa;
  --blue: #1d4e89; --blue2: #2a6dbf; --teal: #1d4e89; --teal2: #0c1e36;
  --ink: #0c1e36; --navy: #0c1e36;
  --ncs-grad: linear-gradient(135deg, #0c1e36, #132b4b 62%, #1d4e89);
}
@media (prefers-color-scheme: dark) {
  html:root { --brand: #5b9cf0; --brand2: #8cc0ee; --accent: #8cc0ee; --tint: #172743; --blue: #5b9cf0; --blue2: #8cc0ee; }
}

body { font-family: var(--ncs-sans); -webkit-font-smoothing: antialiased; }

/* Títulos con la serifa del sitio */
:is(h1, .lg-h, aside h1, h2.t, .done h2, .hero h1, .top h2, .topbar h2) { font-family: var(--ncs-serif) !important; font-weight: 400 !important; letter-spacing: -0.015em; }
:is(.panel h3, .card h2, .modal h3, .dr-hd h3, legend) { font-family: var(--ncs-serif); font-weight: 500; }
:is(.kpi b, .kpi .n) { font-family: var(--ncs-serif) !important; font-weight: 400 !important; }

/* Franja superior del panel: línea de acento en azules NCS (antes azul → verde agua) */
.top:before, .topbar:before { background: linear-gradient(90deg, #1d4e89, #2a6dbf 55%, #8cc0ee) !important; }

/* Menú lateral y bloques oscuros en azul tinta, sin puntos decorativos */
.app > aside, .sb, aside.sb { background: #0c1e36 !important; }
.sb:before, .lg-art:before { opacity: 0 !important; }
.lg-art { background: #0c1e36 !important; }
.lg-art:after { background: radial-gradient(circle at 35% 35%, rgba(42,109,191,0.45), rgba(12,30,54,0) 65%) !important; }
.nav button.on, .sb-nav a.on { background: rgba(140,192,238,0.14) !important; box-shadow: inset 3px 0 0 #8cc0ee !important; }

/* Botón principal: píldora azul NCS (igual que el sitio) */
.btn.pri, button.pri, a.pri, button.go, .lg-form button[type=submit], .lg button.primary {
  background: #1d4e89 !important; border-color: #1d4e89 !important; color: #fff !important;
  box-shadow: none !important; filter: none !important; border-radius: 999px !important;
}
@media (hover:hover){.btn.pri:hover:not(:disabled), button.pri:hover, a.pri:hover, button.go:hover{ background: #0c1e36 !important; border-color: #0c1e36 !important; transform: none !important; }}
.ed-tabs button.on, .chx-tabs button.on { background: #1d4e89 !important; box-shadow: none !important; }

/* Foco visible coherente */
:focus-visible { outline: 2px solid #2a6dbf; outline-offset: 2px; }

/* Acceso (portal y panel): botón Ingresar como el botón principal del sitio */
html .lg-card .btn.pri { background: #1d4e89 !important; border-radius: 999px !important; box-shadow: none !important; }
@media (hover:hover){html .lg-card .btn.pri:hover{ background: #0c1e36 !important; }}
/* Fondo general frío como el sitio */
html:root { --paper: #f2f4f7; --bg-soft: #f2f4f7; }
/* Formularios públicos (soporte y caso): botones como el sitio */
html .done a.btn, body main button:not(.seg button):not([type=button]) { border-radius: 999px !important; }
html .done a.btn { background: #1d4e89 !important; }
