/* =========================================================
   HERO
   ========================================================= */

.hero-nosotros {
    position: relative;
    height: 50vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nosotros .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-nosotros .overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-nosotros .hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-nosotros h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.hero-nosotros p {
    font-size: 18px;
}



/* =========================================================
   BLOQUES DE TEXTO + IMAGEN
   ========================================================= */

.nosotros-bloque {
    padding: 80px 60px;
    background: white;
}

.nosotros-bloque.alt {
    background: #f7f7f7; 
}

/* BLOQUES CENTRADOS Y CONSISTENTES */
.bloque {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Inversión natural */
.fila {
    flex-direction: row;
    
}

.fila.invertida {
    flex-direction: row-reverse;
    
}

/* Texto alineado verticalmente */
.texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.texto h2 {
    color: var(--azul);
    margin-bottom: 15px;
}

.texto p {
    line-height: 1.7;
    font-size: 17px;
}

/* Imagen alineada con el texto */
.imagen {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.fila.invertida .imagen {
    justify-content: flex-end;
}

.imagen img {
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: 0.3s ease-in-out;
}

/* Hover azul */
.imagen img:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0, 86, 163, 0.28);
}



/* =========================================================
   VALORES CON ICONOS
   ========================================================= */

.valores {
    padding: 80px 20px;
    text-align: center;
}

.valores h2 {
    color: var(--azul);
    margin-bottom: 40px;
}

.valores-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.valor-card {
    width: 260px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: 0.3s;
}

.valor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 86, 163, 0.25);
}

.valor-card i {
    font-size: 50px;
    color: var(--azul);
    margin-bottom: 15px;
}

.valor-card h3 {
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.valor-card p {
    font-size: 15px;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .bloque {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }

    .imagen img {
        max-width: 100%;
    }

    .texto {
        max-width: 100%;
        text-align: center;
    }

    .imagen {
        justify-content: center !important;
    }
}


