/* ═══════════════════════════════════════════════════════════
   FOLIUM — BASE
   Reset + body + tipografía + scrollbar.
   Carga después de tokens.css.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-md);
  line-height: 1.5;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.15s, color 0.15s;
}

/* ── Numérica tabular (ROL, fechas, folios, montos) ───── */
.tabular {
  font-variant-numeric: tabular-nums;
}

/* ── Tipografía ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }

a {
  color: var(--accent-light);
  text-decoration: none;
}
a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── Labels y captions ────────────────────────────────── */
.label, .caption, .overline {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── SVG defaults ─────────────────────────────────────── */
svg {
  display: block;
}

/* ── Form elements heredan font ──────────────────────── */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* ── Scrollbar (webkit) ──────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-md);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* ── Utility: visually hidden (accesibilidad) ────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Body modifiers ──────────────────────────────────── */
/* body.no-shell: usado en login/registro/recuperar/landing */
body.no-shell {
  display: block;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}
