Brazil (BBN)-Netherlands produced an astonishing late comeback to rescue their World Cup dream and deny Mexico a first quarter-final in 28 years.

Substitute Klaas Jan Huntelaar scored the decisive goal from the penalty spot in injury time after Arjen Robben was fouled by Mexico captain Rafael Marquez, reports BBC.

They had equalised in the 88th minute through Wesley Sneijder's thumping strike from the edge of the penalty area and with extra time beckoning, Robben won Louis van Gaal's side the spot-kick that took them into the quarter-finals.

It was a heartbreaking moment for the Mexicans, who had gone ahead just after half-time through Giovani Dos Santos, the former Tottenham and Barcelona player, who scored from 25 yards with a memorable strike.

At the final whistle at Estadio Castelao in Fortaleza, Mexico's players fell to the ground, unable to grasp how the game had slipped away.

For long periods they had out-thought and out-fought their more celebrated opponents as the Netherlands appeared to wilt in the stifling heat.

Yet, when the final whistle blew, this would be marked down as Mexico's sixth successive loss in the second round of the World Cup, dating back to 1994.

The Dutch, in contrast, can look forward to the prospect of meeting Costa Rica or Greece in Salvador in the last eight.

The heat was a significant factor throughout. The spiralling temperatures, which reached 38.8C, meant that Fifa allowed two cooling breaks to take place.

In parts of the stadium, fans struggled to take their seats because they were in direct sunlight, preferring to stand at the back and watch from an area of shade.

On the field there was no hiding place for either side. Mexico played with courage and cohesion, tempo and tenacity. They had the better of the first half, with Hector Herrera and the excellent Miguel Layun a constant thorn in the Netherlands' side.

Carlos Salcido tested goalkeeper Jasper Cillessen from distance, while Dos Santos forced another good save from a narrow angle.

The Netherlands were struggling in the conditions. Mexico looked more ambitious, more attack-minded. Van Gaal's side sat deep, defended in numbers – sometimes with a back seven – and looked happy to rely on the attacking brilliance of Robin van Persie and Robben. It was a plan that ultimately paid off, but not until very late on.

It was not until the second half that the Netherlands found their rhythm but by then they were behind. As in the first half, Mexico began the second period with a bang – Dos Santos gathered the ball 30 yards out, held off Daley Blind and thumped a wonderful left-foot shot into the bottom corner on the turn.

Mexico might have had another soon after as Marquez headed over from a corner. Could the Dutch respond?

Van Gaal moved away from a back five and pushed substitute Memphis Depay into a more attacking midfield role. It almost paid off for the Netherlands but the brilliance of Mexico goalkeeper Guillermo Ochoa kept them at bay. Robben's corner was flicked on by Stefan de Vrij but the Mexico goalkeeper reacted instinctively to push the ball against the post and to safety.

BBN/SS-30June14-8:30am (BST)