Mikel Merino scored in the first minute of second-half stoppage time, and Spain beat Portugal 1-0 on Monday to likely end the World Cup career of superstar Cristiano Ronaldo.
Costa produced a double save to deny Spanish duo Lamine Yamal and Alex Baena in quick succession as La Roja probed for an opener, but it was Portugal who went closest next.
Spain were saved by the woodwork in the 41st minute as Nuno Mendes’ venomous left-foot strike took a deflection off Pedro Porro and rattled the crossbar. However, the game remained goalless at the break.
Bruno Fernandes hit the side-netting in the 76th minute, while at the other end Olmo’s shot from inside the box was blocked by a brave Ruben Dias before the two Spain substitutes combined to produce the match-winning moment.
Merino did not come on as a sub until the 85th minute, and his heads-up play showed some of the versatility that helped Arsenal win its first Premier League title in more than 20 years in May. He had been doubtful to make Spain’s squad because of injuries, which also impacted his Premier League season.
After being fouled, Merino took a quick free kick, ran towards the goal and fired past goalkeeper Diogo Costa after a pass from Ferran Torres.