/* ============================================================
   URUS - Tokens de diseno compartidos (login, instalador, errores y tablero).
   Claro por defecto; [data-theme="dark"] en <html> activa el modo oscuro.
   ============================================================ */

:root {
    color-scheme: light;
    --urus-bg: #ffffff;
    --urus-bg-elevated: #ffffff;
    --urus-bg-page: #f7f8fa;
    --urus-border: #e5e7eb;
    --urus-text: #1f2937;
    --urus-text-muted: #6b7280;
    --urus-accent: #1f6f4d;
    --urus-accent-soft: rgba(31, 111, 77, 0.12);
    --urus-accent-contrast: #ffffff;
    --urus-hover-bg: #f3f4f6;
    --urus-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --urus-danger: #dc2626;
    --urus-danger-soft: rgba(220, 38, 38, 0.1);
    --urus-radius: 12px;

    /* Propios del login (identidad de obra vial) */
    --urus-road-yellow: #f5b301;
    --urus-hazard-dark: #1f2937;
    --urus-sign-green: #1f6f4d;
    --urus-hero-accent: #57b98c;
    --urus-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --urus-bg: #14161a;
    --urus-bg-elevated: #1b1e24;
    --urus-bg-page: #101215;
    --urus-border: #2a2e37;
    --urus-text: #e7e9ec;
    --urus-text-muted: #98a1ad;
    --urus-accent: #57b98c;
    --urus-accent-soft: rgba(87, 185, 140, 0.16);
    --urus-accent-contrast: #0c1210;
    --urus-hover-bg: #23262e;
    --urus-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
    --urus-danger: #f87171;
    --urus-danger-soft: rgba(248, 113, 113, 0.14);
    --urus-hazard-dark: #0c0d10;
}

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

[hidden] {
    display: none !important;
}

/* ============================================================
   Tokens del tablero (se suman a los del login)
   ============================================================ */
:root {
    --u-ok: #1f6f4d;
    --u-ok-soft: rgba(31, 111, 77, 0.12);
    --u-warn: #b45309;
    --u-warn-soft: rgba(245, 179, 1, 0.18);
    --u-info: #2563a8;
    --u-info-soft: rgba(37, 99, 168, 0.12);
    --u-crit: #dc2626;
    --u-crit-soft: rgba(220, 38, 38, 0.1);
    --u-muted-soft: rgba(107, 114, 128, 0.12);
    --u-royal: #2946e0;
    --u-royal-soft: rgba(41, 70, 224, 0.12);
    --u-amber: #f2994a;
    --u-amber-soft: rgba(242, 153, 74, 0.16);

    /* Series de graficas */
    --c1: #1f6f4d;
    --c2: #f5b301;
    --c3: #2f6fb3;
    --c4: #64748b;
    --c5: #dc2626;
    --c6: #7c5cbf;
    --c7: #0f9d8a;
    --c8: #e07b39;

    --u-sidebar-w: 232px;
    --u-header-h: 64px;
    --u-radius-lg: 16px;
    --u-focus: 0 0 0 3px var(--urus-accent-soft);
    --u-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
    --u-ok: #57b98c;
    --u-ok-soft: rgba(87, 185, 140, 0.16);
    --u-warn: #fbbf24;
    --u-warn-soft: rgba(251, 191, 36, 0.16);
    --u-info: #6aa6e8;
    --u-info-soft: rgba(106, 166, 232, 0.16);
    --u-crit: #f87171;
    --u-crit-soft: rgba(248, 113, 113, 0.14);
    --u-muted-soft: rgba(152, 161, 173, 0.16);
    --u-royal: #6d84f5;
    --u-royal-soft: rgba(109, 132, 245, 0.18);
    --u-amber: #f5a623;
    --u-amber-soft: rgba(245, 166, 35, 0.2);

    --c1: #57b98c;
    --c2: #f5b301;
    --c3: #6aa6e8;
    --c4: #94a3b8;
    --c5: #f87171;
    --c6: #a78bfa;
    --c7: #2dd4bf;
    --c8: #fb923c;
}
