In the match played at the Al Janoub stadium, Spain pressed from the start and took the lead after 11 minutes when Olmo scored before the departure of Keylor Navas after controlling the ball with his back to the goal and turning around after a Gavi pass.
Spain’s second goal fell after 21 minutes through Asensio, who powerfully finished off a service sent by Jordi Alba from the left sector in the center of the area.
The 2010 world champion team scored the third goal in the 31st thanks to a converted penalty from Torres, after Óscar Duarte fouled Alba inside the area.
In the second half, Spain continued to dominate and Torres scored his brace in the 54th minute when he took advantage of a confusion between the Costa Rican defense and Navas to finish by sweeping into the six-yard box.
Spain’s fifth goal, against a Costa Rica that had completely lowered its arms, came after 74 minutes thanks to a showy volley shot by Gavi at the entrance to the area, hitting the ball close to the left post after a Morata cross from the left sector.
At the end of the game, Spain scored the sixth goal with a shot by Soler in the center of the area after a weak rebound from Navas.
In stoppage time, Morata scored the seventh with a left-footed shot inside the area after making one pass with Olmo in the 92nd minute.
Ranked first in Group E, Spain will face Germany on Sunday, who earlier lost 2-1 to Japan.