Millions of tourists are planning trips to Spain to witness a rare total solar eclipse, the first visible from the country in more than a century.