Unfortunately, in our experience at least, Spain can be prone to power cuts that tend to arrive in times of particularly bad storms or during periods of Electricity maintenance in the wider area.
You should also be aware that electricity supply to residential properties is tightly restricted and can flip the fusebox when many high consuming units are simultaneously being used.
If you have everything on in the kitchen (kettle, oven, all hob rings, toaster all at once) plus air conditioning you may find the electricity shuts off.
If this happens, if power doesn’t automatically return, you will need to open the fusebox in the kitchen cupboard, flip the main switch on the left down (OFF) and then after 10 seconds flip the switch back up again (ON)