I've posted this in some threads, but thought it might be useful here. There is an excellent app for emergencies, of any kind, in Spain.
There is an app called AlertCops it is run by the Spanish Ministry. You download it and register with it. Then if you have an emergency of any type in Spain...