Relates to Heterocyclic compounds of formula (i) where the ring is pyridine, pyrazine, among others The Ring B is C3 C6 cycloalkyl, aryl C6 C1, R1 is hydroxyl, among othersC1 C8 alkyl - or alkoxy C1 C8 R2 is CN, halogen, Hydroxy, among others R3, R4 and R5 are each CN, halogen, alkyl C1 C8Among others, ra and RB are each h, or C1 C8 alkyl X is absent or - L - T - (crxry), where X is o, among others, RX and ry are each h, alkyl C8 hidroxialquilo C1, C1, C8, among othersQ and T are 0 to 3 M and P are 0 to 2 X, y and Z are a Point of Union.Preferred compounds are: N - (4 - (3 - (4-chlorophenyl) pirazin - 2 - il) phenyl) - 2 - (4 - (1.1 - difluoropropil) phenyl) acetamide 2 - (4 - (1)1 - difluoropropil) phenyl) - N - (4 - (3 - (2-fluorophenyl) pirazin - 2 - il) phenyl) acetamide among others. It also relates to a Pharmaceutical composition.These compounds are modulators of the Orphan receptor gamma T associated with retinoids (ROR gamma (T) to be useful in the treatment of rheumatoid arthritis, psoriasis, asthmaSE REFIERE A COMPUESTOS HETEROCICLOS DE FORMULA (I) DONDE EL ANILLO A ES PIRAZINA, PIRIDINA, ENTRE OTROS EL ANILLO B ES CICLOALQUILO C3-C6, ARILO C6-C14, ENTRE OTROS R1 ES HIDROXILO, ALQUILO C1-C8 O ALCOXI C1-C8 R2 ES CN, HALOGENO, HIDROXILO, ENTRE OTROS R3, R4 Y R5 SON CADA UNO HALOGENO, CN, ALQUILO C1-C8, ENTRE OTROS Ra Y Rb SON CADA UNO H O ALQUILO C1-C8 L ESTA AUSENTE O ES -X-(CRxRy)t-, EN DONDE X ES O, ENTRE OTROS Rx Y Ry SON CADA UNO H, ALQUILO C1-C8, HIDROXIALQUILO C1-C8, ENTRE OTROS n, q Y t SON DE 0 A 3 m Y p SON DE 0 A 2 x, y Y z SON UN PUNTO DE UNION. SON COMPUESTOS PREFERIDOS: N-(4-(3-(4-CLOROFENIL)PIRAZIN-2-IL)FENIL)-2-(4-(1,1-DIFLUOROPROPIL)FENIL)ACETAMIDA 2-(4-(1,1-DIFLUOROPROPIL)FENIL)-N-(4-(3-(2-FLUOROFENIL)PIRAZIN-2-IL)FENIL)ACETAMIDA ENTRE OTROS. TAMBIEN SE REFIERE A UNA COMPOSICION FARMACEUTICA. DICHOS COMPUESTOS SON MODULADORES DEL RECEPTOR HUERFANO GAMMA T ASOCIADO CON RETINOIDES (ROR GAMMA T) SIENDO UTILES EN EL TRATAMIENTO DE ARTRITIS REUM