The 7.6 magnitude quake hit Mexico as the country marked previous shocks that left thousands dead.