tener pájaros en la cabeza

Etymology
lit. 'to have birds in [one's] head'.

Verb

 * 1)  to have a screw loose, to have bats in the belfry; to be feather-brained