Due to its economic output , high standard of living , and market size, Madrid is considered the major financial centre of Southern Europe and the Iberian Peninsula ; it hosts the head offices of the vast majority of the major Spanish companies, such as Telefónica , Iberia or Repsol .