How did the margarita get its name?

The true origin of the margarita’s name remains uncertain. One popular theory is that its name comes from Margarita Sames, a socialite who reportedly crafted the cocktail in 1948 for her guests. Another theory suggests that the margarita was originally called Tequila Daisy, a popular cocktail in the 1930s—margarita means daisy in Spanish. A third theory suggests a bartender named Carlos “Danny” Herrera named the cocktail after a customer, Margarita, who was allergic to all alcohol except tequila.

How did the margarita get its name?