/* ==========================================================
   MANOSALVA — HOME
   ========================================================== */

/* ==========================================================
   HOME — PROCESO
   ========================================================== */

#proceso-home .ms-process__steps {
    width: 100%;
    max-width: 1400px;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 36px !important;

    margin:
        0 auto !important;
}


#proceso-home .ms-process__step {
    min-width: 0;

    padding:
        24px 22px !important;
}


/* ==========================================================
   HOME — PROCESO — TABLET
   ========================================================== */

@media (max-width: 1099.98px) {

    #proceso-home .ms-process__steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 24px !important;
    }

}


/* ==========================================================
   HOME — PROCESO — MÓVIL
   ========================================================== */

@media (max-width: 767.98px) {

    #proceso-home .ms-process__steps {
        grid-template-columns:
            1fr !important;

        gap: 16px !important;
    }


    #proceso-home .ms-process__step {
        padding:
            22px 20px !important;
    }

}

/* ==========================================================
   HOME — RESEÑAS + FAQ
   ========================================================== */


/*
 * Reviews y FAQ son dos módulos ACF independientes,
 * agrupados únicamente en Home mediante:
 *
 * .ms-home-social-proof
 */


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

.ms-home-social-proof {
    display: grid;

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

    align-items: stretch;

    gap: 30px;

    width: 100%;

    padding:
        48px
        clamp(42px, 4.8vw, 76px)
        72px;

    background: #ffffff;

    box-sizing: border-box;
}


/* ==========================================================
   RESET DE LOS DOS MÓDULOS
   ========================================================== */

.ms-home-social-proof
#reviews-home,

.ms-home-social-proof
#faq-home {
    position: relative;

    float: none !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    height: 100%;

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

    background: transparent !important;

    box-sizing: border-box;

    overflow: visible !important;
}


/* ==========================================================
   CONTENEDORES VISUALES
   ========================================================== */

.ms-home-social-proof
#reviews-home
> .container,

.ms-home-social-proof
#faq-home
> .container {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100% !important;
    max-width: none !important;

    height: 100%;
    min-height: 450px;

    margin: 0 !important;

    padding:
        28px 30px 30px !important;

    border-radius: 20px;

    box-sizing: border-box;
}


/* ==========================================================
   REVIEWS — FONDO
   ========================================================== */

.ms-home-social-proof
#reviews-home
> .container {
    background:
        linear-gradient(
            135deg,
            #edf6ff 0%,
            #e5f0fa 100%
        ) !important;

    border:
        1px solid
        rgba(40, 72, 142, .08) !important;

    box-shadow:
        0 12px 32px
        rgba(16, 40, 80, .055);
}


/* ==========================================================
   FAQ — FONDO
   ========================================================== */

.ms-home-social-proof
#faq-home
> .container {
    background:
        linear-gradient(
            135deg,
            #f2f7fb 0%,
            #e6eef6 100%
        ) !important;

    border:
        1px solid
        rgba(40, 72, 142, .09) !important;

    box-shadow:
        0 10px 28px
        rgba(16, 40, 80, .045);
}


/* ==========================================================
   REVIEWS — ESTRUCTURA
   ========================================================== */

#reviews-home .row {
    display: flex !important;
    flex-direction: column !important;

    flex: 1;

    margin: 0 !important;
}


#reviews-home
.column-left,

#reviews-home
.column-right {
    position: relative !important;

    flex:
        0 0 auto !important;

    width:
        100% !important;

    max-width:
        100% !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


/* ==========================================================
   REVIEWS — LIMPIEZA HEREDADA
   ========================================================== */

#reviews-home
.column-right::before,

#reviews-home
.column-right::after,

#reviews-home
.swiper::before,

#reviews-home
.swiper::after,

#reviews-home
.swiper-slide::before,

#reviews-home
.swiper-slide::after {
    display: none !important;

    content: none !important;

    pointer-events: none !important;
}


/* ==========================================================
   REVIEWS — CABECERA
   ========================================================== */

#reviews-home
.column-left {
    margin-bottom:
        22px !important;
}


#reviews-home
.column-left
> .heading {
    position: relative;

    width: fit-content;

    margin:
        0 0 11px !important;

    padding:
        0 0 10px !important;

    color:
        #10234b !important;

    font-size:
        clamp(
            1.65rem,
            2.1vw,
            2rem
        ) !important;

    font-weight:
        800 !important;

    line-height:
        1.08 !important;

    text-align:
        left !important;
}


#reviews-home
.column-left
> .heading::before {
    display: none !important;

    content: none !important;
}


#reviews-home
.column-left
> .heading::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    display: block !important;

    width: 58px;
    height: 4px;

    margin: 0 !important;

    background:
        #ed1c2e;

    border-radius:
        999px;

    transform:
        none !important;
}


#reviews-home
.column-left
> .subheading {
    display: block !important;

    max-width: 590px;

    margin:
        0 0 12px !important;

    color:
        #56677a !important;

    font-size:
        .93rem !important;

    font-weight:
        400 !important;

    line-height:
        1.48 !important;

    text-align:
        left !important;
}


/*
 * Ocultamos la descripción heredada larga.
 * La entradilla superior ya cumple esa función.
 */

#reviews-home
.column-left
> .description {
    display: none !important;
}


/* ==========================================================
   REVIEWS — BOTÓN ESCRIBIR RESEÑA
   ========================================================== */

#reviews-home
.btn.btn-link {
    display:
        inline-flex !important;

    align-items:
        center;

    justify-content:
        center;

    gap: 8px;

    width:
        fit-content !important;

    min-height:
        0 !important;

    margin:
        2px 0 0 !important;

    padding:
        9px 16px !important;

    border:
        1px solid
        #ed1c2e !important;

    border-radius:
        999px !important;

    background:
        #ffffff !important;

    color:
        #ed1c2e !important;

    -webkit-text-fill-color:
        #ed1c2e !important;

    font-size:
        .86rem !important;

    font-weight:
        800 !important;

    line-height:
        1.2 !important;

    text-decoration:
        none !important;

    box-shadow:
        none !important;

    cursor:
        pointer !important;

    pointer-events:
        auto !important;

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


#reviews-home
.btn.btn-link
.button--text {
    color:
        inherit !important;

    -webkit-text-fill-color:
        inherit !important;
}


#reviews-home
.btn.btn-link
.button--icon {
    display:
        inline-flex;

    align-items:
        center;

    transition:
        transform .2s ease;
}


#reviews-home
.btn.btn-link
.button--icon
svg {
    width: 18px;
    height: 12px;
}


#reviews-home
.btn.btn-link
.button--icon
svg path {
    fill:
        #ed1c2e !important;
}


@media (hover: hover) {

    #reviews-home
    .btn.btn-link:hover {
        background:
            #ed1c2e !important;

        color:
            #ffffff !important;

        -webkit-text-fill-color:
            #ffffff !important;

        transform:
            translateY(-2px);

        box-shadow:
            0 8px 18px
            rgba(237, 28, 46, .16) !important;
    }


    #reviews-home
    .btn.btn-link:hover
    .button--text {
        color:
            #ffffff !important;

        -webkit-text-fill-color:
            #ffffff !important;
    }


    #reviews-home
    .btn.btn-link:hover
    .button--icon {
        transform:
            translateX(3px);
    }


    #reviews-home
    .btn.btn-link:hover
    .button--icon
    svg path {
        fill:
            #ffffff !important;
    }

}


/* ==========================================================
   REVIEWS — SLIDER
   ========================================================== */

#reviews-home
.column-right {
    margin-top:
        auto !important;

    padding:
        0 30px !important;

    pointer-events:
        auto !important;
}


#reviews-home
.swiper {
    position:
        relative !important;

    width:
        100% !important;

    max-width:
        none !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        0 0 28px !important;

    overflow:
        hidden !important;

    background:
        transparent !important;

    pointer-events:
        auto !important;
}


#reviews-home
.swiper-wrapper {
    align-items:
        stretch !important;
}


#reviews-home
.swiper-slide {
    position:
        relative !important;

    display:
        flex !important;

    flex-direction:
        column !important;

    min-height:
        190px !important;

    height:
        auto !important;

    padding:
        20px 22px !important;

    background:
        #ffffff !important;

    border:
        1px solid
        rgba(7, 59, 112, .09) !important;

    border-radius:
        16px !important;

    box-shadow:
        0 8px 22px
        rgba(15, 48, 84, .07) !important;

    color:
        #10234b !important;

    box-sizing:
        border-box;

    pointer-events:
        auto !important;
}


/* ==========================================================
   REVIEWS — NOMBRE
   ========================================================== */

#reviews-home
.swiper-slide
> .heading {
    order: 1;

    margin:
        0 0 7px !important;

    padding:
        0 !important;

    border:
        0 !important;

    color:
        #10234b !important;

    font-size:
        1rem !important;

    font-weight:
        800 !important;

    line-height:
        1.2 !important;

    text-align:
        left !important;
}


#reviews-home
.swiper-slide
> .heading::before,

#reviews-home
.swiper-slide
> .heading::after {
    display:
        none !important;

    content:
        none !important;
}


/* ==========================================================
   REVIEWS — ESTRELLAS
   ========================================================== */

#reviews-home
.swiper-slide
> .rating {
    order: 2;

    display:
        flex !important;

    justify-content:
        flex-start !important;

    gap: 2px;

    margin:
        0 0 7px !important;
}


#reviews-home
.rating
.star {
    display:
        inline-flex !important;
}


#reviews-home
.rating
.star
svg {
    width: 18px;
    height: 18px;
}


#reviews-home
.rating
.star
svg.filled
path {
    fill:
        #f6aa00 !important;
}


/* ==========================================================
   REVIEWS — TIPO DE CLIENTE
   ========================================================== */

#reviews-home
.swiper-slide
> .subheading {
    order: 3;

    display:
        block !important;

    margin:
        0 0 10px !important;

    color:
        #697588 !important;

    font-size:
        .76rem !important;

    font-weight:
        400 !important;

    line-height:
        1.35 !important;

    text-align:
        left !important;
}


/* ==========================================================
   REVIEWS — TEXTO
   ========================================================== */

#reviews-home
.swiper-slide
> .description {
    order: 4;

    margin:
        0 !important;

    color:
        #4f6073 !important;

    font-size:
        .88rem !important;

    font-weight:
        400 !important;

    line-height:
        1.45 !important;

    text-align:
        left !important;
}


#reviews-home
.swiper-slide
> .description p {
    margin:
        0 !important;

    color:
        inherit !important;
}


/* ==========================================================
   REVIEWS — PAGINACIÓN
   ========================================================== */

#reviews-home
.swiper-pagination {
    position:
        absolute !important;

    bottom:
        2px !important;

    left:
        0 !important;

    width:
        100% !important;

    pointer-events:
        auto !important;
}


#reviews-home
.swiper-pagination-bullet {
    width: 7px;
    height: 7px;

    opacity: .35;

    background:
        #7c8da2;

    cursor:
        pointer !important;

    pointer-events:
        auto !important;
}


#reviews-home
.swiper-pagination-bullet-active {
    opacity: 1;

    background:
        #ed1c2e !important;
}


/* ==========================================================
   REVIEWS — FLECHAS
   ========================================================== */

#reviews-home
.column-right
> .swiper-button-prev,

#reviews-home
.column-right
> .swiper-button-next {
    position:
        absolute !important;

    top:
        50% !important;

    display:
        flex !important;

    align-items:
        center;

    justify-content:
        center;

    width:
        38px !important;

    height:
        38px !important;

    margin:
        0 !important;

    border:
        1px solid
        rgba(7, 59, 112, .09);

    border-radius:
        50%;

    background:
        #ffffff !important;

    box-shadow:
        0 5px 14px
        rgba(15, 48, 84, .08);

    transform:
        translateY(-50%);

    cursor:
        pointer !important;

    pointer-events:
        auto !important;

    z-index:
        20;
}


#reviews-home
.column-right
> .swiper-button-prev::after,

#reviews-home
.column-right
> .swiper-button-next::after {
    display:
        none !important;

    content:
        none !important;
}


#reviews-home
.column-right
> .swiper-button-prev {
    left:
        0 !important;
}


#reviews-home
.column-right
> .swiper-button-next {
    right:
        0 !important;
}


/* ==========================================================
   FAQ — ESTRUCTURA
   ========================================================== */

#faq-home
> .container
> .row {
    display:
        block !important;

    margin:
        0 !important;

    --bs-gutter-x:
        0 !important;
}


#faq-home
> .container
> .row
> .col-12 {
    width:
        100% !important;

    max-width:
        100% !important;

    padding:
        0 !important;
}


#faq-home
> .container
> .row
> div:first-child {
    align-items:
        flex-start !important;
}


/* ==========================================================
   FAQ — CABECERA
   ========================================================== */

#faq-home
.heading {
    position: relative;

    width:
        fit-content !important;

    margin:
        0 0 11px !important;

    padding:
        0 0 10px !important;

    color:
        #10234b !important;

    font-size:
        clamp(
            1.65rem,
            2.1vw,
            2rem
        ) !important;

    font-weight:
        800 !important;

    line-height:
        1.08 !important;

    text-align:
        left !important;
}


#faq-home
.heading::before {
    display:
        none !important;

    content:
        none !important;
}


#faq-home
.heading::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    display:
        block !important;

    width: 58px;
    height: 4px;

    margin:
        0 !important;

    background:
        #ed1c2e;

    border-radius:
        999px;

    transform:
        none !important;
}


#faq-home
.subheading {
    width: 100%;

    margin:
        0 0 22px !important;

    color:
        #596779 !important;

    font-size:
        .93rem !important;

    font-weight:
        400 !important;

    line-height:
        1.48 !important;

    text-align:
        left !important;
}


/* ==========================================================
   FAQ — ACORDEÓN
   ========================================================== */

#faq-home
.accordion.row.d-grid,

#faq-home
.accordion {
    display:
        grid !important;

    grid-template-columns:
        minmax(0, 1fr) !important;

    gap:
        8px !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


#faq-home
.accordion-item {
    display:
        block !important;

    grid-column:
        auto !important;

    width:
        100% !important;

    max-width:
        none !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow:
        hidden;

    border:
        1px solid
        rgba(7, 59, 112, .09) !important;

    border-radius:
        11px !important;

    background:
        rgba(
            255,
            255,
            255,
            .96
        ) !important;

    box-shadow:
        0 5px 16px
        rgba(15, 48, 84, .055) !important;
}


#faq-home
.accordion-header {
    margin:
        0 !important;

    padding:
        0 !important;
}


#faq-home
.accordion-button {
    width:
        100% !important;

    min-height:
        0 !important;

    margin:
        0 !important;

    padding:
        12px 15px !important;

    background:
        rgba(
            255,
            255,
            255,
            .96
        ) !important;

    box-shadow:
        none !important;

    color:
        #10234b !important;

    font-size:
        .86rem !important;

    font-weight:
        700 !important;

    line-height:
        1.3 !important;

    text-align:
        left !important;
}


#faq-home
.accordion-button:not(.collapsed) {
    background:
        #e4eef8 !important;

    color:
        #07539a !important;
}


#faq-home
.accordion-button:focus {
    box-shadow:
        none !important;
}


#faq-home
.accordion-body {
    padding:
        3px 15px 15px !important;

    background:
        #ffffff !important;

    color:
        #526174 !important;

    font-size:
        .84rem;

    line-height:
        1.48;
}


#faq-home
.accordion-body p {
    margin:
        0 !important;
}


/* ==========================================================
   REVIEWS + FAQ — TABLET
   ========================================================== */

@media (max-width: 991.98px) {

    .ms-home-social-proof {
        grid-template-columns:
            1fr;

        gap:
            18px;

        padding:
            42px
            18px
            52px;
    }


    .ms-home-social-proof
    #reviews-home
    > .container,

    .ms-home-social-proof
    #faq-home
    > .container {
        min-height:
            0;
    }

}


/* ==========================================================
   REVIEWS + FAQ — MÓVIL
   ========================================================== */

@media (max-width: 767.98px) {

    .ms-home-social-proof {
        padding:
            36px
            16px
            46px;
    }


    .ms-home-social-proof
    #reviews-home
    > .container,

    .ms-home-social-proof
    #faq-home
    > .container {
        padding:
            24px 20px !important;

        border-radius:
            17px;
    }


    #reviews-home
    .column-left
    > .heading,

    #faq-home
    .heading {
        font-size:
            clamp(
                1.6rem,
                7vw,
                1.95rem
            ) !important;
    }


    #reviews-home
    .column-right {
        padding:
            0 22px !important;
    }


    #reviews-home
    .swiper-slide {
        min-height:
            185px !important;

        padding:
            19px 18px !important;
    }


    #reviews-home
    .column-right
    > .swiper-button-prev,

    #reviews-home
    .column-right
    > .swiper-button-next {
        width:
            34px !important;

        height:
            34px !important;
    }


    #faq-home
    .accordion-button {
        padding:
            13px 14px !important;
    }


    #faq-home
    .accordion-body {
        padding:
            3px 14px 14px !important;
    }

}

/* ==========================================================
   HOME — RESEÑAS + FAQ
   REMATES FINALES
   ========================================================== */


/* ==========================================================
   REVIEWS — CABECERA CENTRADA
   ========================================================== */

#reviews-home .column-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    width: 100% !important;
    max-width: none !important;

    text-align: center !important;
}


#reviews-home .column-left > .heading {
    width: fit-content;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;
}


#reviews-home .column-left > .subheading,
#reviews-home .column-left > .description {
    width: 100%;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;
}


#reviews-home .column-left > .description {
    max-width: 600px;
}


#reviews-home .column-left > .btn {
    align-self: center;

    margin-left: auto !important;
    margin-right: auto !important;
}


/*
 * El contenido interno de la reseña sigue alineado
 * a la izquierda, que es más legible.
 */
#reviews-home .swiper-slide {
    text-align: left;
}


/* ==========================================================
   FAQ HOME — PANEL
   ========================================================== */

#faq-home {
    box-sizing: border-box;

    height: 100%;

    padding:
        34px
        30px
        32px;

    border:
        1px solid
        rgba(7, 59, 112, 0.07);

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #f5f9fd 0%,
            #f8fbfe 100%
        );

    box-shadow:
        0 12px 32px
        rgba(15, 48, 84, 0.04);
}


/*
 * La FAQ está dentro de media página.
 * Aquí NO queremos las dos columnas internas
 * usadas en páginas donde la FAQ ocupa todo el ancho.
 */
#faq-home .accordion {
    grid-template-columns:
        1fr !important;

    gap:
        9px !important;
}


/* Reducimos ligeramente la escala para este layout compacto */

#faq-home .heading {
    font-size:
        clamp(
            27px,
            2.25vw,
            34px
        );
}


#faq-home .subheading {
    margin-bottom: 24px;
}


#faq-home .accordion-button {
    padding:
        13px
        16px !important;

    font-size:
        14px !important;
}


#faq-home .accordion-body {
    padding:
        2px
        16px
        15px !important;
}


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

@media (max-width: 991.98px) {

    #faq-home {
        padding:
            30px
            24px;
    }

}


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

@media (max-width: 767.98px) {

    #faq-home {
        padding:
            26px
            18px;

        border-radius: 16px;
    }


    #reviews-home .column-left > .description {
        max-width: 100%;
    }

}

/* ==========================================================
   HOME — CTA FINAL
   ========================================================== */

#home-cta-final .description a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    margin-top: 18px;

    padding:
        0
        28px;

    border-radius: 999px;

    background: #ffffff;

    color: #ed1c2e !important;

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

    text-decoration: none !important;

    box-shadow:
        0 8px 18px
        rgba(83, 0, 12, .13);

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


@media (hover: hover) {

    #home-cta-final .description a:hover {
        color: #d90e24 !important;

        transform:
            translateY(-2px);

        box-shadow:
            0 10px 24px
            rgba(83, 0, 12, .20);
    }

}