Enviar por SMS: Capital flows with debt- and equity-financed investment