/* Variables y reset */
:root {
    /* Tema Profesional "Slate" (Dark Mode by Default) */

    /* Core Palette - Slate Scale */
    --bg-main: #0f172a;
    /* Slate 900 */
    --bg-secondary: #1e293b;
    /* Slate 800 */
    --bg-tertiary: #334155;
    /* Slate 700 */

    /* Surfaces */
    --surface: #1e293b;
    --surface-hover: #334155;
    --card-bg: #1e293b;
    --modal-bg: #0f172a;

    /* Accents - Trustworthy Blue */
    --primary: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    /* Blue 600 */
    --primary-light: #60a5fa;
    /* Blue 400 */

    /* Text */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-secondary: #cbd5e1;
    /* Slate 300 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --text-inverse: #ffffff;

    /* Borders */
    --border-color: #334155;
    /* Slate 700 */
    --border-hover: #475569;
    /* Slate 600 */

    /* Functional Colors */
    --danger: #ef4444;
    /* Red 500 */
    --danger-hover: #dc2626;
    /* Red 600 */
    --warning: #f59e0b;
    /* Amber 500 */
    --success: #10b981;
    /* Emerald 500 */
    --info: #0ea5e9;
    /* Sky 500 */

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Compatibility Aliases */
    --border: var(--border-color);
    --surface-alt: var(--bg-secondary);
    --accent: var(--primary);
    --accent-bright: var(--primary-light);
    --accent-hover: var(--primary-hover);
    --accent-dark: rgba(59, 130, 246, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    cursor: pointer;
    font-family: var(--font-main);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white !important;
    /* Force white text */
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: auto;
    min-width: 100px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--border-hover);
    border-color: var(--border-hover);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}