For decades, Spain was relatively resistant to the rise of far-right populism seen elsewhere in Europe.