﻿body {
    overflow-x: hidden;
}

.section__editor {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.section .section__title {
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.1em;
    padding: 0;
    margin: 0.5em;
    background: -o-linear-gradient(left, #ff9003 0%, #f4bd36 100%);
    background: -webkit-gradient(linear, left top, right top, from(var(--azulACS)), to(#2196F3));
    background: -o-linear-gradient(left, var(--azulACS) 0%, #2196F3 100%);
    background: linear-gradient(to right, var(--azulACS) 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

    .section .section__title:after {
        content: "";
        display: block;
        border-bottom: solid 3px var(--naranjaACS);
        width: 3em;
        margin: 0.2em auto 0.5em;
    }


.compareCar {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--azulOscuroACS);
    -ms-grid-column-span: 1;
    grid-column: span 1;
    grid-row: 1/-1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

    .compareCar header {
        position: -webkit-sticky;
        position: sticky;
        top: -4.2em;
        -ms-grid-row: 1;
        -ms-grid-row-span: 1;
        grid-row: 1/2;
        z-index: 2;
        background: white;
        /*height: 12.7rem;*/
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        padding-bottom: 0.7rem;
        border-bottom: solid 1px var(--grey6);
    }

figure .m-car-img {
    height: 6.7rem;
    overflow: hidden;
}

.compareCar header img {
    display: block;
    margin: auto;
    outline: solid 3px white;
    outline-offset: -2px;
    max-height: 100%;
}

.compareCar header .btn-delete {
    position: absolute;
    bottom: .3rem;
    right: 50%;
    display: block;
    color: red;
    text-decoration: underline;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
    font-weight: 400;
    padding: 0.1rem;
}

    .compareCar header .btn-delete:hover {
        color: #cb1717;
    }


.compareCar header .sugerida {
    position: absolute;
    bottom: .1rem;
    right: 50%;
    display: block;
    color: var(--grey5);
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
    font-weight: 400;
    padding: 0.1rem;
}

.compareCar-name {
    font-size: 1.1rem;
    /*display: block;*/
    font-weight: 500;
    line-height: 1em;
    padding: 1rem .5rem;
    text-align: center;
    /*height: 6rem;*/
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    /*height: calc(100% - 6.7rem);*/
}

    .compareCar-name p {
        padding: 0;
        color: var(--grey1);
        text-align: center;
    }

        .compareCar-name p span + * {
            margin-left: .5rem;
        }

    .compareCar-name .version {
        display: block;
        font-weight: 500;
        color: var(--grey4);
        font-size: 1rem;
        margin: .1rem 0 .2rem 0;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
    }

    .compareCar-name .price {
        font-weight: 700;
        color: var(--azulACS);
        font-size: 1.3rem;
    }

.compareCar.stickyheader {
    display: none;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    grid-column: none;
    grid-row: none;
    overflow: hidden;
    -webkit-box-shadow: 0 10px 11px -12px rgba(0,0,0,.3);
    box-shadow: 0 10px 11px -12px rgba(0,0,0,.3);
    background: white;
}

    .compareCar.stickyheader .compareCar-name {
        /*height: 100%;*/
    }

    .compareCar.stickyheader header {
        width: 16rem;
        min-width: 16rem;
        /*height: 6rem;*/
        border-bottom: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

        .compareCar.stickyheader header .button-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

            .compareCar.stickyheader header .button-container .btn {
                width: 2.5rem;
                height: 2.5rem;
                padding: 0;
                margin: 0 .5rem;
                display: flex;
                justify-content: center;
                align-items: center;
            }

                .compareCar.stickyheader header .button-container .btn svg {
                    width: 1.5rem;
                    height: 1.5rem;
                    margin:0;
                }

                .compareCar.stickyheader header .button-container .btn img {
                    width: 1.5rem;
                    height: 1.5rem;
                    margin: 0;
                    outline: unset;
                }

        .compareCar.stickyheader header .btn-delete {
            position: static;
            right: unset;
            bottom: unset;
            transform: unset;
            padding: 0.4rem 1rem 0.2rem;
        }

    .compareCar.stickyheader.m-show-itself {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        position: fixed;
        top: 0;
        z-index: 11;
        width: 100%;
        /*overflow-x: auto;*/
        -webkit-animation: stickyMe ease .5s;
        animation: stickyMe ease .5s;
    }

@-webkit-keyframes stickyMe {
    from {
        top: -6rem;
    }

    to {
        top: 0;
    }
}

@keyframes stickyMe {
    from {
        top: -6rem;
    }

    to {
        top: 0;
    }
}

.compareCar-categoryHead {
    border-top: 1px solid var(--grey1);
    padding: 0.7rem;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 1rem;
    background: white;
    height: 3rem;
}


.compareCar-item {
    padding: .7rem .5em;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--azulOscuroACS);
    z-index: 2;
    background: white;
    text-align: center;
}

    .compareCar-item.m-btn {
        height: 4.5rem;
        text-align: center;
    }

/*.compareCar-item.m-diference {
        border-bottom: solid 2px #var(--naranjaACS);
    }*/


.compareCar-head {
    margin: 0;
    padding: .3em;
    font-weight: 700;
    color: var(--grey5);
    background: var(--grey8);
    text-align: center;
    font-size: 1rem;
    height: 1.8rem;
}

/*.compareCar-item.m-oportunidades {
    height: 19.5rem;
}*/

.comparar__oportunidades {
    text-align: center;
}

.comparar__oportunidades {
    margin-top: 0.9rem;
}

    .comparar__oportunidades > a {
        font-weight: 700;
        color: var(--grey1);
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        text-align: center;
        line-height: 1rem;
    }

    .comparar__oportunidades a > p {
        color: var(--grey4);
        text-decoration: underline;
        font-size: 0.9rem;
        text-transform: none;
        font-weight: 500;
        text-align: center;
        padding: 0 0 0.5rem;
    }

    .comparar__oportunidades strong {
        color: var(--azulACS);
        font-weight: 700;
        font-size: 1.3rem;
        text-align: center;
    }

        .comparar__oportunidades strong.ofertas {
            color: var(--verdeACS);
        }

        .comparar__oportunidades strong.financiado {
            color: var(--naranjaACS);
        }

.compareCar-head span {
    visibility: visible;
    position: -webkit-sticky;
    position: sticky;
    left: 1rem;
    right: 1rem;
}


.compareCar-categoryHead span {
    visibility: visible;
    position: -webkit-sticky;
    position: sticky;
    left: 1rem;
    right: 1rem;
}


.compareCar-container {
    overflow-x: auto;
}
/*MODAL*/
.modal-header {
    position: relative;
}

    .modal-header .modal-title {
        width: 100%;
        text-align: center;
        font-size: 1.3rem;
        line-height: 1.1em;
        padding: 0;
        margin: 0.2em;
        background: -o-linear-gradient(left, #ff9003 0%, #f4bd36 100%);
        background: -webkit-gradient(linear, left top, right top, from(var(--azulACS)), to(#2196F3));
        background: -o-linear-gradient(left, var(--azulACS) 0%, #2196F3 100%);
        background: linear-gradient(to right, var(--azulACS) 0%, #2196F3 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 0;
    }

        .modal-header .modal-title:after {
            content: "";
            display: block;
            border-bottom: solid 3px var(--naranjaACS);
            width: 3em;
            margin: 0.2em auto 0.5em;
        }

.modal-section__close {
    position: absolute;
    top: -1.4rem;
    right: -1rem;
    padding: 0.6rem;
}


.modal-section .modal-section__content.compare-modal {
    width: 50rem;
    max-width: 90vw;
    padding: 1rem;
    margin: .5rem auto;
}


.modal-body--element {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

    .modal-body--element.element__form .form-item {
        width: calc(50% - 1rem);
    }

        .modal-body--element.element__form .form-item:first-of-type {
            width: calc(100% - 1rem);
        }

.car-preview {
    width: calc(50% - 1rem);
    border: solid 1px #ccc;
    border-radius: .3rem;
    overflow: hidden;
    margin-top: .5rem;
    -ms-flex-item-align: stretch;
    -ms-grid-row-align: stretch;
    align-self: stretch;
}

    .car-preview .car-header {
        height: 1.8rem;
        min-height: inherit;
        -webkit-box-shadow: none;
        box-shadow: none;
        border-bottom: none;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: .1rem .3rem;
    }

        .car-preview .car-header span {
            margin-left: auto;
            font-weight: 700;
            color: var(--grey1);
        }

        .car-preview .car-header button {
            width: 2rem;
            height: 1.5rem;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: start;
            -ms-flex-pack: start;
            justify-content: flex-start;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            padding: .2rem;
        }

            .car-preview .car-header button svg {
                height: 100%;
                width: auto;
            }

    .car-preview .car-img {
        display: block;
        max-width: 100%;
        width: 100%;
        height: auto;
        outline: solid 1px white;
        outline-offset: -1px;
    }

    .car-preview .car-preview-name {
        font-size: .9rem;
        color: var(--grey1);
        padding: .2rem;
    }

        .car-preview .car-preview-name .modelo {
            font-weight: 700;
            display: block;
        }

        .car-preview .car-preview-name .version {
            font-size: .8rem;
        }

    .car-preview.cargando-version .car-title-placeholder {
        background-image: url(/Content/__layout/v01/images/placeholders/loading-spinwheel.svg);
        position: relative;
        border-radius: 50%;
        box-sizing: border-box;
        left: calc(50% - 1.5em);
        width: 2.5rem;
        height: 2.5rem;
        -webkit-animation: spinner 0.6s linear infinite, passingSpinner 1.5s ease 5s, laterSpinner 3s ease 6.5s infinite;
        animation: spinner 0.6s linear infinite, passingSpinner 1.5s ease 5s, laterSpinner 3s ease 6.5s infinite;
        cursor: wait;
        pointer-events: none;
        margin: 0.2rem;
    }

.alreadySelected {
    color: var(--rojoACS);
    position: relative;
    margin: auto;
    margin-bottom: .5rem;
}

    .alreadySelected:after {
        content: "";
        color: var(--rojoACS);
        position: absolute;
        width: 100%;
        border: solid 1px var(--rojoACS);
        left: calc(100% + 1rem);
        top: 50%;
        max-width: 10vw;
    }

    .alreadySelected:before {
        content: "";
        color: var(--rojoACS);
        position: absolute;
        width: 100%;
        border: solid 1px var(--rojoACS);
        right: calc(100% + 1rem);
        top: 50%;
        max-width: 10vw;
    }
/*FORM EN VISTA*/
.comparar-form {
    max-width: 50rem;
    margin: auto;
    margin-top: 1.5rem;
}

.comparar-form__element {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 1rem;
}

    .comparar-form__element.m-form .form-item {
        width: calc(50% - .5rem);
    }

        .comparar-form__element.m-form .form-item:first-of-type {
            width: 100%;
        }

.comparar-form .car-preview {
    width: calc(50% - .5rem);
}


.comparar-form__footer {
    margin-top: 1rem;
}

@media(min-width:36rem) {
    .comparar-form__element {
        padding: 0;
    }

        .comparar-form__element.m-form {
            justify-content: space-between;
            margin-bottom: 1rem;
        }

            .comparar-form__element.m-form .form-item {
                width: calc(33.33% - .5rem);
            }

                .comparar-form__element.m-form .form-item:first-of-type {
                    width: calc(33.33% - .5rem);
                }

    .comparar-form .car-preview {
        width: calc(25% - .5rem);
    }
}
/*fin*/

@media(max-width:36rem) {
    .compareCar-head {
        text-align: left;
    }

    .compareCar-categoryHead {
        text-align: left;
    }
}

@media(min-width:480px) {
    .modal-body--element.element__form .form-item, .modal-body--element.element__form .form-item:first-of-type {
        width: 30%;
    }

    .car-preview {
        width: calc(40% - 1rem);
    }

        .car-preview .car-preview-name {
            font-size: 1.1rem;
        }

            .car-preview .car-preview-name .version {
                font-size: 1rem;
            }
}

@media (min-width: 768px) {

    .car-preview {
        width: calc(25% - 1rem);
    }

    .modal-header .modal-title {
        font-size: 2rem;
    }

    .section .section__title {
        font-size: 2rem;
    }

    .compareCar.stickyheader.m-show-itself {
        z-index: 5;
        top: 5.3rem;
    }

    @-webkit-keyframes stickyMe {
        from {
            top: -6rem;
        }

        to {
            top: 5.3rem;
        }
    }

    @keyframes stickyMe {
        from {
            top: -6rem;
        }

        to {
            top: 5.3rem;
        }
    }
}

@media (min-width: 1220px) {
    .compareCar.stickyheader.m-show-itself {
        top: 3.3rem;
    }

    @-webkit-keyframes stickyMe {
        from {
            top: -6rem;
        }

        to {
            top: 3.3rem;
        }
    }

    @keyframes stickyMe {
        from {
            top: -6rem;
        }

        to {
            top: 3.3rem;
        }
    }
}

@media print {
    header.header,
    footer.footer,
    .teaser.comparador,
    .btn,
    spinner-section,
    .advBox,
    .section.section__editor,
    .btn-delete,
    .compareCar-item.m-btn,
    .compareCar-item.m-oportunidades,
    .comparer-adv,
    .comparer-adv__space,
    .compareCar.stickyheader,
    .compareCar.stickyheader.m-show-itself,
    .extra-adv{
        display: none !important;
        height: 0 !important;
    }

    body {
        padding: 0 !important;
    }

    .compareCar header {
        flex-grow: 0;
    }

    .compareCar-head {
        height: 30px;
    }

    .compareCar:first-of-type h6.compareCar-head {
        height: 30px;
        background-color: #f4f4f4;
        -webkit-print-color-adjust: exact;
        color: #757575;
        /*border-top: solid 1px var(--grey6);
        border-bottom: solid 1px var(--grey6);*/
        text-align: center;
    }

    .compareCar-categoryHead {
        height: 50px;
    }

    .compareCar:first-of-type .compareCar-categoryHead {
        height: 50px;
        text-align: center;
    }

    .compareCar-container {
        grid-template-columns: repeat(4, 11rem) !important;
    }

    .compareCar-item {
        height: 50px !important;
        text-overflow: ellipsis;
        overflow: hidden;
        margin: .7rem .5em;
        padding: 0;
    }
    .compareCar-name {
        height: 7rem;
    }
}
