@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --primary-color: #2BAF6E;
    --secondary-color: #32ADE6;
    --gray: #202020;
    --light-green: #b2e8c6;
}


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #f4f4f4;
    color: #555;
    font-size: 16px;
    line-height: 1.6em;
    margin: 0;
}

header {
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    z-index: 9999;
    position: fixed;
    top: 0;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.divlogo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
}

.logo {
    max-width: 100%;
}

.nav-menu {
    display: flex;
    gap: 20px;
    padding: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-list span {
    display: none;
}


/* Permite que ocupe el espacio disponible */
.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 20px;
    flex-grow: 1;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
}

/* Color de fondo al pasar el mouse */
.nav-list a:hover {
    color: #b2e8c6;
    transition: color 0.3s ease-in-out;
}

/* Espaciado entre los elementos de la lista */
.nav-list li {
    margin: 0 15px;
    font-weight: bold;
}

/* Espaciado entre los iconos */
.social-icons-header {
    display: flex;
    gap: 30px;
    padding: 10px;
    transition: transform 0.3s ease;
}


.social-icons-header a:hover {
    color: var(--light-green);
}

.social-icons-header a:hover svg path {
    fill: var(--light-green)
        /* Cambia el color del SVG */
}

.social-icons-header a:hover {
    transform: scale(1.1);
    /* Aplica el efecto de escala a todo el contenido */
    transition: transform 0.3s ease;
    /* Para animar suavemente la transformación */
}

.menu-icon {
    display: none;
}


.header-line {
    border: 1px solid #fff;
    margin-top: 10px;
}







main {
    padding: 0px;
    overflow: auto;
    margin-top: 0px;
    z-index: 1;
}

.grand-img {
    width: 100%;
    max-height: 800px;
}
.grand-img img{
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
}

.overlay-box {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 0 auto;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    z-index: 2;
}

/* Efecto de degradado en la parte superior del cuadro */
.overlay-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    margin-top: -49px;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 100), rgba(0, 0, 0, 0));
    /* De negro a transparente */
}

/*services*/
.overlay-box h1 {
    font-size: 3.5rem;
    font-weight: bold;
    z-index: 1;
    margin-bottom: 20px;
    text-align: center;
    
}
.overlay-box p {
    font-size: 1.2rem;
    text-align: center;
    padding: 0px 150px;
    z-index: 1;
    margin-top: 10px;
    margin-bottom: 20px;
}
.texto {
    width: 80%;
}
/* Botones centrados */
.buttons {
    display: flex;
    gap: 20px;
    z-index: 1;
}

.buttons a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s ease;
}

/* Botón negro */
.buttons .btn-black {
    background-color: #202020;
    color: #fff;
}

/* Botón blanco */
.buttons .btn-white {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

/* Hover en botones */
.buttons .btn-black:hover {
    background-color: #333;
}

.buttons .btn-white:hover {
    background-color: #f4f4f4;
}




.section {
    display: flex;
    background-color: var(--secondary-color);
    width: 100%;
    justify-content: space-evenly;
    height: auto;
}

.galeria-imagenes {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  grid-template-rows: repeat(2, 1fr);    /* 2 filas */
  gap: 15px; /* Espacio entre las imágenes */
  width: 70%; /* Que no se salga del contenedor */
   /* Controla el tamaño máximo */
  padding: 20px;
}

.galeria-imagenes .imagen {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Evita que la imagen se salga */
  border-radius: 15px; /* Bordes redondeados */
  background-color: #f0f0f0;
  max-width: 100%;
  max-height: 250px ; /* Un fondo opcional para cuando la imagen no carga */
}
.galeria-imagenes img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubre el espacio sin deformarse */
  }



.section .text-nosotros {
    width: 50%;
    height: 500px;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
}

.text-nosotros p {
    font-size: 1.1rem;
    text-align: start;
    z-index: 1;
    margin-bottom: 20px;
}

.text-nosotros strong {
    font-weight: bold;
    color: #106494;
}

.text-nosotros h2 {
    font-size: 3rem;
    font-weight: bold;
    z-index: 1;
    margin-bottom: 60px;

}



.two-cards{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    padding: 20px;
    justify-content: center;
    align-items: center;
}
.two-cards h1 {
    color: #FFF;
    font-size: 4rem;
    padding:30px;
}
.two-cards h2{
    text-align: center;
    font-size: 2rem;
    margin: 0;
}
.two-cards .content {
    display: flex;
    gap: 20px;
    width: 80%;
    padding: 10px;
    justify-content: space-around;
}
.two-cards .content .about-content{
    background-color: #2d8158;
    height: 100%;
    padding: 30px;
    color: #FFF;
    border-radius: 10px;

}
.two-cards .content .about-content .text{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}




/* Estilos generales para la sección */
.valores {
    padding: 2rem 1rem; /* Espaciado interno */
    background-color: var(--secondary-color); /* Color de fondo claro */
    text-align: center; /* Centra el título */
}
.about-conten{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-conten h1 {
    color: #FFF;
    font-size: 3rem;
    padding: 30px;
    margin-bottom: 20px;
}

.cards-valores {
    width: 80%;
}
.values-list {
    display: grid; /* Usamos Grid */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Distribuye columnas */
    gap: 1.5rem; /* Espacio entre las tarjetas */
    padding: 0; /* Elimina el padding predeterminado de la lista */
    list-style: none;
    width: 100%; 
}

.values-list li {
    background-color: #2a8ab6; /* Fondo blanco para las tarjetas */
    color: #FFF; /* Borde ligero */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    padding: 1.5rem; /* Espaciado interno */
    text-align: left; /* Texto alineado a la izquierda */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efecto hover */
}

.values-list li b {
    color: #174d6c; /* Color para los títulos de los valores */
    font-size: 1.2rem;
    display: block; /* Coloca el título en una línea separada */
    margin-bottom: 0.5rem; /* Espacio entre título y texto */
}

.values-list li:hover {
    transform: translateY(-5px); /* Efecto levantar tarjeta */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Mayor sombra al hacer hover */
}





/* Estilos generales para la sección */
.Nuestro-equipo {
    padding: 4rem 1.5rem; /* Más espaciado para resaltar la sección */
    background-color: #f9f9f9; /* Fondo más claro */
    text-align: center; /* Centrado del título */
}

.equipo-content {
    display: flex; /* Flexbox para organización */
    flex-direction: column; /* Alineación en columna por defecto */
    justify-content: center; /* Centrado vertical */
    align-items: center; /* Centrado horizontal */
    gap: 2rem; /* Espacio entre elementos */
    max-width: 1200px; /* Ancho máximo */
    margin: 0 auto; /* Centrado */
}

.equipo-content h2 {
    font-size: 2rem; /* Tamaño del título más destacado */
    color: #0C0844; /* Color principal */
    font-weight: 700; /* Negrita */
    margin-bottom: 0.5rem; /* Espaciado debajo */
    text-transform: uppercase; /* Texto en mayúsculas */
    letter-spacing: 1px; /* Separación de letras */
}

.equipo-content p {
    font-size: 1.1rem; /* Tamaño del texto */
    line-height: 1.8; /* Mejor legibilidad */
    color: #555; /* Color gris oscuro */
    max-width: 700px; /* Ancho controlado */
    margin: 0 auto; /* Centrado horizontal */
    text-align: justify; /* Justificar texto */
}

/* Imagen responsiva */
.about-image {
    width: 100%;
    max-width: 500px; /* Tamaño máximo */
    height: auto; /* Mantener proporciones */
    border-radius: 16px; /* Bordes más redondeados */
    object-fit: cover; /* Cubrir el espacio sin deformarse */
    
    transition: transform 0.3s ease-in-out; /* Animación al pasar el ratón */
}

.about-image:hover {
    transform: scale(1.05); /* Efecto zoom suave */
}



/* Estilos adicionales para mejorar la estética */
.equipo-content h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color); /* Color secundario */
    margin: 0.5rem auto 1rem; /* Centrado y espaciado */
    border-radius: 2px;
}





/*FOOTER*/
footer {
    color: #fff;
    background-color: var(--gray);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

footer ul {
    list-style: none;
    text-decoration: none;
    padding: 0px;
}

.container-footer {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 100px;
    padding: 20px;
}

.container-footer a {
    color: #fff;
    text-decoration: none;
}

.column1 {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    height: auto;
}


.menu-footer-pages {
    display: flex;
    gap: 20px;
    padding: 10px;
    flex-direction: column;
    align-items: start;
    height: 100%;


}

.menu-footer-products {
    display: flex;
    gap: 20px;
    padding: 10px;
    flex-direction: column;
    align-items: start;
    height: 100%;
}

.tittle-footer {
    font-size: 2rem;
    font-weight: 500;
    margin-top: 20px;
}

.nav-footer {
    display: flex;
    padding: 10px;
    flex-direction: column;
    align-items: start;
    height: 100%;
}
.nav-footer a:hover {
    color: var(--light-green);
    transform: scale(1.1);
    transition: transform 0.3s ease;
}



.social-icons-footer {
    display: flex;
    gap: 15px;
    padding: 10px;
    flex-direction: column;
    align-items: start;
    width: 300px;
}

.social-icons-footer a {
    display: flex;
    align-items: center;
    gap: 5px;

    text-decoration: none;
    color: #fff;
    font-size: 1em;
}



.social-icons-footer p {
    margin: 0;

}

.social-icons-footer a:hover {
    color: var(--light-green);

}

.social-icons-footer a:hover svg path {
    fill: var(--light-green);

}

.social-icons-footer a:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.menu-footer-copyright {
    border-top: 1px solid #4B5563;
    /* Borde blanco solo en la parte superior */
    padding: 10px 0;
    /* Añade un poco de espacio arriba y abajo del contenido */
    text-align: center;
    /* Centra el texto */
    color: #fff;
    width: 80%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Cambia el color del texto a blanco */
}




/*FIN FOOTER*/


/* RESPONSIVE */

/* Estilo para celulares */
@media (max-width: 767px) {
    header {
        height: auto;
     
    }

    .divlogo img {
        width: 100px;
    }

    .nav-menu {
        position: relative;

        .nav-list {
            display: flex;
            flex-direction: column;
            align-items: start;
            position: absolute;
            top: 100%;
            background-color: #202020;
            right: 0;
            padding: 20px;
            border-radius: 25px;
            margin: 0;
            transform: translateX(100%);
            /* Fuera de la pantalla, hacia arriba */
            transition: transform 0.3s ease;
            visibility: hidden;
            /* Transición suave al deslizarse */
            z-index: 999;

            a:hover {
                transform: scale(1.1);
                /* Aplica el efecto de escala a todo el contenido */
                transition: transform 0.3s ease;
                /* Para animar suavemente la transformación */
            }

            span {
                display: flex;
                align-items: star;
                flex-direction: column;
                width: 100%;
                padding: 0px;
                gap: 5px;


                h3 {
                    font-size: 1.5rem;
                    color: var(--secondary-color);
                }

                a {
                    display: flex;
                    align-items: center;
                    justify-content: start;
                    margin: 0 15px;
                    font-weight: bold;

                    svg {
                        margin-right: 10px;
                    }
                }

                a:hover {
                    color: var(--light-green);
                }

                a:hover svg path {
                    fill: var(--light-green)
                        /* Cambia el color del SVG */
                }

                a:hover {
                    transform: scale(1.1);
                    /* Aplica el efecto de escala a todo el contenido */
                    transition: transform 0.3s ease;
                    /* Para animar suavemente la transformación */
                }
            }



        }

        .social-icons-header {
            display: none;
        }





    }

    .nav-list.active {
        transform: translateX(20%);
        /* Mueve la lista hacia abajo */
        opacity: 1;
        /* Hacerlo visible */
        visibility: visible;
    }

    .menu-icon {
        display: block;
        color: #FFF;
        cursor: pointer;
        width: 40px;

        svg {
            color: #FFF;
        }
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        /* Color gris semitransparente */
        z-index: 998;
        /* Debe estar por debajo del menú pero encima del resto de la página */
        visibility: hidden;
        /* No visible por defecto */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Cuando el menú está activo, mostrar el overlay */
    .menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    /* Asegúrate de que el menú esté por encima del overlay */
    .nav-list {
        z-index: 999;
    }



    main {
        width: 100%;
        overflow-x: hidden;

    }
    .grand-img{
        width: 100%;
        height: 400px;
    }

    .overlay-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .overlay-box .texto {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 20px;
    }
    .overlay-box h1 {
        font-size: 1.54rem;
        text-align: center;
        width: 80%;
    }
    .overlay-box::before {
        margin-top: -49px;
        z-index: 5;
    }
    .services-group{
        flex-direction: column;
    }
    .services-1{
        min-width: 250px;
    }
    .overlay-box p {
        font-size: 1rem;
        text-align: center;
        padding: 0px 15px;
        z-index: 1;
        margin-bottom: 20px;
    }

    .section {
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 25px;
        
        .text-nosotros {
            width: 100%;
            padding: 2px;
        }
        p {
            padding: 15px;
        }
        .text-nosotros h2 {
            width: 500px;
            height: auto;
            text-align: center;
            font-size: 2rem;
            margin-top: 20px;

        }
    }

    .galeria-imagenes {
        
        width: 90%; /* Aumenta el ancho para aprovechar el espacio */
      }

      .about-conten h1{
        font-size: 1.9rem;
      }


    .equipo-content {
        flex-direction: row; /* Elementos en fila */
        text-align: left; /* Texto alineado a la izquierda */
        gap: 3rem; /* Espacio entre texto e imagen */
    }

    .equipo-content p {
        margin: 0; /* Sin margen extra */
    }

    .about-image {
        max-width: 600px; /* Imagen más grande en pantallas grandes */
    }


    .two-cards h1 {
        font-size: 2rem; /* Reduce el tamaño del título */
        padding: 20px;
        text-align: center;
    }

    .two-cards h2 {
        font-size: 1.8rem;
    }

    .two-cards .content {
        flex-direction: column; /* Apila los elementos verticalmente */
        width: 90%; /* Aprovecha más espacio en pantalla */
        gap: 15px; /* Reduce el espacio entre elementos */
    }

    .two-cards .content .about-content {
        padding: 20px; /* Ajusta el padding */
    }



/* Para dispositivos móviles */
.equipo-content {
    flex-direction: column; /* Establecer los elementos en una sola columna */
    gap: 1rem;
}

.equipo-content h2 {
    font-size: 1.5rem;
}

.equipo-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-image {
    max-width: 100%; /* Imagen a 100% de ancho */
}


    footer {
        overflow-x: hidden;

        display: flex;
        height: 600px;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    footer h3 {
        font-size: 0.8rem;
    }

    .tittle-footer {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .container-footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 400px;
        /* Ajusta según el diseño */
        padding: 20px;
        justify-items: center;

        .column1 {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: start;
            justify-content: center;
            gap: 1px;
            padding: 10px;
        }

        .menu-footer-products {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            gap: 5px;
        }

        .menu-footer-pages {
            display: flex;
            flex-direction: column;
            width: 100%;
            gap: 5px;
        }

        .social-icons-footer {
            gap: 5px;
            width: 100%;
        }

        .nav-footer {
            font-size: 0.8rem;
        }
    }

}

