The Tourist Tax is what we call in the jargon, an imponderable.
It is collected by the city from all hoteliers for each reservation made, whether you are a foreign or "local" tourist.
The amount is fixed and varies according to the category of the hotel. You will therefore be required to pay it directly to the hotel when you check in.