Rapidity and transverse-momentum dependence of the inclusive J/psi nuclear modification factor in p-Pb collisions at root s(NN)=5.02 TeV