Upvote:1
For immediate advice I would suggest visiting a Oficina de Extranjeros, which is a local foreigners office.
There is a link below, but in Spanish
http://www.seap.minhap.gob.es/es/servicios/extranjeria/extranjeria_ddgg.html
Select the region you are in and it will give you a list
For you in Madrid I suggest the office below
I have used this office
SEDE 5. OFICINA DE EXTRANJERÍA DE MANUEL LUNA - OFICINA DE INFORMACIÓN
Información general
Calle Manuel Luna, 29 28020 - Madrid
Teléfonos: 91 272 95 00
They helped me with a resedencia permit.
If the can't help, they should know where you need to go.
Good luck