.fh-marquee {
    overflow: hidden;
    border-radius: 42px;
    border: 4px solid #111111;
    white-space: nowrap;
    display: flex;
    align-items: stretch;
}

.fh-marquee__track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    will-change: transform;
    animation-name: fhMarqueeLoop;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 28s;
}

.fh-marquee-wrap.is-reverse .fh-marquee__track {
    animation-name: fhMarqueeLoopReverse;
}

.fh-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 16px 4px;
}

.fh-marquee__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.fh-marquee__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fh-marquee__text {
    font-size: 22px;
    font-family: var(--font-outfit);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Variantes */
.fh-marquee-wrap.is-cream .fh-marquee {
    background: #ffefcb;
}

.fh-marquee-wrap.is-cream .fh-marquee__text {
    color: #111111;
}

.fh-marquee-wrap.is-blue .fh-marquee {
    background: #1f2d5c;
}

.fh-marquee-wrap.is-blue .fh-marquee__text {
    color: #ffefcb;
}

.fh-marquee-wrap.is-red .fh-marquee {
    background: #ff0033;
}

.fh-marquee-wrap.is-red .fh-marquee__text {
    color: #ffefcb;
}

/* Tamaños */
.fh-marquee-wrap.is-sm .fh-marquee__item {
    padding: 12px 4px;
}

.fh-marquee-wrap.is-sm .fh-marquee__text {
    font-size: 18px;
}

.fh-marquee-wrap.is-sm .fh-marquee__icon {
    width: 26px;
    height: 26px;
}

.fh-marquee-wrap.is-md .fh-marquee__text {
    font-size: 20px;
}

.fh-marquee-wrap.is-md .fh-marquee__icon {
    width: 34px;
    height: 34px;
}

.fh-marquee-wrap.is-lg .fh-marquee__item {
    padding: 20px 6px;
}

.fh-marquee-wrap.is-lg .fh-marquee__text {
    font-size: 28px;
}

.fh-marquee-wrap.is-lg .fh-marquee__icon {
    width: 42px;
    height: 42px;
}

/* Hover pause */
.fh-marquee:hover .fh-marquee__track {
    animation-play-state: paused;
}

/* cápsula fija */
.fh-marquee__badge {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    background: #000000;
    color: #ffffff;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    border-radius: 0 999px 999px 0;
    margin: 0;
    border-right: 4px solid #111111;
}

.fh-marquee__badge-text {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 600;
}

/* área donde corre la huincha */
.fh-marquee__viewport {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* que el texto no se pegue al badge */
.fh-marquee__item:first-child {
    padding-left: 8px;
}

.fh-marquee__badge--link {
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fh-marquee__badge--link:hover {
    opacity: 0.92;
}

.fh-marquee__badge--link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -6px;
}

/* Keyframes */
@keyframes fhMarqueeLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes fhMarqueeLoopReverse {
    0% {
        transform: translate3d(-50%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fh-marquee {
        border-width: 3px;
        border-radius: 20px;
    }

    .fh-marquee__item {
        gap: 8px;
        padding: 14px 2px;
    }

    .fh-marquee__text {
        font-size: 18px;
    }

    .fh-marquee__icon {
        width: 26px;
        height: 26px;
    }

    .fh-marquee__badge {
        padding: 0 14px;
        font-size: 18px;
        gap: 8px;
    }

    .fh-marquee__track {
        padding-left: 14px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .fh-marquee__track {
        animation: none !important;
    }
}