1) Stacking!
2) A thorough knowledge of Photoshop levels, curves and associated histograms.
Answer... it's a long and complex road. There is far more involved in well-executed post-processing than in capturing.
What processing software do you currently have on hand?