This paper uses a trade liberalization episode in Colombia to examine the impact of trade on labor markets when labor and intermediate inputs are either complements or substitutes. By exploiting exogenous tariff variation, we isolate the effects of the reform into two distinct channels: a foreign input shock and a competition shock. While import competition reduces the wage bill, the input shock increases it. The input shock has positive effects on services and highly heterogeneous effects on agriculture and manufacturing. To explore these dynamics, we incorporate a CES production function, which allows labor and intermediate inputs to be complements or substitutes into a dynamic quantitative trade model. Using reduced-form coefficients, we calibrate the elasticity of substitution and find that labor and inputs are substitutes in agriculture and manufacturing but complements in services. We then simulate a counterfactual scenario based on changes in the tariff path. Our results show that allowing for a more flexible production function significantly alters the effects of trade on structural transformation. Specifically, the tariff shock leads to a reallocation of workers towards the service sector and fewer workers towards agriculture and manufacturing, compared to the Cobb-Douglas case. In terms of welfare, the average worker experiences similar gains under both the CES and Cobb-Douglas specifications. However, this result masks substantial heterogeneity, with some workers in manufacturing facing significant welfare losses.