/* ==========================================================
   MANOSALVA
   REPARACIÓN Y MANTENIMIENTO DE AIRE ACONDICIONADO

   Hereda:
   - aire-acondicionado.css
   - split.css

   Aquí solo añadimos lo específico de esta landing:
   - formulario de reparación
   - tarjetas de incidencias
   ========================================================== */


/* ==========================================================
   1. HERO — REPARACIÓN
   ========================================================== */

.ms-hero--repair
.ms-hero__grid {
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, 1.04fr)
        minmax(350px, .88fr);
}


/* La columna recibe el ancla exacta del formulario */

#revision-aire-acondicionado {
    scroll-margin-top:
        110px;
}


/* ==========================================================
   CABECERA DINÁMICA DEL FORMULARIO
   ========================================================== */

.ms-repair-form-head {
    margin:
        0 0
        .75rem;

    padding:
        0;
}


.ms-repair-form-head__eyebrow {
    display:
        block;

    margin-bottom:
        .3rem;

    color:
        #64809f;

    font-size:
        .72rem;

    font-weight:
        700;

    line-height:
        1.2;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}


.ms-repair-form-head__title {
    margin:
        0;

    color:
        #17283d;

    font-size:
        clamp(
            1.25rem,
            1.35vw,
            1.55rem
        );

    font-weight:
        800;

    line-height:
        1.08;

    letter-spacing:
        -.025em;
}


.ms-repair-form-head__context {
    display:
        inline-flex;

    width:
        fit-content;

    margin:
        .55rem 0
        0;

    padding:
        .36rem
        .65rem;

    border-radius:
        999px;

    background:
        #edf6ff;

    color:
        #07539a;

    font-size:
        .7rem;

    font-weight:
        700;

    line-height:
        1.25;
}


.ms-repair-form-head__context[hidden] {
    display:
        none !important;
}


/* ==========================================================
   FORMULARIO MÁS COMPACTO
   ========================================================== */

.ms-hero--repair
.ms-hero__form {
    margin:
        12px;

    padding:
        15px;
}


.ms-hero--repair
.ms-hero__form
.forminator-row {
    margin-bottom:
        .42rem !important;
}


.ms-hero--repair
.ms-hero__form
.forminator-custom-form
textarea {
    height:
        82px !important;

    min-height:
        82px !important;

    max-height:
        82px !important;
}


/* ==========================================================
   FEEDBACK AL LLEGAR DESDE UNA INCIDENCIA
   ========================================================== */

#revision-aire-acondicionado {
    transition:
        box-shadow .25s ease,
        transform .25s ease;
}


#revision-aire-acondicionado.is-ms-targeted {
    box-shadow:
        0 0 0 3px
        rgba(237, 28, 46, .14),
        0 18px 45px
        rgba(12, 34, 60, .2);

    transform:
        translateY(-2px);
}


/* ==========================================================
   2. INCIDENCIAS
   ========================================================== */

.ms-incidents {
    position:
        relative;

    padding:
        clamp(
            58px,
            6vw,
            82px
        )
        clamp(
            20px,
            4vw,
            64px
        );

    background:
        #ffffff;
}


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


.ms-incidents__inner {
    width:
        min(
            100%,
            1320px
        );

    margin:
        0 auto;
}


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

.ms-incidents__header {
    max-width:
        900px;

    margin:
        0 auto
        38px;

    text-align:
        center;
}


.ms-incidents__heading h2,
.ms-incidents__heading .heading {
    position:
        relative;

    width:
        fit-content;

    margin:
        0 auto
        14px;

    padding-bottom:
        12px;

    color:
        #10234b;

    font-size:
        clamp(
            32px,
            3vw,
            44px
        );

    font-weight:
        800;

    line-height:
        1.08;
}


.ms-incidents__heading h2::after,
.ms-incidents__heading .heading::after {
    content:
        "";

    position:
        absolute;

    left:
        50%;

    bottom:
        0;

    width:
        68px;

    height:
        4px;

    border-radius:
        999px;

    background:
        #ed1c2e;

    transform:
        translateX(-50%);
}


.ms-incidents__intro {
    max-width:
        760px;

    margin:
        0 auto;

    color:
        #5a6575;

    font-size:
        16px;

    line-height:
        1.55;
}


.ms-incidents__intro p {
    margin:
        0;
}


/* ==========================================================
   GRID
   ========================================================== */

.ms-incidents__grid {
    display:
        grid;

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

    gap:
        18px;
}


/* ==========================================================
   CARD / BOTÓN
   ========================================================== */

.ms-incidents__card {
    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    width:
        100%;

    min-width:
        0;

    min-height:
        205px;

    padding:
        22px;

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

    border-radius:
        18px;

    background:
        #ffffff;

    box-shadow:
        0 10px 26px
        rgba(15, 48, 84, .06);

    color:
        inherit;

    font:
        inherit;

    text-align:
        left;

    cursor:
        pointer;

    appearance:
        none;

    -webkit-appearance:
        none;

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


.ms-incidents__card::after {
    content:
        "";

    position:
        absolute;

    left:
        0;

    top:
        18px;

    bottom:
        18px;

    width:
        4px;

    border-radius:
        0
        999px
        999px
        0;

    background:
        #ed1c2e;

    opacity:
        0;

    transform:
        scaleY(.55);

    transition:
        opacity .2s ease,
        transform .2s ease;
}


/* ==========================================================
   ICONO
   ========================================================== */

.ms-incidents__icon {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        54px;

    height:
        54px;

    margin-bottom:
        17px;

    border-radius:
        15px;

    background:
        linear-gradient(
            145deg,
            #edf6ff,
            #dcecff
        );
}


.ms-incidents__icon-image {
    display:
        block;

    width:
        31px;

    height:
        31px;

    object-fit:
        contain;
}


/* ==========================================================
   CONTENIDO
   ========================================================== */

.ms-incidents__content {
    display:
        flex;

    flex-direction:
        column;

    flex:
        1;

    width:
        100%;
}


.ms-incidents__title {
    margin-bottom:
        8px;

    color:
        #10234b;

    font-size:
        1.08rem;

    font-weight:
        800;

    line-height:
        1.2;
}


.ms-incidents__description {
    margin-bottom:
        18px;

    color:
        #596779;

    font-size:
        .9rem;

    line-height:
        1.5;
}


.ms-incidents__action {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    width:
        fit-content;

    margin-top:
        auto;

    color:
        #ed1c2e;

    font-size:
        .82rem;

    font-weight:
        800;

    line-height:
        1.2;
}


.ms-incidents__arrow::before {
    content:
        "\2192";
}


.ms-incidents__arrow {
    transition:
        transform .2s ease;
}


/* ==========================================================
   HOVER / SELECTED
   ========================================================== */

@media (hover: hover) {

    .ms-incidents__card:hover {
        transform:
            translateY(-3px);

        border-color:
            rgba(7, 83, 154, .17);

        box-shadow:
            0 16px 34px
            rgba(15, 48, 84, .1);
    }


    .ms-incidents__card:hover
    .ms-incidents__arrow {
        transform:
            translateX(4px);
    }

}


.ms-incidents__card.is-selected {
    border-color:
        rgba(237, 28, 46, .28);

    background:
        #fffafa;

    box-shadow:
        0 14px 32px
        rgba(15, 48, 84, .09);
}


.ms-incidents__card.is-selected::after {
    opacity:
        1;

    transform:
        scaleY(1);
}


.ms-incidents__card:focus-visible {
    outline:
        3px solid
        rgba(7, 83, 154, .25);

    outline-offset:
        3px;
}


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

@media (max-width: 991.98px) {

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


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

}


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

@media (max-width: 767.98px) {

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


    .ms-incidents__header {
        margin-bottom:
            28px;
    }


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

        gap:
            12px;
    }


    .ms-incidents__card {
        min-height:
            0;

        padding:
            19px;
    }


    .ms-incidents__icon {
        width:
            48px;

        height:
            48px;

        margin-bottom:
            14px;
    }


    .ms-incidents__icon-image {
        width:
            28px;

        height:
            28px;
    }


    .ms-repair-form-head__title {
        font-size:
            1.28rem;
    }

}