Mexico took advantage of a defensive blunder by South Korea to win 1-0 and become the first team to advance to the knockout stage of the World Cup.