We show that any metallo-dielectric multilayer with a hyperbolic dispersion relation can actually be characterized by a complex effective index. This refractive index, extracted from the complex Bloch band diagram, can be directly linked to the super-resolution of a flat lens made of this so- called indefinite metamaterials. This allows for a systematic optimization of the lens design, leading to structures that are outperforming state-of-art flat lenses. We show that, even when fully taking absorption into account, our design provides super-resolved images for visible light up to a distance of one wavelength from the lens edge.