Argentina shook off its previous lacklustre form and beat Costa Rica 3-0 on Monday, booking a place in the Copa America quarter-finals.
Sergio Aguero scored in first-half stoppage time, and again in the 52nd minute following a pass from Barcelona star Lionel Messi, who showed his best form for the first time in the tournament.
Aguero had scored Argentina's only other goal its opening two draws, making him the tournament scoring leader with three.
Angel Di Maria scored Argentina's third goal in the 64th in a performance that will revive the host nation's pre-tournament expectations of challenging for the title and ending an 18-year drought in major championships.
"We are really happy," Aguero said. "This was like a final. We got the goal, and that is what we were looking for. I'm happy how I played, but it's for the team. Today it was me scoring."
Argentina improved to five points in three matches and finished second in Group A. Colombia was first with seven points. The top two teams in each of the three groups advance, along with the best two third-place teams.
Colombia will play the best third-place team and Argentina will face the second-place team in Group C: either Chile, Peru or Uruguay.
Group B and C will be settled on Tuesday and Wednesday. Despite the loss, Costa Rica is not yet eliminated but must rely on Brazil and Paraguay both losing their final group games.
Argentina joined Chile, Venezuela and Peru in the quarter-finals, after those teams booked their places on Sunday.
Argentina applied constant pressure in the first half before Aguero broke through just before the interval, putting a rebound past Costa Rica goalkeeper Leonel Moreira.
In the 52nd he took a through ball from Messi and tucked his shot inside the far post, as Argentina continued to dominate.
It was Messi again who set up the third goal, finding Di Maria who ripped the ball into the net from 15 metres.
Argentina coach Sergio Batista fielded an attacking lineup, with Aguero, Gonzalo Higuain and Di Maria playing in front of playmaker Messi. Forwards Carlos Tevez and Ezequiel Lavezzi started on the bench after two poor matches.
The new lineup seemed to suit Messi, who finally looked at ease as Argentina dominated the first half from the opening whistle and could have scored four or five from a dozen threatening attacks.
"Lionel knows how to overcome these situations, he has personality to overcome them and today he showed it on the field," Argentina coach Sergio Batista said. "He played a tremendous match."
Costa Rica coach Ricardo La Volpe, who was born in Argentina, chose to play for a draw from the start.
Costa Rica and Mexico are both playing largely under-23, Olympic-style teams in this tournament. Both are guest teams in this tournament, and used their first-choice squads in last month's Gold Cup in the United States.