Hurricane John struck Mexico’s southern Pacific coast on Monday after strengthening from a tropical storm to a major hurricane in a matter of hours.