A compound of the formula (I): ** Formula ** or a pharmaceutically acceptable salt and ester thereof, wherein: A is -C (R2) (R3) -, or C3-C6 cycloalkylene; said C3-C6 cycloalkylene being unsubstituted or substituted with 1 to 4 substituents independently selected from the group consisting of halogen, hydroxy, C1-C4 alkyl and C1-C4 alkoxy; wherein R2 and R3 are independently selected from the group consisting of halogen and C1-C4 alkyl, said C1-C4 alkyl being unsubstituted or substituted with 1 to 4 substituents independently selected from the group consisting of halogen, hydroxy and C1 alkoxy -C4; or R2 and R3, together with the atom to which they are attached, form a 3-6 member ring; said ring being unsubstituted or substituted with 1 to 4 substituents independently selected from the group consisting of halogen, hydroxy, C1-C4 alkyl and C1-C4 alkoxy; B is -O- or -N (H) -; R1 is carboxy, tetrazolyl, 5-oxo-1,2,4-oxadiazol-3-yl, 5-oxo-1,2,4-thiadiazol-3-yl or hydroxy; R4 is a group selected from the group consisting of C4-C6 cycloalkyl, heterocyclyl and -CH2-R5; said C4-C8 cycloalkyl being unsubstituted or substituted with 1 to 4 substituents independently selected from the group consisting of hydroxy, oxo and C1-C4 alkoxy; wherein R5 is selected from the group consisting of trifluoromethyl, isopropyl and C4-C8 cycloalkyl; said C4-C6 cycloalkyl being unsubstituted or substituted with 1 to 4 substituents independently selected from the group consisting of hydroxy, oxo, C1-C4 alkoxy and hydroxy-C1-C4 alkyl; m is 1 or 2; and n is 1 or 2.Un compuesto de la fórmula (I):**Fórmula** o una sal y éster farmacéuticamente aceptables del mismo, en la que: A es -C(R2)(R3)-, o cicloalquileno C3-C6; estando dicho cicloalquileno C3-C6 no sustituido o sustituido con de 1 a 4 sustituyentes independientemente seleccionados del grupo que consiste en halógeno, hidroxi, alquilo C1-C4 y alcoxi C1-C4; en la que R2 y R3 están independientemente seleccionados del grupo que consiste en halógeno