Where to apply for an airport transit visa?

Detailed information can be found on the Spanish page.