/* 1. DEFINICIÓN DE TOKENS (Variables) */
:root {
    /* Capa Neutral (Modo Día por defecto)  */
    --bg-primary: #F9FAFB;
    --bg-surface: #FFFFFF;
    --text-main: #111827;
    --border: #E5E7EB;

    /* Marca Default (Albert Salvany) [cite: 9, 32] */
    --accent: #2563EB;

    /* Tipografía [cite: 12, 13] */
    --font-main: 'Inter', sans-serif;
    --font-data: 'JetBrains Mono', monospace;
}

/* 2. MODO NOCHE (Manual y Preferencia de Sistema) [cite: 7, 39-43] */
[data-theme="dark"] {
    --bg-primary: #0B0E11;
    /* Deep Black */
    --bg-surface: #161A1E;
    /* Grip Card */
    --text-main: #EAECEF;
    --border: #2B3139;
}

/* 3. ACENTOS DE MARCA (Theming) [cite: 10, 36-38] */
[data-site="forex"] {
    --accent: #0ECB81;
    /* Verde "Bullish" */
}

/* 4. ESTILOS BASE */
body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-main);
    transition: background-color 0.3s, color 0.3s;
    /* Transiciones suaves [cite: 23] */
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Tipografía de Datos (Números y Logs)  */
.font-data {
    font-family: var(--font-data);
    letter-spacing: -0.02em;
}

/* Componente Card Unificado [cite: 25, 26] */
.card-authority {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

/* Botón de Acción Principal [cite: 21, 23] */
.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(1.1);
    /* Ligero brillo en hover [cite: 23] */
}

/* Forzar que los enlaces usen el acento de la marca */
a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Asegurar que el texto principal sea el gris claro del modo noche */
.text-main {
    color: var(--text-main) !important;
}

/* Tipografía técnica para los textos pequeños  */
.font-data {
    font-family: 'JetBrains Mono', monospace !important;
}

/* Layout Helpers */
.max-w-7xl {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.p-6 {
    padding: 1.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

/* Tipografías [cite: 13-14] */
.text-5xl {
    font-size: 3rem;
}

.leading-none {
    line-height: 1;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}