/* Resets básicos y estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Comfortaa', sans-serif;
    color: #fff;
    background-color: #000;
}

.hamburguesa{
    display: none;
}

/* Estilos generales de la barra de navegación */
nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 70px;
    z-index: 101;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease;
}


/* Estilos del logo de la barra de navegación */
nav .logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

/* Estilos de la imagen del logo */
nav .logo img {
    width: 230px;
    margin-left: 90px;
}

/* Contenedor del menú */
nav .menu-container {
    background-color: #D9D9D94D;
    border-radius: 30px;
    position: relative;
    left: -180px;
}

/* Lista del menú */
nav .menu {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

/* Estilos de los enlaces del menú */
nav .menu li a {
    text-decoration: none;
    color: #fff;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

/* Estilos de las imágenes de los iconos de los enlaces del menu */
nav .menu li a img {
    width: 40px;
    margin-right: 20px;
    margin-left: -30px;
}

/* Estilos de los enlaces del menú cuando el cursor pasa sobre ellos */
nav .menu li a:hover {
    color: #ccc;
}

/* Clase que activa el fondo negro al hacer scroll */
nav.scrolled {
    background-color: #000;
}

/* Contenedor de la selección de idioma y botón de contacto */
.language-contact {
    display: flex;
    align-items: center;
    position: relative;
    right: 85px;
}

/* Estilos del icono del selector de idioma */
.language-contact .language-icon {
    width: 20px;
    margin-right: 10px;
}

/* Estilos del selector de idioma */
.language-contact select {
    margin-right: 10px;
    background-color: transparent;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

/* Estilos de las opciones del selector de idioma */
.language-contact select option {
    color: black;
}

/* Estilos del botón de contacto 
    Este estilo no parece usarse directamente en el HTML proporcionado
*/
.language-contact button {
    background-color: #f09a4d;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Estilos del botón de contacto cuando el cursor pasa sobre el */
.language-contact button:hover {
    background-color: #cc7f3d;
}

/* Capa oscura sobre el video */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 125%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Contenedor del contenido principal del header */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

/* Estilos del titulo principal */
.content h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2em;
}

/* Estilos del enlace */
.content a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos de la imagen del enlace */
.content a img {
    width: 170px;
}

/* Estilos del botón general */
.btn {
    background-color: #f09a4d;
    padding: 10px 20px;
    color: #fff;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Estilos del botón general cuando el cursor pasa sobre el */
.btn:hover {
    background-color: #cc7f3d;
}

/* Section Styles */
.purpose-section {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: #000;
    width: 100%;
}

.purpose-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: radial-gradient(circle at center, rgba(1, 179, 195, 0.25) 0%, rgba(1, 33, 195, 0) 70%);
    background-size: 250px;
    background-repeat: no-repeat;
    background-position: right bottom;
}


.section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    margin-left:193px;
}

.section-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.more-info-button {

    bottom: 10px;

}

.more-info-button img {
    width: 150px;
}

.more-info-button:hover {
    background-color: #cc7f3d;
}

.image-container {
    width: 45%;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.image-container img {
    max-width: 100%;
    height: auto;

}

.text-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 120px;
    margin-bottom: 100px;
}

.text-container .section-title {
    text-align: center;
    margin: 0 auto;
}

.text-container .section-description {
    text-align: left;
    margin-left: -25px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 20px;
    margin-top: 30px;
    width: calc(100% - 40px);
    min-width: 1200px;
    justify-content: center;
    padding: 0 20px;
    margin: 10 20px;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 60px;
}

.image-container img {
    width: 80%;
    height: 300px;
    object-fit: cover;
    border-radius: 60px;
}

.image-container.earth-image img {
    width: 263px;
    height: 388px;
}

.image-container.people-image img {
    width: 268px;
    height: 261px;
}

.image-container.people-image:nth-child(3) img {
    width: 260px;
    height: 295px;
}

.image-container.landscape-image img {
    width: 281px;
    height: 397px;
}

#imagen2 {
    margin-top: 168px;
}

#imagen5 {
    margin-bottom: 165px;
}

.tech-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.tech-image .tech-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;

}

.tech-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.tech-result {
    font-size: 1em;
}

.tech-button a {
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #007D77;
    text-decoration: none;
}

/* Image hover effects */
.image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.clients-section {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #000;
    width: 100%;
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 70px;
    overflow: hidden;
}

.clients-section .section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.clients-section .section-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #fff;
}

.clients-logos {
    display: flex;
    justify-content: flex-start;
    /* Changed back to flex-start */
    align-items: center;
    padding: 20px;
    white-space: nowrap;
    width: fit-content;
    /* Adjust to fit all content  */


}

.logos-wrapper {
    display: flex;
    animation: carousel 20s linear infinite;
}

.clients-logos img {
    margin: 10px;
    max-width: 100px;
    max-height: 100px;
    opacity: 0.5;
    flex-shrink: 0;
}

.clients-section {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #000;
    width: 100%;
}

.clients-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 70px;
    overflow: hidden;
}

.clients-section .section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.clients-section .section-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #fff;
}

.clients-logos {
    display: flex;
    justify-content: flex-start;
    /* Changed back to flex-start */
    align-items: center;
    padding: 20px;
    white-space: nowrap;
    width: fit-content;
    /* Adjust to fit all content  */
}

.logos-wrapper {
    display: flex;
    animation: carousel 20s linear infinite;
}

.clients-logos img {
    margin: 10px;
    max-width: 100px;
    max-height: 100px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Animation for carousel effect */
@keyframes carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.success-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #ffffff;
    padding: 40px 20px;
}

.success-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 30px;
    align-items: center;
}

/* Ajuste para el contenedor del video en success-section */
.success-section .success-video-container {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.success-section .success-video-container video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.text-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.text-container p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-projects {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #121212;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-projects:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.btn-projects .arrow-icon {
    margin-left: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.video-overlay-container {
    position: relative;
    width: 100%;
    height: auto;
}

.video-overlay-container video {
    width: 100%;
    display: block;
    /* removes video spacing below */
    object-fit: cover;
    /* keeps video at aspect ratio */
}

.overlay-image {
    position: absolute;
    /* position over video */
    max-width: 300px;
    /* or desired size */
    height: auto;
    z-index: 1;
    /* place above video, could go higher if needed */
}

.image1 {
    bottom: 20px;
    /* example position */
    left: 20px;
    /* example position */
}

.image2 {
    bottom: 20px;
    /* example position */
    right: 20px;
    /* example position */
}

.sumate {
    width: 100%;
}


/* Footer Styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
}

.footer-logo img {
    width: 200px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.footer-social a img {
    width: 30px;
    height: 30px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact p img {
    width: 20px;
    margin-right: 10px;
}

footer h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.contact-column {
    flex: 5.5;
}

/* Estilos del carrusel de logos */
.slider {
    width: 75vw;
    height: auto;
    margin: auto;
    overflow: hidden;
    margin-top: -100px;
}

.slider .slide-track {
    display: flex;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 40s linear infinite;
    width: calc(200px * 14);
    align-items: center;
}

.slider .slide {
    width: 200px;
    padding: 10px;
}

.slider .slide img {
    width: 100%;
}

@keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(calc(-200px * 7));
        transform: translateX(calc(-200px * 7));
    }
}

/* Estilos para la seccion sumate */
.sumate {
    width: 100%;
    height: 323px;
    background-image: url("imagenes/sumate.png");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Team Styles */
/* Team Styles */
.team-section {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #000;
    width: 100%;
}

.team-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 70px;

}

.team-members {
    display: flex;
    justify-content: center;
    /* Remove flex-wrap: wrap; */
    margin-top: 20px;
}

.team-container .section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;

}


.team-member {
    margin: 0 20px;
    /* Adjusted horizontal spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content horizontally */

}

.team-member img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.team-member h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 1em;
    color: #f09a4d;
}

/* Media query para diseño responsive en dispositivos móviles */
@media (max-width: 768px) {

    /* Contenedor del header para el video de fondo */
    header {
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
        z-index: 100;
        min-height: 50vh;
    }

    /* Contenedor del video de fondo */
    .video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: -1;
    }

    /* Estilos del video para que ocupe todo el contenedor */
    .video-container video {
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }

    /* Estilos del nav en móvil */
    nav {
        flex-wrap: wrap;
        padding: 10px;
        position: fixed;
        background-color: #000;
        z-index: 100;
        justify-content: flex-end;
    }

    /* Estilos del logo en móvil */
    nav .logo {
        margin-bottom: 0px;
        flex: 1;
        margin-left: 0px;
    }

    /* Estilos de la imagen del logo en móvil */
    nav .logo img {
        width: 150px;
        margin-left: 0px;
    }

    /* Estilos del menu toggle (hamburguesa) en móvil */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 102;
        margin-right: 15px;
    }

    /* Estilos de las líneas de la hamburguesa en móvil */
    .menu-toggle span {
        height: 3px;
        background-color: #fff;
        transition: transform 0.3s ease;
    }

    /* Estilos de las líneas de la hamburguesa en móvil cuando se activa*/
    .menu-toggle.active span {
        background-color: #fff;
    }

    /* Estilos del menu container en móvil */
    nav .menu-container {
        background-color: #D9D9D94D;
        border-radius: 0;
        position: absolute;
        top: 100%;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-end;
        margin-top: 5px;
        margin-bottom: 0px;
        padding: 10px 0;
        width: 250px;
    }

    /* Estilos del menu container activo en móvil */
    nav .menu-container.active {
        display: flex;
        position: relative;
        left: 0;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    /* Estilos del menu en móvil */
    nav .menu {
        flex-direction: column;
        width: auto;
        padding: 0 10px;
        align-items: center;
    }

    /* Estilos de los elementos li en móvil */
    nav .menu li {
        display: flex;
        align-items: center;
        min-height: 40px;
    }

    /* Estilos de los enlaces del menu en móvil */
    nav .menu li a {
        margin: 10px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Oculta la imagen de la casa en pantallas pequeñas */
    nav .menu li:first-child a img {
        display: none;
    }

    /* Estilos de la imagen de los iconos del menu en móvil */
    nav .menu li a img {
        width: 30px;
        margin-right: 10px;
        margin-left: 0px;
    }

    /* Estilos de language contact en móvil */
    .language-contact {
        margin-top: 10px;
        flex-direction: row;
        align-items: center;
        right: 0px;
        padding-right: 15px;
    }

    /* Estilos del selector de idioma en móvil */
    .language-contact select {
        margin-bottom: 0px;
        margin-right: 0px;
    }

    /* Estilos del contenedor del texto en móvil */
    .content h1 {
        font-size: 1.7em;
    }

    .hamburguesa {
        display: block;
    }

    /* FIN DEL HEADER */

    .purpose-section {
        padding: 20px 0;
    }

    .purpose-container {
        padding: 0 20px;
        flex-direction: column;
        background-size: 150px;
    }

     .purpose-container .image-container {
        width: 100%;
        max-width: 100%;
     }

    .purpose-container .text-container {
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2em;
        text-align: center;
    }

    .section-description {
        font-size: 1.1em;
        margin-left: 0;
        text-align: center;
         padding: 0 15px;
    }

   .image-grid {
       grid-template-columns: 1fr;
       padding: 10px 20px;
       margin: 0;
       min-width: auto;
       width: 100%;
   }

    .image-container.earth-image img {
        width: 100%;
        height: auto;
    }

    .image-container.people-image img {
        width: 100%;
        height: auto;
    }

    .image-container.people-image:nth-child(3) img {
        width: 100%;
        height: auto;
    }

    .image-container.landscape-image img {
        width: 100%;
        height: auto;
    }


    .more-info-button {
        bottom: -5px;
    }

    .more-info-button img {
        width: 100px;
    }

    .technologies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .technology-content h3 {
        font-size: 1em;
        margin-bottom: 5px;
    }

    .technologies-section .section-title {
        font-size: 2em;
        text-align: center;
    }

   .footer-container {
       flex-direction: column;
       text-align: center;
       padding: 20px;
   }

   .footer-column {
       padding: 10px 0;
   }

   .footer-social {
       justify-content: center;
       margin: 15px 0;
   }

   .footer-contact {
       margin-top: 10px;
   }

    .clients-container {
        padding: 0 20px;
    }

    .team-container {
        padding: 0 20px;
    }

    .success-content {
        flex-direction: column;
        align-items: center;
    }

    .success-video-container {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .success-video-container video {
        display: block;
        width: 100%;
        height: auto;
    }

    .success-section {
        padding: 20px 10px;
    }

   .text-container {
        text-align: center;
        padding: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .text-container h2 {
       font-size: 1.5rem;
       margin-bottom: 15px;
        text-align: center;
    }

    .text-container p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 15px;
    }

    .text-container img {
        max-width: 100%;
        height: auto;
    }

   .sumate {
       height: 180px;
       background-size: cover;
       padding: 20px;
       text-align: center;
   }

   .sumate h2 {
       font-size: 1.2rem;
       margin-bottom: 20px;
   }

   .sumate a img {
       width: 120px;
   }

    nav .logo img {
        width: 150px;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
    }

    .menu-toggle .bar {
        width: 30px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        display: block;
        transition: transform 0.3s ease;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .slider {
        width: 95vw;
        margin-top: 0px;
    }

     .team-members {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-member {
        width: calc(50% - 20px);
         margin: 10px;
    }

    /* Ajustes específicos para el slider */
    .slider .text-container {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 350px;
    }

    .slider .text-container h2 {
        font-size: 1.5em;
        text-align: center;
    }

     .slider .text-container p {
        font-size: 1em;
        line-height: 1.4;
        text-align: center;
         padding: 0 15px;
    }
    .team-section .section-title{
        text-align: center;
        position: relative;
        margin: 0 auto;
    }
   /* Centrado del texto de clientes y aliados */
    .clients-section .text-container {
       display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .clients-section .text-container p {
        padding: 0 15px;
    }

    .language-contact{
        display: none;
    }
}