.sobre-nosotros {
    position: relative;
    background: url("../img/fondo_nosotros.png") no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    overflow: hidden;
    padding: 0 20px; /* Agregar un poco de padding para evitar que el texto se toque con los bordes */
}

.nosotros-content {
    position: relative;
    color: white;
    padding: 20px 40px;
    width: 100%;
    z-index: 1; /* Asegura que el texto esté por encima de cualquier otro contenido */
}

.sobre-nosotros h1 {
    font-size: 5rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2; /* Añadir line-height para mayor legibilidad */
}

/* Estilo para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .sobre-nosotros {
        background-size: cover;
        height: 300px;
    }

    .nosotros-content {
        padding: 10px 20px; /* Reducir el padding en pantallas pequeñas */
    }

    .sobre-nosotros h1 {
        font-size: 3rem; /* Ajustar tamaño de fuente para que el texto sea más legible */
        line-height: 1.3; /* Ajustar line-height para evitar que el texto se amontone */
    }
}

/* Estilo para dispositivos muy pequeños (móviles) */
@media screen and (max-width: 480px) {
    .sobre-nosotros {
        height: 250px;
    }

    .nosotros-content {
        padding: 10px 15px; /* Ajustar padding en pantallas pequeñas */
    }

    .sobre-nosotros h1 {
        font-size: 2.5rem; /* Ajustar tamaño de fuente para pantallas pequeñas */
        line-height: 1.4; /* Asegurar que el texto tenga un buen espaciado */
    }
}


.desarrollo {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background-image: url('../img/fondo_desarrollo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
    min-height: 400px;
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho */
    box-sizing: border-box; /* Asegura que el padding no cause desbordamiento */
    overflow: hidden; /* Previene el desbordamiento */
}

.desarrollo_texto {
    flex: 0 0 70%;
    z-index: 1;
    color: white;
    font-size: 2rem;
    text-align: justify;
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho */
}

.desarrollo_imagen {
    flex: 0 0 30%;
    box-sizing: border-box;
    text-align: right;
    z-index: 1;
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho */
}

.desarrollo_imagen img {
    max-width: 100%;
    height: auto;
    display: block; /* Evita espacio adicional debajo de la imagen */
}

/* Media queries para la adaptabilidad responsive */
@media (max-width: 768px) {
    .desarrollo {
        flex-direction: column;
        padding: 1rem;
    }

    .desarrollo_texto,
    .desarrollo_imagen {
        flex: 0 0 100%;
    }

    .desarrollo_imagen {
        text-align: center;
    }
}
.team {
    display: grid;
    background-image: url('../img/fondo_expandimos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    grid-template-columns: 40% 30% 30%; /* Para pantallas grandes */
    gap: 20px;
    align-items: start;
    width: 100vw;
    padding: 40px;
    box-sizing: border-box;
}

.team h2 {
    grid-column: span 3;
    text-align: center;
    font-size: 4rem;
    padding: 10px 0;
    margin: 20px 0;
    position: relative;
}
.team h2::before {
    content: "";
    position: absolute;
    top: 50%;
    height: 3px;
    background: linear-gradient(to right, #111e46, transparent);
    transform: translateY(-50%);
    width: 30%;
}


.team h2::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 3px;
    background: linear-gradient(to left, #111e46, transparent);
    transform: translateY(-50%);
    width: 30%;
}
.team h2::before {
    left: 0;
}

.team h2::after {
    right: 0;
}
.team-texto {
    text-align: center;
    margin-bottom: 80px;
    margin-top: 100px;
    margin-bottom: 100px;
}

.team-texto img {
    max-width: 100%;
    margin-bottom: 15px;
}
.team-texto h3 {
    font-size: 3rem;
    text-align: left;
}

.team-texto p {
    font-size: 1.8rem;
    line-height: 1.6;
    text-align: justify;
}

.team-fotos, 
.team-fotos_mas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.team-fotos img, 
.team-fotos_mas img {
    max-width: 80%;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.team-fotos_mas {
    margin-top: +100px; 
}
@media (max-width: 768px) {
    /* Asegura que todo esté en una columna */
    .team {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    /* Mantén el título centrado */
    .team h2 {
        margin-bottom: 20px;
    }

    .team-texto {
        order: 1;
        text-align: center;
        margin-bottom: 30px;
    }

    /* Las fotos ocupan el ancho completo debajo del texto */
    .team-fotos {
        order: 2;
        width: 100%;
    }

    .team-fotos_mas {
        order: 3;
        width: 100%;
    }

    /* Las imágenes deben ocupar todo el ancho */
    .team-fotos img, 
    .team-fotos_mas img {
        max-width: 100%;
        width: 100%;
    }
}
