/* ==========================================================
   MANOSALVA — PRODUCT OFFERS
========================================================== */

.ms-product-offers {
    position: relative;

    padding:
        clamp(48px, 6vw, 72px)
        clamp(20px, 4vw, 64px);

    box-sizing: border-box;
}


.ms-product-offers *,
.ms-product-offers *::before,
.ms-product-offers *::after {
    box-sizing: border-box;
}


/* ==========================================================
   FONDOS
========================================================== */

.ms-product-offers--bg-white {
    background: #ffffff;
}


.ms-product-offers--bg-soft-blue {
    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #f1f7fc 100%
        );
}


/* ==========================================================
   CONTENEDOR
========================================================== */

.ms-product-offers__inner {
    width: min(100%, 1360px);

    margin: 0 auto;
}


/* ==========================================================
   CABECERA
========================================================== */

.ms-product-offers__top {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 32px;

    margin-bottom:
        clamp(26px, 3vw, 34px);
}


.ms-product-offers__header {
    max-width: 800px;

    margin: 0;

    text-align: left;
}


.ms-product-offers__eyebrow {
    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: #ed1c2e;
}


.ms-product-offers__title {
    position: relative;

    width: fit-content;
    max-width: 100%;

    margin:
        0
        0
        9px;

    padding-bottom: 10px;

    font-size:
        clamp(27px, 2.8vw, 38px);

    font-weight: 800;
    line-height: 1.08;

    color: #10234b;
}


.ms-product-offers__title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 54px;
    height: 3px;

    border-radius: 999px;

    background: #ed1c2e;
}


.ms-product-offers__description {
    max-width: 720px;

    margin: 0;

    font-size: 14px;
    line-height: 1.5;

    color: #5d6c80;
}


.ms-product-offers__description p {
    margin:
        0
        0
        8px;
}


.ms-product-offers__description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   CTA GENERAL
========================================================== */

.ms-product-offers__cta {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 42px;

    padding:
        10px
        20px;

    border:
        1px solid
        rgba(7, 83, 154, 0.35);

    border-radius: 999px;

    background: #ffffff;

    color: #07539a;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 7px 18px
        rgba(15, 48, 84, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.ms-product-offers
a.ms-product-offers__cta,
.ms-product-offers
a.ms-product-offers__cta:visited {
    color: #07539a !important;

    text-decoration: none;
}

.ms-product-offers__cta::after {
    content: "→";

    font-size: 15px;
}


.ms-product-offers
a.ms-product-offers__cta:hover,
.ms-product-offers
a.ms-product-offers__cta:focus-visible {
    transform: translateY(-2px);

    background: #07539a;

    color: #ffffff !important;

    box-shadow:
        0 11px 24px
        rgba(15, 48, 84, 0.14);
}


/* ==========================================================
   SLIDER
========================================================== */

.ms-product-offers__slider {
    position: relative;
}


/* ==========================================================
   TRACK
========================================================== */

.ms-product-offers__grid {
    display: flex;

    align-items: stretch;

    gap: 20px;

    width: 100%;

    overflow-x: auto;
    overflow-y: visible;

    padding:
        6px
        2px
        14px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;

    overscroll-behavior-inline: contain;
}


.ms-product-offers__grid::-webkit-scrollbar {
    display: none;
}


/* ==========================================================
   TAMAÑO DE TARJETAS
========================================================== */

.ms-product-offers--cols-4
.ms-product-card {
    flex-basis:
        clamp(
            255px,
            21.5vw,
            292px
        );
}


.ms-product-offers--cols-3
.ms-product-card {
    flex-basis:
        clamp(
            285px,
            28vw,
            355px
        );
}


/* ==========================================================
   FLECHAS
========================================================== */

.ms-product-offers__arrow {
    position: absolute;

    z-index: 5;

    top: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border:
        1px solid
        rgba(13, 50, 91, 0.10);

    border-radius: 50%;

    background: #ffffff;

    color: #10234b;

    font-size: 18px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 24px
        rgba(15, 48, 84, 0.13);

    transform: translateY(-50%);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}


.ms-product-offers__arrow:hover:not(:disabled) {
    background: #10234b;

    color: #ffffff;

    transform:
        translateY(-50%)
        scale(1.05);
}


.ms-product-offers__arrow:disabled {
    opacity: 0.28;

    cursor: default;
}


.ms-product-offers__arrow--prev {
    left: -23px;
}


.ms-product-offers__arrow--next {
    right: -23px;
}


.ms-product-offers__slider:not(.is-scrollable)
.ms-product-offers__arrow {
    display: none;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1099.98px) {

    .ms-product-offers__inner {
        width: min(100%, 960px);
    }


    .ms-product-offers--cols-3
    .ms-product-card,
    .ms-product-offers--cols-4
    .ms-product-card {
        flex-basis:
            clamp(
                255px,
                42vw,
                285px
            );
    }


    .ms-product-offers__arrow--prev {
        left: -18px;
    }


    .ms-product-offers__arrow--next {
        right: -18px;
    }

}


/* ==========================================================
   MÓVIL
========================================================== */

@media (max-width: 699.98px) {

    .ms-product-offers {
        padding:
            44px
            16px;
    }


    .ms-product-offers__top {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

        margin-bottom: 24px;
    }


    .ms-product-offers__title {
        font-size:
            clamp(26px, 8vw, 32px);
    }


    .ms-product-offers__cta {
        min-height: 40px;
    }


    .ms-product-offers--cols-3
    .ms-product-card,
    .ms-product-offers--cols-4
    .ms-product-card {
        flex-basis:
            min(
                82vw,
                305px
            );
    }


    .ms-product-offers__grid {
        gap: 14px;

        padding-bottom: 12px;
    }


    .ms-product-offers__arrow {
        width: 38px;
        height: 38px;

        font-size: 16px;
    }


    .ms-product-offers__arrow--prev {
        left: -8px;
    }


    .ms-product-offers__arrow--next {
        right: -8px;
    }

}