Quantum materials that feature magnetic long-range order often reveal complex phase diagrams when localized electrons become mobile. In many materials magnetism is rapidly suppressed as electronic charges dissolve into the conduction band. In materials where magnetism persists, it is unclear how the magnetic properties are affected. Here we study the evolution of the magnetic structure in Nd(1-x)Ce(x)CoIn(5) from the localized to the highly itinerant limit. We observe two magnetic ground states inside a heavy-fermion phase that are detached from unconventional superconductivity. The presence of two different magnetic phases provides evidence that increasing charge delocalization affects the magnetic interactions via anisotropic band hybridization.