After they kicked the Spaniards out they destroyed most institutions of higher learning that had been built and funded by Spain.
Mexico then, almost immediatelly, morphed into what it is today: a cesspool!
We'll have to agree to disagree on this one.
The Spanish colonial, while it had periods of significant accomplishments, was extremely corrupt and decrepit by the time of the Revolution.
However, you are correct about the inability of Mexico, and most other Latin American countries, to develop efficient systems of government since gaining their independence.