Sheep bells rang out as shepherds guided a flock through the Spanish capital following ancient migration routes.