/* 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;
}

/* Estilos generales de la barra de navegación */

.hamburguesa{
    display: none;
}

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: 100%;
    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: 1200px;
    margin: 0 auto;
    padding: 0 70px;
    position: relative;
    /* Needed for absolute positioning of the button */
    background: radial-gradient(circle at center, rgba(240, 154, 77, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    background-size: 250px;
    background-repeat: no-repeat;
    background-position: center bottom;
}


.section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.more-info-button {
    position: absolute;
    /* Position button inside the container */
    left: 50%;
    transform: translateX(-50%);
    /* Center the button horizontally */
    bottom: -10px;
    /* Adjust as needed to position it inside the circle */

}

.more-info-button img {
    width: 150px;
}

.more-info-button:hover {
    background-color: #cc7f3d;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 20px;
    margin-top: 30px;
    width: calc(90% - 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;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.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: 1670px;
    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: 1600px;
    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: left;
}

.text-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.text-container p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.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 */
}

.technologies-section {
    background-color: #000;
    color: #fff;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.technologies-container {
    max-width: 1650px;
    width: 100%;
    text-align: center;
}

.technologies-section .section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;

}

.technology-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.technology-item .image-container img {
    width: 100%;
    display: block;
    /* Ensure no extra space below image */
    height: auto;
}

.technology-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Initially hidden */
    transition: opacity 0.3s ease;

}

.technology-item:hover .technology-overlay {
    opacity: 1;
    /* Show overlay on hover */
}

.technology-content {
    color: #fff;
    text-align: center;
}

.technology-content h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}


.technology-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.sumate{
    width: 100%;
}


/* Footer Styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1600px;
    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;
}

.sumate{
    width: 100%;
    height: 323px;
    background-image: url("imagenes/sumate.png");
    background-repeat: no-repeat;
    background-size: contain;
    align-items: center;
    text-align: center;
}

/* controles del reproductor */
.success-video-container {
    position: relative;
    /*  otros estilos  */
}
.video-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 2; /* Asegura que los botones estén sobre el video */
}

.control-button {
    background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente para los botones */
    border: none;
    border-radius: 50%; /* Hace los botones circulares */
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Elimina la sombra por defecto y establece el tamaño */
    box-shadow: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Media query para diseño responsive en dispositivos móviles */
@media (max-width: 768px) {
    /* Estilos del nav en móvil */
    nav {
        flex-wrap: wrap;
        padding: 10px;
        position: fixed;
        /* Cambiado a 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 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;
        /* Centra los elementos verticalmente en el menú */
    }

    /* Estilos de los elementos li en móvil */
    nav .menu li {
        display: flex;
        /* Convierte el li en un flex container */
        align-items: center;
        /* Centra los items verticalmente */
        min-height: 40px;
        /* Altura mínima para cada li */

    }

    /* 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;
        background-size: 150px;
    }

    .section-title {
        font-size: 2em;
    }

    .section-description {
        font-size: 1.1em;
    }

    .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;
    }
     .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;
    }

   .success-content {
        flex-direction: column;
        align-items: center; /* Centra los elementos verticalmente */
        gap: 20px;
      }

     .success-video-container {
        width: 100%;
        max-width: 100%; /* Añadido para asegurar que no se desborde */
          margin-bottom: 20px;
    }


    .success-video-container video {
          display: block;
          width: 100%;
          height: auto; /* La altura se ajusta para mantener la proporción */
      }
      .success-section{
          padding: 20px 10px;
    }

    .text-container{
        text-align: center;
          padding: 0px;
         max-width: 100%; /* Asegura que no se desborde */
    }

    .text-container h2 {
        font-size: 1.5rem;
         margin-bottom: 15px;
    }
    .text-container p {
        font-size: 0.9rem;
         margin-bottom: 20px;
    }
    .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);
   }
   .language-contact{
      margin-top: 10px;
   }

   .language-contact{
    display: none;
}
}