/**
 * ═══════════════════════════════════════════
 * SGF — Design System "Clinical Precision"
 * Basado en Stitch Project: Farmacia Audra
 * ═══════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* ── Primary — Cyan Blue ── */
    --primary: #00647C;
    --primary-container: #007F9D;
    --on-primary: #FFFFFF;
    --on-primary-container: #FAFDFF;
    --primary-fixed: #B7EAFF;
    --primary-fixed-dim: #6CD3F7;
    --inverse-primary: #6CD3F7;

    /* ── Secondary — Pharmaceutical Green ── */
    --secondary: #006C49;
    --secondary-container: #6CF8BB;
    --on-secondary: #FFFFFF;
    --on-secondary-container: #00714D;

    /* ── Tertiary — Neutral ── */
    --tertiary: #585D60;
    --tertiary-container: #707579;
    --on-tertiary: #FFFFFF;

    /* ── Error ── */
    --error: #BA1A1A;
    --error-container: #FFDAD6;
    --on-error: #FFFFFF;
    --on-error-container: #93000A;

    /* ── Surface Hierarchy (Medical Whites) ── */
    --background: #F8F9FF;
    --surface: #F8F9FF;
    --surface-dim: #CBDBF5;
    --surface-bright: #F8F9FF;
    --surface-container-lowest: #FFFFFF;
    --surface-container-low: #EFF4FF;
    --surface-container: #E5EEFF;
    --surface-container-high: #DCE9FF;
    --surface-container-highest: #D3E4FE;
    --surface-variant: #D3E4FE;

    /* ── Text ── */
    --on-surface: #0B1C30;
    --on-surface-variant: #3E484D;
    --on-background: #0B1C30;
    --inverse-surface: #213145;
    --inverse-on-surface: #EAF1FF;

    /* ── Outline ── */
    --outline: #6E797E;
    --outline-variant: #BDC8CE;

    /* ── Status Colors ── */
    --success: #006C49;
    --success-bg: rgba(0, 108, 73, 0.08);
    --warning: #E6A817;
    --warning-bg: rgba(230, 168, 23, 0.08);
    --info: #00647C;
    --info-bg: rgba(0, 100, 124, 0.08);
    --danger: #BA1A1A;
    --danger-bg: rgba(186, 26, 26, 0.08);

    /* ── Typography — Inter ── */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Display */
    --display-lg-size: 30px;
    --display-lg-weight: 600;
    --display-lg-height: 38px;
    --display-lg-spacing: -0.02em;

    /* Headline */
    --headline-md-size: 20px;
    --headline-md-weight: 600;
    --headline-md-height: 28px;
    --headline-md-spacing: -0.01em;

    /* Body */
    --body-md-size: 14px;
    --body-md-weight: 400;
    --body-md-height: 20px;

    --body-sm-size: 13px;
    --body-sm-weight: 400;
    --body-sm-height: 18px;

    /* Technical */
    --code-size: 12px;
    --code-weight: 500;
    --code-height: 16px;
    --code-spacing: 0.05em;

    /* Labels */
    --label-size: 11px;
    --label-weight: 700;
    --label-height: 16px;
    --label-spacing: 0.05em;

    /* ── Spacing (4px base) ── */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* ── Border Radius ── */
    --radius-sm: 2px;
    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;

    /* ── Shadows (subtle, low-contrast) ── */
    --shadow-sm: 0 1px 2px rgba(11, 28, 48, 0.04);
    --shadow-md: 0 2px 8px rgba(11, 28, 48, 0.06);
    --shadow-lg: 0 4px 16px rgba(11, 28, 48, 0.08);

    /* ── Transitions ── */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;

    /* ── Sidebar ── */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 64px;
    --header-height: 60px;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--body-md-size);
    font-weight: var(--body-md-weight);
    line-height: var(--body-md-height);
    color: var(--on-surface);
    background-color: var(--background);
}

/* ── Typography Classes ── */
.display-lg {
    font-size: var(--display-lg-size);
    font-weight: var(--display-lg-weight);
    line-height: var(--display-lg-height);
    letter-spacing: var(--display-lg-spacing);
}

.headline-md {
    font-size: var(--headline-md-size);
    font-weight: var(--headline-md-weight);
    line-height: var(--headline-md-height);
    letter-spacing: var(--headline-md-spacing);
}

.body-md { font-size: var(--body-md-size); line-height: var(--body-md-height); }
.body-sm { font-size: var(--body-sm-size); line-height: var(--body-sm-height); }

.label-caps {
    font-size: var(--label-size);
    font-weight: var(--label-weight);
    line-height: var(--label-height);
    letter-spacing: var(--label-spacing);
    text-transform: uppercase;
}

.code {
    font-size: var(--code-size);
    font-weight: var(--code-weight);
    line-height: var(--code-height);
    letter-spacing: var(--code-spacing);
    font-family: 'Inter', monospace;
}

/* ── Links ── */
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-container); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-container-low); }
::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--outline); }
