I'm not going to pretend to understand Spain's politics or economy, but it would behoove a lot of countries' governments to start acting in the interests of their citizens vis a vis the looming disasters caused by climate change, rather than capitulating to wealthy special interests.
The main reason the far right is having a moment across the globe is because they're tapping into that simmering fear and frustration as people watch their allegedly democratic institutions fail them, one by one, over and over. And the existing institutions are acting like everything is fine—business as usual.
It's not fine. Most people can't just buy a new home when theirs gets destroyed by flooding, fires, storms, etc. They can't just move. The far right is only going to make things worse, but they're promising people some kind of change (and hoping people don't look too hard), whereas current institutions are promising more of the same and expecting people to just be patient as we pass each climate-disaster milestone.