{% capture marquee_items %} {% if section.blocks.size > 0 %} {% for block in section.blocks %}
{% case block.settings.icon %} {% when 'payment' %} {{ 'icon-marquee-card.svg' | inline_asset_content }} {% when 'installments' %} {{ 'icon-marquee-wallet.svg' | inline_asset_content }} {{ 'icon-marquee-wallet-flap.svg' | inline_asset_content }} {{ 'icon-marquee-wallet-mark.svg' | inline_asset_content }} {% when 'guarantee' %} {{ 'icon-marquee-guarantee.svg' | inline_asset_content }} {% else %} {{ 'icon-marquee-shipping.svg' | inline_asset_content }} {% endcase %}

{{ block.settings.title }} {{ block.settings.text }}

{% endfor %} {% else %}
{{ 'icon-marquee-shipping.svg' | inline_asset_content }}

{{ 'marquee.shipping_title' | t }}{{ 'marquee.shipping_text' | t }}

{{ 'icon-marquee-card.svg' | inline_asset_content }}

{{ 'marquee.payment_title' | t }}{{ 'marquee.payment_text' | t }}

{{ 'icon-marquee-wallet.svg' | inline_asset_content }} {{ 'icon-marquee-wallet-flap.svg' | inline_asset_content }} {{ 'icon-marquee-wallet-mark.svg' | inline_asset_content }}

{{ 'marquee.installments_title' | t }}{{ 'marquee.installments_text' | t }}

{{ 'icon-marquee-guarantee.svg' | inline_asset_content }}

{{ 'marquee.guarantee_title' | t }}{{ 'marquee.guarantee_text' | t }}

{% endif %} {% endcapture %}
{{ marquee_items }}
{% stylesheet %} .marquee-section { min-width: 0; overflow: hidden; } .marquee { display: flex; align-items: center; width: 100%; min-width: 0; max-width: 100%; height: 100px; overflow: hidden; background: linear-gradient(90deg, #7dcaaf 0%, #a9ddfa 70.064%, #d2ebf9 133.7%); } .marquee__track { display: flex; width: max-content; animation: marquee-scroll 36s linear infinite; } .marquee__set { display: flex; align-items: center; gap: 192px; padding-right: 192px; } .marquee__item { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; } .marquee__badge { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; flex: 0 0 45px; border: 1px solid #000; border-radius: 50%; background: transparent; } .marquee__glyph { position: relative; display: block; width: 20px; height: 20px; } .marquee__glyph > svg, .marquee__layer { position: absolute; display: block; } .marquee__layer svg { position: static; display: block; } .marquee__glyph--shipping svg { top: 2px; left: 0; } .marquee__glyph--payment svg { top: 2px; left: 0; } .marquee__glyph--guarantee svg { top: 0; left: 0; } .marquee__layer--body { top: 6px; left: 1px; } .marquee__layer--flap { top: 1px; left: 4px; } .marquee__layer--mark { top: 2px; left: 7px; } .marquee__copy { margin: 0; color: #000; font-size: 14px; font-weight: 300; line-height: 20px; white-space: nowrap; } .marquee__copy strong { display: block; font-weight: 700; } @keyframes marquee-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } } @media (max-width: 1119px) { .marquee { height: 70px; } .marquee__set { gap: 50px; padding-right: 50px; } .marquee__item { gap: 15px; } .marquee__badge { width: 35px; height: 35px; flex-basis: 35px; } .marquee__copy { font-size: 12px; line-height: 16px; } } @media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } } {% endstylesheet %} {% schema %} { "name": "t:marquee.name", "class": "marquee-section", "disabled_on": { "groups": ["header", "footer"] }, "settings": [], "blocks": [ { "type": "item", "name": "t:marquee.item", "settings": [ { "type": "select", "id": "icon", "label": "t:marquee.icon", "default": "shipping", "options": [ { "value": "shipping", "label": "t:marquee.icon_shipping" }, { "value": "payment", "label": "t:marquee.icon_payment" }, { "value": "installments", "label": "t:marquee.icon_installments" }, { "value": "guarantee", "label": "t:marquee.icon_guarantee" } ] }, { "type": "text", "id": "title", "label": "t:marquee.title", "default": "Envío gratis" }, { "type": "text", "id": "text", "label": "t:marquee.text", "default": "Desde $699 a todo México." } ] } ], "presets": [ { "name": "t:marquee.name", "blocks": [ { "type": "item", "settings": { "icon": "shipping", "title": "Envío gratis", "text": "Desde $699 a todo México." } }, { "type": "item", "settings": { "icon": "payment", "title": "Pago seguro", "text": "Métodos confiables y cifrados." } }, { "type": "item", "settings": { "icon": "installments", "title": "Pago a plazos", "text": "Con Mercado Pago, Kueski Pay o Aplazo." } }, { "type": "item", "settings": { "icon": "guarantee", "title": "Garantía de entrega", "text": "Reenvío sin costo si algo falla." } } ] } ] } {% endschema %}