Acid-fast staining penetrates waxy cell walls of specific bacteria, helping distinguish them from others.