Spain's country code is 34; the area code for the Balearics is 971.
The country codes for Spain and the Balearic Islands are different.