Yes, you can visit Spain and France with a valid Portugal visa as they all belong to the Schengen area. With a Schengen visa, you can travel to any of the countries listed in the Schengen Area for short-term business meetings, tourism, etc., for a maximum of 90 days in a 180-day period.