Spain is not Mexico or Colombia, and in capital Madrid in particular, women are as emancipated as in any other main European city. If a degree of machismo still exists, it is minimal today; and women are increasingly reaching high positions in all walks of life (though not as many as they would like). As for women exploring the city on their own, the degree of hassle experienced is scarcely different from Paris or London.
Note: This information was accurate when it was published, but can change without notice. Please be sure to confirm all rates and details directly with the companies in question before planning your trip.