/* ==========================================================================
   MANOSALVA - HERO V2
   ========================================================================== */


/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

.ms-hero {
    padding: clamp(.5rem, .8vw, 1rem);
}


.ms-hero > .ms-container {
    width: 100%;
    max-width: 1880px;

    margin-inline: auto;
}


/* --------------------------------------------------------------------------
   Main shell
   -------------------------------------------------------------------------- */

.ms-hero__grid {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 1.2fr)
        minmax(300px, .72fr);

    min-height: 540px;

    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            #033f73 0%,
            #064f8d 48%,
            #0b5b96 100%
        );

    border-radius: 22px;

    box-shadow:
        0 18px 45px rgba(10, 31, 56, .16);
}


/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.ms-hero__content {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding:
        clamp(2.5rem, 4vw, 4.5rem)
        clamp(2rem, 3vw, 4rem);

    color: #fff;
}


.ms-hero__content > .ms-hero__eyebrow,
.ms-hero__content > .ms-hero__title,
.ms-hero__content > .ms-hero__description,
.ms-hero__content > .ms-hero__actions,
.ms-hero__content > .ms-hero__trust {
    width: 100%;
    max-width: 600px;
}


.ms-hero__eyebrow {
    margin: 0 0 1.1rem;

    font-size: clamp(1.08rem, .98vw, 1.18rem);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, .85);
}


.ms-hero__title {
    max-width: 720px;

    margin: 0;

    font-size: clamp(2.85rem, 4.35vw, 4.65rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.035em;

    color: #fff;
}


.ms-hero__description {
    max-width: 650px;

    margin-top: 1.55rem;

    font-size: clamp(1.04rem, 1.06vw, 1.14rem);
    line-height: 1.55;

    color: rgba(255, 255, 255, .88);
}


.ms-hero__description p {
    margin: 0;

    color: inherit;
}


/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.ms-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    margin-top: 2rem;
}


.ms-hero__actions .ms-btn {
    padding: .88rem 1.5rem;

    font-size: 1.06rem;
}


/* Secondary button inside dark Hero */

.ms-hero .ms-btn--secondary {
    border-color: rgba(255, 255, 255, .85);

    color: #fff !important;
}


.ms-hero .ms-btn--secondary:hover,
.ms-hero .ms-btn--secondary:focus-visible {
    background: #fff;
    border-color: #fff;

    color: #153f70 !important;
}


/* --------------------------------------------------------------------------
   Trust items
   -------------------------------------------------------------------------- */

.ms-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.9rem;

    margin-top: 1.95rem;
}


.ms-hero__trust-item {
    display: flex;
    align-items: center;
    gap: .78rem;
}


.ms-hero__trust-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;
}


.ms-hero__trust-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.ms-hero__trust-content {
    display: flex;
    flex-direction: column;
}


.ms-hero__trust-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;

    color: #fff;
}


.ms-hero__trust-text {
    margin-top: .14rem;

    font-size: .95rem;
    line-height: 1.25;

    color: rgba(255, 255, 255, .76);
}


/* --------------------------------------------------------------------------
   Home Hero — trust items en una sola fila
   3 elementos perfectamente simétricos
   -------------------------------------------------------------------------- */

.ms-hero--home .ms-hero__trust {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    column-gap: 1rem;

    width: 100%;
    max-width: 600px;

    margin-top: 1.7rem;
}


.ms-hero--home .ms-hero__trust-item {
    display: grid;

    grid-template-columns:
        32px
        minmax(0, 1fr);

    align-items: center;

    gap: .6rem;

    min-width: 0;
}


.ms-hero--home .ms-hero__trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    margin: 0;
}


.ms-hero--home .ms-hero__trust-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.ms-hero--home .ms-hero__trust-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 108px;
    max-width: 108px;
    min-width: 0;
}


.ms-hero--home .ms-hero__trust-title {
    display: block;

    min-height: 2.3em;

    margin: 0;

    font-size: .82rem;
    font-weight: 700;
    line-height: 1.15;

    color: #ffffff;
}


.ms-hero--home .ms-hero__trust-text {
    margin-top: .08rem;

    font-size: .7rem;
    line-height: 1.18;
}


/* --------------------------------------------------------------------------
   Visual
   -------------------------------------------------------------------------- */

.ms-hero__visual {
    position: relative;

    min-width: 0;
    min-height: 100%;
}


.ms-hero__image-wrapper {
    position: absolute;
    inset: 0;

    overflow: hidden;
}


.ms-hero__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Focal position */

.ms-hero__visual--left .ms-hero__image {
    object-position: left center;
}


.ms-hero__visual--center .ms-hero__image {
    object-position: center center;
}


.ms-hero__visual--right .ms-hero__image {
    object-position: right center;
}


/* Transition between blue content and photo */

.ms-hero__visual::before {
    content: "";

    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;

    width: 32%;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            #07518d 0%,
            rgba(7, 81, 141, .72) 35%,
            rgba(7, 81, 141, 0) 100%
        );
}


/* --------------------------------------------------------------------------
   Benefits strip
   -------------------------------------------------------------------------- */

.ms-hero__benefits {
    display: grid;

    grid-template-columns:
        repeat(
            var(--ms-hero-benefits-count, 3),
            minmax(0, 1fr)
        );

    width: 100%;

    margin-top: 12px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        rgba(18, 53, 91, .10);

    border-radius: 16px;

    box-shadow:
        0 10px 32px
        rgba(18, 49, 82, .08);
}


.ms-hero__benefit {
    position: relative;

    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;

    padding:
        14px
        20px;
}


.ms-hero__benefit:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 22%;
    right: 0;
    bottom: 22%;

    width: 1px;

    background:
        rgba(18, 53, 91, .13);
}


/* Icon */

.ms-hero__benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex:
        0
        0
        48px;

    width: 48px;
    height: 48px;

    overflow: hidden;

    background: #eaf5ff;

    border-radius: 12px;
}


.ms-hero__benefit-icon-image {
    display: block;

    width: 29px;
    height: 29px;

    object-fit: contain;
}


/* Content */

.ms-hero__benefit-content {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.ms-hero__benefit-title {
    margin: 0 0 2px;

    color: #10234b;

    font-size: .94rem;
    font-weight: 800;
    line-height: 1.2;
}


.ms-hero__benefit-text {
    color: #526174;

    font-size: .74rem;
    line-height: 1.35;
}


/* --------------------------------------------------------------------------
   Form column
   -------------------------------------------------------------------------- */

.ms-hero__form {
    position: relative;
    z-index: 5;

    align-self: stretch;

    margin: 14px;

    padding: 18px;

    background: rgba(255, 255, 255, .97);

    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(12, 34, 60, .2);

    color: #1b2838;
}


/* --------------------------------------------------------------------------
   Form header
   -------------------------------------------------------------------------- */

.ms-hero__form-header {
    margin-bottom: .75rem;
}


.ms-hero__form-eyebrow {
    display: block;

    margin-bottom: .3rem;

    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: #64809f;
}


.ms-hero__form-title {
    margin: 0;

    font-size: clamp(1.35rem, 1.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.025em;

    color: #17283d;
}


/* --------------------------------------------------------------------------
   Forminator inside Hero
   -------------------------------------------------------------------------- */

.ms-hero__form .forminator-ui,
.ms-hero__form .forminator-custom-form {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* --------------------------------------------------------------------------
   Rows / columns
   -------------------------------------------------------------------------- */

.ms-hero__form .forminator-row {
    margin-top: 0 !important;
    margin-bottom: .55rem !important;
    margin-left: -.3rem !important;
    margin-right: -.3rem !important;
}


.ms-hero__form .forminator-row-last {
    margin-bottom: 0 !important;
}


.ms-hero__form .forminator-col {
    padding-left: .3rem !important;
    padding-right: .3rem !important;
}


/* --------------------------------------------------------------------------
   Labels
   -------------------------------------------------------------------------- */

.ms-hero__form .forminator-label {
    margin: 0 0 .25rem !important;

    font-size: .69rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    color: #35475b !important;
}


/*
 * Forminator Material utiliza labels flotantes.
 * Dentro del Hero las mantenemos siempre visibles.
 */

.ms-hero__form .forminator-label[class*="forminator-floating-"],
.ms-hero__form .forminator-is_active .forminator-label[class*="forminator-floating-"],
.ms-hero__form .forminator-is_filled .forminator-label[class*="forminator-floating-"] {
    position: static !important;

    display: block !important;

    top: auto !important;
    left: auto !important;

    margin: 0 0 .25rem !important;
    padding: 0 !important;

    opacity: 1 !important;

    transform: none !important;

    font-size: .69rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    color: #35475b !important;

    transition: none !important;
}


/* --------------------------------------------------------------------------
   Inputs
   -------------------------------------------------------------------------- */

.ms-hero__form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ms-hero__form select,
.ms-hero__form textarea {
    width: 100% !important;

    min-height: 38px !important;

    padding: .48rem .65rem !important;

    background: #fff !important;

    border: 1px solid #d8e0e8 !important;
    border-radius: 7px !important;

    box-shadow: none !important;

    font-size: .78rem !important;
    line-height: 1.2 !important;

    color: #1f2e3d !important;

    box-sizing: border-box !important;
}


/* Evita que Material añada desplazamientos al activar/rellenar */

.ms-hero__form .forminator-is_active .forminator-input,
.ms-hero__form .forminator-is_filled .forminator-input {
    padding: .48rem .65rem !important;
}


/* Focus */

.ms-hero__form input:not([type="checkbox"]):not([type="radio"]):focus,
.ms-hero__form select:focus,
.ms-hero__form textarea:focus {
    border-color: #0b5b96 !important;

    outline: none !important;

    box-shadow:
        0 0 0 2px rgba(11, 91, 150, .12) !important;
}


/* --------------------------------------------------------------------------
   Textarea del formulario del Hero
   -------------------------------------------------------------------------- */

.ms-hero__form
.forminator-custom-form
textarea {
    height: 124px !important;
    min-height: 124px !important;
    max-height: 124px !important;

    padding: 10px 11px !important;

    resize: none !important;

    line-height: 1.4 !important;

    overflow-y: auto;
}

.ms-hero__form
.forminator-row:has(textarea) {
    margin-bottom: .4rem !important;
}

/* --------------------------------------------------------------------------
   Select
   -------------------------------------------------------------------------- */

.ms-hero__form .forminator-select,
.ms-hero__form .forminator-select2 {
    width: 100% !important;
}


.ms-hero__form .select2-selection--single {
    min-height: 38px !important;

    background: #fff !important;

    border: 1px solid #d8e0e8 !important;
    border-radius: 7px !important;

    box-shadow: none !important;
}


.ms-hero__form .select2-selection__rendered {
    min-height: 38px !important;

    padding: .48rem 2rem .48rem .65rem !important;

    font-size: .78rem !important;
    line-height: 1.2 !important;

    color: #1f2e3d !important;
}


.ms-hero__form .select2-selection__arrow {
    min-height: 38px !important;
}


/* --------------------------------------------------------------------------
   Privacy / consent
   -------------------------------------------------------------------------- */

.ms-hero__form .forminator-field-consent > .forminator-label {
    margin-bottom: .18rem !important;

    font-size: .58rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    color: #506174 !important;
}


.ms-hero__form .forminator-checkbox {
    align-items: flex-start !important;

    gap: .5rem !important;

    margin-top: .08rem !important;
}


.ms-hero__form .forminator-checkbox-box {
    width: 14px !important;
    height: 14px !important;

    flex: 0 0 14px !important;

    margin-top: .08rem !important;
}


.ms-hero__form .forminator-checkbox-label,
.ms-hero__form .forminator-checkbox__label,
.ms-hero__form .forminator-consent__label {
    margin: 0 0 0 .22rem !important;

    font-size: .59rem !important;
    line-height: 1.28 !important;

    color: #566576 !important;
}


.ms-hero__form .forminator-consent__label p {
    margin: 0 !important;

    font-size: inherit !important;
    line-height: inherit !important;

    color: inherit !important;
}


.ms-hero__form .forminator-checkbox-label strong,
.ms-hero__form .forminator-checkbox__label strong,
.ms-hero__form .forminator-consent__label strong {
    font-size: inherit !important;
}


.ms-hero__form .forminator-checkbox-label a,
.ms-hero__form .forminator-checkbox__label a,
.ms-hero__form .forminator-consent__label a {
    color: #0b5b96 !important;

    text-decoration: underline;
}


/* --------------------------------------------------------------------------
   Validation
   -------------------------------------------------------------------------- */

.ms-hero__form .forminator-error-message {
    margin-top: .22rem !important;

    font-size: .62rem !important;
    line-height: 1.25 !important;
}


/* --------------------------------------------------------------------------
   Submit button
   -------------------------------------------------------------------------- */

.ms-hero__form .forminator-button,
.ms-hero__form .forminator-button-submit {
    width: 100% !important;

    min-height: 40px !important;

    padding: .65rem .9rem !important;

    background: #ed1c24 !important;

    border: 0 !important;
    border-radius: 8px !important;

    box-shadow: none !important;

    font-size: .8rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    color: #fff !important;

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


.ms-hero__form .forminator-button:hover,
.ms-hero__form .forminator-button-submit:hover {
    background: #d7141c !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(237, 28, 36, .22) !important;
}


/* --------------------------------------------------------------------------
   Form messages
   -------------------------------------------------------------------------- */

.ms-hero__form .forminator-response-message {
    margin-bottom: .55rem !important;

    padding: .55rem .65rem !important;

    font-size: .68rem !important;
    line-height: 1.3 !important;

    border-radius: 7px !important;
}


/* --------------------------------------------------------------------------
   Desktop wide
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {

    .ms-hero {
        padding-inline: 1rem;
    }


    .ms-hero > .ms-container {
        width: calc(100% - 4rem);
        max-width: none;
    }

}


/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {

    .ms-hero__grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, .9fr);

        min-height: auto;
    }


    .ms-hero__form {
        grid-column: 1 / -1;

        width: min(100% - 2rem, 680px);

        margin: 1rem auto 2rem;
    }

    .ms-hero__benefits {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}


.ms-hero__benefit:nth-child(2n)::after {
    display: none;
}

}


/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {

    .ms-hero {
        padding: .5rem;
    }


    .ms-hero > .ms-container {
        width: 100%;
    }


    .ms-hero__grid {
        grid-template-columns: 1fr;

        border-radius: 18px;
    }


    .ms-hero__content {
        padding: 2.2rem 1.4rem 1.8rem;
    }


    .ms-hero__title {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
    }


    .ms-hero__actions {
        flex-direction: column;
    }


    .ms-hero__actions .ms-btn {
        width: 100%;
    }


    .ms-hero__trust {
        flex-direction: column;
        gap: .8rem;
    }


    .ms-hero__visual {
        min-height: 340px;
    }


    .ms-hero__image-wrapper {
        position: absolute;
        inset: 0;
    }


    .ms-hero__visual::before {
        inset: 0 0 auto;

        width: 100%;
        height: 35%;

        background:
            linear-gradient(
                180deg,
                #07518d 0%,
                rgba(7, 81, 141, 0) 100%
            );
    }


.ms-hero__benefits {
    grid-template-columns:
        1fr;

    margin-top: 8px;

    border-radius: 14px;
}


.ms-hero__benefit {
    gap: 13px;

    padding:
        14px
        16px;
}


.ms-hero__benefit:nth-child(2n)::after {
    display: block;
}


.ms-hero__benefit:not(:last-child)::after {
    top: auto;
    right: 16px;
    bottom: 0;
    left: 16px;

    width: auto;
    height: 1px;
}


.ms-hero__benefit-icon {
    flex-basis: 44px;

    width: 44px;
    height: 44px;
}


.ms-hero__benefit-icon-image {
    width: 27px;
    height: 27px;
}


.ms-hero__benefit-title {
    font-size: .9rem;
}


.ms-hero__benefit-text {
    font-size: .72rem;
}


    .ms-hero__form {
        grid-column: auto;

        width: auto;

        margin: .75rem;

        padding: 1.25rem;
    }


    .ms-hero--home .ms-hero__trust {
        grid-template-columns:
            1fr;

        gap: .8rem;
    }


    .ms-hero--home .ms-hero__trust-item {
        grid-template-columns:
            34px
            minmax(0, 1fr);

        gap: .7rem;
    }


    .ms-hero--home .ms-hero__trust-icon {
        width: 34px;
        height: 34px;
    }


    .ms-hero--home .ms-hero__trust-content {
        width: auto;
        max-width: none;
    }


    .ms-hero--home .ms-hero__trust-title {
        min-height: 0;

        font-size: .9rem;
    }


    .ms-hero--home .ms-hero__trust-text {
        font-size: .75rem;
    }

}