In this Nov. 3, 2015 photo released by La Nacion, Jazmin Elizondo Arias, left, and Laura Florez-Estrada Pimentel sit with their two recently adopted kittens, at a restaurant in San Jose, Costa Rica. Photo: Gabriela Tellez, La Nacion (AP)

In this Nov. 3, 2015 photo released by La Nacion, Jazmin Elizondo Arias, left, and Laura Florez-Estrada Pimentel sit with their two recently adopted kittens, at a restaurant in San Jose, Costa Rica. Photo: Gabriela Tellez, La Nacion (AP)

SAN JOSE, Costa Rica — When Jazmin Elizondo Arias was born in 1991, someone goofed and noted on her birth certificate that she was male.

As the years passed and Elizondo grew up, the mix-up never caused any problems. So she never bothered to try to correct the record officially, something that others in her situation found could turn into a slog through Costa Rica’s bureaucracy with no guarantee of success.

Recently Elizondo and her partner, Laura Florez-Estrada Pimentel, exploited that simple clerical error from nearly a quarter-century ago to become Costa Rica’s first legally married gay couple — at least briefly — and high-profile protagonists in the Central American nation’s debate over same-sex unions.

“All that I know is I had in my hands a certificate that says they are a man and a woman. Legally she is a man, and legally a man and a woman can get married,” said Marco Castillo, a lawyer and activist who performed the civil ceremony. “I married a man and a woman according to the official documents.”

Elizondo and Florez-Estrada run a cafe in the eastern part of the capital, San Jose. Florez-Estrada, a 28-year-old Spanish national who has lived in Costa Rica since age 6 and specializes in making pastries, is the sister of a prominent leftist politician, Jose Maria Villalta. Elizondo, 24, studies the performing arts.

The two women decided after this year’s Gay Pride march to tie the knot, and they did so quietly on July 25. Their marriage became widely known only last week after they received their marriage certificate and Costa Rican media picked up on the story.

The flurry of publicity prompted an unusually quick response by Civil Registry officials, who reviewed Elizondo’s records, reclassified her as a woman and in recent days annulled the nuptials. They also opened criminal complaints against the women and Castillo, the lawyer, for allegedly performing an “impossible marriage.”

“It’s absolutely suspicious and discriminatory. It’s clear that the Civil Registry moved out of hate, because they not only annulled the marriage but filed this criminal complaint,” Florez-Estrada said.

Registry officials did not respond to requests for comment.

The agency’s director, Luis Bolanos, was quoted by the website Ameliarueda.com as saying that for a marriage to be annulled, the Family Code calls for an administrative process to correct the mistake.

“In this case effectively there was an error in one of the registrations, which makes the annulment of this marriage possible,” Bolanos said.