.MV_container {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

.MV_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px; /* Espacio entre las secciones */
}

/* Título principal para Misión, Visión y Valores */
.MV_title {
    font-family: 'Montserrat Black', sans-serif;
    color: #691B31;
    width: 100%;
    margin-top: 1em;
    margin-bottom: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 15px;
    box-sizing: border-box;
}

.MV_title p {
    position: relative;
    font-size: 1.8em;
    padding: 0 10px;
    background-color: white;
    z-index: 1;
    white-space: nowrap;
}

.MV_title::before,
.MV_title::after {
    content: '';
    flex-grow: 1;
    height: 3px;
    background-color: #691B31;
    margin: 10px;
}

/* Estilo del Contenedor para cada sección (Misión y Visión) */
.MV_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    text-align: justify;
}

/* Estilo para el contenedor de la imagen */
.MV_image_style {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em 0;
    box-sizing: border-box;
    width: 100%;
}

/* Contenedor de la imagen y el texto para el efecto de superposición */
.image-overlay {
    position: relative;
    width: 100%;
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in, transform 0.3s ease-in;
}

.image-overlay img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;

}

.image-overlay:hover {
    box-shadow: 5px 5px 8px rgba(105, 27, 49, 0.8);
    transform: translateY(-5px);
}

/* Estilo para el contenedor del texto superpuesto */
.overlay-text-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.overlay-text {
    font-family: 'Montserrat Light', sans-serif;
    font-size: 1.2em;
    margin: 0;
}

/* Estilo para la descripción */
.MV_description {
    font-family: 'Montserrat Light', sans-serif;
    color: #000000;
    width: 100%;
    margin-top: -1em;
    margin-bottom: 0.5em;
    padding: 0 20px;
    box-sizing: border-box;
}

.MV_description p {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
}

/*Valores Style*/

.valores-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 15px;
}

/* Card Style */
.valor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 160px;
    padding: 18px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* Efects */
.valor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 12px #691B31;
}

/* Value Title */
.valor-card h3 {
    font-family: 'Montserrat Black', sans-serif;
    color: #691B31;
    font-size: 1em;
    margin-bottom: 1em;
}

/* Icon content */
.icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icon Style (image) */
.icon-container img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Effect about the icon */
.valor-card:hover .icon-container img {
    transform: translateY(-6px);
}