The invention relates to compounds acting as antagonists of Transient Receptor Potential cation channel subfamily M member 8 (TRPM8), and having formula (I):;;Said compounds are useful in the treatment of diseases associated with activity of TRPM8 such as pain, ischaemia, neurodegeneration, stroke, psychiatric disorders, itch, irritable bowel diseases, cold-induced and/or exacerbated-respiratory disorders, urological disorders, corneal disorders associated to disturbances in the production of the tears and/or altered blinking such as epiphora and dry eye disease.