@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@400;500;600&family=Outfit:wght@400;600;800&display=swap');

/* --- SISTEMA DE DISEÑO: SHONYXIA MOTION --- */
:root {
    /* Paleta de Colores Curada - Tema Oscuro por Defecto */
    --color-bg-obsidian: hsl(230, 25%, 5%);
    --color-card-glass: rgba(10, 11, 18, 0.55);
    --color-card-border: rgba(255, 255, 255, 0.06);
    --color-card-border-glow: rgba(139, 92, 246, 0.25);

    /* Acentos */
    --color-primary: hsl(263, 90%, 66%);       /* Violeta Eléctrico */
    --color-primary-rgb: 139, 92, 246;
    --color-secondary: hsl(188, 95%, 43%);     /* Cian Neón */
    --color-secondary-rgb: 6, 182, 212;

    /* Semántica */
    --color-success: hsl(160, 84%, 40%);
    --color-error: hsl(350, 89%, 60%);
    --color-warning: hsl(45, 93%, 47%);

    /* Texto */
    --text-primary: hsl(210, 20%, 96%);
    --text-secondary: hsl(215, 16%, 80%);
    --text-muted: hsl(220, 12%, 60%);

    /* Tipografía */
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Transiciones */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Bordes y Sombras */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-glow: 0 0 30px hsla(263, 90%, 66%, 0.15);
    --shadow-glow-cyan: 0 0 30px hsla(188, 95%, 43%, 0.15);
}

/* --- OVERRIDES PARA EL TEMA CLARO --- */
body.light-theme {
    --color-bg-obsidian: #f8f7fa;
    --color-card-glass: #ffffff;
    --color-card-border: #dbdade;
    --color-card-border-glow: rgba(115, 103, 240, 0.15);

    --text-primary: #2f2b3d;
    --text-secondary: #6f6b7d;
    --text-muted: #b3b1bb;

    --color-primary: hsl(245, 82%, 60%);       /* Violeta Vuexy */
    --color-secondary: hsl(190, 85%, 40%);     /* Cian Vuexy */

    --shadow-glow: 0 4px 18px rgba(115, 103, 240, 0.08);
    --shadow-glow-cyan: 0 4px 18px rgba(6, 182, 212, 0.08);
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

/* Accesibilidad y Focos de Teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
}

/* Respeto a Preferencias de Movimiento Reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- BRANDING COMPARTIDO --- */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
    background: #090a10;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-name span {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
