It's quite well known that Spain has a few different types of Police. However, just how many different types are there and what are their roles?
For example, who/what body of police is responsible for foreign nationals when they enter Spanish waters/port/marina in a private yacht which is registered in another European country? What police force is responsible for ports/harbors/marinas in Spain? Who do I initially contact in case of a complaint?