The real reason Mexico was screwed in the Mexican-American war was that Mexico didn’t really have a national consciousness. The Americans were able to march across vast sections of the country while the locals just watched as if it were happening to somewhere else. The Mexican population, especially in states away from the fighting, didn’t throw themselves behind the central government. If you fix that then Mexico has a real shot of at least giving the Americans a bloody nose.