BOGOTÁ—Colombia's cocaine industry, which once accounted for 6.3% of the nation's economy, has fallen on hard times since the days of Pablo Escobar's Medellín cartel.

Cocaine's share of gross domestic product has dropped as Colombia's drug cartels have lost control of key smuggling routes to cartels in Mexico and elsewhere, and as legal industries such as oil and mining have taken off.

Illegal...