Hodgins points out that Nicaraguan worldview was impressed by hundred years of American aggression, first to guarantee that no second transoceanic canal will compete with the Panama Canal. Second, Nicaragua was "invaded" by American gold miners in transit to California, leaving a rather barbaric impression. Nicaraguans were also aware of the plans transfer the cotton/slave economy of the South, after the victory of the North, to their land. The Marine invasion in the nineteen twenties finally confirmed their fears of becoming an American colony.
Those were the ideological roots of Sandino, nothing to do with Marx or Russia. It is amazing that Reagan could be so blind, seeing Communists where there were none. In fact, the Sandinistas, when in power, held democratic elections and lost. And they moved aside and transferred the government to the Chamorro widow. They spent sixteen years in the opposition to recover the power. Today, the Sandinista leader Ortega and his family rule the country, more or less following the Somoza dynasty model. This time America lets it be.