Spain is gearing up for a rare total solar eclipse, even as extreme heat and wildfires threaten to cast a pall over the spectacle.