/* css/header.css - Estilos del header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 15px 0;
    transform: translateY(-100%);
    animation: slideDownHeader 0.8s ease-out 0.3s forwards;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out 1.2s forwards;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    background: var(--purple-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
}

.nav-link:nth-child(1) { animation: fadeInDown 0.5s ease-out 1.4s forwards; }
.nav-link:nth-child(2) { animation: fadeInDown 0.5s ease-out 1.5s forwards; }
.nav-link:nth-child(3) { animation: fadeInDown 0.5s ease-out 1.6s forwards; }
.nav-link:nth-child(4) { animation: fadeInDown 0.5s ease-out 1.7s forwards; }

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-gradient);
    transition: width 0.3s ease;
}

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

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary);
}

.cta-button {
    background: var(--purple-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.user-name {
    color: var(--accent-primary);
    font-weight: 600;
}

.logout-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    display: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-option:hover {
    background: rgba(74, 158, 255, 0.1);
}

.language-option.active {
    background: rgba(74, 158, 255, 0.2);
    color: var(--accent-primary);
}


