If you are outside the EU for more than one consecutive year, you will lose the long-term residence permit. However, unlike other temporary cards that cannot be recovered once lost, you can recover it very easily directly in Spain or from your country of origin.