Mexico continued to put their off-field problems behind them with a 4-1 Gold Cup win over Group A opponents Costa Rica.
Both teams progress to the quarter-finals, Mexico having enjoyed three handsome wins despite the doping drama that led to suspensions for five squad members, while Costa Rica are through on goal difference from El Salvador.
Andres Guardado scored two of Mexico's goals, which all came in the first half, and Rafael Marquez and Pablo Barrera were also on target. Marcos Urena netted for Costa Rica.
For El Salvador, even a 6-1 win over Cuba was not enough to improve their goal difference beyond zero.
They must now wait on results in groups B and C to see if they qualify as one of two third-placed sides.
Rodolfo Zelaya scored in each half and there were also goals for Osrael Romero, Lester Blanco, Arturo Alvarez and Eliseo Quintanilla. Yenier Marquez claimed the Cuban consolation.