:root {
    --primary: #29406c;
    --primary-foreground: #fff;

    --secondary: #CE784F;
    --secondary-foreground: #000;
    --min-width-body: 1300px;
    --hover: 75%;

    --height-carousel: 700px;
    background: var(--primary)
}

body {
  background: #fff;
}

@media (max-width: 1400px) {
    :root {
        --min-width-body: 100vw;
    }
}

.main_footer {
    font-size: 16px;
    background: var(--primary);
    color: var(--primary-foreground);
    margin-top: 2em;
}

.main_footer .links > *{
    opacity: var(--hover);
    display: block;
}

.main_footer .data a {
    opacity: var(--hover);
}

.main_footer .data a:hover {
    opacity: 1;
}

.main_footer .links > *:hover{
    opacity: 1;
    display: block;
}

.footer {
    font-size: 13px;
    text-align: center;
}

.nav {
    z-index: 2;
    width: 100%;
    background-color: #fcfcfc;
    padding-bottom: 20px;
    overflow-x: hidden;
}

html:not([data-scroll='1']) #nav_carousel {
    background-color: transparent;
}

.nav .nav_info {
    width: 100%;
    padding-right: 5rem;
}

.nav .nav_logo {
    width: 130px;
    background-image: url("../media/fibralog.png");
    background-size: cover;
    height: 93.73px;
}

@media (max-width: 1000px) {
    .section_with_image {
        align-items: center;
        flex-direction: column;
        width: 100vw;
    }

    .nav .nav_navigation {
        font-size: 12px;
    }

    .nav .nav_info {
        font-size: 8px;
    }
}

.nav .nav_navigation {
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav .nav_navigation a {
    opacity: var(--hover);
    font-weight: bold;
}
.nav .nav_navigation a:hover {
    opacity: 1;
}

.body {
    width: var(--min-width-body);
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}
.section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 24px;
    display: block;
}

.section_with_image {
    width: calc(var(--min-width-body));
    font-size: 14px;
    display: flex;
    background: #f3f3f3;
    border-radius: 5px;
}

.section_with_image .desc {
    margin: 20px;
}

.section_with_image .txt {
    display: block;
}

.section_with_image .image_section_with_image {
    width: 570px;
    height: 370px;
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .section_with_image .image_section_with_image {
        width: var(--min-width-body);
    }
}

.section_with_image #image_contacto {
    border-radius: 0 5px 5px 0;
    background-image: url("../media/misc/eolico3.JPG");
    background-size: cover;
}

.section_with_image #image_servicio {
    border-radius: 5px 0 0 5px;
    background-image: url("../media/misc/eolico4.JPG");
    background-size: cover;
}
.section_with_image .desc {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: justify;
}

a.redirect {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 10px;
    border-radius: 5px;
    width: fit-content;
}

a.redirect:hover {
    background-color: var(--secondary);
}

.carousel {
    position: relative;
    z-index: 0;
    width: 100%;
    height: var(--height-carousel);
}

.carousel > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 200ms opacity ease-in-out;
    transition-delay: 100ms;
}

.slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide[data-active] {
    opacity: 1;
    z-index: 0;
    transition-delay: 0ms;
}

.carousel-button {
    position: absolute;
    z-index: 2;
    background: none;
    border: none;
    font-size: 4rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    border-radius: .25rem;
    padding: 0 1rem;
    background-color: rgba(0, 0, 0, .1);
}

@media (max-width: 500px) {
    :root {
        --height-carousel: 400px;
    }
    .carousel-button {
        font-size: 2rem;
    }
    
    .nav .nav_logo {
        width: 60px;
        height: 43.26px;
    }
}

.carousel-button:hover,
.carousel-button:focus {
    color: white;
    background-color: rgba(0, 0, 0, .2);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.cards_services_section {
    display: flex;
    justify-content: center;
    gap: 25px;
    width: var(--min-width-body);
}

.cards_services_section .card_service {
    width: 200px;
    min-height: 200px;
    background: #EBEEEF;
    border-radius: 5px;
    padding: 20px;
    cursor: default;
    border-bottom: 5px solid var(--secondary);
}

.cards_services_section .card_service .service_card_title {
    font-size: 25px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
}

.body.main_body {
    position: relative;
    margin-top: -100px;
}

@media (max-width: 800px) {
    .cards_services_section {
        gap:3px
    }
    
    .cards_services_section .card_service {
        padding: 10px;
        width: 80px;
        min-height: 100px;
        font-size: 10px;
    }

    .cards_services_section .card_service .service_card_title {
        font-size: 15px;
    }
    .body.main_body {
        margin-top: -50px;
    }
}

.section #clientImages {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    align-items: center;
}

@media (max-width: 1000px) {
    .section #clientImages {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 750px) {
    .section #clientImages {
        grid-template-columns: repeat(2, 1fr);
    }
}

.section #clientImages a {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    opacity: var(--hover);
}

.section #clientImages a:hover {
    opacity: 1;
}

.body.clients_body > div.section_with_image {
    padding: 1rem;
    width: 60%;
    background: none;
    border: 1px solid #efefef;
}

.body.clients_body .section_with_image {
    display: flex;
    justify-content: space-between;
}

.body.clients_body .section_with_image .image_section_with_image {
    height: 70px;
    width: auto;
}

.body.clients_body .section_with_image .desc {
    width: 50%;
}

.section .contacto_email {
    color: #29406c;
}

.body .contacto.section {
  border-radius: 5px;
  background: #f3f3f3;
  padding: 2rem;
}

.clients_body .section #jobs:hover {
  background-color: #fff;
}

#services_section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#services_section .section.section_services {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#services_section .section.section_services i {
    font-size: 30px;
}