Unless they moved the Rio Grande to Spain, I think the song is about the mexi-american war.
There’s a Rio Grande in southern Spain. However, I figured “Fernando” could be about supporters of the Mexican emperor Maximilian fleeing to Texas to escape the Juarezistas in the 1860’s—or maybe Confederate partisans fleeing in the opposite direction.