/* ==========================================================================
   Tokens y base. Paleta derivada de la web corporativa de JR
   (azul #1b7ca3, celeste #5eb3e4, fondo marino) adaptada a una interfaz
   de trabajo clara. Todos los pares texto/fondo cumplen WCAG AA.
   ========================================================================== */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0b2234;
  --navy-2: #12324a;
  --navy-3: #1c4562;
  --brand: #1b7ca3;
  --brand-dark: #14607f;
  --brand-light: #5eb3e4;
  --brand-tint: #e4f2f9;

  --bg: #eef3f6;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --line: #d6e0e8;
  --line-strong: #b4c4d0;
  --ink: #0f202d;
  --ink-2: #324859;
  --muted: #54677a;

  --ok: #14633d;      --ok-bg: #e2f4ea;
  --warn: #744400;    --warn-bg: #fff0cc;
  --danger: #a01f18;  --danger-bg: #fde6e3;
  --info: #0e5778;    --info-bg: #e0f0f8;
  --off: #41536a;     --off-bg: #e7ecf1;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(11, 34, 52, .06), 0 2px 8px rgba(11, 34, 52, .05);
  --shadow-lg: 0 18px 50px rgba(11, 34, 52, .28);
  --sidebar-w: 256px;
  --topbar-h: 60px;
  --bottomnav-h: 64px;
  --font: "Manrope", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 1.65rem; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: .98rem; line-height: 1.35; font-weight: 700; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 4px; }
.sidebar :focus-visible { outline-color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; text-decoration: none; }

@media (max-width: 760px) { body { font-size: 16px; } h1 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
