A 7.3 magnitude earthquake struck off Puerto Madero, a major Pacific port in Mexico, triggering a tsunami warning.