/* MB Asociados — Encabezado y navegación 2026. Exclusivamente header estilo tres y panel móvil del tema. */
header.wraper_header.style-three {
  --mb-header-bg:#093d3f; --mb-header-dark:#072e30; --mb-header-gold:#d8bc79;
  --mb-header-white:#f4f7f5; --mb-header-ink:#123b3d; --mb-header-line:rgba(216,188,121,.23);
}
header.wraper_header.style-three .wraper_header_top {
  background:var(--mb-header-dark)!important;
  border-bottom:1px solid var(--mb-header-line)!important;
}
header.wraper_header.style-three .wraper_header_main {
  background:var(--mb-header-bg)!important;
  border-bottom:2px solid var(--mb-header-gold)!important;
}
header.wraper_header.style-three .wraper_header_top > .container,
header.wraper_header.style-three .wraper_header_main > .container {
  max-width:1170px; width:100%; margin:0 auto; padding-left:28px; padding-right:28px; box-sizing:border-box;
}
header.wraper_header.style-three .header_top { display:flex; align-items:center; justify-content:space-between; margin:0; min-height:38px; }
header.wraper_header.style-three .header_top::before,
header.wraper_header.style-three .header_top::after { display:none; }
header.wraper_header.style-three .header_top > div { padding:0; float:none; flex:1 1 auto; width:auto; min-width:0; }
header.wraper_header.style-three .header_top_item { margin:0!important; }
header.wraper_header.style-three .header_top_item .contact { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin:0; padding:0; }
header.wraper_header.style-three .header_top_item .contact li { color:var(--mb-header-white)!important; font-size:12px; line-height:1.5; margin:0!important; padding:0!important; }
header.wraper_header.style-three .header_top_item .contact li+li { border:0; }
header.wraper_header.style-three .header_top_item .contact li+li::before { content:""; display:inline-block; height:12px; width:1px; background:var(--mb-header-line); margin-right:16px; vertical-align:middle; }
header.wraper_header.style-three .header_top_item .contact a { color:inherit!important; text-decoration:none; }
header.wraper_header.style-three .header_top_item .contact a:hover { color:var(--mb-header-gold)!important; }
header.wraper_header.style-three .header-data-social .social { display:flex; align-items:center; justify-content:flex-end; gap:5px; margin:0!important; padding:0!important; }
header.wraper_header.style-three .header-data-social .social li { margin:0!important; padding:0!important; }
header.wraper_header.style-three .header-data-social .social li a { display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; color:var(--mb-header-white)!important; font-size:13px; border-radius:50%; }
header.wraper_header.style-three .header-data-social .social li a:hover { color:var(--mb-header-gold)!important; background:rgba(255,255,255,.07); }
header.wraper_header.style-three .header_main { position:relative; display:flex; justify-content:space-between; align-items:center; gap:24px; min-height:85px; padding:0; margin:0; }
header.wraper_header.style-three .header_main > .clearfix,
header.wraper_header.style-three .header_main_action:has(ul:empty) { display:none!important; }
header.wraper_header.style-three .brand-logo { flex:0 0 auto; margin:0!important; padding:0!important; float:none!important; }
header.wraper_header.style-three .brand-logo a { display:block; }
header.wraper_header.style-three .brand-logo img { display:block; width:200px; max-width:100%; height:auto; }
header.wraper_header.style-three .nav { float:none!important; margin:0!important; padding:0!important; }
header.wraper_header.style-three .nav .menu { display:flex; align-items:center; gap:5px; margin:0!important; padding:0!important; list-style:none; }
header.wraper_header.style-three .nav .menu > li { float:none!important; display:block; margin:0!important; padding:0!important; }
header.wraper_header.style-three .nav .menu > li > a {
  display:flex; align-items:center; gap:6px; min-height:47px;
  color:var(--mb-header-white)!important; font-size:14px; line-height:1.4;
  font-weight:600; padding:13px 12px!important; margin:0!important; border-radius:4px;
  text-decoration:none; white-space:nowrap; cursor:pointer;
}
header.wraper_header.style-three .nav .menu > li > a:hover,
header.wraper_header.style-three .nav .menu > li:hover > a,
header.wraper_header.style-three .nav .menu > li:focus-within > a,
header.wraper_header.style-three .nav .menu > li.current-menu-item > a,
header.wraper_header.style-three .nav .menu > li.current-menu-ancestor > a { color:var(--mb-header-gold)!important; background:rgba(255,255,255,.06); }
header.wraper_header.style-three .nav .menu > li.menu-item-has-children > a::after { margin-left:1px!important; font-size:12px!important; }
header.wraper_header.style-three .nav .menu > li.item-9039 > a {
  color:var(--mb-header-dark)!important; background:var(--mb-header-gold)!important;
  font-weight:700; padding:13px 20px!important; border:1px solid var(--mb-header-gold);
}
header.wraper_header.style-three .nav .menu > li.item-9039 > a:hover,
header.wraper_header.style-three .nav .menu > li.item-9039 > a:focus-visible { background:#ead6a7!important; color:var(--mb-header-dark)!important; }
header.wraper_header.style-three .nav .menu > li.item-20277 > a { border:1px solid var(--mb-header-line); }
header.wraper_header.style-three .nav .menu > li.item-20277 > a:hover,
header.wraper_header.style-three .nav .menu > li.item-20277:focus-within > a { border-color:var(--mb-header-gold); }
@media (min-width:992px) {
  header.wraper_header.style-three .nav .menu > li > ul {
    display:block!important; position:absolute!important; top:100%!important; left:0!important; right:auto!important;
    width:286px!important; padding:10px!important; margin:0!important; background:#fff!important;
    border:1px solid #e2e9e5!important; border-top:3px solid var(--mb-header-gold)!important;
    border-radius:0 0 5px 5px; box-sizing:border-box; box-shadow:0 14px 32px rgba(5,35,37,.16);
    opacity:0!important; visibility:hidden!important; pointer-events:none; transform:none!important;
    z-index:1000;
  }
  header.wraper_header.style-three .nav .menu > li.item-20277 > ul,
  header.wraper_header.style-three .nav .menu > li.item-9567 > ul { left:auto!important; right:0!important; }
  header.wraper_header.style-three .nav .menu > li:hover > ul,
  header.wraper_header.style-three .nav .menu > li:focus-within > ul,
  header.wraper_header.style-three .nav .menu > li.mb-nav-open > ul { opacity:1!important; visibility:visible!important; pointer-events:auto; }
  header.wraper_header.style-three .nav .menu > li > ul li { display:block!important; float:none!important; margin:0!important; padding:0!important; width:auto!important; border:0!important; }
  header.wraper_header.style-three .nav .menu > li > ul li > a {
    display:block!important; padding:10px 12px!important; margin:0!important; color:var(--mb-header-ink)!important;
    font-size:13px!important; font-weight:500; line-height:1.45!important; white-space:normal!important;
    overflow-wrap:anywhere; border:0!important; border-radius:4px;
  }
  header.wraper_header.style-three .nav .menu > li > ul li > a:hover,
  header.wraper_header.style-three .nav .menu > li > ul li > a:focus-visible { color:var(--mb-header-ink)!important; background:#eff5f1!important; }
  header.wraper_header.style-three .nav .menu > li.item-20276 { position:static!important; }
  header.wraper_header.style-three .nav .menu > li.item-20276 > ul {
    display:grid!important; grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(0,1.35fr); gap:18px;
    top:100%!important; left:auto!important; right:0!important;
    width:min(850px,calc(100vw - 56px))!important; padding:22px!important;
    max-height:calc(100vh - 145px); overflow-y:auto;
  }
  header.wraper_header.style-three .nav .menu > li.item-20276 > ul > li > a {
    display:block!important; color:var(--mb-header-ink)!important; text-transform:uppercase; letter-spacing:.06em;
    font-size:13px!important; font-weight:700; padding:8px 10px 12px!important; border-bottom:2px solid #d8bc79!important; border-radius:0;
    cursor:default; pointer-events:none;
  }
  header.wraper_header.style-three .nav .menu > li.item-20276 > ul > li > a::after,
  header.wraper_header.style-three .nav .menu > li.item-20276 > ul > li > a::before { display:none!important; }
  header.wraper_header.style-three .nav .menu > li.item-20276 > ul > li > ul {
    display:block!important; position:static!important; margin:8px 0 0!important; padding:0!important;
    width:100%!important; max-width:none!important; background:transparent!important; border:0!important;
    box-shadow:none!important; opacity:1!important; visibility:inherit!important; transform:none!important;
  }
  header.wraper_header.style-three .nav .menu > li.item-20276 > ul > li > ul > li > a { padding:9px 10px!important; }
  header.wraper_header.style-three .responsive-nav { display:none!important; }
}
@media (min-width:992px) and (max-width:1180px) {
  header.wraper_header.style-three .header_main { gap:14px; min-height:78px; }
  header.wraper_header.style-three .brand-logo img { width:175px; }
  header.wraper_header.style-three .nav .menu { gap:2px; }
  header.wraper_header.style-three .nav .menu > li > a { padding:12px 9px!important; font-size:13px; }
  header.wraper_header.style-three .nav .menu > li.item-9039 > a { padding:12px 15px!important; }
}
@media (max-width:991px) {
  header.wraper_header.style-three .nav { display:none!important; }
  header.wraper_header.style-three .header_main { min-height:77px; gap:16px; }
  header.wraper_header.style-three .brand-logo img { width:184px; }
  header.wraper_header.style-three .responsive-nav {
    float:none!important; margin:0!important; padding:0!important; display:inline-flex!important;
    align-items:center; justify-content:center; gap:8px; width:auto; min-width:48px; height:48px; min-height:48px;
    color:var(--mb-header-white)!important; border:1px solid var(--mb-header-gold); border-radius:4px; cursor:pointer;
  }
  header.wraper_header.style-three .responsive-nav i { font-size:20px!important; color:inherit!important; }
  header.wraper_header.style-three .responsive-nav:hover { background:rgba(255,255,255,.08); }
}
@media(max-width:767px) {
  header.wraper_header.style-three .wraper_header_top { display:none!important; }
  header.wraper_header.style-three .wraper_header_main > .container { padding-left:20px; padding-right:20px; }
}
header.wraper_header.style-three a:focus-visible,
header.wraper_header.style-three [role="button"]:focus-visible { outline:2px solid #d8bc79; outline-offset:3px; }
#mobile-menu.sidr {
  background:#072e30!important; color:#f4f7f5!important;
  box-shadow:0 0 24px rgba(5,35,37,.2)!important; overflow-x:hidden; overflow-y:auto;
}
#mobile-menu.sidr .mobile-menu-main { background:#072e30!important; padding:0 20px 32px!important; min-height:100%; box-sizing:border-box; }
#mobile-menu.sidr .mobile-menu-close {
  min-height:65px; display:flex!important; align-items:center; justify-content:space-between;
  padding:12px 0!important; margin:0 0 11px!important; color:#f4f7f5!important;
  background:#072e30!important; border-bottom:1px solid rgba(216,188,121,.3); cursor:pointer;
  position:sticky!important; top:0; z-index:5;
}
#mobile-menu.sidr .mobile-menu-close::before { content:"MENÚ PRINCIPAL"; color:#d8bc79; font-size:12px; letter-spacing:.13em; font-weight:700; }
#mobile-menu.sidr .mobile-menu-close i { color:#f4f7f5!important; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid rgba(216,188,121,.45); border-radius:4px; font-size:19px!important; }
#mobile-menu.sidr .mobile-menu-nav, #mobile-menu.sidr .mobile-menu-nav .menu { margin:0!important; padding:0!important; width:100%; list-style:none; }
#mobile-menu.sidr .mobile-menu-nav li { position:relative; margin:0!important; padding:0!important; border:0!important; }
#mobile-menu.sidr .mobile-menu-nav li > a {
  color:#f4f7f5!important; display:block!important; border-bottom:1px solid rgba(216,188,121,.17)!important;
  font-size:15px!important; line-height:1.45!important; font-weight:600; min-height:50px;
  padding:14px 12px!important; margin:0!important; white-space:normal!important; overflow-wrap:anywhere;
}
#mobile-menu.sidr .mobile-menu-nav li.menu-item-has-children > a { padding-right:62px!important; cursor:pointer; }
#mobile-menu.sidr .mobile-menu-nav li > ul { padding:4px 0 6px 12px!important; margin:3px 0 8px 12px!important; border-left:2px solid #d8bc79; background:rgba(255,255,255,.045)!important; width:auto!important; }
#mobile-menu.sidr .mobile-menu-nav li > ul li > a { font-size:13px!important; font-weight:500; min-height:46px; }
#mobile-menu.sidr .mobile-menu-nav .radiantthemes-open-submenu { top:0!important; right:0!important; width:50px!important; height:50px!important; color:#d8bc79!important; background:transparent!important; border:0!important; }
#mobile-menu.sidr .mobile-menu-nav li > ul .radiantthemes-open-submenu { height:46px!important; }
#mobile-menu.sidr .mobile-menu-nav li.item-9039 > a { background:#d8bc79!important; color:#072e30!important; text-align:center; border-radius:4px; margin-top:16px!important; font-weight:700; }
#mobile-menu.sidr .mobile-menu-nav li.item-20277 > a { color:#d8bc79!important; }
#mobile-menu.sidr a:focus-visible,#mobile-menu.sidr [role="button"]:focus-visible { outline:2px solid #d8bc79; outline-offset:-2px; }
@media (max-width:360px) {
  header.wraper_header.style-three .brand-logo img { width:165px; }
  header.wraper_header.style-three .wraper_header_main > .container { padding-left:16px; padding-right:16px; }
  #mobile-menu.sidr .mobile-menu-main { padding-left:15px!important; padding-right:15px!important; }
}
@media(prefers-reduced-motion:reduce) {
  header.wraper_header.style-three *, #mobile-menu.sidr * { transition:none!important; }
}
@media (min-width:992px) {
  header.wraper_header.style-three .nav { display:flex!important; align-self:stretch; align-items:stretch; }
  header.wraper_header.style-three .nav .menu-header-menu-container { display:flex; align-items:stretch; }
  header.wraper_header.style-three .nav .menu { align-items:stretch; }
  header.wraper_header.style-three .nav .menu > li { display:flex!important; align-items:center; }
  header.wraper_header.style-three .nav .menu > li.mb-nav-dismissed > ul { opacity:0!important; visibility:hidden!important; pointer-events:none!important; }
}

/* Final refinements after visual review. */
header.wraper_header.style-three .header_main_action:not(:has(li)) { display:none!important; }
header.wraper_header.style-three .nav .menu > li.item-20276 > ul > li > a { text-align:left!important; }
header.wraper_header.style-three .nav .menu > li > ul { transition:opacity .16s ease!important; }
#mobile-menu.sidr .mobile-menu-close::after { display:none!important; }
@media(max-width:991px) {
  header.wraper_header.style-three .responsive-nav { margin-left:auto!important; padding:0 12px!important; width:auto; min-width:82px; box-sizing:border-box; }
  header.wraper_header.style-three .responsive-nav::after { content:"Menú"; font-size:13px; font-weight:600; color:inherit; }
}
@media(max-width:360px) {
  header.wraper_header.style-three .header_main { gap:12px; }
  header.wraper_header.style-three .responsive-nav { padding:0 10px!important; }
}

#mobile-menu.sidr .mobile-menu-close i { margin:0 0 0 auto!important; }
