/*
Theme Name: Betheme Child
Theme URI: https://www.vuce.cr/
Author: VUCE / BITCR
Description: Child theme for Betheme (VUCE Costa Rica)
Template: betheme
Version: 1.0.0
Text Domain: betheme-child
*/

/* Preserved legacy style.css rules */
.como-navegar-aqui .accordion .accordion_wrapper .question .title {
    font-family: 'GothamBold';
    text-transform: uppercase;
    color: #68ad45 !important;
    font-size: 26px !important;
    box-shadow: none !important;
}

.como-navegar-aqui .accordion .accordion_wrapper .question {
    border-width: 0px 0 0 0px;
}

input#buscador {
    margin: 0px;
    width: 100%;
    border-radius: 7px;
    border: 1px solid #ced4da;
}

/* Preserved single post image & spacing styles */
.single-post .wp-block-image img {
    border-radius: 35px 0 0 35px;
    margin-bottom: 40px;
}
.single-post .has_content .the_content_wrapper {
    margin-bottom: 85px;
}

/* FIX #1: Responsive 16:9 sizing for Betheme 29.0.7 videos affected by empty/invalid css_video_width/height (has-wh) */
.column_video .content_video.iframe.has-wh,
.content_video.iframe.has-wh {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.column_video .content_video.iframe.has-wh iframe,
.content_video.iframe.has-wh iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* FIX #3: Floating Chatbot Button (.btn-flotante-procomer)  clean centered styling, zero overlap */
.btn-flotante-procomer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.22);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.btn-flotante-procomer .icono-procomer {
    width: 35px;
    height: 35px;
    max-width: 35px;
    max-height: 35px;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

.btn-flotante-procomer:hover,
.btn-flotante-procomer:focus {
    background-color: #009ACD;
    outline: none;
}

.btn-flotante-procomer:hover .icono-procomer,
.btn-flotante-procomer:focus .icono-procomer {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    body a.btn-flotante-procomer {
        width: 55px;
        height: 55px;
        bottom: 92px;
        left: auto;
        right: 20px;
        transform: none;
    }
    body a.btn-flotante-procomer:hover {
        transform: scale(1.08);
    }
    .btn-flotante-procomer .icono-procomer {
        width: 30px;
        height: 30px;
        max-width: 30px;
        max-height: 30px;
    }
}

/* Ensure ScrollSubMenu left anchor container stays cleanly positioned & visible above sections */
#menu_anclas_izquierdo {
    position: relative;
}
#menu_anclas_izquierdo .ssm-sub-menu {
    z-index: 50;
}

/* HEADER POSITIONING, STICKY BAR & MOBILE/TABLET CLIPPING FIX (Betheme 29.x) */
#Top_bar:not(.is-sticky) .container:not(.top_header),#Top_bar.is-sticky .container:not(.top_header){top:0!important;right:0!important;width:100%!important;max-width:100%!important}
#Top_bar .secondary_menu_wrapper{display:none!important}
body.admin-bar #Top_bar,body.admin-bar #Top_bar.is-sticky{top:32px!important}
@media only screen and (max-width:782px){body.admin-bar #Top_bar:not(.is-sticky){top:46px!important}body.admin-bar #Top_bar.is-sticky{top:0!important}}
@media only screen and (min-width:601px) and (max-width:782px){body.admin-bar #Top_bar.is-sticky{top:46px!important}}
@media only screen and (min-width:768px){
#Top_bar.is-sticky{height:74px!important;min-height:74px!important;background:#fff!important;box-shadow:0 2px 12px rgba(0,0,0,.08)!important}
#Top_bar.is-sticky .container{width:100%!important;max-width:100%!important;height:74px!important;padding:0 24px!important;margin:0!important;box-sizing:border-box!important}
#Top_bar.is-sticky .column.one{width:100%!important;height:74px!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
#Top_bar.is-sticky .top_bar_left{display:flex!important;align-items:center!important;justify-content:space-between!important;height:74px!important;width:auto!important;flex:1 1 auto!important;margin:0!important;padding:0!important;float:none!important}
#Top_bar.is-sticky .logo{height:74px!important;margin:0 20px 0 0!important;padding:0!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;float:none!important}
#Top_bar.is-sticky #logo{height:50px!important;line-height:50px!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important}
#Top_bar.is-sticky #logo img.logo-main,#Top_bar.is-sticky #logo img.logo-mobile,#Top_bar.is-sticky #logo img.logo-mobile-sticky{display:none!important}
#Top_bar.is-sticky #logo img.logo-sticky{display:inline-block!important;height:auto!important;max-height:46px!important;width:auto!important}
#Top_bar.is-sticky .menu_wrapper{width:auto!important;flex:1 1 auto!important;height:74px!important;display:flex!important;align-items:center!important;justify-content:center!important;float:none!important;margin:0!important;padding:0!important}
#Top_bar.is-sticky #menu{height:74px!important;width:auto!important;display:flex!important;align-items:center!important}
#Top_bar.is-sticky #menu>ul{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;margin:0!important;padding:0!important}
#Top_bar.is-sticky #menu>ul>li{float:none!important;white-space:nowrap!important}
#Top_bar.is-sticky #menu>ul>li>a,#Top_bar.is-sticky #menu>ul>li>a span:not(.description){line-height:74px!important;padding-top:0!important;padding-bottom:0!important}
#Top_bar.is-sticky .top_bar_right{height:74px!important;padding:0 0 0 16px!important;margin:0!important;display:flex!important;align-items:center!important;flex:0 0 auto!important;float:none!important;position:static!important}
#Top_bar.is-sticky .top_bar_right_wrapper{top:0!important}
#Top_bar.is-sticky a.responsive-menu-toggle{position:static!important;top:auto!important;margin:0 0 0 auto!important;color:#009cd0!important}
}
@media only screen and (max-width:767px){
#Top_bar,#Top_bar.is-sticky{height:74px!important;min-height:74px!important;overflow:visible!important}
#Top_bar.is-sticky{background:#fff!important;box-shadow:0 2px 10px rgba(0,0,0,.1)!important}
#Top_bar .container,#Top_bar .column.one{width:100%!important;max-width:100%!important;height:74px!important;padding:0!important;margin:0!important;position:relative!important;box-sizing:border-box!important}
#Top_bar .column.one{display:block!important}
#Top_bar .top_bar_left{width:100%!important;height:74px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 16px!important;margin:0!important;box-sizing:border-box!important;float:none!important}
.header-fixed #Top_bar .logo,#Top_bar .logo,#Top_bar.is-sticky .logo{height:74px!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;width:auto!important;flex:0 0 auto!important;float:none!important}
#Top_bar .logo #logo,#Top_bar.is-sticky .logo #logo{height:auto!important;line-height:normal!important;padding:0!important;margin:0!important;float:none!important;display:flex!important;align-items:center!important}
#Top_bar:not(.is-sticky) #logo img.logo-mobile{display:inline-block!important;height:44px!important;max-height:44px!important;width:auto!important}
#Top_bar:not(.is-sticky) #logo img.logo-main,#Top_bar:not(.is-sticky) #logo img.logo-sticky,#Top_bar:not(.is-sticky) #logo img.logo-mobile-sticky{display:none!important}
#Top_bar.is-sticky #logo img.logo-mobile-sticky{display:inline-block!important;height:44px!important;max-height:44px!important;width:auto!important}
#Top_bar.is-sticky #logo img.logo-main,#Top_bar.is-sticky #logo img.logo-sticky,#Top_bar.is-sticky #logo img.logo-mobile{display:none!important}
#Top_bar .menu_wrapper{width:auto!important;height:74px!important;display:flex!important;align-items:center!important;margin:0 0 0 auto!important;padding:0!important;flex:0 0 auto!important;float:none!important}
#Top_bar a.responsive-menu-toggle{position:static!important;top:auto!important;right:auto!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important}
#Top_bar.is-sticky a.responsive-menu-toggle,#Top_bar.is-sticky a.responsive-menu-toggle i{color:#009cd0!important}
.mobile-tb-center #Top_bar .top_bar_right,#Top_bar .top_bar_right{position:absolute!important;top:50%!important;right:68px!important;transform:translateY(-50%)!important;width:auto!important;height:auto!important;background:transparent!important;float:none!important;padding:0!important;margin:0!important;z-index:20!important;display:block!important}
#Top_bar .top_bar_right .top_bar_right_wrapper{top:0!important;float:none!important;padding:0!important;margin:0!important}
#Top_bar .wpml-languages{margin:0!important;float:none!important}
#Top_bar .wpml-languages a.active{padding:6px 8px!important;line-height:1!important}
#Top_bar.is-sticky .wpml-languages a.active{color:#009cd0!important}
}
/* BACK TO TOP: clean 50x50px circular icon button */
body a#back_to_top.button.footer_button{width:50px!important;min-width:50px!important;height:50px!important;min-height:50px!important;padding:0!important;margin:0!important;background:transparent!important;border:none!important;border-radius:50%!important;box-shadow:0 4px 12px rgba(0,0,0,.22)!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;right:24px!important;bottom:24px!important;transition:transform .25s ease,box-shadow .25s ease,opacity .25s ease!important}
body a#back_to_top.button.footer_button:hover,body a#back_to_top.button.footer_button:focus{background:transparent!important;transform:translateY(-3px) scale(1.06)!important;box-shadow:0 6px 16px rgba(0,0,0,.28)!important}
body a#back_to_top.button.footer_button::before,body a#back_to_top.button.footer_button::after{content:none!important;display:none!important}
body a#back_to_top.button.footer_button i{display:flex!important;align-items:center!important;justify-content:center!important;width:50px!important;height:50px!important;line-height:50px!important;margin:0!important;padding:0!important}
body a#back_to_top.button.footer_button i::before{content:""!important;display:block!important;width:50px!important;height:50px!important;margin:0!important;padding:0!important;background:url('images/custom-images/icon-back-to-top.png') center center/50px 50px no-repeat!important}
@media only screen and (max-width:767px){body a#back_to_top.button.footer_button{right:20px!important;bottom:22px!important}}
/* MOBILE (<=767px): stack 3 homepage feature cards & all .mobile-one wraps 1 per row */
@media only screen and (max-width:767px){
.section-capacitaciones-y-noticias .section_wrapper,.section-capacitaciones-y-noticias .mcb-section-inner{display:flex!important;flex-direction:column!important}
.section-capacitaciones-y-noticias .mcb-wrap,.section-capacitaciones-y-noticias .mcb-wrap.one-third{width:100%!important;max-width:100%!important;flex:0 0 100%!important;float:none!important;margin:12px 0!important;padding:56px 20px!important;box-sizing:border-box!important;min-height:auto!important;height:auto!important}
.section-capacitaciones-y-noticias .mcb-wrap:first-child{margin-top:0!important}
.section-capacitaciones-y-noticias .mcb-wrap:last-child{margin-bottom:0!important}
.section-capacitaciones-y-noticias .custom-bg-title h1{padding-left:0!important;margin-left:0!important}
.section-capacitaciones-y-noticias .mcb-wrap p{margin-top:20px!important;padding:0 8%!important}
.section .mcb-wrap.mobile-one:not(.custom-sub-box-enter){width:100%!important;max-width:100%!important}
}
