Using a drone in Spain

Hi everyone!

I'm just considering buying a drone but before I wanted to understand better the laws in Spain.

I'm seeing conflicting information if you need an online training/license for drones with a camera under 250g.

Also i've seen some information about my city of Barcelona being a complete no fly zone?

any information appreciated, thanks!