.nosotros-main {
    background-color: #eeeff3; 
    padding: 80px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nosotros-header {
    margin-bottom: 60px;
    text-align: center;
}

.casos-header {
    text-align: left;         
    width: 100%;              
    max-width: 900px;         
    margin-bottom: 50px;
}

.casos-header .subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #161d3a;
    letter-spacing: 2px;
    display: inline-block;
}

.casos-header .main-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #161d3a; 
    margin: 15px 0 20px 0;
    line-height: 1.2;
    display: block;
    opacity: 0;
    animation: deslizarElegante 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.1s;
}
.casos-header .main-title .texto-resaltado {
    color: #5b7bb0;
}
.casos-header .stats-action {
    display: block;
    
    /* 🌟 Animación del Botón (Aparece al final) */
    opacity: 0;
    animation: deslizarElegante 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.5s;
}

.casos-header .header-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #777777;
    line-height: 1.6;
    opacity: 0;
    animation: deslizarElegante 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}


@keyframes deslizarElegante {
    from {
        opacity: 0;
        transform: translateX(-35px); /* Desplazamiento sutil desde la izquierda */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* Posición original en su sitio */
    }
}

.nosotros-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #161d3a;
    letter-spacing: 2px;
    text-transform: uppercase;
     display: inline-block; 
    animation: flotarTitulo 3s ease-in-out infinite;
}

/* Contenedor de las dos columnas */
.mision-vision-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    width: 100%;
    max-width: 1100px;
}

/* Cada bloque individual (Misión / Visión) */
.mv-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

/* Número Gigante de Fondo */
.mv-number {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    color: #cccccc;
    opacity: 0.6;
    line-height: 1;
    margin-bottom: -35px; /* Hace que el título se encime sutilmente como en Figma */
    user-select: none;
}

/* Títulos Misión y Visión */
.mv-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: #436294; 
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.mv-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    max-width: 440px;
    text-align: justify;
}

.vertical-divider {
    width: 1px;
    height: 320px; /* Altura ideal para cubrir el bloque */
    background-color: #b0b0b0;
    align-self: center;
    opacity: 0.7;
}

.btn-consultarnostros{
    background-color: #161d3a;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 14px 40px;
    border-radius: 0px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-right: auto; 
    text-align: left;
    margin-top: 25px;
    display: inline-block;
    position: relative;
    animation: pulseAnimation 2s infinite;
}  
.btn-consultarnostros:hover {
    animation-play-state: paused; 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(22, 29, 58, 0.25); 
    background-color: #1b2447;

}  
.banner-contacto {
    /* 🌟 Reemplaza 'ruta-de-tu-imagen.jpg' por la ubicación real de tu foto de la biblioteca */
    background-image: url('../imagenes/nostrosbanner.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 350px; /* Controla qué tan alto se verá el banner */
    position: relative;
    display: flex;
    align-items: center;
}

/* Capa oscura transparente para que resalte el texto blanco */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 25, 44, 0.75); /* Azul oscuro de tu marca con transparencia */
    display: flex;
    align-items: center;
    padding: 0 10%; /* Empuja el contenido hacia la derecha como en tu referencia */
    box-sizing: border-box;
}


@media (max-width: 768px) {
    .nosotros-main {
        padding: 20px 15px;
    }

    .casos-header {
        text-align: left;
        margin-bottom: 35px;
        padding-left: 5px;
    }

    .casos-header .main-title {
        font-size: 24px;
        line-height: 1.3;
        text-align: left;
        margin-bottom: 15px;
    }

    .header-desc {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        max-width: 95%;
    }

    .mision-vision-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .mv-block {
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: left;
        position: relative;
    }

    .mv-number {
        font-size: 70px; 
        position: absolute;
        top: -20px;       
        left: 0;          
        z-index: -1;
        opacity: 0.1;    
    }

    .mv-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .mv-desc {
        font-size: 14px;
        line-height: 1.5;
    }

    .vertical-divider {
        display: none;
    }

    .stats-action {
        margin-top: 25px;
        text-align: left;
    }

    .btn-consultarnostros {
        display: inline-block;
        margin: 0;
        text-align: center;
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 15px;
    }

    .banner-overlay {
        padding: 40px 15px;
        justify-content: flex-start;
        text-align: left;
    }
    
    .banner-contacto {
        min-height: 300px;
    }
}

/* ===================================================
   ✨ ESTILOS GENERALES Y ANIMACIONES
   =================================================== */
.mv-title {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.mv-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5b7bb0;
    transition: width 0.3s ease;
}

.mv-block:hover .mv-title::after {
    width: 100%;
}

.mv-desc, 
.case-desc, 
.servicio-header-desc {
    opacity: 0;
    display: inline-block;
    animation: 
        textoIzquierdaDerecha 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards,
        textoFlotarInfinito 4s ease-in-out 0.8s infinite;
    
    will-change: transform, opacity;
}
/* 🌟 ANIMACIÓN 1: ENTRADA DESDE LA IZQUIERDA */
@keyframes textoIzquierdaDerecha {
    from {
        opacity: 0;
        transform: translateX(-30px) translateY(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* 🌟 ANIMACIÓN 2: FLOTAR DE ARRIBA A ABAJO (Microinteracción sutil) */
@keyframes textoFlotarInfinito {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px); /* Sube 4px sutilmente para no incomodar la lectura */
    }
}