/* ============================================================
   MergeneX · Precision Dark · tokens web
   Generado a mano desde design-system/tokens.json (fuente unica).
   No agregar colores literales fuera de este archivo: la suite lo
   verifica (tests/test_webui_design_tokens.py).
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* FONDOS */
  --bg-base: #09090b;
  --bg-sunken: #060607;
  --bg-elevated: #0e0e10;

  /* SUPERFICIES */
  --surface-1: #0e0e10;
  --surface-2: #121215;
  --surface-3: #17171a;
  --surface-4: #1c1c1f;

  /* BORDES */
  --border-subtle: #1f1f23;
  --border: #27272a;
  --border-strong: #3f3f46;

  /* TEXTO */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #8a8a93;
  --text-quaternary: #82828b;
  --text-disabled: #5a5a63;

  /* ACENTO UNICO */
  --accent: #4d7cfe;
  --accent-hover: #6b93ff;
  --accent-pressed: #3d66d9;
  --accent-text: #8fb0ff;
  --accent-soft: rgba(77, 124, 254, 0.12);
  --accent-border: rgba(77, 124, 254, 0.38);

  /* BOTON PRIMARIO (claro sobre oscuro) */
  --primary-bg: #fafafa;
  --primary-bg-hover: #e6e6e7;
  --primary-bg-active: #d4d4d6;

  /* ESTADOS */
  --success: #3fb96b;
  --warning: #d9a441;
  --danger: #d8615e;
  --success-soft: rgba(63, 185, 107, 0.10);
  --success-border: rgba(63, 185, 107, 0.32);
  --warning-soft: rgba(217, 164, 65, 0.10);
  --warning-border: rgba(217, 164, 65, 0.32);
  --danger-soft: rgba(216, 97, 94, 0.10);
  --danger-border: rgba(216, 97, 94, 0.32);

  /* SERIES DE DATOS */
  --data-1: #7da2ff;
  --data-2: #a9c0e8;
  --data-3: #c7d2e0;
  --data-4: #8e8e99;
  --data-5: #5e5e68;
  --data-6: #3f3f46;

  /* FILAS / OVERLAY */
  --row-hover: rgba(255, 255, 255, 0.04);
  --row-active: rgba(255, 255, 255, 0.07);
  --scrim: rgba(0, 0, 0, 0.55);

  /* TIPOGRAFIA */
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", "Consolas", monospace;
  --fs-micro: 9px;
  --fs-label: 10px;
  --fs-caption: 11px;
  --fs-body: 12px;
  --fs-body-lg: 13px;
  --fs-subtitle: 15px;
  --fs-title: 20px;
  --fs-display: 28px;
  --tracking-caps: 0.08em;
  --tracking-tight: -0.02em;

  /* ESPACIADO */
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 6px;
  --sp-4: 8px;
  --sp-5: 10px;
  --sp-6: 12px;
  --sp-7: 16px;
  --sp-8: 20px;
  --sp-9: 24px;
  --sp-10: 32px;

  /* RADIOS */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* MEDIDAS */
  --sidebar-expanded: 240px;
  --sidebar-collapsed: 64px;
  --topbar-h: 56px;
  --statusbar-h: 24px;
  --control-sm: 28px;
  --control-md: 32px;
  --control-lg: 36px;
  --row-h: 40px;
  --icon-sm: 14px;
  --icon-md: 16px;
  --icon-lg: 20px;

  /* MOVIMIENTO */
  --motion-fast: 120ms;
  --motion-base: 160ms;
  --motion-slow: 200ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
