/*
 * CAPEMVeL - Sobre CAPEMVeL
 * Exclusivo de la página 393
 */

/* Contenedor principal: mismas medidas que Inicio */
body.page-id-393 #main-content > .container {
    width: calc(100% - 40px) !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 35px 0 55px !important;
}

/* Eliminar limitaciones del área de contenido */
body.page-id-393 #left-area {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

body.page-id-393 #main-content .container::before {
    display: none !important;
}

/* Texto institucional */
body.page-id-393 .entry-content > p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 28px;
}

/* Título de Comisión Directiva */
body.page-id-393 .entry-content h3 {
    color: #288b4a;
    font-size: 23px;
    font-weight: 500;
    margin: 30px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #288b4a;
}

/* Tabla */
body.page-id-393 .wp-block-table {
    width: 100%;
    margin: 0;
    overflow-x: auto;
}

body.page-id-393 .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 15px;
}

/* Celdas */
body.page-id-393 .wp-block-table td {
    padding: 13px 18px;
    border: none;
    line-height: 1.7;
    vertical-align: middle;
    color: #444;
}

/* Columna de cargos */
body.page-id-393 .wp-block-table td:first-child {
    width: 35%;
    color: #288b4a;
    font-weight: 600;
}

/* Columna de integrantes */
body.page-id-393 .wp-block-table td:nth-child(2) {
    width: 65%;
}

/* Filas alternadas */
body.page-id-393 .wp-block-table tbody tr:nth-child(odd) {
    background: #f5f6f5;
}

body.page-id-393 .wp-block-table tbody tr:nth-child(even) {
    background: #fff;
}

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

    body.page-id-393 #main-content > .container {
        width: calc(100% - 30px) !important;
        padding: 25px 0 40px !important;
    }

    body.page-id-393 .entry-content > p {
        font-size: 15px;
    }

    body.page-id-393 .entry-content h3 {
        font-size: 21px;
    }

    body.page-id-393 .wp-block-table table {
        font-size: 13px;
    }

    body.page-id-393 .wp-block-table td {
        padding: 10px;
        overflow-wrap: anywhere;
    }

    body.page-id-393 .wp-block-table td:first-child {
        width: 40%;
    }

    body.page-id-393 .wp-block-table td:nth-child(2) {
        width: 60%;
    }
}

/* ==========================================
   CAPEMVEL - CENTRADO REAL DE PAGINA 393
   Divi Builder no genera .container
   ========================================== */

body.page-id-393 #main-content article#post-393 {
    width: calc(100% - 40px) !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 35px 0 55px !important;
    box-sizing: border-box;
}

body.page-id-393 #main-content article#post-393 .entry-content {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 767px) {
    body.page-id-393 #main-content article#post-393 {
        width: calc(100% - 30px) !important;
        padding: 25px 0 40px !important;
    }
}

/* ==========================================
   CAPEMVEL - LEGIBILIDAD COMISION DIRECTIVA
   ========================================== */

body.page-id-393 .wp-block-table table {
    font-size: 17px !important;
}

body.page-id-393 .wp-block-table td {
    font-size: 17px !important;
    line-height: 1.8 !important;
    padding: 14px 18px !important;
}

/* Cargos */
body.page-id-393 .wp-block-table td:first-child {
    color: #216e3b !important;
    font-weight: 600 !important;
}

/* Integrantes */
body.page-id-393 .wp-block-table td:nth-child(2) {
    color: #303630 !important;
    font-weight: 500 !important;
}

/* Celulares */
@media (max-width: 767px) {
    body.page-id-393 .wp-block-table td {
        font-size: 15px !important;
        line-height: 1.65 !important;
        padding: 12px 10px !important;
    }
}

/* CAPEMVeL - Ajuste de interlineado de Comisión Directiva */

body.page-id-393 .wp-block-table td {
    line-height: 1.5 !important;
    padding: 11px 18px !important;
}

@media (max-width: 767px) {
    body.page-id-393 .wp-block-table td {
        line-height: 1.5 !important;
        padding: 10px !important;
    }
}

/* CAPEMVeL - Centrar título Comisión Directiva */
body.page-id-393 .entry-content h3 {
    text-align: center !important;
}

/* CAPEMVeL - Centrar presentación institucional */
body.page-id-393 .entry-content > p:first-child {
    max-width: 800px !important;
    margin: 0 auto 30px !important;
    text-align: center !important;
    line-height: 1.7 !important;
}

/* Centrar título Comisión Directiva */
body.page-id-393 .entry-content h3 {
    text-align: center !important;
}

/* CAPEMVeL - Centrar presentación institucional */
body.page-id-393 .entry-content > p:first-child {
    max-width: 800px !important;
    margin: 0 auto 30px !important;
    text-align: center !important;
    line-height: 1.7 !important;
}

/* Centrar título Comisión Directiva */
body.page-id-393 .entry-content h3 {
    text-align: center !important;
}

/* ==========================================
   CAPEMVeL - Presentación institucional final
   ========================================== */

/* Título principal */
body.page-id-393 .capemvel-titulo-sobre {
    color: #288b4a !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin: 0 0 25px !important;
    padding: 0 !important;
}

/* Párrafo introductorio */
body.page-id-393 #post-393 .entry-content > p:not(:empty) {
    max-width: 800px !important;
    margin: 0 auto 30px !important;
    text-align: center !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: #444 !important;
}

/* Celulares */
@media (max-width: 767px) {
    body.page-id-393 .capemvel-titulo-sobre {
        font-size: 24px !important;
    }

    body.page-id-393 #post-393 .entry-content > p:not(:empty) {
        font-size: 15px !important;
    }
}

/* CAPEMVeL - Alineación final del texto institucional */
body.page-id-393 #post-393 .entry-content > p:first-of-type {
    text-align: center !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* CAPEMVeL - Mejorar legibilidad del texto introductorio */

body.page-id-393 #post-393 .entry-content p.has-text-align-center {
    font-size: 18px !important;
    line-height: 1.65 !important;
    color: #444444 !important;
    max-width: 800px !important;
    margin: 0 auto 30px !important;
    text-align: center !important;
}

/* Adaptación para celulares */
@media (max-width: 767px) {
    body.page-id-393 #post-393 .entry-content p.has-text-align-center {
        font-size: 16px !important;
        line-height: 1.6 !important;
        padding: 0 10px !important;
    }
}

/* CAPEMVeL - Eliminar línea adicional debajo de Comisión Directiva */
body.page-id-393 .wp-block-table {
    border-bottom: none !important;
}

body.page-id-393 .wp-block-table::after {
    display: none !important;
}
