Reflectionless measures for Calderón-Zygmund operators I: general theory