Upvote:2
I presume you have/had a Spanish national "D" visa. This allows you to travel in the Schengen area as if you had a multi-entry "C" visa for the entire Schengen zone, and days in Spain do not count against the 90/180 limit.
If you have a Permiso de residencia expedido a nacionales de terceros paΓses that should be enough.
Have you reported your lost passport to the Spanish authorities? Have they given you some sort of receipt for the report? What did they say?