More than 1,000 people have been forced to flee their homes after a wildfire burned through around 30,000 acres of land in northern Spain.