Just an FYI.
Although Barcelona has been known for years for pickpocketing, the US State Dept just issued a higher crime alert travel warning. When we visited years ago, our hotel warned us about pickpockets every time we left the building.
https://es.usembassy.gov/security-alert-u-s-consulate-general-barcelona-spain-2/