/*
 * CAPEMVeL - Carrusel institucional
 * Exclusivo de la portada de pruebas (817)
 */

body.page-id-817 .capemvel-carrusel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 280px;
    margin: 15px auto 25px;
    overflow: hidden;
}

body.page-id-817 .capemvel-carrusel-imagen {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    max-width: 500px;
    margin: 0;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition:
        transform 1.8s ease-in-out,
        opacity 1.8s ease-in-out;
    pointer-events: none;
}

body.page-id-817 .capemvel-carrusel-imagen img {
    display: block;
    width: 100%;
    height: auto;
    border: 5px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    box-sizing: border-box;
}

body.page-id-817 .capemvel-carrusel-imagen.activa {
    z-index: 3;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

body.page-id-817 .capemvel-carrusel-imagen.anterior {
    z-index: 2;
    opacity: 0.6;
    transform: translate(-105%, -50%) scale(0.76);
    pointer-events: auto;
}

body.page-id-817 .capemvel-carrusel-imagen.siguiente {
    z-index: 2;
    opacity: 0.6;
    transform: translate(5%, -50%) scale(0.76);
    pointer-events: auto;
}

@media (max-width: 767px) {
    body.page-id-817 .capemvel-carrusel {
        height: auto;
        aspect-ratio: 2.5 / 1;
        margin: 10px auto 20px;
    }

    body.page-id-817 .capemvel-carrusel-imagen {
        width: 78%;
    }

    body.page-id-817 .capemvel-carrusel-imagen.anterior {
        transform: translate(-112%, -50%) scale(0.78);
    }

    body.page-id-817 .capemvel-carrusel-imagen.siguiente {
        transform: translate(12%, -50%) scale(0.78);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-id-817 .capemvel-carrusel-imagen {
        transition: none;
    }
}


/* ==========================================
   CAPEMVeL - Cabecera institucional
   Portada de pruebas 817
   ========================================== */

body.page-id-817 #main-header #logo {
    content: url('/cms/wp-content/uploads/2026/11/logo-capemvel-nuevo.png');
    width: auto;
}

/* ESCRITORIO */
@media (min-width: 981px) {

    /* Evitar el espacio duplicado de Divi */
    body.page-id-817 #page-container {
        padding-top: 0 !important;
    }

    body.page-id-817 #main-header {
        position: relative;
    }

    body.page-id-817 #main-header .et_menu_container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 12px !important;
    }

    /* Isologo */
    body.page-id-817 #main-header .logo_container {
        position: relative;
        width: 100%;
        height: 160px;
        text-align: center;
    }

    body.page-id-817 #main-header .logo_helper {
        display: none;
    }

    body.page-id-817 #main-header .logo_container > a {
        display: inline-block;
        position: relative;
        margin: 0;
        padding: 0;
        line-height: 0;
        vertical-align: top;
    }

    body.page-id-817 #main-header #logo {
        max-height: 125px;
        width: auto;
    }

    /* Denominación institucional */
    body.page-id-817 #main-header .logo_container::after {
        content: "Cámara Argentina de Productores de Especialidades Medicinales de Venta Libre";
        display: block;
        position: absolute;
        top: 112px;
        left: 0;
        width: 100%;
        color: #288b4a;
        font-size: 19px;
        font-weight: 500;
        text-align: center;
        line-height: 1.4;
        white-space: nowrap;
        pointer-events: none;
    }

    /* Barra de navegación */
    body.page-id-817 #et-top-navigation {
        float: none;
        width: 100%;
        padding: 10px 0 !important;
        border-top: 1px solid #e5e9e5;
    }

    body.page-id-817 #top-menu-nav {
        display: block;
        width: 100%;
    }

    body.page-id-817 #top-menu {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap;
        gap: 27px;
        width: 100%;
    }

    body.page-id-817 #top-menu > li {
        display: flex;
        align-items: center;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap;
    }

    body.page-id-817 #top-menu > li:last-child {
        margin-left: 12px !important;
    }

    body.page-id-817 #top-menu > li > a {
        display: inline-flex;
        align-items: center;
        padding-bottom: 0 !important;
        line-height: 1.5;
    }

    /* Área de Socios */
    body.page-id-817 #top-menu > li:last-child > a {
        gap: 7px;
        background: transparent !important;
        color: #288b4a !important;
        padding: 0 !important;
        border-radius: 0;
    }

    body.page-id-817 #top-menu > li:last-child > a::before {
        content: "";
        display: inline-block;
        width: 17px;
        height: 17px;
        background-color: #288b4a;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='black'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='black'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    body.page-id-817 #et_top_search {
        display: none;
    }

    /* Acercar el carrusel al menú */
    body.page-id-817 #main-content .et_pb_section:first-child {
        padding-top: 5px !important;
    }

    body.page-id-817 #main-content .et_pb_section:first-child .et_pb_row:first-child {
        padding-top: 5px !important;
    }

    body.page-id-817 .capemvel-carrusel {
        margin-top: 0 !important;
    }
}

/* ==========================================
   CAPEMVeL - Cabecera móvil
   Exclusiva de portada 817
   ========================================== */

@media (max-width: 980px) {

    body.page-id-817 #main-header {
        position: relative !important;
    }

    body.page-id-817 #page-container {
        padding-top: 0 !important;
    }

    body.page-id-817 #main-header .et_menu_container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
        padding-top: 8px;
    }

    /* Isologo centrado */
    body.page-id-817 #main-header .logo_container {
        position: relative;
        width: 100%;
        height: auto;
        text-align: center;
    }

    body.page-id-817 #main-header .logo_helper {
        display: none;
    }

    body.page-id-817 #main-header .logo_container > a {
        display: block;
        position: relative;
        margin: 0 auto;
        padding: 0;
        line-height: 0;
        text-align: center;
    }

    body.page-id-817 #main-header #logo {
        position: relative;
        display: inline-block;
        width: auto;
        max-height: 85px;
        margin: 0 auto;
    }

    /* Nombre institucional */
    body.page-id-817 #main-header .logo_container::after {
        content: "Cámara Argentina de Productores de Especialidades Medicinales de Venta Libre";
        display: block;
        position: relative;
        width: 100%;
        margin: 3px auto 8px;
        color: #288b4a;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        text-align: center;
        white-space: normal;
    }

    /* Navegación móvil */
    body.page-id-817 #et-top-navigation {
        float: none;
        width: 100%;
        padding: 4px 0 !important;
        border-top: 1px solid #e5e9e5;
        text-align: right;
    }

    /* Ocultar buscador superior */
    body.page-id-817 #et_top_search {
        display: none !important;
    }

    body.page-id-817 #et_mobile_nav_menu {
        float: none;
        display: block;
    }

    body.page-id-817 .mobile_menu_bar {
        display: inline-block;
        vertical-align: middle;
    }

    body.page-id-817 .mobile_menu_bar::before {
        color: #288b4a !important;
    }

    body.page-id-817 #et-top-navigation {
        min-height: 42px;
        box-sizing: border-box;
    }

    /* Acercar carrusel */
    body.page-id-817 #main-content .et_pb_section:first-child {
        padding-top: 10px !important;
    }

    body.page-id-817 #main-content .et_pb_section:first-child .et_pb_row:first-child {
        padding-top: 10px !important;
    }
}

/* ==========================================
   CAPEMVeL - Ocultar buscadores del pie
   Solo portada de pruebas 817
   ========================================== */

body.page-id-817 #main-footer .widget_search {
    display: none !important;
}


/* ==========================================
   CAPEMVeL - Ocultar buscadores del pie
   Solo portada de pruebas 817
   ========================================== */

body.page-id-817 #main-footer .widget_search {
    display: none !important;
}


/* ===== CAPEMVEL: CORRECCION SUBMENUS DESKTOP ===== */

@media (min-width: 981px) {

    /* Posicionamiento de los desplegables */
    body.page-id-817 #top-menu > li.menu-item-has-children {
        position: relative;
    }

    /* Submenu vertical */
    body.page-id-817 #top-menu li ul.sub-menu {
        display: block !important;
        flex-direction: column !important;
        width: 220px;
        padding: 5px 0 !important;
        background: #ffffff !important;
        border: 1px solid #dddddd !important;
        border-top: 2px solid #288b4a !important;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08);
        z-index: 99999;
    }

    body.page-id-817 #top-menu li ul.sub-menu > li {
        display: block !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: normal !important;
    }

    body.page-id-817 #top-menu li ul.sub-menu > li > a {
        display: block !important;
        width: 100% !important;
        padding: 9px 14px !important;
        line-height: 1.4 !important;
        font-size: 13px;
        color: #444444 !important;
        box-sizing: border-box;
    }

    body.page-id-817 #top-menu li ul.sub-menu > li > a:hover {
        background: #f3f7f3 !important;
        color: #288b4a !important;
    }

    /* El estilo especial corresponde a Área de Socios, no a Contacto */
    body.page-id-817 #top-menu > li:last-child > a {
        color: inherit !important;
    }

    body.page-id-817 #top-menu > li:last-child > a::before {
        display: none !important;
    }

    body.page-id-817 #top-menu > li.menu-item-837 > a {
        color: #288b4a !important;
        gap: 7px;
    }

    body.page-id-817 #top-menu > li.menu-item-837 > a::before {
        content: "♟";
        display: inline-block;
        color: #288b4a;
        background: none !important;
        -webkit-mask: none !important;
        mask: none !important;
        font-size: 17px;
    }
}

/* ===== CAPEMVEL: AJUSTE VISUAL SUBMENUS ===== */

@media (min-width: 981px) {

    /* Permitir que los desplegables se posicionen correctamente */
    body.page-id-817 #top-menu > li.menu-item-has-children {
        position: relative !important;
    }

    /* Recuadro similar al sitio original */
    body.page-id-817 #top-menu > li > ul.sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 190px !important;
        padding: 3px 0 !important;
        margin-top: 0 !important;
        background: #fff !important;
        border: 1px solid #d5d5d5 !important;
        box-shadow: none !important;
    }

    /* Opciones compactas */
    body.page-id-817 #top-menu li ul.sub-menu > li > a {
        padding: 6px 12px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        font-weight: 400 !important;
    }

    /* Evitar que el recuadro se superponga al encabezado */
    body.page-id-817 #top-menu > li > ul.sub-menu {
        transform: none !important;
    }

    /* Ícono original de Área de Socios */
    body.page-id-817 #top-menu > li.menu-item-837 > a::before {
        content: "" !important;
        display: inline-block !important;
        width: 17px !important;
        height: 17px !important;
        background-color: #288b4a !important;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='black'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat !important;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='black'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat !important;
    }

}

/* ===== CAPEMVEL: SUBMENUS MOVILES PLEGABLES ===== */

@media (max-width: 980px) {

    body.page-id-817 #mobile_menu li.menu-item-has-children {
        position: relative;
    }

    body.page-id-817 #mobile_menu li.capemvel-submenu-cerrado > ul.sub-menu {
        display: none !important;
    }

    body.page-id-817 #mobile_menu li.capemvel-submenu-abierto > ul.sub-menu {
        display: block !important;
    }

    body.page-id-817 #mobile_menu .capemvel-submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        color: #288b4a;
        font-size: 22px;
        cursor: pointer;
        z-index: 5;
    }

    body.page-id-817 #mobile_menu .capemvel-submenu-toggle span {
        display: inline-block;
        transition: transform 0.2s ease;
    }

    body.page-id-817 #mobile_menu li.capemvel-submenu-abierto
    > .capemvel-submenu-toggle span {
        transform: rotate(180deg);
    }

    body.page-id-817 #mobile_menu li.menu-item-has-children > a {
        padding-right: 50px !important;
    }

}

/* ==========================================
   CAPEMVeL - Diseño mejorado del menú móvil
   Exclusivo de portada 817
   ========================================== */

@media (max-width: 980px) {

    /* Contenedor principal */
    body.page-id-817 #mobile_menu {
        background: #ffffff !important;
        padding: 8px 12px !important;
        border-top: 2px solid #288b4a !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.06) !important;
    }

    /* Elementos principales */
    body.page-id-817 #mobile_menu > li {
        position: relative;
        background: #ffffff !important;
        border-bottom: 1px solid #edf0ed !important;
        text-align: left !important;
    }

    body.page-id-817 #mobile_menu > li:last-child {
        border-bottom: none !important;
    }

    /* Enlaces principales */
    body.page-id-817 #mobile_menu > li > a {
        display: block !important;
        padding: 13px 50px 13px 14px !important;
        background: transparent !important;
        color: #344238 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        text-align: left !important;
        border: none !important;
    }

    /* Sección abierta */
    body.page-id-817 #mobile_menu > li.capemvel-submenu-abierto > a {
        background: #f1f8f2 !important;
        color: #288b4a !important;
        font-weight: 600 !important;
    }

    /* Botones de apertura y cierre */
    body.page-id-817 #mobile_menu .capemvel-submenu-toggle {
        position: absolute !important;
        top: 0 !important;
        right: 4px !important;
        width: 46px !important;
        height: 47px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        color: #288b4a !important;
        font-size: 26px !important;
        line-height: 1 !important;
        cursor: pointer;
        z-index: 10;
    }

    body.page-id-817 #mobile_menu .capemvel-submenu-toggle span {
        display: block;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    body.page-id-817 #mobile_menu
    li.capemvel-submenu-abierto > .capemvel-submenu-toggle span {
        transform: rotate(180deg);
    }

    /* Contenedor de submenús */
    body.page-id-817 #mobile_menu li > ul.sub-menu {
        padding: 4px 0 6px 14px !important;
        margin: 0 !important;
        background: #f8fbf8 !important;
    }

    /* Enlaces secundarios */
    body.page-id-817 #mobile_menu li ul.sub-menu > li > a {
        display: block !important;
        padding: 11px 12px !important;
        background: transparent !important;
        color: #526057 !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        text-align: left !important;
        border-bottom: 1px solid #eaf0ea !important;
    }

    body.page-id-817 #mobile_menu li ul.sub-menu > li:last-child > a {
        border-bottom: none !important;
    }

    /* Respuesta al tacto o teclado */
    body.page-id-817 #mobile_menu a:focus-visible,
    body.page-id-817 #mobile_menu button:focus-visible {
        outline: 2px solid #288b4a !important;
        outline-offset: -2px;
    }

}

/* ==========================================
   CAPEMVeL - Menú móvil compacto
   Portada de pruebas 817
   ========================================== */

@media (max-width: 980px) {

    body.page-id-817 #mobile_menu {
        padding: 4px 10px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.035) !important;
    }

    body.page-id-817 #mobile_menu > li > a {
        padding: 9px 42px 9px 12px !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 400 !important;
    }

    body.page-id-817 #mobile_menu > li.capemvel-submenu-abierto > a {
        background: #f7faf7 !important;
        font-weight: 500 !important;
    }

    body.page-id-817 #mobile_menu .capemvel-submenu-toggle {
        top: 0 !important;
        right: 2px !important;
        width: 40px !important;
        height: 36px !important;
        font-size: 20px !important;
    }

    body.page-id-817 #mobile_menu li > ul.sub-menu {
        padding: 2px 0 3px 10px !important;
        background: #fbfcfb !important;
    }

    body.page-id-817 #mobile_menu li ul.sub-menu > li > a {
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

}

/* ==========================================
   CAPEMVeL - Menú móvil compacto
   Portada de pruebas 817
   ========================================== */

@media (max-width: 980px) {

    body.page-id-817 #mobile_menu {
        padding: 4px 10px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.035) !important;
    }

    body.page-id-817 #mobile_menu > li > a {
        padding: 9px 42px 9px 12px !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 400 !important;
    }

    body.page-id-817 #mobile_menu > li.capemvel-submenu-abierto > a {
        background: #f7faf7 !important;
        font-weight: 500 !important;
    }

    body.page-id-817 #mobile_menu .capemvel-submenu-toggle {
        top: 0 !important;
        right: 2px !important;
        width: 40px !important;
        height: 36px !important;
        font-size: 20px !important;
    }

    body.page-id-817 #mobile_menu li > ul.sub-menu {
        padding: 2px 0 3px 10px !important;
        background: #fbfcfb !important;
    }

    body.page-id-817 #mobile_menu li ul.sub-menu > li > a {
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

}

/* ==========================================
   CAPEMVeL - Cabecera móvil compacta
   y navegación discreta
   Portada 817
   ========================================== */

@media (max-width: 980px) {

    /* Reducir espacio superior del encabezado */
    body.page-id-817 #main-header .et_menu_container {
        padding-top: 3px !important;
    }

    /* Isologo más pequeño */
    body.page-id-817 #main-header #logo {
        max-height: 65px !important;
    }

    /* Nombre institucional más compacto */
    body.page-id-817 #main-header .logo_container::after {
        font-size: 11.5px !important;
        line-height: 1.3 !important;
        margin: 2px auto 5px !important;
    }

    /* Reducir altura de la navegación */
    body.page-id-817 #et-top-navigation {
        min-height: 34px !important;
        padding: 2px 0 !important;
    }

    /* Menú hamburguesa */
    body.page-id-817 .mobile_menu_bar {
        padding-bottom: 0 !important;
    }

    /* Menú desplegable más discreto */
    body.page-id-817 #mobile_menu {
        border-top: none !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.025) !important;
    }

    /* Sustituir visualmente las flechas por + */
    body.page-id-817 #mobile_menu .capemvel-submenu-toggle {
        color: #666666 !important;
        font-size: 0 !important;
        height: 36px !important;
    }

    body.page-id-817 #mobile_menu .capemvel-submenu-toggle span {
        display: none !important;
    }

    body.page-id-817 #mobile_menu .capemvel-submenu-toggle::after {
        content: "+" !important;
        display: block;
        font-family: Arial, sans-serif;
        font-size: 18px;
        font-weight: 400;
        line-height: 1;
        color: #666666;
    }

    /* Símbolo - cuando está abierto */
    body.page-id-817 #mobile_menu
    li.capemvel-submenu-abierto > .capemvel-submenu-toggle::after {
        content: "−" !important;
    }

}

/* ==========================================
   CAPEMVeL - Espaciado compacto del carrusel
   Exclusivo de portada móvil 817
   ========================================== */

@media (max-width: 980px) {

    body.page-id-817 .et_pb_section:has(.capemvel-carrusel) {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    body.page-id-817 .et_pb_row:has(.capemvel-carrusel) {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    body.page-id-817 .capemvel-carrusel {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

}

/* ==========================================
   CAPEMVeL - Pie de página compacto
   Exclusivo de portada 817
   ========================================== */

body.page-id-817 #footer-widgets {
    display: none !important;
}


/* ==========================================
   CAPEMVeL - Seccion Quienes somos
   Exclusiva de portada 817
   ========================================== */

body.page-id-817 .et_pb_section:has(.capemvel-quienes-somos) {
    padding: 15px 20px 35px !important;
}

body.page-id-817 .et_pb_row:has(.capemvel-quienes-somos) {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.page-id-817 .capemvel-quienes-somos {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

body.page-id-817 .capemvel-quienes-somos h2 {
    color: #288b4a;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 18px;
    padding-bottom: 0;
}

body.page-id-817 .capemvel-quienes-somos p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

@media (max-width: 767px) {
    body.page-id-817 .et_pb_section:has(.capemvel-quienes-somos) {
        padding: 20px 18px 30px !important;
    }

    body.page-id-817 .capemvel-quienes-somos h2 {
        font-size: 23px;
    }

    body.page-id-817 .capemvel-quienes-somos p {
        font-size: 15px;
        line-height: 1.7;
    }
}



/* ==================================================
   CAPEMVEL_PORTADA_DOS_COLUMNAS_2026
   Portada 817 - Institucional, preguntas y noticias
   ================================================== */

/* Dos columnas institucionales */

body.page-id-817 .et_pb_row:has(.capemvel-preguntas-resumen) {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.page-id-817 .et_pb_row:has(.capemvel-preguntas-resumen)
.et_pb_column {
    box-sizing: border-box;
}

body.page-id-817 .capemvel-quienes-somos,
body.page-id-817 .capemvel-preguntas-resumen {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.page-id-817 .capemvel-preguntas-resumen h2,
body.page-id-817 .capemvel-quienes-somos h2 {
    color: #288b4a;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 18px;
}

body.page-id-817 .capemvel-preguntas-resumen ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

body.page-id-817 .capemvel-preguntas-resumen li {
    color: #555;
    font-size: 16px;
    line-height: 1.65;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

body.page-id-817 .capemvel-ver-mas,
body.page-id-817 a.capemvel-ver-mas {
    color: #288b4a !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

body.page-id-817 a.capemvel-ver-mas:hover {
    text-decoration: underline;
}

/* Noticias a la comunidad */

body.page-id-817 .et_pb_section:has(.capemvel-noticias-comunidad) {
    background: #f6f7f6 !important;
    border-top: 1px solid #e0e4e0;
    padding: 35px 20px 45px !important;
}

body.page-id-817 .et_pb_row:has(.capemvel-noticias-comunidad) {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.page-id-817 .capemvel-noticias-comunidad h2 {
    color: #288b4a;
    font-size: 27px;
    font-weight: 500;
    margin-bottom: 22px;
}

body.page-id-817 .capemvel-noticias-comunidad ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-id-817 .capemvel-noticias-comunidad li {
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e1;
}

body.page-id-817 .capemvel-noticias-comunidad li a {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none;
}

body.page-id-817 .capemvel-noticias-comunidad li a:hover {
    color: #288b4a;
    text-decoration: underline;
}

/* Adaptacion movil */

@media (max-width: 767px) {

    body.page-id-817 .et_pb_section:has(.capemvel-preguntas-resumen) {
        padding: 25px 18px 30px !important;
    }

    body.page-id-817 .capemvel-preguntas-resumen h2,
    body.page-id-817 .capemvel-quienes-somos h2,
    body.page-id-817 .capemvel-noticias-comunidad h2 {
        font-size: 23px;
    }

    body.page-id-817 .capemvel-preguntas-resumen li,
    body.page-id-817 .capemvel-noticias-comunidad li a {
        font-size: 15px;
    }

    body.page-id-817 .et_pb_section:has(.capemvel-noticias-comunidad) {
        padding: 28px 18px 35px !important;
    }
}


/* ================================================
   CAPEMVEL_CORRECCION_GRID_2026
   Distribucion horizontal de las dos columnas
   ================================================ */

@media (min-width: 981px) {

    body.page-id-817
    .et_pb_row:has(.capemvel-preguntas-resumen) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 45px;
        align-items: start;
    }

    body.page-id-817
    .et_pb_row:has(.capemvel-preguntas-resumen)
    > .et_pb_column {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        min-width: 0;
    }

}

@media (max-width: 980px) {

    body.page-id-817
    .et_pb_row:has(.capemvel-preguntas-resumen) {
        display: grid !important;
        grid-template-columns: 1fr;
        row-gap: 25px;
    }

    body.page-id-817
    .et_pb_row:has(.capemvel-preguntas-resumen)
    > .et_pb_column {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

}


/* ============================================
   CAPEMVEL_AJUSTE_ESPACIO_CARRUSEL_2026
   Acercar contenido institucional al carrusel
   ============================================ */

@media (min-width: 981px) {

    body.page-id-817
    .et_pb_section:has(.capemvel-preguntas-resumen) {
        margin-top: -60px !important;
        position: relative;
        z-index: 1;
    }

}


/* =================================================
   CAPEMVEL_REDIsENIO_FINAL_2026
   Portada 817 - Contenido centrado y filas alternadas
   ================================================= */

/* Contenedor común de 1000 px */

body.page-id-817
.et_pb_row:has(.capemvel-preguntas-resumen),

body.page-id-817
.et_pb_row:has(.capemvel-noticias-comunidad) {
    width: calc(100% - 40px) !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* Títulos y símbolos + */

body.page-id-817 .capemvel-titulo-con-mas {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

body.page-id-817 .capemvel-titulo-con-mas h2 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
}

body.page-id-817 .capemvel-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 1px solid #288b4a;
    border-radius: 50%;
    color: #288b4a !important;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
}

body.page-id-817 a.capemvel-mas:hover {
    background: #288b4a;
    color: #fff !important;
}

body.page-id-817 .capemvel-mas-pendiente {
    opacity: 0.55;
    cursor: default;
}

/* Texto institucional */

body.page-id-817 .capemvel-quienes-somos p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.75;
}

/* Renglones alternados */

body.page-id-817 .capemvel-preguntas-resumen ul,
body.page-id-817 .capemvel-noticias-comunidad ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.page-id-817 .capemvel-preguntas-resumen li,
body.page-id-817 .capemvel-noticias-comunidad li {
    padding: 12px 14px;
    margin: 0;
    border: none;
    line-height: 1.6;
}

body.page-id-817 .capemvel-preguntas-resumen li:nth-child(odd),
body.page-id-817 .capemvel-noticias-comunidad li:nth-child(odd) {
    background: #f2f4f2;
}

body.page-id-817 .capemvel-preguntas-resumen li:nth-child(even),
body.page-id-817 .capemvel-noticias-comunidad li:nth-child(even) {
    background: #ffffff;
}

/* Sección de noticias */

body.page-id-817
.et_pb_section:has(.capemvel-noticias-comunidad) {
    background: #ffffff !important;
    border-top: 1px solid #e1e5e1;
    padding-top: 30px !important;
    padding-bottom: 35px !important;
}

/* Adaptación móvil */

@media (max-width: 980px) {

    body.page-id-817
    .et_pb_row:has(.capemvel-preguntas-resumen),

    body.page-id-817
    .et_pb_row:has(.capemvel-noticias-comunidad) {
        width: calc(100% - 36px) !important;
        max-width: 1000px !important;
    }

    body.page-id-817 .capemvel-titulo-con-mas {
        gap: 10px;
    }

    body.page-id-817 .capemvel-mas {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 20px;
    }
}


/* =================================================
   CAPEMVEL_POSICION_MAS_2026
   Ubicación de símbolos + y encabezado de noticias
   ================================================= */

/* QUIÉNES SOMOS: símbolo al final del texto */

body.page-id-817 .capemvel-mas-final {
    display: inline;
    white-space: nowrap;
    margin-left: 5px;
}

body.page-id-817 .capemvel-mas-final .capemvel-mas {
    display: inline-flex;
    vertical-align: middle;
    width: 23px;
    height: 23px;
    font-size: 20px;
    line-height: 1;
}

/* PREGUNTAS Y NOTICIAS: símbolo debajo de las listas */

body.page-id-817 .capemvel-mas-inferior {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
    padding-right: 4px;
}

body.page-id-817 .capemvel-mas-inferior .capemvel-mas {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

/* NOTICIAS: barra gris suave con título centrado */

body.page-id-817 .capemvel-titulo-noticias {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    background: #e9edeb;
    padding: 12px 15px !important;
    margin-bottom: 18px !important;
    box-sizing: border-box;
}

body.page-id-817 .capemvel-titulo-noticias h2 {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajuste de separación en noticias */

body.page-id-817 .capemvel-noticias-comunidad ul {
    margin-top: 0 !important;
}

body.page-id-817 .capemvel-noticias-comunidad {
    width: 100%;
}

/* Adaptación móvil */

@media (max-width: 767px) {

    body.page-id-817 .capemvel-titulo-noticias {
        padding: 10px 12px !important;
    }

    body.page-id-817 .capemvel-mas-inferior {
        margin-top: 10px;
    }
}


/* =================================================
   CAPEMVEL_LISTAS_COMPACTAS_2026
   Listas más compactas y título de noticias sin fondo
   ================================================= */

/* Reducir altura de preguntas y noticias */

body.page-id-817 .capemvel-preguntas-resumen li,
body.page-id-817 .capemvel-noticias-comunidad li {
    padding: 7px 12px !important;
    line-height: 1.4 !important;
}

/* Acercar el símbolo + a la última fila */

body.page-id-817 .capemvel-mas-inferior {
    margin-top: 8px !important;
}

/* Noticias: quitar barra gris y mantener título centrado */

body.page-id-817 .capemvel-titulo-noticias {
    background: transparent !important;
    padding: 0 0 10px !important;
    margin-bottom: 12px !important;
    border: none !important;
    justify-content: center !important;
}

body.page-id-817 .capemvel-titulo-noticias h2 {
    text-align: center !important;
    width: 100%;
}

/* ==========================================
   CAPEMVeL - Carrusel móvil definitivo
   Solo portada 817 - teléfonos
   ========================================== */

@media (max-width: 767px) {

    body.page-id-817 .et_pb_row:has(.capemvel-carrusel) {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.page-id-817 .capemvel-carrusel {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 2 / 1 !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    body.page-id-817 .capemvel-carrusel-imagen {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        opacity: 0 !important;
        transform: none !important;
        pointer-events: none !important;
        transition: opacity 1.8s ease-in-out !important;
    }

    body.page-id-817 .capemvel-carrusel-imagen.activa {
        opacity: 1 !important;
        z-index: 3 !important;
        pointer-events: auto !important;
    }

    body.page-id-817 .capemvel-carrusel-imagen.anterior,
    body.page-id-817 .capemvel-carrusel-imagen.siguiente {
        opacity: 0 !important;
        z-index: 1 !important;
    }

    body.page-id-817 .capemvel-carrusel-imagen img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border: 0 !important;
    }

}


/* ==========================================
   CAPEMVeL - Espaciado carrusel escritorio
   Portada de pruebas 817
   ========================================== */

@media (min-width: 981px) {

    body.page-id-817 .et_pb_section:has(.capemvel-carrusel) {
        padding-top: 0px !important;
        margin-top: -25px !important;
    }

}
