Great, I have updated the code.
The action priority just had to be increased.
if (!function_exists('sf_custom_related_portfolio_heading')) {
function sf_custom_related_portfolio_heading() {
return 'Más masajes y terapias';
}
add_filter ( 'sf_related_projects_heading' , 'sf_custom_related_portfolio_heading', 100 );
}