First-order phase transitions and magnetocaloric effect door