/* ==========================================================
   MANOSALVA
   PÁGINA — VISITA TÉCNICA GRATUITA
========================================================== */


/* ==========================================================
   COHESIÓN GENERAL
========================================================== */

.ms-metrics,
.ms-service-table,
.ms-process,
.ms-callout,
.ms-form--visit {
    scroll-margin-top: 100px;
}


/* ==========================================================
   MÉTRICAS / BENEFICIOS
   Ajuste específico para esta página.
========================================================== */

.ms-metrics {
    padding-top: 54px;
    padding-bottom: 64px;
}


/*
 * En esta página:
 *
 * heading = título corto
 * value   = descripción
 *
 * Por eso invertimos visualmente la jerarquía respecto
 * al componente métrico genérico.
 */

.ms-metrics__item {
    min-height: 210px;

    padding:
        26px
        24px;

    justify-content: center;
}


.ms-metrics__icon {
    order: 1;

    width: 60px;
    height: 60px;

    margin-bottom: 16px;

    border-radius: 16px;
}


.ms-metrics__icon-image {
    width: 36px;
    height: 36px;
}


.ms-metrics__label {
    order: 2;

    max-width: 240px;

    margin: 0 0 9px;

    font-size:
        clamp(18px, 1.35vw, 21px);

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

    color: #10234b;
}


.ms-metrics__label p {
    margin: 0;
}


.ms-metrics__value {
    order: 3;

    max-width: 245px;

    margin: 0;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;

    color: #596779;
}


/* Ocultamos el párrafo inferior si accidentalmente queda vacío. */

.ms-metrics__paragraph:empty {
    display: none;
}


/* ==========================================================
   TABLA
========================================================== */

.ms-service-table {
    padding-top: 58px;
    padding-bottom: 66px;
}


/* ==========================================================
   PROCESO
========================================================== */

.ms-process {
    padding-top: 62px;
    padding-bottom: 44px;
}


/* ==========================================================
   CALLOUT ROJO
========================================================== */

.ms-callout--info {
    padding:
        18px
        clamp(20px, 4vw, 64px)
        54px;

    background: #ffffff;
}


.ms-callout--info .ms-callout__inner {
    width: min(100%, 1320px);
}


.ms-callout--info .ms-callout__content {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(285px, 0.65fr);

    column-gap: 38px;
    row-gap: 11px;

    align-items: start;

    overflow: hidden;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    padding:
        28px
        clamp(32px, 4vw, 50px);

    border: 0;
    border-radius: 18px;

    background:
        linear-gradient(
            112deg,
            #dc0e24 0%,
            #ed1c2e 62%,
            #f32438 100%
        );

    color: #ffffff;

    box-shadow:
        0 15px 38px
        rgba(159, 16, 32, 0.15);
}


/* Decoración */

.ms-callout--info .ms-callout__content::after {
    content: "";

    position: absolute;

    right: -105px;
    bottom: -155px;

    width: 360px;
    height: 360px;

    border:
        40px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    pointer-events: none;
}


/* Título */

.ms-callout--info .ms-callout__title {
    position: relative;
    z-index: 2;

    grid-column: 1;

    max-width: 760px;

    margin: 0;

    font-size:
        clamp(29px, 2.7vw, 38px);

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

    color: #ffffff;
}


/*
 * Permitimos que los hijos de description
 * participen directamente en el grid principal.
 */

.ms-callout--info .ms-callout__description {
    display: contents;
}


/* Párrafos */

.ms-callout--info .ms-callout__description p {
    position: relative;
    z-index: 2;

    grid-column: 1;

    max-width: 710px;

    margin: 0;

    font-size: 15px;
    line-height: 1.48;

    color: #ffffff;
}


/* Checklist */

.ms-callout--info .ms-callout__description ul {
    position: relative;
    z-index: 2;

    grid-column: 2;
    grid-row: 1 / span 4;

    align-self: start;

    width: 100%;

    margin: 0;

    padding:
        13px
        20px;

    list-style: none;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 10px 26px
        rgba(85, 0, 12, 0.14);
}


.ms-callout--info .ms-callout__description li {
    position: relative;

    padding:
        9px
        8px
        9px
        30px;

    border-bottom:
        1px solid
        #e6ecf2;

    font-size: 14px;
    font-weight: 700;

    color: #152a4a;
}


.ms-callout--info .ms-callout__description li:last-child {
    border-bottom: 0;
}


.ms-callout--info .ms-callout__description li::before {
    content: "✓";

    position: absolute;

    left: 4px;

    font-size: 18px;
    font-weight: 900;

    color: #ed1c2e;
}


/* ==========================================================
   FORMULARIO — LAYOUT DE LA PÁGINA
========================================================== */

/*
 * IMPORTANTE:
 * No atacamos inputs, labels, textarea ni botones de Forminator.
 * Eso queda en forms.css.
 */

.ms-form--visit {
    padding:
        58px
        20px
        66px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fafc 100%
        );
}


.ms-form--visit .ms-form__container {
    display: grid;

    grid-template-columns:
        minmax(195px, 0.62fr)
        minmax(650px, 1.9fr)
        minmax(195px, 0.62fr);

    align-items: stretch;

    gap: 18px;

    width: min(100%, 1420px);
    max-width: 1420px;

    margin: 0 auto;
}


.ms-form--visit .ms-form__content {
    min-width: 0;
}


/* Quitamos margen extra del formulario dentro del grid */

.ms-form--visit .ms-form__content .forminator-ui,
.ms-form--visit .ms-form__content .forminator-custom-form {
    margin:
        0 !important;

    max-width:
        none !important;
}


/* ==========================================================
   PANEL IZQUIERDO DEL FORMULARIO
========================================================== */

.ms-form__panel {
    box-sizing: border-box;

    border-radius: 18px;
}


.ms-form__panel--intro {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        30px
        28px;

    background: #ffffff;

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

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


.ms-form__eyebrow {
    margin-bottom: 9px;

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

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

    color: #ed1c2e;
}


.ms-form__panel-title {
    margin:
        0
        0
        14px;

    font-size:
        clamp(25px, 2.2vw, 34px);

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

    color: #10234b;
}


.ms-form__panel-text {
    margin:
        0
        0
        22px;

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

    color: #5c6878;
}


.ms-form__benefits {
    display: grid;

    gap: 13px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.ms-form__benefits li {
    position: relative;

    padding-left: 28px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;

    color: #1d3150;
}


.ms-form__benefits li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: -1px;

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

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background: #ffe7ea;

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

    color: #ed1c2e;
}


/* ==========================================================
   PANEL DERECHO
========================================================== */

.ms-form__panel--contact {
    position: relative;

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

    overflow: hidden;

    padding:
        30px
        26px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #06447e 0%,
            #075b9d 100%
        );

    color: #ffffff;

    box-shadow:
        0 14px 34px
        rgba(7, 58, 108, 0.18);
}


.ms-form__panel--contact::after {
    content: "";

    position: absolute;

    right: -80px;
    bottom: -105px;

    width: 220px;
    height: 220px;

    border:
        28px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 50%;
}


.ms-form__contact-icon {
    position: relative;
    z-index: 2;

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

    width: 54px;
    height: 54px;

    margin-bottom: 14px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.14);

    font-size: 25px;
}


.ms-form__panel--contact h3 {
    position: relative;
    z-index: 2;

    margin:
        0
        0
        10px;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.16;

    color: #ffffff;
}


.ms-form__panel--contact p {
    position: relative;
    z-index: 2;

    margin:
        0
        0
        18px;

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

    color:
        rgba(255, 255, 255, 0.88);
}


.ms-form__phone {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding:
        12px
        16px;

    border-radius: 999px;

    background: #ffffff;

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

    text-decoration: none !important;

    color: #07539a !important;

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.10);
}


.ms-form__schedule {
    position: relative;
    z-index: 2;

    margin-top: 15px;

    font-size: 12px;
    line-height: 1.4;

    color:
        rgba(255, 255, 255, 0.84);
}


/* ==========================================================
   FAQ — LAYOUT ESPECÍFICO VISITA TÉCNICA
   ========================================================== */

#visita-faq {
    padding:
        clamp(54px, 5vw, 72px)
        20px;

    background:
        linear-gradient(
            180deg,
            #f8fbfd,
            #ffffff
        );
}


/* ==========================================================
   CTA FINAL
========================================================== */

#visita-cta-final.module--calltoaction {
    padding:
        0
        20px
        34px;

    background: #ffffff;
}


#visita-cta-final.module--calltoaction .container {
    position: relative;

    overflow: hidden;

    width: min(100%, 1420px);
    max-width: none;

    padding: 0;

    border-radius: 18px;

    background:
        linear-gradient(
            105deg,
            #d90e24 0%,
            #ed1c2e 62%,
            #f52539 100%
        );

    box-shadow:
        0 14px 34px
        rgba(159, 16, 32, 0.15);
}


#visita-cta-final.module--calltoaction .container::after {
    content: "";

    position: absolute;

    right: -90px;
    bottom: -130px;

    width: 310px;
    height: 310px;

    border:
        36px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 50%;

    pointer-events: none;
}


#visita-cta-final.module--calltoaction .row {
    margin: 0;
}


#visita-cta-final.module--calltoaction .col-12 {
    position: relative;
    z-index: 2;

    align-items: flex-start !important;

    padding:
        28px
        270px
        28px
        38px;
}


#visita-cta-final .heading {
    margin:
        0
        0
        8px;

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

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

    color: #ffffff;
}


#visita-cta-final hr {
    display: none;
}


#visita-cta-final .description {
    width: 100%;

    color: #ffffff;
}


#visita-cta-final .description p {
    max-width: 760px;

    margin: 0;

    font-size: 15px;
    line-height: 1.45;

    text-align: left !important;

    color: #ffffff;
}


/*
 * Cualquier enlace dentro de la descripción
 * se convierte en botón.
 */

#visita-cta-final .description a {
    position: absolute;

    top: 50%;
    right: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 200px;
    height: 50px;

    padding:
        0
        28px;

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

    background: #ffffff !important;

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

    white-space: nowrap;

    text-align: center;

    text-decoration: none !important;

    color: #ed1c2e !important;

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

    transform:
        translateY(-50%);

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


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

    transform:
        translateY(-52%);

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


/* ==========================================================
   REMATES — ICONOS FORMULARIO
========================================================== */


/* ----------------------------------------------------------
   BENEFICIOS DEL PANEL IZQUIERDO
---------------------------------------------------------- */

.ms-form--visit .ms-form__benefits li {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 0;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;

    color: #1d3150;
}


/*
 * Anulamos el check generado anteriormente con CSS.
 */
.ms-form--visit .ms-form__benefits li::before {
    content: none;

    display: none;
}


.ms-form--visit .ms-form__benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex:
        0
        0
        26px;

    width: 26px;
    height: 26px;

    border-radius: 50%;

    background: #ffe7ea;
}


.ms-form--visit .ms-form__benefit-icon-image {
    display: block;

    width: 16px;
    height: 16px;

    object-fit: contain;
}


/* ----------------------------------------------------------
   ICONO SUPERIOR DEL PANEL DE CONTACTO
---------------------------------------------------------- */

.ms-form--visit .ms-form__contact-icon-image {
    display: block;

    width: 25px;
    height: 25px;

    object-fit: contain;
}


/* ----------------------------------------------------------
   BOTÓN TELÉFONO DEL PANEL DERECHO
---------------------------------------------------------- */

.ms-form--visit .ms-form__phone {
    gap: 9px;
}


.ms-form--visit .ms-form__phone-icon {
    display: block;

    flex:
        0
        0
        18px;

    width: 18px;
    height: 18px;

    object-fit: contain;
}



/* ==========================================================
   CTA FINAL — ICONO + CENTRADO ÓPTICO
========================================================== */

#visita-cta-final .description a {
    gap: 10px;

    box-sizing: border-box;

    padding:
        0
        28px !important;

    line-height: 1 !important;

    font-family: inherit;

    text-align: center !important;
}


#visita-cta-final .description a::before {
    content: "";

    display: block;

    flex:
        0
        0
        18px;

    width: 18px;
    height: 18px;

    background-image:
        url("../../icons/technical-visit/phone-red.svg");

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}



/* ==========================================================
   HERO V2 — TRUST ESPECÍFICO DE VISITA TÉCNICA
========================================================== */

/*
 * :has(.ms-form--visit) impide que estos ajustes afecten
 * accidentalmente al Hero de la Home aunque este CSS
 * terminase cargándose globalmente.
 */

body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust {
    display: grid !important;

    grid-template-columns: 1fr;

    gap: 9px !important;

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

    margin-top: 20px !important;
}


body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust-item {
    display: grid !important;

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

    align-items: center;

    gap: 10px !important;

    width: 100%;
}


body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex:
        0
        0
        28px;

    width: 28px !important;
    height: 28px !important;

    margin: 0 !important;
}


body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust-icon img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain;
}


body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust-content {
    display: flex;

    flex-direction: column;

    gap: 1px;

    min-width: 0;

    text-align: left;
}


body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust-title {
    margin: 0;

    font-size: 0.94rem !important;
    font-weight: 700;
    line-height: 1.15 !important;
}


body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust-text {
    margin: 0;

    font-size: 0.80rem !important;
    line-height: 1.25 !important;

    opacity: 0.84;
}


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

@media (max-width: 1100px) {

    .ms-form--visit .ms-form__container {
        grid-template-columns:
            minmax(220px, 0.8fr)
            minmax(0, 1.4fr);
    }


    .ms-form__panel--contact {
        grid-column:
            1 / -1;

        min-height: 220px;
    }


    .ms-form__phone {
        max-width: 320px;
    }
}


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

@media (max-width: 767.98px) {

    .ms-metrics {
        padding:
            46px
            16px;
    }


    .ms-metrics__item {
        min-height: 0;
    }


    .ms-callout--info .ms-callout__content {
    grid-template-columns: 1fr;

    gap: 14px;

    padding:
        26px
        22px;
}


.ms-callout--info .ms-callout__title,
.ms-callout--info .ms-callout__description p,
.ms-callout--info .ms-callout__description ul {
    grid-column: 1;
}


.ms-callout--info .ms-callout__description ul {
    grid-row: auto;

    margin-top: 6px;
}


    .ms-form--visit {
        padding:
            44px
            16px
            52px;
    }


    .ms-form--visit .ms-form__container {
        grid-template-columns: 1fr;

        gap: 18px;

        width: 100%;
    }


    .ms-form__panel--intro,
    .ms-form__panel--contact {
        padding:
            26px
            22px;
    }


    #visita-cta-final.module--calltoaction {
        padding:
            0
            16px
            28px;
    }


    #visita-cta-final.module--calltoaction .col-12 {
        padding:
            26px
            22px;
    }


    #visita-cta-final .description a {
        position: static;

        width: 100%;

        margin-top: 18px;

        transform: none;
    }

    #visita-cta-final .description a:hover {
        transform: translateY(-2px);
    }
}

/* ==========================================================
   VISITA TÉCNICA — HERO TRUST
   Alineación con el contenido principal
   ========================================================== */

body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust {
    width: 100% !important;
    max-width: 600px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;

    justify-items: start !important;
    align-items: start !important;
}


body:has(.ms-form--visit)
.ms-hero--home
.ms-hero__trust-item {
    width: 100% !important;

    margin-left: 0 !important;
    padding-left: 0 !important;

    justify-self: start !important;
    justify-content: flex-start !important;
}

/* ==========================================================
   VISITA TÉCNICA — FORMULARIO
   Refinamiento visual
   ========================================================== */

.ms-form--visit
.forminator-custom-form {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        ) !important;

    border:
        1px solid
        rgba(7, 83, 154, 0.12) !important;

    border-top:
        4px solid
        #0b5b96 !important;

    border-radius: 16px !important;

    box-shadow:
        0 18px 45px
        rgba(11, 48, 84, 0.08) !important;
}


/* Campos */

.ms-form--visit
.forminator-custom-form
input:not([type="checkbox"])
:not([type="radio"])
:not([type="hidden"]),

.ms-form--visit
.forminator-custom-form
select,

.ms-form--visit
.forminator-custom-form
textarea {
    background:
        #f9fbfd !important;

    border:
        1px solid
        #dce6ef !important;

    border-radius:
        9px !important;

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


/* Focus */

.ms-form--visit
.forminator-custom-form
input:not([type="checkbox"])
:not([type="radio"])
:not([type="hidden"]):focus,

.ms-form--visit
.forminator-custom-form
select:focus,

.ms-form--visit
.forminator-custom-form
textarea:focus {
    background:
        #ffffff !important;

    border-color:
        #0b5b96 !important;

    box-shadow:
        0 0 0 3px
        rgba(11, 91, 150, 0.10) !important;

    outline:
        none !important;
}


/* Labels ligeramente más vinculados a la identidad */

.ms-form--visit
.forminator-custom-form
.forminator-label {
    color:
        #102a50 !important;

    font-weight:
        700 !important;
}

/* ==========================================================
   CTA FINAL — DESCRIPCIÓN
   ========================================================== */

#visita-cta-final
.description p {
    width: 100% !important;
    max-width: 650px !important;

    margin:
        0 !important;

    text-align:
        center !important;

    line-height:
        1.45 !important;
}

/* ==========================================================
   CTA FINAL — BOTÓN
   ========================================================== */

#visita-cta-final
.description a {
    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    gap:
        10px !important;

    min-height:
        48px !important;

    padding:
        0 28px !important;

    margin:
        0 !important;

    line-height:
        1 !important;

    text-align:
        center !important;

    vertical-align:
        middle !important;

    white-space:
        nowrap !important;

    text-indent:
        0 !important;
}


#visita-cta-final
.description a::before {
    content:
        "" !important;

    display:
        block !important;

    flex:
        0 0 18px !important;

    width:
        18px !important;

    height:
        18px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    background-image:
        url("../../icons/technical-visit/phone-red.svg") !important;

    background-repeat:
        no-repeat !important;

    background-position:
        center !important;

    background-size:
        contain !important;
}


/*
 * Evita que etiquetas internas del enlace
 * introduzcan diferencias de line-height.
 */
#visita-cta-final
.description a * {
    margin:
        0 !important;

    padding:
        0 !important;

    line-height:
        1 !important;
}

/* ==========================================================
   CTA FINAL — AJUSTE DEFINITIVO DEL TEXTO DEL BOTÓN
   ========================================================== */

#visita-cta-final .description a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

#visita-cta-final .description a span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

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

    line-height: 1 !important;

    /*
     * Compensación óptica de la tipografía.
     * Si Safari todavía lo muestra 1px bajo,
     * puedes cambiar -1px por -2px.
     */
    transform: translateY(-1px);
}