I spend a lot of time in Spain, Germany and Portugal, but I live in the Netherlands and the quality of service in Spain especially is of such a level that in the Netherlands you would be, as a company, on national television every night. It's appalling. Almost every company, especially big ones, don't care at all about customer service. The electrical company in the south, Endesa, just hangs up randomly. They don't have a CRM or anything, just non-caring students who don't know anything about the subject matter and they'll just tell you it's your problem and hang up (after you have waited for 1 hour with shit muzak). Whatever you are complaining about. In the Netherlands, there would be an outcry and it would be fixed (this has happened with UPC, but that was over 10 years ago... and they now lick your feet when you call).
In the average bar it's like a 'tourist attraction' to have the 'angry/shaggy/shitty bar guy'. They usually look like they hate you. And they never saw you. If your Spanish is good enough, you can just pelt them with derogative stuff as they seem to like the insult. But if you come with your family for a vacation, you might not want to verbally fight all the time. Besides some ancient bars in Amsterdam, you would not get away with that in the Netherlands. Your money is tourists; be nice. But no, besides some well trained staff in some hotels/restaurants/bars, the average way to treat someone you never saw is to be shortish or downright hostile to them.
The cases we had in the north (NL/DE) resulted in companies going bankrupt or public outcry; I have seen in Spain/Greece (less in PT so far) that it is very normal to treat people that way. And that doesn't work for people from the north, who are, accidentally, the people who have the cash. So maybe adapt? It'll make life better as well; I don't think being angry works well for your person either.
Having said that; ofcourse there are plenty of exceptions, the village I go to often has very friendly people. Unfortunately those are usually the older people. The younger generation is fat and spoiled and angry. Why? The news probably? Hearing every day your country is going under is not stimulating while the older generation lived with Franco / Salazar and know that this is the best they every had.
Edit: I know about southern Spain; Andalusia, so the comments I make are about that region of the country. I love that place and I'll die there, but it's something different if you are used to the north of EU.