You might want to consider Terrassa. I visit my friends often at their flat there; it is a small city about 45 minutes inland from Barcelona. Everywhere in Terrassa is within walking distance of either RENFE or FGC lines into Barcelona. It is a classic small non-touristed, totally Spanish city. It has a pretty el centro, pedestrians-only, and lots of nice shops. Some good restaurants too. My friends got their 90 m2 flat with 3 bedrooms & 3 terraces & 2 baths for slightly over $200K euros, in a nice convenient area 18 months ago. It’s not cheap, but it’s certainly not Barcelona prices. Good luck!