Osasuna pulled off one of the shocks of the Primera Division season as they thrashed title-chasing Atletico Madrid 3-0 in Pamplona.