/* Poppins auto-hospedada (subset latin). Antes se cargaba de Google Fonts pero la CSP
   ('self') lo bloqueaba → la app caía a fuente de sistema. Servida desde 'self' no
   necesita abrir la CSP ni depende de Google. Licencia SIL OFL. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
}

:root {
  --color-bg: #f6f6f7;
  --color-surface: #ffffff;
  --color-border: #e8e8ea;
  --color-text: #0f0f10;
  --color-muted: #5a5a63;
  --color-muted-2: #8d8d95;
  --color-primary: #c60000;
  --color-primary-700: #a50000;
  --color-success: #16a34a;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(15, 15, 16, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 15, 16, 0.06);

  --sidebar-w: 220px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

::selection {
  background: rgba(198, 0, 0, 0.18);
}

:focus-visible {
  outline: 3px solid rgba(198, 0, 0, 0.25);
  outline-offset: 2px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
