The order remained in effect on Saturday.
Alvaro Morata, Fabian Ruiz and Dani Carvajal were on target in the first half for La Roja.
Record-breaking high temperatures are likely across the country.