Mexico adopts a new constitution and becomes a federal republic.