Santos survived a second-half onslaught from Mexican side America to advance to the quarter-finals of the Copa Libertadores.