I doubt Spain is 17% solar... As they are essentially same sun availability.
As of this moment it says 19:00 and 3% of electricity, which was before sunset, it was probably an hour or more earlier, and sun has been especially strong today.
Solar: 11.5%
Wind: 22.7%
Hydro: 6.6%
https://ourworldindata.org/grapher/share-elec-by-source?coun...When it's night in Portugal, it's night in Spain :-)
(But I think the sun goes down a bit earlier, but there are also the canarian islands as part of spain, way further south and west of the mainland)