Last month , Argentina became the first country in Latin America to legalize same-sex marriage .