There aren't many public toilets in the street but in bigger cities they have those cabins which I believe need a coin to operate (not sure because I never use them). However toilets in department stores and malls are free, wherever you have a Corte Inglés you have a free and clean toilet.