A related concept is maybe "personal distress" so in a pain domain e.g. the amount of self-related distress you experience when seeing others in pain, or in general feeling with others. There are questionnaires (e.g. the Interpersonal Reactivity Index) who measure that. Don't know about any spanish validated tests though, sorry!