Mushroom chips - cant change text color

hello,

use:

        ha-card {
          {% if states('sensor.precio') > '0.25' %}
            --text-color: red;
            --card-mod-icon-color: red;
            --chip-background:#f5274d;
          {% elif states('sensor.precio') > '0.17' %}
            --text-color: yellow;
            --card-mod-icon-color: yellow;
            --chip-background: #f4c700;
          {% elif states('sensor.precio') > '0.10' %}
            --text-color: green;
            --card-mod-icon-color: green;
            --chip-background: #56b32e;
          {% endif %}
        }

like suggested here:
https://community.home-assistant.io/t/mushroom-cards-card-mod-styling-config-guide/600472

result:
image