Mexico's national seismological service said the quake had a magnitude of 5.2 at a relatively shallow depth of 6 miles (10 km), and that the epicenter was on Guatemala's Pacific coast about 95 miles (153 km) southeast of the city of Hidalgo in Mexico's southern state of Chiapas.