A massive seismic event has rocked Mexico less than 12 hours after another earthquake was detected near the US coast.