I believe that the Castillian-Aragonese-Spanish Royal Family used no surname until the Habsburgs...
The Spanish Habsburgs were called 'de Austria'...
Names as Trastamara, Avis, Burgundy-Ivrea, etc, were given by genealogists to denominate a lineage, a family or a dynasty...they don't correspond to surnames as we understand...