*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family:"Montserrat";
    font-size:medium;
    background-color: #f9f9f9;
    --color1: #FFF ;
    --color2: #181818 ;
    --color3: #77B434;
    --color4:#1F3C78;
}
.titulos {
        font-weight: 700 ;
        margin: 40px 80px; 
        font-size: 2vw; 
        text-align: center; 
        color: var(--color4); 
        white-space: normal;
        position: relative;
}
.texto{
    margin: 60px 80px; /* Add spacing around the paragraph edges */
    font-size: 17px; 
    text-align: justify; 
    font-weight: 400; 
    color: #666;
    padding: 0 200px;
    line-height: 30px;
}
.texto-sub{
    font-weight: 500 ;
    margin: 60px 150px;
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center;
    color: #232323;
    line-height: 30px;
}
/*Responsive adjustments*/
@media screen and (max-width: 1200px) {
    .texto {
        padding: 0 100px;
    }
}
@media screen and (max-width: 900px) {
    .texto {
        padding: 0 50px; 
    }
    .titulos{
        font-size: 20px;
    }
}
@media screen and (max-width: 600px) {
    .texto {
        padding: 0 20px;
    }
    .titulos{
        font-size: 20px; 
    }
    .texto-sub{
        margin: 60px 50px; 
        padding: 0;
    }
}

/*navigation bar*/
.nav-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    position: relative;
    background-color: var(--color1);
    padding: 0 20px;
    z-index: 999;
}
.main_logo img {width: 300px;}
/* Hide the small logo by default */
#logo_small {
    display: none;
}
/*Responsive adjustments*/
@media (max-width: 1024px) {
    .nav-bar{
        justify-content: flex-start;
    }
    #logo_small {
        display: block;
        margin-right: auto;
    }
    #logo_big {
        display: none;
    }
}

/*menu */
.menu {display: flex;}
.menu li {padding-left: 30px;}
.menu li a {
    display: inline-block;
    text-decoration: none;
    color: var(--color2);
    text-align: center;
    transition: 0.15s ease-in-out;
    position: relative;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color3);
    transition: 0.15s ease-in-out;
}
.menu li a:hover { color: var(--color3); /* Change text color on hover */}
.menu li a:hover:after {width: 100%;}
.open-menu, .close-menu {
    position: absolute;
    color: var(--color3);
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
}
.open-menu {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}
.close-menu {
    top: 20px;
    right: 20px;
 }
#check {display: none;}
/*Responsive adjustments*/
@media (max-width: 610px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 1000;
        background-color: var(--color1);
        transition: all 0.2s ease-in-out;
    }
    .menu li {
        margin-top: 40px;
    }
    .menu li a {
        padding: 10px;
    }
    .open-menu,
    .close-menu {
        display: block;
    }
    #check:checked ~ .menu {
        right: 0;
    }
    #logo_small {
        display: block;
        width: 300px;
    }

    #logo_big {
        display: none;
    }
}
@media (min-width: 611px) and (max-width: 1024px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 1000;
        background-color: var(--color1);
        transition: all 0.2s ease-in-out;
    }
    .menu li {
        margin-top: 30px;
    }
    .menu li a {
        padding: 10px;
    }
    .open-menu,
    .close-menu {
        display: block;
    }
    #check:checked ~ .menu {
        right: 0;
    }
    #logo_small {
        display: block;
        width: 500px;
    }

    #logo_big {
        display: none;
    }
}
@media (min-width: 1025px) and (max-width: 1440px) {
    .menu {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: auto;
        height: auto;
        position: relative;
        top: 0;
        right: 0;
        background-color: transparent;
    }
    .menu li {
        margin-top: 0;
    }
    .menu li a {
        padding: 10px 20px;
    }
    .open-menu,
    .close-menu {
        display: none;
    }
    #logo_small {
        display: none;
    }

    #logo_big {
        display: block;
    }
}
@media (min-width: 1441px) {
    .menu {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: auto;
        height: auto;
        position: relative;
        top: 0;
        right: 0;
        background-color: transparent;
    }
    .menu li {
        margin-top: 0;
    }
    .menu li a {
        padding: 10px 20px;
    }
    .open-menu,
    .close-menu {
        display: none;
    }
    #logo_small {
        display: none;
    }

    #logo_big {
        display: block;
    }
}

/*slideshow*/
.home{
    position: relative;
    width: 100%;
    min-height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2); 
    overflow: hidden; /* ensure child elements respect the border-radius */
}
.home:before{
    z-index: 777;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.home .content{
    z-index: 888;
    color: #fff;
    width: 100%;
    margin-top: 50px;
    display: none;
    padding: 0 200px;
    white-space: normal;
    word-wrap: break-word; 
    word-break: break-word; 
    position: relative;
}
.home .content.active{
    display: block;
}
.home .content h1{
    font-size: 2em;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 75px;
    margin-bottom: 40px;
    white-space: normal; 
    word-wrap: break-word; 
    word-break: break-word; 
}
.home .content h1 span {
    display: inline-block;
    width: 60%;
    font-size: 1.4em;
    font-weight: 600;
    box-sizing: border-box; 
    line-height: 1.2; 

}
.home .content p{
    margin-bottom: 65px;
    color: #fff;
    padding: 0 8px;
    font-size: 1.2em;
    white-space: normal; 
    word-wrap: break-word; 
    word-break: break-word; 
    text-align: left; 
    width: 60%;
}
.home .content a{
    background: #fff;
    padding: 10px 20px;
    color: var(--color4);
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 80px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-right: 10px;
}
.slidebtns a:last-child {
    margin-right: 0; /* Remove margin from the last item */
}
.home .content a:hover {
    background-color: var(--color3); /* Change text color on hover */
    color: var(--color1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}
.home img{
    z-index: 000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-navigation{
    z-index: 888;
    position: absolute;
    bottom: 20px;
    left: 50%; /* Moves the buttons to the horizontal center */
    transform: translateX(-50%); /* Centers the buttons horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}
.slider-navigation .nav-btn{
    width: 12px;
    height: 12px;
    background: #FFF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:0 0 2px rgba(255, 255, 255, 0.5);
    transition: 0.3s ease;
}
.slider-navigation .nav-btn.active{
    background: var(--color3);
}
.slider-navigation .nav-btn:not(:last-child){
    margin-right: 20px;
}
.slider-navigation .nav-btn:hover{
    transform: scale(1.2);
}
.img-slide{
    position: absolute;
    width: 100%;
    transition: opacity 1s ease;
    opacity: 0;
}
.img-slide.active{
opacity: 1;
}
/*Responsive adjustments*/
@media only screen and (max-width: 1024px) {
    .home {
        padding: 0 40px;
    }
    .home .content {
        padding: 0 100px;
    }
    .home .content h1 {
        font-size: 1.8em;
        line-height: 65px;
    }
    .home .content h1 span, .home .content p {
        width: 70%;
    }
}
@media only screen and (max-width: 768px) {
    .home {
        padding: 0 30px;
    }
    .home .content {
        padding: 0 50px;
    }
    .home .content h1 {
        font-size: 1.6em;
        line-height: 60px;
    }
    .home .content h1 span, .home .content p {
        width: 80%;
    }
}
@media only screen and (max-width: 600px) {
    .home {
        padding: 0 20px;
    }
    .home .content {
        padding: 0 20px;
    }
    .home .content h1 {
        font-size: 1.4em;
        line-height: 50px;
    }
    .home .content h1 span, .home .content p {
        width: 100%;
    }
    .home .content a {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .slider-navigation {
    display: none;
    }
}

/*Card container*/
.card-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 100px;

}
.card{
    width: 19%;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
    margin: 10px;
    font-weight: 600;
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover effect */
    text-decoration: none; /* Remove underline from hyperlink */
    color: inherit; /* Inherit text color */
}
.card:hover {
    transform: scale(1.05); 
}
.card img{
    width: auto;
    height: 250px;
}
.card .row2{
    width: 100%;
    height: 250px;
}
.card-content{
    padding: 16px;
}
.card-content h3{
    font-size: 28px;
    margin-bottom: 8px;
}
.card-content p{
    color: #666;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    text-align: center; /* Justify the text */
}
.card-content .card-btn{
    display: none;
}
.card a {
    text-decoration: none;
    color: inherit;
}
@media (max-width: 1200px) {
    .card {
        width: 45%; 
    }
    .card-container {
        padding: 0 100px; 
    }
}
@media (max-width: 768px) {
    .card {
        width: 70%; 
    }
    .card-container {
        padding: 0 50px; 
    }
}
@media (max-width: 480px) {
    .card {
        width: 90%;
    }
    .card-container {
        padding: 0 20px;
    }
    .card img{
        width: auto;
        height: 300px;
    }
}

/*recognition images*/
.reconocimientos {
    background:#f1f5ff; 
    box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.1), /* Adding shadow bottom*/
    0 -4px 8px rgba(0, 0, 0, 0.1); /* Adding shadow top */
    overflow: hidden; 
}
.logo-container {
    display: flex;
    gap: 250px; /* Space between images */
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}
a.logo_SAE, a.logo_ARCERRN {
    display: inline-block;
    text-decoration: none;
}
a.logo_SAE img, a.logo_ARCERRN img {
    max-width: 300px; /* Adjust the maximum width*/
    height: auto;
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover effect */
    border-radius: 10px; /* Slightly rounded edges */
}
a.logo_SAE:hover img, a.logo_ARCERRN:hover img {
    transform: scale(1.1); /* Scale up the image slightly */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column; 
        gap: 20px; /* Reduce gap between images */
    }
    a.logo_SAE, a.logo_ARCERRN {
        margin-bottom: 20px; 
        display: flex;
        justify-content: center;
        width: 100%;
    }
    a.logo_SAE img, a.logo_ARCERRN img {
        max-width: 50%; /* Adjust the maximum width for smaller screens */
    }
}

/*client logos*/
@keyframes slide {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-100%);
    }
  }
  .logos {
    overflow: hidden;
    padding: 60px 0;
    background: #f9f9f9;
    white-space: nowrap;
    position: relative;
  }
  .logos:before,
  .logos:after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
  }
  .logos:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
  }
  .logos:after {
    right: 0;
    background: linear-gradient(to right, rgba(246, 246, 246, 0), #f9f9f9);
  }
  .logos:hover .logos-slide {
    animation-play-state: paused;
  }
  .logos-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
  }
  .logos-slide img {
    height: 100px;
    margin: 0 40px;
  }

/*footer*/
footer{
    bottom: 0px;
    width: 100%;
    background: #eeeeee;
  }
.img-footer{
    width: 250px;
    padding: 0 40px;
    margin: 0 auto;
    display: block;
    align-items: center;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
  }
  .main-content{
    display: flex;
    padding: 20px 200px;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
  }
  .main-content .left-box{
    flex-basis: 30%; 
    padding: 10px 20px;
  }
.main-content .right-box{
    flex-basis: 70%; /* Larger width for the right box */
    padding: 10px 20px;
  }
  .box h2{
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color:var(--color4);
  }
  .box .content{
    margin: 20px 0 0 0;
    position: relative;
  }
  .box .content:before{
    position: absolute;
    content: '';
    top: -10px;
    height: 2px;
    width: 100%;
    background: #eee;
  }
  .box .content:after{
    position: absolute;
    content: '';
    height: 2px;
    width: 18%;
    background: #eee;
    top: -10px;
  }
  .center .content a {
    text-decoration: none;
    color: inherit;
  }
  .center .content .fas{
    font-size: 0.8rem;
    background: #e2e2e2;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
  }
  .center .content .fas:hover{
    background: var(--color4);
    color: var(--color1);
  }
  .center .content .fab{
    font-size: 0.8rem;
    background: #e2e2e2;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
    font-size: 22px;
  }
  .center .content .fab:hover{
    background: var(--color3);
    color: var(--color1);
  }
  .center .content .text{
    font-size: 0.8rem;
    font-weight: 400;
    padding-left: 10px;
    color: #666;
  }
  .center .content .phone{
    margin: 10px 0;
  }
  .center .content .wpp{
    margin: 10px 0;
  }
@media screen and (max-width: 1200px) {
    .main-content {
        padding: 20px 100px; /* Decrease padding for medium screens */
    }
}
@media screen and (max-width: 900px) {
    footer {
        position: relative;
        bottom: 0px;
    }
    .main-content {
        flex-wrap: wrap;
        flex-direction: column;
        padding: 20px 50px; /* Further decrease padding for smaller screens */
    }
    .main-content .left-box, .main-content .right-box {
        flex-basis: 100%; /* Full width for each box */
        padding: 10px 0; 
    }
    .main-content .box {
        margin: 5px 0;
    }
}
@media screen and (max-width: 600px) {
    .main-content {
        padding: 20px 20px; /* Minimal padding for very small screens */
    }
}