/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
}

/* Header scrolled - aparece sólido */
.header--scrolled {
    background-color: var(--bg-section);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .header--scrolled {
    background-color: rgba(26, 35, 40, 0.98);
    border-bottom-color: rgba(65, 107, 153, 0.2);
}

[data-theme="light"] .header--scrolled {
    background-color: rgba(240, 244, 248, 0.98);
    border-bottom-color: rgba(65, 107, 153, 0.15);
}

.header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    position: relative;
}

.header__logo:hover {
    opacity: 0.8;
}

.header__logo-img {
    height: 40px;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
}

/* Logo switching based on theme */
.header__logo-img--light {
    display: none;
    position: relative;
}

.header__logo-img--dark {
    display: block;
    position: relative;
}

[data-theme="light"] .header__logo-img--light {
    display: block;
}

[data-theme="light"] .header__logo-img--dark {
    display: none;
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header__nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.header__nav-link:hover {
    color: var(--primary);
}

.header__nav-link:hover::after {
    width: 100%;
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle__icon {
    width: 20px;
    height: 20px;
    display: none;
}

.theme-toggle__icon svg {
    width: 100%;
    height: 100%;
    fill: var(--text-primary);
}

.theme-toggle__icon--sun {
    display: block;
}

[data-theme="dark"] .theme-toggle__icon--sun {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
    display: block;
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lang-switch:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-switch__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Hamburger Menu */
.hamburger {
    display: none;
}

/* Responsive */
@media (max-width: 1023px) {
    .header__nav {
        display: none;
    }
    
    .theme-toggle,
    .lang-switch {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}
