/* ============================================================
   Takeward Client Portal — base.css
   Variables, reset y tipografía. Fuente única de verdad del
   design system (tokens del brief v1.0).
   ============================================================ */

/* Inter (UI/body) + Barlow Condensed (headings) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* --- Color (tokens del brief) --- */
    --bg:            #0A0A0A;
    --surface-1:     #0F0F0F;
    --surface-2:     #141414;
    --surface-3:     #1A1A1A;
    --border:        #222222;
    --border-light:  #2A2A2A;
    --accent:        #C8732A;
    --accent-hover:  #d9822f;
    --white:         #FFFFFF;
    --gray:          #666666;
    --gray-light:    #999999;
    --success:       #22C55E;
    --warning:       #E5A000;
    --error:         #EF4444;

    /* --- Tipografía --- */
    --font-head: 'Barlow Condensed', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Tamaños del brief */
    --h1: 32px;
    --h2: 22px;
    --h3: 18px;
    --body: 14px;
    --label: 12px;

    /* --- Radios y espaciado --- */
    --radius-card: 12px;
    --radius-input: 8px;
    --radius-pill: 999px;
}

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

html, body {
    height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --- Tipografía --- */
h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { color: var(--accent-hover); }

.mono { font-family: var(--font-mono); }

.text-secondary { color: var(--gray-light); }
.text-muted { color: var(--gray); }

/* --- Accesibilidad --- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
