Barcelona is a cosmopolitan beach town with a history of daring cultural adventurism.