>but my impression from this is that locals are quite proud of their cosmopolitan past and "moro"
Literally no one is.
There is a vast difference between giving credit for a given concept/tool/technique because it's useful, and thinking the locals have sort of ancestral connection with a foreign invader.
Don't speak for a whole country. There are people that are proud of this heritage, like me, and many more, especially in the places where Moorish culture had a stronghold (e.g. Andalusia, C. Valenciana, Murcia, etc.)