.quienes-somos-page {
    background-color: #ffffff;
    padding-top: 150px; /* Da espacio para el header */
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    /* gap: 120px; */  
}

.quienes-somos-section,
.mision-vision-section,
.valores-section,
.detalle-valor-section {
    margin-bottom: 120px !important; /* Recuperamos el espacio solo donde va */
}

.quienes-somos-section {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row !important;
    gap: 50px;
    align-items: center !important; 
    min-height: auto !important;  
}

.quienes-text {
    flex: 1;
    padding-right: 20px;
}

.quienes-text h2 {
    color: #001A51;
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 700;
}

.quienes-text p {
    color: #001A51; 
    font-size: 16px; 
    font-weight: 400; 
    line-height: 1.8;  
    margin-bottom: 25px;
    text-align: left;
}

.quienes-image {
    flex: 1.2; 
}

.quienes-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;  
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.quienes-image img:hover {
    transform: scale(1.02);
}

.mision-vision-section {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row !important;
    gap: 50px;
    align-items: center !important;
    min-height: auto !important;
}

.mv-image {
    flex: 1.2;
}

.mv-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;  
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mv-image img:hover {
    transform: scale(1.02);
}

.mv-text {
    flex: 1;
    padding-left: 20px;
}

.mv-text h2 {
    color: #001A51;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.mv-text p {
    font-family: 'Roboto', sans-serif;
    color: #001A51; 
    font-size: 16px; 
    font-weight: 400; 
    line-height: 1.8; 
    margin-bottom: 40px;
    text-align: left;
}

.mv-text p:last-child {
    margin-bottom: 0;
}

/* MODAL Y ANIMACIONES */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #cccccc;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* SECCIÓN VALORES */
.valores-section {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto !important;
}

.valores-header h2 {
    color: #001A51;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.valores-header p {
    font-family: 'Roboto', sans-serif;
    color: #001A51;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 40px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
}

.valor-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-8px);
}

.valor-item img {
    width: 100%;
    max-width: 140px; 
    height: auto;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
}

.valor-item span {
    color: #001A51;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
}

/* SECCIONES DE DETALLES DE CADA VALOR */
.detalle-valor-section {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row !important;
    gap: 60px;
    align-items: center !important;
    min-height: 80vh !important;
}

.dv-image {
    flex: 1.2;
}

.dv-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;  
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dv-image img:hover {
    transform: scale(1.02);
}

.dv-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.volver-valores {
    display: inline-block;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.volver-valores:hover {
    transform: translateY(-8px) scale(1.05);  
}

.volver-valores img {
    max-width: 110px;  
    height: auto;
}

.dv-text h2 {
    color: #001A51;
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.dv-text p {
    font-family: 'Roboto', sans-serif;
    color: #001A51; 
    font-size: 16px; 
    font-weight: 400; 
    line-height: 1.8; 
    text-align: justify; 
    margin-bottom: 0;
}

@media screen and (max-width: 900px) {
    .quienes-somos-page {
        gap: 80px; 
    }
    .quienes-somos-section,
    .mision-vision-section,
    .detalle-valor-section {
        flex-direction: column !important;
        gap: 40px;
        min-height: auto !important;
    }
    .valores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 600px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* SECCIÓN COBERTURA - ACTUALIZADA */
.cobertura-section {
    background-color: #001A51;
    width: 100%;
    min-height: 90vh; 
    padding: 5% 8%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: row; 
    gap: 50px;
    align-items: center; 
    margin: 0 !important; /* Asegura que no tenga margen inferior */
}

.cobertura-text {
    flex: 1; /* El texto mantiene su proporción */
    padding-right: 20px;
}

.cobertura-text h2 {
    color: #ffffff; /* Letras en blanco */
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 700;
}

.cobertura-text p {
    font-family: 'Roboto', sans-serif;
    color: #ffffff; /* Letras en blanco */
    font-size: 16px; 
    font-weight: 400; 
    line-height: 1.8; 
    text-align: justify; 
    margin-bottom: 25px;
}

/* CONTENEDOR DEL MAPA Y PUNTOS INTERACTIVOS */
.cobertura-mapa {
    flex: 1.8; /* Aumentamos este valor (antes 1.2) para que el mapa sea notablemente más grande */
    position: relative; 
    width: 100%;
}

.cobertura-mapa .mapa-base {
    width: 100%;
    height: auto;
    display: block;
}

/* ESTILOS DE LOS ICONOS SOBRE EL MAPA */
.map-pin {
    position: absolute;
    transform: translate(-50%, -50%); /* Centra el icono exactamente en la coordenada */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 10;
}

.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.15); /* Efecto de crecimiento al pasar el mouse */
    z-index: 20;
}

.map-pin img {
    width: 28px; /* Ajusta el tamaño del icono/miniatura */
    height: 28px;
    border-radius: 50%; /* Hace la imagen redonda, puedes quitarlo si prefieres cuadrados */
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    object-fit: cover;
}

.map-pin .pin-label {
    color: #001A51;
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media screen and (max-width: 900px) {
    .cobertura-section {
        flex-direction: column !important;
        gap: 40px;
    }
}

/* SECCIÓN MAPA INTERACTIVO */
.mapa-section {
    background-color: #001A51;
    width: 100%; 
    min-height: 90vh; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 5% 0; 
    box-sizing: border-box;
    margin: 0 !important; /* Se pega a la sección de cobertura */
}

.mapa-contenido {
    position: relative;
    width: 90%; /* Ajuste de ancho */
    max-width: 900px; 
    height: 600px !important; 
    overflow: hidden; 
    border-radius: 12px; 
    box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
}

/* Iframe del mapa */
.mapa-contenido iframe {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 660px !important; 
    border: 0;
    margin: 0;
    padding: 0;
}

/* Barra personalizada */
#mapa-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; 
    background: #001A51;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 0 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    z-index: 10; 
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

/* Botón pantalla completa */
#btn-fullscreen {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* SECCIÓN PERFIL Y ALIADOS */
.perfil-aliados-section {
    width: 95%;
    max-width: 1200px;
    margin: 120px auto 120px auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: left; 
}

.perfil-empresarial-text {
    margin-bottom: 30px; /* Reduce la separación entre bloques de texto */
    width: 100%; /* Asegura que el texto ocupe el ancho disponible */
}

.perfil-empresarial-text h2 {
    color: #001A51;
    font-size: 32px;
    margin-bottom: 15px; /* Menos espacio debajo del título */
    font-weight: 700;
}

.perfil-empresarial-text p {
    color: #001A51;
    font-size: 16px;
    line-height: 1.8;
    max-width: 100%; /* Permite que el texto se extienda */
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* CARRUSEL DE ALIADOS */
.contenedor-desplazable-circular {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

.contenedor-desplazable-circular::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Edge */
    width: 0;
    height: 0;
}

.contenido-horizontal-circular {
    display: flex;
    align-items: center;
    gap: 50px; /* Espacio entre logos */
}

.contenido-horizontal-circular img {
    height: auto;
    max-height: 85px;
    width: auto;
    object-fit: contain;
    cursor: default;
    transition: all 0.3s ease;
    opacity: 0.6; /* Logos sutiles por defecto */
}

.contenido-horizontal-circular img:hover {
    opacity: 1; /* Se iluminan al pasar el mouse */
    transform: scale(1.05);
}