For @santarellin and future visitors: here's a general tip—unfortunately, the concept of “somewhere close to the main sites” doesn’t really exist in Barcelona. This is a common idea among tourists that can sometimes lead to poor decisions when planning their stay.
Barcelona, like all cities, wasn’t designed as a theme park. It’s a place that has evolved—more or less chaotically—over 2,000 years, growing to meet the needs of its residents through different historical periods and within the constraints of the time. That’s how all cities work, after all. The "placement" of this church, that museum, a charming square, or the trendy restaurant you’ve read about wasn’t planned with 21st-century tourists in mind. On top of that, Barcelona grew by absorbing nearby towns over time, which means it doesn’t have a neat radial layout like some newer cities—think many U.S. cities, for example.
Take the actual district of Gràcia, for instance. When it was annexed into Barcelona in 1897, it had already existed as a separate village for more than 300 years. By then, it had developed its own "downtown," local shops, monuments, and community vibe. The same is true for many of Barcelona’s neighbourhoods—there are 73 of them in total! Here. http://bit.ly/BCNhoods
So, what does this mean? The “main sites” are spread out across the city. Yes, a lot of them are in the oldest parts of Barcelona—like the Barri Gòtic, El Raval, or La Barceloneta—but plenty of must-sees are well outside the "historic centre."
But here’s the good news: it’s not a problem at all. Barcelona is very walkable, perfectly sized, and has an excellent public transportation system—efficient, cheap, clean, safe, and easy to use. This means where you stay doesn’t matter all that much. I always recommend choosing accommodation that suits your needs without worrying too much about its exact location—within reason, of course! No need to book something 10km away from the centre.
Then there’s the matter of neighbourhood preferences—this one’s better than that one, this one’s prettier, that one’s safer... but honestly, it all comes down to personal taste. My favourites? Well… check this post: https://community.ricksteves.com/travel-forum/spain/the-quintessential-question-where-to-stay-in-barcelona