Hyperbolicity of periodic points for horseshoes with internal tangencies