/*
Theme Name: CAPEMVeL Institucional
Theme URI: https://capemvel.org.ar
Description: Tema hijo de Divi para la identidad institucional de CAPEMVeL.
Author: CAPEMVeL
Template: Divi
Version: 1.0.0
Text Domain: capemvel-institucional
*/

/*
 * CAPEMVeL - Estilos institucionales
 *
 * Los estilos globales se incorporarán aquí
 * progresivamente, después de su validación.
 *
 * Cabecera y pie: Divi Theme Builder.
 * Tipografía y colores: configuración global de Divi.
 * Funcionalidades: plugins independientes.
 */

/* ==================================================
   CAPEMVeL - PLANTILLA INSTITUCIONAL REUTILIZABLE
   ================================================== */

/* ESCRITORIO */

#main-content .capemvel-pagina-institucional {
    padding-top: 15px !important;
    padding-bottom: 40px !important;
}

#main-content .capemvel-pagina-institucional > .et_pb_row {
    width: 90% !important;
    max-width: 1000px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#main-content .capemvel-pagina-institucional > .et_pb_row:first-child {
    margin-bottom: 25px !important;
}

#main-content .capemvel-pagina-institucional h2 {
    font-size: 30px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* MOVIL */

@media (max-width: 767px) {

    #main-content .capemvel-pagina-institucional {
        padding-top: 0 !important;
        padding-bottom: 30px !important;
    }

    #main-content .capemvel-pagina-institucional > .et_pb_row {
        width: calc(100% - 40px) !important;
    }

    #main-content .capemvel-pagina-institucional > .et_pb_row:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #main-content .capemvel-pagina-institucional h2 {
        font-size: 25px !important;
    }

    /* Encabezado institucional más compacto */

    .et-l--header .et_pb_section {
        padding-bottom: 5px !important;
    }

    .et-l--header .et_pb_row:last-child {
        padding-bottom: 10px !important;
    }
}


/* ==================================================
   CAPEMVeL - ORGANISMOS (PAGINA 70)
   ================================================== */

body.page-id-70 #main-content .capemvel-pagina-institucional {
    background-color: #f4f6f5;
}

body.page-id-70 .capemvel-pagina-institucional > .et_pb_row:nth-child(2) {
    background-color: #ffffff;
    border: 1px solid #dce5df;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    padding: 35px 40px !important;
    box-sizing: border-box;
}

body.page-id-70 .capemvel-pagina-institucional h3 {
    color: #278052;
    font-size: 21px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
}

body.page-id-70 .capemvel-pagina-institucional .organismoInternacional {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 22px;
    color: #333333;
}

body.page-id-70 .capemvel-pagina-institucional .organismoInternacional:last-child {
    margin-bottom: 0;
}

body.page-id-70 .capemvel-pagina-institucional > .et_pb_row:nth-child(2) h2 {
    color: #339966;
    margin: 25px 0 20px !important;
}

@media (max-width: 767px) {

    body.page-id-70 .capemvel-pagina-institucional > .et_pb_row:nth-child(2) {
        padding: 20px !important;
    }

    body.page-id-70 .capemvel-pagina-institucional .organismoInternacional {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    body.page-id-70 .capemvel-pagina-institucional h3 {
        font-size: 19px;
    }
}

/* CAPEMVeL - Ajuste de fondo y espacios de Organismos */

body.page-id-70 #main-content .capemvel-pagina-institucional {
    background-color: #ffffff;
}

body.page-id-70 #main-content .capemvel-pagina-institucional > .et_pb_row:nth-child(2) {
    padding: 35px 40px !important;
}

@media (max-width: 767px) {
    body.page-id-70 #main-content .capemvel-pagina-institucional > .et_pb_row:nth-child(2) {
        padding: 20px !important;
    }
}


/* CAPEMVeL - Margen interior de Organismos en escritorio */

@media (min-width: 981px) {
    body.page-id-70 #main-content .capemvel-pagina-institucional > .et_pb_row:nth-child(2) {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }
}


/* =====================================================
   CAPEMVeL - Switchs en Argentina - Pagina 72
   ===================================================== */

body.page-id-72 #main-content .capemvel-pagina-institucional {
    background-color: #ffffff;
}

body.page-id-72 .switchsTable {
    width: 100% !important;
    margin: 0 auto !important;
    border-collapse: collapse;
    border: 1px solid #dce5df;
    font-size: 15px;
    line-height: 1.6;
}

body.page-id-72 .switchsTable td {
    width: auto !important;
    padding: 14px 16px !important;
    vertical-align: middle;
    border-bottom: 1px solid #e2e7e4;
    color: #333333;
}

body.page-id-72 .switchsTable tr:first-child td {
    background-color: #339966;
    color: #ffffff;
    font-weight: 600;
}

body.page-id-72 .switchsTable tr:nth-child(even) {
    background-color: #f2f4f3;
}

body.page-id-72 .switchsTable td:nth-child(1) {
    width: 6% !important;
    text-align: center;
}

body.page-id-72 .switchsTable td:nth-child(2) {
    width: 30% !important;
}

body.page-id-72 .switchsTable td:nth-child(3) {
    width: 27% !important;
}

body.page-id-72 .switchsTable td:nth-child(4) {
    width: 23% !important;
}

body.page-id-72 .switchsTable td:nth-child(5) {
    width: 14% !important;
    text-align: center;
}

@media (max-width: 767px) {

    body.page-id-72 .et_pb_text_inner {
        overflow-x: auto;
    }

    body.page-id-72 .switchsTable {
        min-width: 650px;
        font-size: 14px;
    }

    body.page-id-72 .switchsTable td {
        padding: 10px !important;
    }
}


/* =====================================================
   CAPEMVeL - Aspectos Regulatorios - Pagina 59
   ===================================================== */

body.page-id-59 #main-content .capemvel-pagina-institucional {
    background-color: #ffffff;
}

body.page-id-59 #main-content .capemvel-pagina-institucional > .et_pb_row:nth-child(2) {
    background-color: #ffffff;
    border: 1px solid #dce5df;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    padding: 25px 40px !important;
    box-sizing: border-box;
}

@media (min-width: 981px) {
    body.page-id-59 #main-content .capemvel-pagina-institucional > .et_pb_row:nth-child(2) {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }
}

@media (max-width: 767px) {
    body.page-id-59 #main-content .capemvel-pagina-institucional > .et_pb_row:nth-child(2) {
        padding: 15px !important;
    }
}

/* =====================================================
   CAPEMVeL - Iconos de documentos regulatorios
   ===================================================== */

body.page-id-59 #main-content a.capemvel-enlace-documental::after,
body.page-id-59 #main-content a[href*="action=capemvel_visualizar_documento"]::after,
body.page-id-59 #main-content a[href$=".zip" i]::after,
body.page-id-59 #main-content a[href*="action=capemvel_descargar_documento"]::after {
    display: inline-block !important;
    position: static !important;
    transform: none !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    vertical-align: middle;
    content: "" !important;
    background: #438762 !important;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* Icono de ojo */

body.page-id-59 #main-content a.capemvel-enlace-documental::after,
body.page-id-59 #main-content a[href*="action=capemvel_visualizar_documento"]::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Icono de disquete */

body.page-id-59 #main-content a[href$=".zip" i]::after,
body.page-id-59 #main-content a[href*="action=capemvel_descargar_documento"]::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 3h13l4 4v14H3V3Z'/%3E%3Cpath d='M7 3v7h10V3M7 21v-7h10v7'/%3E%3C/svg%3E");
}


/* =====================================================
   CAPEMVeL - Vademecum - Pagina 66
   ===================================================== */

/* Titulo institucional */

body.page-id-66 .capemvel-vademecum > h2 {
    text-align: center !important;
    color: #339966 !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin: 0 0 25px !important;
    padding: 0 !important;
}

/* Paginacion centrada */

body.page-id-66 .vademecum-paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0 15px !important;
    font-size: 14px !important;
}

/* Indicador de pagina */

body.page-id-66 .vademecum-paginacion p {
    margin: 0 !important;
    padding: 8px 12px !important;
    color: #555555;
    font-weight: 600;
    white-space: nowrap;
}

/* Botones de navegacion */

body.page-id-66 .vademecum-paginacion a {
    display: inline-block;
    padding: 7px 14px;
    background: #eaf4ee;
    border: 1px solid #d3e6da;
    border-radius: 5px;
    color: #34704f !important;
    text-decoration: none !important;
    transition: background-color 0.2s, color 0.2s;
}

body.page-id-66 .vademecum-paginacion a:hover {
    background: #438762;
    color: #ffffff !important;
}

/* Orden visual de los controles */

body.page-id-66 .vademecum-paginacion p {
    order: 2;
}

body.page-id-66 .vademecum-paginacion a:first-of-type {
    order: 1;
}

body.page-id-66 .vademecum-paginacion a {
    order: 3;
}

body.page-id-66 .vademecum-paginacion a:nth-last-of-type(3) {
    order: 1;
}

/* Adaptacion a telefonos */

@media (max-width: 767px) {

    body.page-id-66 .capemvel-vademecum > h2 {
        font-size: 25px !important;
    }

    body.page-id-66 .vademecum-paginacion {
        gap: 6px;
        font-size: 12px !important;
    }

    body.page-id-66 .vademecum-paginacion a {
        padding: 6px 9px;
    }
}


/* CAPEMVeL - Orden definitivo de paginacion */

/* Indicador central */

body.page-id-66 .vademecum-paginacion p {
    order: 2 !important;
}

/* Siguiente y Ultima */

body.page-id-66 .vademecum-paginacion a {
    order: 3 !important;
}

/* Primera y Anterior, cuando estan disponibles */

body.page-id-66 .vademecum-paginacion:has(a[href*="vd_pagina=0"]) a:nth-of-type(-n+2) {
    order: 1 !important;
}


/* =====================================================
   CAPEMVeL - Vademecum - Scroll horizontal de tabla
   ===================================================== */

@media (max-width: 767px) {

    body.page-id-66 .capemvel-vademecum {
        overflow: visible !important;
        width: 100%;
        max-width: 100%;
    }

    body.page-id-66 .vd-tabla-scroll {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
        scrollbar-color: #438762 #eaf4ee;
    }

    body.page-id-66 .vd-tabla-scroll .switchsTable {
        width: 700px !important;
        min-width: 700px !important;
        max-width: none !important;
    }

    body.page-id-66 .vd-tabla-scroll::-webkit-scrollbar {
        height: 8px;
    }

    body.page-id-66 .vd-tabla-scroll::-webkit-scrollbar-track {
        background: #eaf4ee;
        border-radius: 4px;
    }

    body.page-id-66 .vd-tabla-scroll::-webkit-scrollbar-thumb {
        background: #438762;
        border-radius: 4px;
    }

}


/* =====================================================
   CAPEMVeL - Seguridad - Pagina 57
   ===================================================== */

body.page-id-57 #main-content .capemvel-pagina-institucional {
    background-color: #ffffff;
}

body.page-id-57 .capemvel-seguridad {
    background: #ffffff;
    border: 1px solid #dce5df;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    padding: 35px 80px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

/* Subtitulos */

body.page-id-57 .capemvel-seguridad h3 {
    color: #278052;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
    margin: 25px 0 12px;
    padding: 0;
}

body.page-id-57 .capemvel-seguridad h3:first-child {
    margin-top: 0;
}

body.page-id-57 .capemvel-seguridad p {
    margin-bottom: 12px;
}

/* Lista de situaciones */

body.page-id-57 .capemvel-seguridad-lista {
    list-style-type: disc;
    padding-left: 25px;
    margin: 10px 0 25px;
}

body.page-id-57 .capemvel-seguridad-lista li {
    margin-bottom: 8px;
}

body.page-id-57 .capemvel-seguridad-lista li::marker {
    color: #339966;
}

/* Aviso de enlaces pendientes */

body.page-id-57 .capemvel-seguridad-aviso {
    background: #f2f7f4;
    border: 1px solid #dce8e1;
    border-left: 4px solid #339966;
    border-radius: 6px;
    padding: 22px 25px;
    margin-top: 25px;
}

body.page-id-57 .capemvel-seguridad-aviso h4 {
    color: #278052;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 10px;
    padding: 0;
}

/* Botones de acceso */

body.page-id-57 .capemvel-seguridad-botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

body.page-id-57 .capemvel-seguridad-botones button {
    padding: 12px 20px;
    background: #e5e9e6;
    border: 1px solid #d1d8d3;
    border-radius: 5px;
    color: #737b76;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
}

/* Adaptacion a tablets */

@media (min-width: 768px) and (max-width: 980px) {

    body.page-id-57 .capemvel-seguridad {
        padding: 30px 40px;
    }

}

/* Adaptacion a telefonos */

@media (max-width: 767px) {

    body.page-id-57 .capemvel-seguridad {
        padding: 20px;
        font-size: 15px;
        line-height: 1.7;
    }

    body.page-id-57 .capemvel-seguridad h3 {
        font-size: 19px;
    }

    body.page-id-57 .capemvel-seguridad-aviso {
        padding: 15px;
    }

    body.page-id-57 .capemvel-seguridad-botones {
        flex-direction: column;
    }

    body.page-id-57 .capemvel-seguridad-botones button {
        width: 100%;
    }

}


/* CAPEMVeL - Seguridad - Ajuste final de espaciados */

body.page-id-57 .capemvel-seguridad h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

body.page-id-57 .capemvel-seguridad h3:first-child {
    margin-top: 0;
}

body.page-id-57 .capemvel-seguridad p {
    margin-bottom: 10px;
    padding-bottom: 0 !important;
}

body.page-id-57 .capemvel-seguridad-lista {
    margin-top: 10px;
    margin-bottom: 18px;
    padding-bottom: 0 !important;
}

body.page-id-57 .capemvel-seguridad-aviso {
    margin-top: 20px;
    padding: 20px 25px;
}

body.page-id-57 .capemvel-seguridad-botones {
    margin-top: 15px;
    gap: 10px;
    align-items: center;
}

body.page-id-57 .capemvel-seguridad-botones p {
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-57 .capemvel-seguridad-botones br {
    display: none;
}

body.page-id-57 .capemvel-seguridad-botones button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    line-height: 1.5;
    margin: 0 !important;
    min-height: 42px;
}

@media (max-width: 767px) {

    body.page-id-57 .capemvel-seguridad-aviso {
        padding: 15px;
    }

    body.page-id-57 .capemvel-seguridad-botones {
        align-items: stretch;
        gap: 10px;
    }

}

