no tener un pelo de tonto

Etymology
lit. 'to not have a hair of silly'.

Verb

 * 1)  to be a brainbox; to be no fool