TEHRAN, February 4 - Costa Ricans vote for a new president on Sunday in a race upended in the final weeks by a debate over same-sex marriage, as leading candidates in the crowded field fiercely opposed gay rights that have recently been expanding in Latin America.