/*
 * Identidad Movigranel — fuente única de tokens visuales.
 * Lo cargan el login, el panel Orchid y (copiados) los PDF.
 * Cambiar un color acá lo cambia en todos lados; no hardcodear hex de marca
 * en vistas. Referencia: docs/UX.md.
 *
 * Colores tomados del logo oficial (movigranel.com.ar):
 *   rojo #EC1C24 · amarillo #FFF100 · negro #231F20
 * El amarillo no tiene contraste sobre blanco: solo como acento sobre fondos
 * oscuros o como relleno con texto oscuro encima.
 */

:root {
    --app-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Marca */
    --app-color-primary: #d0161e;            /* rojo de marca, un punto más oscuro para texto/botones (AA sobre blanco) */
    --app-color-primary-rgb: 208, 22, 30;
    --app-color-primary-hover: #a81118;
    --app-color-primary-soft: #fdecec;
    --app-color-primary-border: #f5b8bb;
    --app-color-primary-on-dark: #ff6b70;
    --app-color-brand-red: #ec1c24;          /* rojo exacto del logo */
    --app-color-accent: #fff100;             /* amarillo del logo */
    --app-color-accent-rgb: 255, 241, 0;
    --app-color-accent-soft: #fffbcc;
    --app-color-graphite: #231f20;
    --app-color-graphite-rgb: 35, 31, 32;
    --app-color-graphite-deep: #161314;

    /* Superficies y texto */
    --app-color-canvas: #f5f4f2;
    --app-color-surface: #ffffff;
    --app-color-surface-subtle: #f9f8f7;
    --app-color-surface-muted: #efedeb;
    --app-color-border: #e0ddda;
    --app-color-text: #231f20;
    --app-color-text-secondary: #57514f;
    --app-color-text-muted: #6f6866;

    /* Barra lateral / zonas oscuras */
    --app-color-sidebar: #231f20;
    --app-color-sidebar-hover: #3a3435;
    --app-color-sidebar-text: #e6e2df;

    /* Estados de un presupuesto (siempre acompañados del texto del estado) */
    --app-status-open: #2563eb;
    --app-status-won: #15803d;
    --app-status-lost: #b91c1c;
    --app-status-void: #a16207;
    --app-status-revision: #6b7280;

    --app-color-success: #15803d;
    --app-color-warning: #a16207;
    --app-focus-ring: 0 0 0 4px rgba(var(--app-color-primary-rgb), .18);
    --app-shadow-sm: 0 4px 14px rgba(var(--app-color-graphite-rgb), .06);
    --app-shadow-lg: 0 24px 64px rgba(var(--app-color-graphite-rgb), .14);
}

/* Logo: imagen oficial. Componente <x-brand.logo>. */
.app-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35em;
    font-family: var(--app-font-sans);
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}
.app-logo img { height: 2.2em; width: auto; display: block; }
.app-logo-tagline { font-size: .5em; font-weight: 600; letter-spacing: .02em; color: var(--app-color-text-secondary); white-space: nowrap; }
.app-logo--inverse .app-logo-tagline { color: var(--app-color-sidebar-text); }
