Semi-learned borrowing from Latin mente captus (literally “taken in the mind”).
Practice speaking and memorizing "mentecato" and many other words and sentences in Spanish.