/*
 * Identidad BioManga — fuente única de tokens visuales.
 * Lo cargan las tres superficies: landing pública, login y panel Orchid.
 * Cambiar un color acá lo cambia en todos lados; no hardcodear hex de marca
 * en vistas. Referencia: docs/UX_BIOMANGA.md y docs/brand/.
 */

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter/InterVariable.woff2") format("woff2");
}

:root {
    --app-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Marca (guía: verde principal, grafito secundario, blanco fondo) */
    --app-color-primary: #1b5e3a;
    --app-color-primary-rgb: 27, 94, 58;
    --app-color-primary-hover: #154a2e;
    --app-color-primary-soft: #edf5f0;
    --app-color-primary-border: #b7d4c3;
    --app-color-primary-on-dark: #7fc79d;
    --app-color-graphite: #2b2f33;
    --app-color-graphite-rgb: 43, 47, 51;
    --app-color-graphite-deep: #1f2226;

    /* Series de gráficos (validadas para daltonismo sobre la superficie blanca) */
    --app-chart-1: #1f8f55;
    --app-chart-2: #2f6fb0;

    /* Superficies y texto */
    --app-color-canvas: #f4f6f5;
    --app-color-surface: #ffffff;
    --app-color-surface-subtle: #f8faf9;
    --app-color-surface-muted: #eef2f0;
    --app-color-border: #dde3e0;
    --app-color-text: #2b2f33;
    --app-color-text-secondary: #555d63;
    --app-color-text-muted: #6b747a;

    /* Barra lateral / zonas oscuras */
    --app-color-sidebar: #2b2f33;
    --app-color-sidebar-hover: #3a4046;
    --app-color-sidebar-text: #dde3e0;

    --app-color-success: #1f7a51;
    --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);
}

/* Lockup de marca: isotipo + "Bio" verde + "Manga" grafito. Componente <x-brand.logo>. */
.bm-logo {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-family: var(--app-font-sans);
    font-size: 24px;
    line-height: 1;
    color: var(--app-color-graphite);
    text-decoration: none;
}
.bm-logo .bm-icon { height: 1.5em; width: auto; flex-shrink: 0; color: var(--app-color-primary); }
.bm-logo-text { display: inline-flex; flex-direction: column; gap: .35em; }
.bm-logo-word { font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.bm-logo-word b { font-weight: inherit; color: var(--app-color-primary); }
.bm-logo-tagline { font-size: .36em; font-weight: 500; letter-spacing: 0; color: var(--app-color-text-secondary); white-space: nowrap; }

/* Variante sobre fondo oscuro (barra lateral, hero del login). */
.bm-logo--inverse { color: #ffffff; }
.bm-logo--inverse .bm-icon { color: #ffffff; }
.bm-logo--inverse .bm-logo-word b { color: var(--app-color-primary-on-dark); }
.bm-logo--inverse .bm-logo-tagline { color: var(--app-color-sidebar-text); }
