Surely you mean western shores of Portugal, or the Iberian Peninsula? Portugal was founded in 1139, Spain as a single entity, and not a collection of Kingdoms was founded in 1469, 200 and so years after Genghis Khan (1162-1227).
IIRC, “Spain”, like “Germany”, was a geographic name long before it identified a particular polity.
In any case it's a geographic name coextensive with a modern polity now, and a modern speaker using it to identify a geographic location even for events that predate the modern polity is normal and clear.
Hispania != Spain. In any case, the westernmost region on the Iberian peninsula was and still is occupied by a country then known and still known as Portugal.