.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    height: 80px;
}

.logo img {
    height: 46px;
    width: auto;
    display: block;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.menu li {
    display: flex;
    align-items: center;
    height: 80px;
    color: white;
}

.menu a {
    position: relative;
    display: flex;
    align-items: center;
    height: 50%;
    padding: 0 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #cc0000;
    transition: 0.3s;
}

.menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.menu a:hover::after {
    width: calc(100% - 28px);
}

.menu li:has(.logout-btn) {
    margin-left: 12px;
}

.logout-btn {
    padding: 9px 20px;
    border: 1.5px solid #cc0000;
    border-radius: 6px;
    background: transparent;
    color: #cc0000;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.logout-btn:hover {
    background: #cc0000;
    color: #fff;
}

.menu li strong,
.menu li:last-child strong {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
    padding: 0 8px;
    margin-left: 4px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    user-select: none;
}

.menu-logo {
    display: none;
}

.menu-logo img {
    width: 120px;
}

.menu-close {
    display: none;
}

@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #050505;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        transition: right 0.3s ease;
        z-index: 2000;
    }

    .menu.active {
        right: 0;
    }

    .menu li {
        width: 100%;
        height: auto;
    }

    .menu a {
        width: 100%;
        height: auto;
        padding: 14px 0;
    }

    .menu-logo,
    .menu-close {
        display: block;
    }

    .menu-close {
        position: absolute;
        top: 24px;
        right: 24px;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }
}

.usuario-header {
    margin-left: 8px;
    padding: 0 12px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.usuario-header .enlace-perfil {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: none;
    padding: 0 10px;
}

.usuario-header .enlace-perfil::after {
    display: none;
}

.usuario-header .enlace-perfil strong {
    color: #fff;
    font-weight: 600;
}

.usuario-header .enlace-perfil:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}