/* ==========================================
   CAPEMVeL - Página Socios (51)
   ========================================== */

/* Título institucional */
body.page-id-51 .et_pb_text h2 {
    color: #288b4a !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* Centrar los módulos de imagen */
body.page-id-51 .et_pb_image {
    text-align: center !important;
}

/* Tamaño uniforme y proporcionado */
body.page-id-51 .et_pb_image img {
    width: auto !important;
    height: auto !important;
    max-width: 165px !important;
    max-height: 95px !important;
    object-fit: contain !important;
}

/* Centrar los enlaces de los logotipos */
body.page-id-51 .et_pb_image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 105px;
}

/* Ajustes para celulares */
@media (max-width: 767px) {

    body.page-id-51 .et_pb_text h2 {
        font-size: 24px !important;
    }

    body.page-id-51 .et_pb_image img {
        max-width: 160px !important;
        max-height: 90px !important;
    }

    body.page-id-51 .et_pb_image a {
        min-height: 100px;
    }
}

/* ==========================================
   CAPEMVeL - Ajuste fino de galería de socios
   ========================================== */

/* Logotipos ligeramente más grandes */
body.page-id-51 .et_pb_image img {
    max-width: 180px !important;
    max-height: 105px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Mantener centrado dentro de cada columna */
body.page-id-51 .et_pb_image {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Reducir separación vertical entre filas */
body.page-id-51 .et_pb_row {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Área uniforme para cada logotipo */
body.page-id-51 .et_pb_image a {
    min-height: 115px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Adaptación para celulares */
@media (max-width: 767px) {

    body.page-id-51 .et_pb_image img {
        max-width: 175px !important;
        max-height: 100px !important;
    }

    body.page-id-51 .et_pb_image a {
        min-height: 110px !important;
    }
}


/* ==========================================
   CAPEMVeL - Galería Socios móvil compacta
   ========================================== */

@media (max-width: 767px) {

    /* Reducir espacio entre filas */
    body.page-id-51 .et_pb_row {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* Eliminar separación excesiva entre columnas apiladas */
    body.page-id-51 .et_pb_column {
        margin-bottom: 0 !important;
    }

    /* Ajustar separación entre módulos de imagen */
    body.page-id-51 .et_pb_image {
        margin-bottom: 20px !important;
    }

    /* Mantener logotipos centrados */
    body.page-id-51 .et_pb_image a {
        min-height: 95px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Conservar proporciones */
    body.page-id-51 .et_pb_image img {
        width: auto !important;
        height: auto !important;
        max-width: 175px !important;
        max-height: 95px !important;
        object-fit: contain !important;
    }

}




/* CAPEMVeL - Espacio superior Socios móvil */
@media (max-width: 767px) {
    body.page-id-51 #main-content .et_pb_section_0 {
        padding-top: 20px !important;
    }
}
