.image-background .bg-image {
    background-position: 0 90%;
}

.double-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.double-wrapper.left-orientation > div:first-child,
.double-wrapper.right-orientation > div:last-child {
    width: calc(60% - 45px);
}
.double-wrapper.left-orientation > div:last-child,
.double-wrapper.right-orientation > div:first-child {
    width: calc(40% - 15px);
}


.tests-wrapper {
    display: none;
    gap: 20px;
    opacity: 0;
    transition: all var(--g-time) ease;
}
.tests-wrapper.display {
    display: flex;
}
.tests-wrapper.show {
    opacity: 1;
}
.tests-wrapper p {
    width: calc((100% - 20px*3) / 4)
}
.tests-wrapper p span {
    color: var(--p-color);
    display: inline-block;
    margin-right: 10px;
}
.btn-switch-tests-list {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--p-color);
    color: var(--p-color);
    display: block;
    font-weight: 600;
    margin: 0 auto;
    margin-top: 20px;
    outline: none;
    text-align: center;
}

article {
    background-color: var(--gray-color);
    display: none;
    opacity: 0;
    transition: opacity var(--g-time) ease;
}
article.display {
    display: block;
}
article.show {
    opacity: 1;
}

/* SERVICES GRID */
    .services-grid-wrapper::after {
        content: "";
        border: 10px solid var(--p-color);
        width: 30px;
        height: 30px;
        background-color: var(--white-color);
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%) rotate(-45deg);
        z-index: 2;
    }
    .services-grid-wrapper::before {
        content: "";
        width: 70px;
        height: 35px;
        background-color: var(--white-color);
        position: absolute;
        bottom: -0px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }
    .services-grid-wrapper {
        position: relative;
    }
    .services-grid {
        gap: 20px;
    }
    .services-grid h2,
    .services-grid h3 {
        text-align: center;
    }
    .services-grid .service {
        background-color: var(--white-color);
        border: 3px solid var(--gray-color);
        border-radius: var(--border-radius);
        cursor: pointer;
        padding: 20px;
        -webkit-align-content: space-between;
            -ms-flex-line-pack: justify;
                align-content: space-between;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
            -ms-flex-pack: center;
                justify-content: center;
        width: calc((100% - 20px * 4)/ 5);
        -webkit-transition: all var(--g-time) ease;
        -o-transition: all var(--g-time) ease;
        transition: all var(--g-time) ease;
    }
    .services-grid .service .info {
        width: 100%;
    }
    .services-grid .service .image-wrapper {
        -webkit-box-align: center;
        -webkit-align-items: center;
            -ms-flex-align: center;
                align-items: center;
        background-color: var(--gray-color);
        border: 2px solid transparent;
        border-radius: 50%;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
            -ms-flex-pack: center;
                justify-content: center;
        height: 72px;
        margin: 0 auto;
        width: 72px;
        -webkit-transition: all var(--g-time) ease;
        -o-transition: all var(--g-time) ease;
        transition: all var(--g-time) ease;
    }
    .services-grid .service .image-wrapper i {
        color: var(--p-color);
        font-size: var(--fze-subtitle);
    }
    .services-grid .service .image-wrapper img {
        width: 55%;
    }
    .services-grid .service h4 {
        color: var(--p-color);
        font-size: var(--fze-big);
        margin-top: 20px;
        margin-bottom: 10px;
        text-align: center;
        -webkit-transition: all var(--g-time) ease;
        -o-transition: all var(--g-time) ease;
        transition: all var(--g-time) ease;
    }
    .services-grid .service .desc {
        text-align: center;
        -webkit-transition: all var(--g-time) ease;
        -o-transition: all var(--g-time) ease;
        transition: all var(--g-time) ease;
    }
    .services-grid .service .direct-phone-number {
        color: var(--p-color);
        font-weight: 700;
        text-align: center;
    }
    .services-grid .service a {
        margin-top: 10px;
    }
    .services-grid .service:hover {
        border-color: var(--p-color);
    }
    .services-grid .service:hover .image-wrapper {
        border-color: var(--p-color);
    }
    .services-grid .service.active {
        background-color: var(--p-color);
        border-color: var(--p-color);
    }
    .services-grid .service.active .image-wrapper {
        background-color: var(--white-color);
    }
    .services-grid .service.active h4,
    .services-grid .service.active p,
    .services-grid .service.active a {
        color: var(--white-color);
    }
    .services-wrapper {
        background-color: var(--gray-color);
        border: 0;
        border-top: 10px solid var(--p-color);
    }

    /* SERVICE ELEMENT WRAPPER */
    article h4 {
        font-size: var(--fze-title);
        margin-bottom: calc(30px + 20px + 5px);
        position: relative;
    }
    article h4::after {
        background-color: var(--p-color);
        border-radius: var(--border-radius);
        bottom: -20px;
        content: "";
        height: 5px;
        left: 0;
        position: absolute;
        width: 50px;
    }
    article .img-wrapper-inside {
        position: relative;
        margin: 0 auto;
    }
    article .img-wrapper-inside-in {
        border-radius: var(--border-radius);
        overflow: hidden;
    }
    article .img-wrapper-inside::before {
        content: "";
        background-color: var(--darkgray-color);
        border-radius: var(--border-radius);
        height: 100%;
        position: absolute;
        right: -15px;
        top: -15px;
        width: 100%;
    }
    article .img-wrapper-inside::after {
        content: "";
        background-color: var(--p-color);
        border-radius: var(--border-radius);
        height: 100%;
        position: absolute;
        left: -15px;
        bottom: -15px;
        width: 100%;
    }
    article .img-wrapper img {
        border-radius: var(--border-radius);
        display: block;
        position: relative;
        max-width: 100%;
        max-height: 100%;
        z-index: 2;
    }
    article .list li {
        list-style: none;
    }
    article .list li:not(:last-child), article p {
        margin-bottom: 15px;
    }
    article .list li i.fa-angle-right {
        color: var(--p-color);
        display: inline-block;
        margin-right: 10px;
    }
    article .list ul {
        margin-top: 10px;
        margin-left: 20px;
    }
    article h5 {
        font-size: var(--fze-big);
        text-align: center;
        margin-bottom: 20px;
    }
    .laboratorio .general-margin:nth-child(1) {
        padding-bottom: 15px;
    }
    .laboratorio .general-margin:nth-child(2) {
        padding-top: 15px;
    }

@media (max-width: 1400px) {
    /* SERVICES */
    .services-grid .service {
        width: calc((100% - 20px * 3) / 4);
    }
}
@media (max-width: 1150px) {
    /* SERVICES */
    .services-grid .service {
        width: calc((100% - 20px * 2) / 3);
    }
}
@media (max-width: 1000px) {
    /* SERVICES */
    .services-wrapper .double-wrapper {
        gap: calc(var(--section-padding) / 2);
    }
    .services-wrapper .double-wrapper.left-orientation {
        flex-direction: column-reverse;
    }
    .services-wrapper .double-wrapper > div {
        width: 100% !important;
    }
    .services-wrapper .double-wrapper > div:last-child {
        padding: 15px 0;
    }
    .services-wrapper h4 {
        text-align: center;
    }
    .services-wrapper h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .services-wrapper .double-wrapper .img-wrapper-inside-in {
        max-height: 500px;
        width: 100%;
    }
    .services-wrapper .double-wrapper .img-wrapper img {
        height: auto;
        width: 100%;
    }
}
@media (max-width: 900px) {
    /* SERVICES */
    .services .service {
        width: calc((100% - 20px)/ 2);
    }
}
@media (max-width: 600px) {
    article h4 {
        font-size: var(--fze-subtitle);
    }

    /* SERVICES */
    .services .service {
        width: 100%;
    }
}
@media (max-width: 550px) {
    /* SERVICES */
    .services-wrapper .double-wrapper .img-wrapper-inside {
        height: auto;
        width: 100%;
    }
    .services-wrapper .double-wrapper .img-wrapper img {
        height: auto;
        width: 100%;
    }
}
@media (max-width: 500px) {
    /* SERVICES */
    .services-grid-wrapper::after {
        border: 10px solid var(--p-color);
        width: 15px;
        height: 15px;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%) rotate(-45deg);
    }
    .services-grid-wrapper::before {
        width: 55px;
        height: 30px;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
    }

    .services-wrapper .double-wrapper > div:last-child {
        padding: 20px 0;
    }
    .services-wrapper .double-wrapper .img-wrapper-inside {
        height: auto;
        width: calc(100% - 30px);
    }
    .services-wrapper .double-wrapper .img-wrapper img {
        height: auto;
        width: 100%;
    }
}