Shorts and flip flops are OK in bars but they might not be OK at all clubs, but remember you only need to go to a club from 3 am onwards. It might sounds obvious, but the most important thing for a group of tourists to get in a club late in Madrid is not to be too drunk!!!