/*
 * CAPEMVeL - Documentos institucionales en Divi
 * Página 807 - Código de Conducta
 * CSS consolidado - 14/11/2026
 * Alcance exclusivo: página 807
 */

/* =====================================================
   1. PRESENTACIÓN GENERAL
   ===================================================== */

body.page-id-807 #main-content {
    background: #f5f6f5;
}

body.page-id-807 .capemvel-pagina-institucional {
    padding-top: 0 !important;
    padding-bottom: 25px !important;
}

body.page-id-807 .capemvel-pagina-institucional .et_pb_row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =====================================================
   2. CONTENEDOR DEL DOCUMENTO
   ===================================================== */

body.page-id-807 .capemvel-documento {
    max-width: 960px;
    margin: 0 auto 45px !important;
    padding: 45px 55px;
    background: #ffffff;
    border: 1px solid #e0e5e0;
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.045);
    box-sizing: border-box;
    overflow-wrap: break-word;
    color: #333333;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

/* =====================================================
   3. TÍTULOS
   ===================================================== */

body.page-id-807 .capemvel-documento h1 {
    color: #288b4a;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    margin: 0 0 24px;
}

body.page-id-807 .capemvel-documento h1 + h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

body.page-id-807 .capemvel-documento h2 {
    color: #288b4a;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.4;
    margin: 25px 0 10px;
}

body.page-id-807 .capemvel-documento h3 {
    color: #288b4a;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    margin: 20px 0 8px;
}

/* =====================================================
   4. TEXTO Y LISTAS
   ===================================================== */

body.page-id-807 .capemvel-documento p {
    line-height: 1.55;
    margin-bottom: 9px;
}

body.page-id-807 .capemvel-documento ul,
body.page-id-807 .capemvel-documento ol {
    padding-left: 28px;
    margin-bottom: 12px;
}

body.page-id-807 .capemvel-documento li {
    line-height: 1.55;
    margin-bottom: 4px;
}

/* =====================================================
   5. ENLACES
   ===================================================== */

body.page-id-807 .capemvel-documento a {
    color: #288b4a;
    text-decoration: none;
}

body.page-id-807 .capemvel-documento a:hover {
    color: #206e3b;
    text-decoration: underline;
}

/* =====================================================
   6. CONTROL IMPRIMIR
   ===================================================== */

body.page-id-807 .capemvel-imprimir {
    display: block !important;
    width: auto !important;
    height: auto !important;
    padding: 4px 0 !important;
    margin: 0 0 3px auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 0 !important;
    cursor: pointer;
}

body.page-id-807 .capemvel-imprimir::before {
    content: "IMPRIMIR" !important;
    display: block !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    color: #288b4a !important;
}

body.page-id-807 .capemvel-imprimir:hover::before {
    color: #206e3b !important;
    text-decoration: underline;
}

body.page-id-807 .capemvel-imprimir::after {
    content: "";
}

body.page-id-807 .capemvel-volver-sitio {
    display: none !important;
}

/* =====================================================
   7. ADAPTACIÓN A CELULARES
   ===================================================== */

@media (max-width: 767px) {

    body.page-id-807 .capemvel-documento {
        margin: 0 auto 30px !important;
        padding: 25px 20px;
        font-size: 16px;
        line-height: 1.7;
    }

    body.page-id-807 .capemvel-documento h1 {
        font-size: 23px;
    }

    body.page-id-807 .capemvel-documento h2 {
        font-size: 21px;
    }

    body.page-id-807 .capemvel-documento h3 {
        font-size: 18px;
    }
}

/* =====================================================
   8. CONFIGURACIÓN DE IMPRESIÓN A4
   ===================================================== */

@page {
    size: A4;
    margin: 18mm;
}

@media print {

    /* Ocultar elementos exteriores */

    body.page-id-807 #main-header,
    body.page-id-807 #top-header,
    body.page-id-807 #main-footer,
    body.page-id-807 #footer-bottom,
    body.page-id-807 #wpadminbar,
    body.page-id-807 #capemvel-documento-navegacion,
    body.page-id-807 .et-l--header,
    body.page-id-807 header,
    body.page-id-807 #main-header nav,
    body.page-id-807 footer,
    body.page-id-807 .et_mobile_nav_menu,
    body.page-id-807 .mobile_menu_bar,
    body.page-id-807 h1.main_title,
    body.page-id-807 .entry-title,
    body.page-id-807 .capemvel-imprimir,
    body.page-id-807 .capemvel-volver-sitio {
        display: none !important;
    }

    /* Eliminar espacios exteriores */

    body.page-id-807 #page-container,
    body.page-id-807 #main-content {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    /* Imprimir exclusivamente la fila del documento */

    body.page-id-807 .capemvel-pagina-institucional
    .et_pb_text:not(:has(.capemvel-documento)) h1,

    body.page-id-807 .capemvel-pagina-institucional
    .et_pb_text:not(:has(.capemvel-documento)) h2,

    body.page-id-807 .capemvel-pagina-institucional
    .et_pb_row:not(:has(.capemvel-documento)),

    body.page-id-807 .capemvel-pagina-institucional
    .et_pb_module:not(:has(.capemvel-documento)) {
        display: none !important;
    }

    /* Documento sin recuadro */

    body.page-id-807 .capemvel-documento {
        display: block !important;
        max-width: none;
        width: 100%;
        margin: 0 !important;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        font-size: 11pt;
        line-height: 1.35 !important;
        color: #000000;
    }

    /* Título exclusivo del PDF */

    body.page-id-807 .capemvel-documento::before {
        content: "CÓDIGO DE CONDUCTA DE CAPEMVeL";
        display: block;
        font-family: "Open Sans", Arial, sans-serif;
        font-size: 18pt;
        font-weight: 600;
        line-height: 1.3;
        color: #333333;
        margin: 0 0 14px 0;
        padding: 0;
        break-after: avoid;
        page-break-after: avoid;
    }

    /* Compactación del texto */

    body.page-id-807 .capemvel-documento p,
    body.page-id-807 .capemvel-documento li {
        line-height: 1.35 !important;
        orphans: 3;
        widows: 3;
    }

    body.page-id-807 .capemvel-documento p {
        margin-bottom: 7px !important;
    }

    body.page-id-807 .capemvel-documento li {
        margin-bottom: 3px !important;
    }

    body.page-id-807 .capemvel-documento h2 {
        margin-top: 18px;
        margin-bottom: 8px;
    }

    body.page-id-807 .capemvel-documento h3 {
        margin-top: 15px;
        margin-bottom: 6px;
    }

    /* Evitar títulos aislados al final de página */

    body.page-id-807 .capemvel-documento h1,
    body.page-id-807 .capemvel-documento h2,
    body.page-id-807 .capemvel-documento h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    /* Enlaces como texto normal */

    body.page-id-807 .capemvel-documento a {
        color: inherit !important;
        text-decoration: none !important;
        pointer-events: none !important;
    }

    /* Ocultar enlaces de regreso al índice */

    body.page-id-807 .capemvel-documento a[href="#indice"],
    body.page-id-807 .capemvel-documento a[href="#inicio"],
    body.page-id-807 .capemvel-documento a[href="#cc-indice"] {
        display: none !important;
    }
}

/* CAPEMVEL - IMPRESION BUENAS PRACTICAS - PAGINA 1298 */

@media print {

    /* Ocultar elementos exteriores */

    body.page-id-1298 #main-header,
    body.page-id-1298 #top-header,
    body.page-id-1298 #main-footer,
    body.page-id-1298 #footer-bottom,
    body.page-id-1298 #wpadminbar,
    body.page-id-1298 #capemvel-documento-navegacion,
    body.page-id-1298 .et-l--header,
    body.page-id-1298 header,
    body.page-id-1298 #main-header nav,
    body.page-id-1298 footer,
    body.page-id-1298 .et_mobile_nav_menu,
    body.page-id-1298 .mobile_menu_bar,
    body.page-id-1298 h1.main_title,
    body.page-id-1298 .entry-title,
    body.page-id-1298 .capemvel-imprimir,
    body.page-id-1298 .capemvel-volver-sitio {
        display: none !important;
    }

    /* Eliminar espacios exteriores */

    body.page-id-1298 #page-container,
    body.page-id-1298 #main-content {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    /* Imprimir exclusivamente la fila del documento */

    body.page-id-1298 .capemvel-pagina-institucional
    .et_pb_text:not(:has(.capemvel-documento)) h1,

    body.page-id-1298 .capemvel-pagina-institucional
    .et_pb_text:not(:has(.capemvel-documento)) h2,

    body.page-id-1298 .capemvel-pagina-institucional
    .et_pb_row:not(:has(.capemvel-documento)),

    body.page-id-1298 .capemvel-pagina-institucional
    .et_pb_module:not(:has(.capemvel-documento)) {
        display: none !important;
    }

    /* Documento sin recuadro */

    body.page-id-1298 .capemvel-documento {
        display: block !important;
        max-width: none;
        width: 100%;
        margin: 0 !important;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        font-size: 11pt;
        line-height: 1.35 !important;
        color: #000000;
    }

    /* Título exclusivo del PDF */

    body.page-id-1298 .capemvel-documento::before {
        content: "CÓDIGO DE BUENAS PRÁCTICAS PUBLICITARIAS DE CAPEMVeL";
        display: block;
        font-family: "Open Sans", Arial, sans-serif;
        font-size: 18pt;
        font-weight: 600;
        line-height: 1.3;
        color: #333333;
        margin: 0 0 14px 0;
        padding: 0;
        break-after: avoid;
        page-break-after: avoid;
    }

    /* Compactación del texto */

    body.page-id-1298 .capemvel-documento p,
    body.page-id-1298 .capemvel-documento li {
        line-height: 1.35 !important;
        orphans: 3;
        widows: 3;
    }

    body.page-id-1298 .capemvel-documento p {
        margin-bottom: 7px !important;
    }

    body.page-id-1298 .capemvel-documento li {
        margin-bottom: 3px !important;
    }

    body.page-id-1298 .capemvel-documento h2 {
        margin-top: 18px;
        margin-bottom: 8px;
    }

    body.page-id-1298 .capemvel-documento h3 {
        margin-top: 15px;
        margin-bottom: 6px;
    }

    /* Evitar títulos aislados al final de página */

    body.page-id-1298 .capemvel-documento h1,
    body.page-id-1298 .capemvel-documento h2,
    body.page-id-1298 .capemvel-documento h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    /* Enlaces como texto normal */

    body.page-id-1298 .capemvel-documento a {
        color: inherit !important;
        text-decoration: none !important;
        pointer-events: none !important;
    }

    /* Ocultar enlaces de regreso al índice */

    body.page-id-1298 .capemvel-documento .cc-volver,
    body.page-id-1298 .capemvel-documento a[href="#indice"],
    body.page-id-1298 .capemvel-documento a[href="#inicio"],
    body.page-id-1298 .capemvel-documento a[href="#bp-indice"] {
        display: none !important;
    }
}

/* CAPEMVEL - ESTILOS PANTALLA - PAGINA 1298 */

/* =====================================================
   1. PRESENTACIÓN GENERAL
   ===================================================== */

body.page-id-1298 #main-content {
    background: #f5f6f5;
}

body.page-id-1298 .capemvel-pagina-institucional {
    padding-top: 0 !important;
    padding-bottom: 25px !important;
}

body.page-id-1298 .capemvel-pagina-institucional .et_pb_row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =====================================================
   2. CONTENEDOR DEL DOCUMENTO
   ===================================================== */

body.page-id-1298 .capemvel-documento {
    max-width: 960px;
    margin: 0 auto 45px !important;
    padding: 45px 55px;
    background: #ffffff;
    border: 1px solid #e0e5e0;
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.045);
    box-sizing: border-box;
    overflow-wrap: break-word;
    color: #333333;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

/* =====================================================
   3. TÍTULOS
   ===================================================== */

body.page-id-1298 .capemvel-documento h1 {
    color: #288b4a;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    margin: 0 0 24px;
}

body.page-id-1298 .capemvel-documento h1 + h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

body.page-id-1298 .capemvel-documento h2 {
    color: #288b4a;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.4;
    margin: 25px 0 10px;
}

body.page-id-1298 .capemvel-documento h3 {
    color: #288b4a;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    margin: 20px 0 8px;
}

/* =====================================================
   4. TEXTO Y LISTAS
   ===================================================== */

body.page-id-1298 .capemvel-documento p {
    line-height: 1.55;
    margin-bottom: 9px;
}

body.page-id-1298 .capemvel-documento ul,
body.page-id-1298 .capemvel-documento ol {
    padding-left: 28px;
    margin-bottom: 12px;
}

body.page-id-1298 .capemvel-documento li {
    line-height: 1.55;
    margin-bottom: 4px;
}

/* =====================================================
   5. ENLACES
   ===================================================== */

body.page-id-1298 .capemvel-documento a {
    color: #288b4a;
    text-decoration: none;
}

body.page-id-1298 .capemvel-documento a:hover {
    color: #206e3b;
    text-decoration: underline;
}

/* =====================================================
   6. CONTROL IMPRIMIR
   ===================================================== */

body.page-id-1298 .capemvel-imprimir {
    display: block !important;
    width: auto !important;
    height: auto !important;
    padding: 4px 0 !important;
    margin: 0 0 3px auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 0 !important;
    cursor: pointer;
}

body.page-id-1298 .capemvel-imprimir::before {
    content: "IMPRIMIR" !important;
    display: block !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    color: #288b4a !important;
}

body.page-id-1298 .capemvel-imprimir:hover::before {
    color: #206e3b !important;
    text-decoration: underline;
}

body.page-id-1298 .capemvel-imprimir::after {
    content: "";
}

body.page-id-1298 .capemvel-volver-sitio {
    display: none !important;
}

/* =====================================================
   7. ADAPTACIÓN A CELULARES
   ===================================================== */

@media (max-width: 767px) {

    body.page-id-1298 .capemvel-documento {
        margin: 0 auto 30px !important;
        padding: 25px 20px;
        font-size: 16px;
        line-height: 1.7;
    }

    body.page-id-1298 .capemvel-documento h1 {
        font-size: 23px;
    }

    body.page-id-1298 .capemvel-documento h2 {
        font-size: 21px;
    }

    body.page-id-1298 .capemvel-documento h3 {
        font-size: 18px;
    }
}

/* =====================================================
   CAPEMVeL - Página 1298
   Enumeraciones compactas
   ===================================================== */

body.page-id-1298 .capemvel-documento p.bp-inciso {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding-left: 22px;
    text-indent: -18px;
    line-height: 1.45;
}

/* Separación entre el último inciso y el artículo siguiente */

body.page-id-1298 .capemvel-documento p.bp-inciso:has(+ p[id^="bp-art-"]) {
    margin-bottom: 15px !important;
}

/* Espaciado para impresión */

@media print {
    body.page-id-1298 .capemvel-documento p.bp-inciso {
        margin-top: 0 !important;
        margin-bottom: 2px !important;
        line-height: 1.3 !important;
        break-inside: avoid;
    }
}


/* CAPEMVeL 1298 - Ajuste final de separación entre incisos */

@media screen {
    body.page-id-1298 .capemvel-documento p.bp-inciso {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1.35 !important;
    }

    body.page-id-1298 .capemvel-documento p.bp-inciso + p.bp-inciso {
        margin-top: 3px !important;
    }
}


/* =====================================================
   CAPEMVeL 1298 - Ajustes finales de impresión
   ===================================================== */

@media print {

    /* Ocultar controles e índice interactivo */

    body.page-id-1298 .capemvel-imprimir,
    body.page-id-1298 .capemvel-volver-sitio,
    body.page-id-1298 #bp-indice {
        display: none !important;
    }

    /* Mantener las enumeraciones compactas */

    body.page-id-1298 .capemvel-documento p.bp-inciso {
        margin-top: 0 !important;
        margin-bottom: 2px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1.3 !important;
    }
}


/* =====================================================
   CAPEMVeL 1298 - Documento sin recuadro al imprimir
   ===================================================== */

@media print {

    body.page-id-1298 .capemvel-documento {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        font-size: 11pt !important;
        line-height: 1.35 !important;
    }

}

