How have they hurt tourism? According to the data here [1] tourism has been going up every year since 1996 except for a moderate hit during the 2008 recession and a big hit during COVID.
[1] https://en.wikipedia.org/wiki/Tourism_in_Spain