Barcelona is the capital of Catalonia, an empire which once straddled the Pyrenees and ruled the trading routes of the Mediterranean.