A magnitude-7.1 earthquake struck the central Mexican state of Puebla, leveling buildings as far away as the capital, about 75 miles away.