That may be a factor as well but the whole Mediterranean is affected (Southern France, Italy, North Africa) so that's not the whole story. Climate change is real and disturbingly so.
Discussion
The climate has always changed, only now they want to blame you for it to make you pay taxes 😂
Normally climate change is slow, but the current changes are driven by non-natural factors, which is extremely disturbing. The upcoming summer will likely already be a litmus test for Spain's future. Water basin levels in Catalonia are already at all time lows (15% or so). It's downright frightening!
Sea water warming is even more disturbing and may lead to the collapse of the Gulf Stream current as early as 2025, plunging Earth into climate chaos (a.o. Siberia in Europe). It's bad, really bad and likely we're all doomed by upcoming climate change.
We also would like to move to Spain but are afraid to because of heat waves and droughts.