The big thing with renewables is that they don't really require ongoing fuel shipments. Spain is not a large producer of any of the major fossil fuels like oil, gas and coal.
While there are certainly issues with the supply chain of certain components of renewables, those effectively cease after installation. And even hydro is not totally immune from supply issues given increasing drought frequencies across the world.
When you consider the intermittency of renewables, and you should, fuel suddenly becomes an issue again.