Hello,

In that case you will have no problems to apply for the residencia de larga duracion ( or permanent ) comunitaria.

In response to your main query: Yes, with that type of permit you can work in any EU country as any EU citizen can do.

Regards,