body {
    overflow-x: hidden; /* Evita el scroll horizontal */
    
}

.nosotros-container {
    display: flex;
    align-items: flex-start;
    justify-content: center; /* Centra horizontalmente los hijos */
    padding: 8rem 2rem;
    border-top: 3px solid #00bcd4;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px; /* Ancho máximo del contenedor */
    margin: 0 auto; /* Centrar el contenedor */
}

.nosotros-img {
    flex: 1 1 300px;
    padding: 1rem;
    text-align: center;
}

.nosotros-img img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 55px; /* Ajusta este valor según necesites */
}

.nosotros-texto {
    flex: 2 1 400px;
    padding: 1rem;
    max-width: 800px;
}

.nosotros-texto h2 {
    color: #004d66;
    margin-bottom: 1rem;
    text-align: center;
}

.nosotros-texto p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

.etiquetas {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    font-size: 0.95rem;
}

.etiqueta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00796b;
    font-weight: bold;
}

.etiqueta-item img {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 768px) {
    .nosotros-container {
        flex-direction: column;
        text-align: center;
    }

    .nosotros-texto {
        text-align: left;
    }

    .etiquetas {
        justify-content: center;
    }
}

/*Para los textos con su imagen de fondo*/

.unidades-content {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
}

.unidades-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #004d66;
    position: relative;
    display: inline-block;
    text-align: center;
}

.unidades-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 4px;
    background-color: #EC9D2E;
    border-radius: 2px;
}


.cajas {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    border-radius: 12px;
    overflow: hidden;
}

/* Imagen de fondo como elemento HTML */
.fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7; /* nivel de transparencia del fondo */
}

/* Cuadros con fondo translúcido encima de la imagen */
.caja {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.60); /* transparencia para ver el fondo */
    color: white;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.caja h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.caja p {
    font-size: 14px;
    margin: 0;
}

.caja:hover {
    transform: scale(1.03);
}


/*Para la mision y vision de la empresa */
.vision-mision {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 20px;
    background-color: #fff;
    flex-wrap: wrap;
}

.bloque {
    display: flex;
    align-items: flex-start;
    max-width: 500px;
    gap: 20px;
}

.icono {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 30px;

}

.texto h3 {
    font-size: 20px;
    color: #00796b;
    margin-bottom: 10px;
}

.texto p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/*Para los iconos de compromiso, calidad, integridad, innovacion */

h2 {
    font-size: 2em;
    Color:#004d66;
    margin-bottom: 20px;
}

.valores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    border-top: 2px solid #cceaea;
    background-color: #fff;
}

.valor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 120px;
}

.valor img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 2px solid #f3c847;
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 10px;
}

.valor p {
    font-weight: bold;
    color: #003b4d;
    font-size: 14px;
}