/* Vocacional IA — Design tokens */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-rgb: 79, 70, 229;
    --accent: #6366f1;
    --sidebar: #1e1b4b;
    --bg: #f4f6fb;
    --bg-gradient: linear-gradient(160deg, #f4f6fb 0%, #eef2ff 45%, #f8fafc 100%);
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --success: #059669;
    --success-bg: #d1fae5;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --info: #0284c7;
    --info-bg: #e0f2fe;

    /* RIASEC */
    --riasec-r: #ef4444;
    --riasec-i: #8b5cf6;
    --riasec-a: #f59e0b;
    --riasec-s: #10b981;
    --riasec-e: #3b82f6;
    --riasec-c: #6366f1;

    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 0.375rem;
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
    --nav-height: 4rem;
    --content-max: 1200px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--sidebar);
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Bootstrap overrides */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    border: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius);
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary);
}

.card {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.form-control,
.form-select {
    border-radius: var(--radius);
    border-color: var(--border);
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.page-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--sidebar);
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.alert {
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
}

.badge {
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.progress {
    border-radius: 999px;
    background: var(--border-light);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
}

.table {
    --bs-table-bg: transparent;
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom-width: 1px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
}
