/* ############################################ HEADER ############################################ */


@media (min-width: 1110px) {
    header .header a {
        color: white;
        font-size: 14px;
        transition: all 0.3s ease;
    }
}

header .header a:hover {
    color: var(--primary-color)
}

.header .menu__item--has-children-arrow {
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.5s ease;
}

.menu__submenu-list {
    list-style: none;
    padding-bottom: 10px;
}

.menu__submenu-list li {
    padding-bottom: 4px;
}

/* ############################################ SOLUTIONS ############################################ */

.grid.change__order div:first-child {
    order: 2;
}

.grid.change__order div:last-child {
    order: 1;
}

/* GALLERY TOP*/
.product--gallery {
    display: flex;
    align-items: start;
    gap: 20px;
    max-width: 600px;
    width: 100%;
}

.single-solution .grid.not__img .product--gallery {
    order: 2;
}

.single-solution main .button {
    margin-top: 20px;
}

.thumbnail__container {
    flex-basis: calc(100px - 20px);
    height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #888 #f0f0f0;
}

.product__main__image-container {
    flex-shrink: 0;
    flex-basis: calc(500px - 20px);
    height: 500px;
}

.thumbnail__container::-webkit-scrollbar {
    width: 6px;
    /* Ancho de la barra de desplazamiento */
}

.thumbnail__container::-webkit-scrollbar-track {
    background: #f0f0f0;
    /* Color del fondo de la barra */
}

.thumbnail__container::-webkit-scrollbar-thumb {
    background-color: #888;
    /* Color del cursor de la barra */
    border-radius: 10px;
    /* Bordes redondeados para el cursor */
    border: 1px solid #f0f0f0;
    /* Borde alrededor del cursor */
}

.thumbnail__container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.product__thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product__thumbnails img {
    width: 100%;
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 1px solid lightgrey;
}

.product__thumbnails img:hover {
    opacity: 1;
    margin-right: 5px;
}

#product__main__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project--gallery #product__main__image {
    object-fit: cover;
}

.project--gallery>div:first-child {
    order: 2;
}

.project--gallery>div:last-child {
    order: 1;
}

.product__video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    overflow: hidden;
}

.product__video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* Elimina bordes adicionales */
}

@media screen and (max-width: 1200px) {
    .product--gallery {
        flex-flow: column;
    }

    .thumbnail__container {
        width: 100%;
        height: 100px;
        overflow-y: initial;
        overflow-x: scroll;
        order: 2;
    }

    .product__thumbnails {
        flex-direction: row;
    }

    .product__thumbnails img {
        max-width: 70px;
        max-height: 70px;
        object-fit: contain;
    }
}


/* SLIDER BOTTOM */
.swiperSolution {
    width: 100%;
    max-height: 500px;
}

.swiperSolution img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}


.section--features h2 {
    margin-bottom: 30px;
}

/* SOLUTIONS CARDS */
.card--solution {
    position: relative;
    background-color: #F0F0F0;
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    gap: 30px;
    padding: 20px 20px;
    margin-top: 100px;
}

.card--solution .card__solution-img {
    max-height: 220px;
    position: absolute;
    top: -100px;
    left: 0;
}

.card--solution .card__solution-img:after {
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translate(-45%);
    content: '';
    background: url(../img/Ellipse.png) no-repeat left bottom;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background-size: auto 50%;
}

.card--solution .card__solution-img img {
    width: 200px;
    object-fit: contain;
}

.card--solution .card__solution-content {
    margin-top: 100px;

}

.card--solution.no__img .card__solution-content {
    margin-top: 0;
}

/* TABLES */
.tables--section .container>* {
    margin: 20px 0;
}

@media screen and (max-width: 690px) {
    .table--container {
        overflow-y: scroll;
    }
}

/* DOWNLOADS */
.section--downloads .accordion__content {
    max-width: 500px;
}

.section--downloads .download__item {
    margin-bottom: 8px;
}

.section--downloads .download__item a {
    color: var(--primary-color)
}


/* ############################################ PROJECTS ############################################ */
.project--card {
    position: relative;
}

.project__card_content>* {
    margin-bottom: 10px;
}

.project--card:nth-child(odd):before {
    content: "";
    bottom: -34px;
    left: 0;
    background-color: #19619C;
    position: absolute;
    width: 95%;
    height: 34px;
}

.project--card:nth-child(even):before {
    content: "";
    top: -34px;
    right: 0;
    background-color: #19619C;
    position: absolute;
    width: 95%;
    height: 34px;
}

.project__card_content {
    position: relative;
    padding: 180px 30px 50px;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    color: white;
}

.project__card_img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.project__card_img:before {
    content: "";
    opacity: 0.9;
    background: linear-gradient(0.58deg, #133447 0%, #133447 32%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project__card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* ############################################ SLIDER PROJECTS ############################################ */
.sliderProjects .swiper-wrapper {
    padding: 50px 0 100px;
}


/* ############################################ BANNER IMG ############################################ */
.banner--mobile {
    display: none;
}

@media screen and (max-width: 890px) {
    .banner--mobile {
        display: block;
    }

    .banner--desktop {
        display: none;
    }
}


/* ############################################ HERO SLIDER ############################################ */
.hero--slider {
    position: relative;
    width: 100%;
    max-width: 1370px;
    margin: 50px auto 0;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.hero__slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
}

.hero__slider-container-left {
    position: relative;
    flex-basis: 30%;
    padding: 100px 40px;
}

.hero__slider-container-left img {
    max-width: 100px;
    width: 100%;
    margin-bottom: 10px;
}

.hero__slider-container-left h1 {
    font-family: 'Arvo', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.hero__slider-container-right {
    position: relative;
    flex-basis: 70%;
}

@media screen and (max-width: 1260px) {
    .hero--slider {
        margin: 0 auto;
        border-radius: 0;
    }

    .hero__slider-container-left {
        padding: 50px 40px;
    }
}

@media screen and (max-width: 960px) {
    .hero__slider-container {
        flex-flow: column wrap;
    }

    .hero__slider-container-left,
    .hero__slider-container-right {
        flex-basis: 100%;
    }

    .hero__slider-container-left {
        padding: 50px 25px;
        order: 2;
    }

    .hero__slider-container-right {
        order: 1;
    }

    .hero__slider-container-right .background__gallery {
        height: 300px;
    }

}



/* ############################################ FOOTER ############################################ */
.footer__menu-content {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    gap: 60px;
    height: 150px;
}

.footer__menu-content .left {
    flex-basis: 40%;
}

.footer__menu-content .right {
    flex-basis: 60%;
}

.footer__menu-content ul,
.footer__menu-content li {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.footer__menu-content ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.footer__menu-content li {
    padding-bottom: 10px;
}

@media screen and (max-width: 990px) {
    .footer__menu-content {
        flex-flow: column nowrap;
        gap: 30px;
        height: 100%;
    }
}

@media screen and (max-width: 790px) {
    .footer__menu-content ul {
        gap: 0 30px;
    }
}

@media screen and (max-width: 560px) {
    .footer__menu-content ul {
        grid-template-columns: 1fr;
    }
}