A compound of formula I, in any of its stereoisomeric forms or a mixture of stereoisomeric forms in any proportion, or a pharmaceutically acceptable salt thereof, wherein Ar is selected from the series consisting of phenyl and an aromatic, monocyclic heterocyclic group, of 5 members or 6 members, comprising 1, 2 or 3 heteroatoms in the same or different ring, selected from the series consisting of nitrogen, oxygen and sulfur, and is joined by a carbon atom of the ring, which are all not substituted or substituted with one or more same or different R5 substituents; n is selected from the series consisting of 0, 1 and 2; X is selected from the series consisting of N and CH; Z is selected from the series consisting of a direct link, O, S and N (R10); R1 is selected from the series consisting of H, -N (R11) -R12, -N (R13) -C (O) -R14, -N (R13) -S (O) 2-R15, -N (R13 ) -C (O) -NH-R16, (C1-C4) alkyl and -C1-C4 alkyl -O-R17; R2 is selected from the series consisting of halogen, (C1-C4) alkyl, -O-(C1-C4) alkyl and -CN; R3 is selected from the series consisting of H, (C1-C8) alkyl, R30 and -C1-C4 alkyl -R30, wherein (C1-C8) alkyl is not substituted or substituted with one or more substituents R31 identical or different; R5 is selected from the series consisting of halogen, (C1-C4) alkyl, cycloalkyl (C3-C7), -alkyl (C1-C4) -cycloalkyl (C3-C7), -O-(C1-C4) alkyl, -O-C3-C7 cycloalkyl, -O-C1-C4 alkyl-C3-C7 cycloalkyl, -C (O) -N (R6) -R7 and -CN, and two R5 groups attached to atoms Carbon atoms adjacent to the Ar ring, together with the carbon atoms that carry them, can form an unsaturated, monocyclic, 5-membered to 8-membered ring, comprising 0, 1 or 2 same or different ring heteroatoms selected from the series consisting of nitrogen, oxygen and sulfur, and which is not substituted or substituted with one or more same or different R8 substituents; R6 and R7 are independently selected from each other from the series consisting of H and (C1-C4) alkyl; R8 is selected from the series