The 2013 referendum is not a valid argument in sovereignty disputes. The UN has repeatedly recognized the Islas Malvinas as a disputed territory and has urged the UK to negotiate with Argentina (Resolution 2065 and subsequent resolutions).
Spain had no more or less right to them than Britain in the 18th century.
UN resolutions on such cases are entirely political.