/* Tecnomocion shared header: stable logo geometry, responsive native menu.
   Kept separate from the original ZIP styles and scoped to this header. */
#tm_editable_header .nav-wrap.tm-header-nav {
  align-items:center!important;
}
#tm_editable_header .tm-header-nav > a.brand-logo {
  display:flex!important;
  position:relative!important;
  align-items:center!important;
  justify-content:center!important;
  flex-shrink:0!important;
  height:66px!important;
  min-height:0!important;
  padding:0!important;
  overflow:visible!important;
  line-height:normal!important;
}
#tm_editable_header .tm-header-nav > a.brand-logo > img {
  display:block!important;
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  transform:none!important;
  object-fit:contain!important;
  object-position:center!important;
}
/* Keep topbar in the flow and visible at the sticky-scroll threshold.
   Removing it changes document height and forces scrollY backward, triggering
   a repeated show/hide loop of the menu. */
@media (min-width:581px) {
  body.tm-chrome-scrolled #tm_editable_header .topbar {
    display:flex!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
}
@media (max-width:1350px) {
  #tm_editable_header .nav-wrap.tm-header-nav {
    flex-wrap:nowrap!important;
  }
  #tm_editable_header .tm-header-nav > .menu {
    display:inline-flex!important;
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    margin-left:auto!important;
    padding:7px!important;
    border:1px solid #3c444e!important;
    border-radius:8px!important;
    background:#10141b!important;
    cursor:pointer!important;
  }
  #tm_editable_header .tm-header-nav > .menu > i {
    display:block!important;
    position:static!important;
    flex:0 0 2px!important;
    width:20px!important;
    height:2px!important;
    min-height:2px!important;
    max-height:2px!important;
    margin:3px 0!important;
    padding:0!important;
    border:0!important;
    background:#fff!important;
    transform:none!important;
    opacity:1!important;
  }
  #tm_editable_header .tm-header-nav > nav#home-menu.tm-native-menu:not(.is-open) {
    display:none!important;
    width:0!important;
    height:0!important;
  }
  #tm_editable_header .tm-header-nav > nav#home-menu.tm-native-menu.is-open {
    display:flex!important;
    position:absolute!important;
    z-index:1200!important;
    top:100%!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:auto!important;
    max-height:min(72dvh,650px)!important;
    flex:0 0 auto!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
    margin:0!important;
    padding:10px 18px 18px!important;
    border:1px solid #363d48!important;
    border-radius:0 0 10px 10px!important;
    background:#11151b!important;
    box-shadow:0 15px 30px #0007!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  #tm_editable_header .tm-header-nav > nav#home-menu.tm-native-menu.is-open > li {
    width:100%!important;
  }
  #tm_editable_header .tm-header-nav > nav#home-menu.tm-native-menu.is-open > li > a {
    width:100%!important;
    justify-content:flex-start!important;
    color:#fff!important;
    padding:11px 5px!important;
    min-height:42px!important;
  }
  #tm_editable_header .tm-header-nav .search-trigger,
  #tm_editable_header .tm-header-nav .account-trigger,
  #tm_editable_header .tm-header-nav .file-nav-cta,
  #tm_editable_header .tm-header-nav .nav-cta {
    flex-shrink:0!important;
  }
}
@media (min-width:701px) and (max-width:1350px) {
  #tm_editable_header .nav-wrap .brand-logo {
    flex:0 0 205px!important;
    width:205px!important;
    max-width:205px!important;
  }
}
@media (max-width:700px) {
  #tm_editable_header .tm-header-nav > a.brand-logo {
    height:52px!important;
    min-height:52px!important;
    flex:0 0 152px!important;
    width:152px!important;
    max-width:152px!important;
  }
  #tm_editable_header .nav-wrap.tm-header-nav {
    min-height:72px!important;
    height:72px!important;
    padding:8px 2px!important;
    gap:7px!important;
  }
  #tm_editable_header .tm-header-nav .search-trigger {
    margin-left:0!important;
  }
  #tm_editable_header .tm-header-nav .account-trigger {
    max-width:95px!important;
    overflow:hidden!important;
  }
}
@media (max-width:375px) {
  #tm_editable_header .tm-header-nav > a.brand-logo {
    flex-basis:125px!important;
    width:125px!important;
    max-width:125px!important;
  }
  #tm_editable_header .tm-header-nav > .menu {
    width:38px!important;
    min-width:38px!important;
    flex-basis:38px!important;
  }
}

/* Tablet layout: keep search, account and hamburger comfortably on one row. */
@media (min-width:701px) and (max-width:980px) {
  #tm_editable_header .tm-header-nav .file-nav-cta,
  #tm_editable_header .tm-header-nav .nav-cta {
    display:none!important;
  }
}

/* Let the 34px information strip scroll out of sight naturally while
   keeping the navigation pinned. Avoid layout shifts and sticky flicker. */
@media (min-width:581px) {
  #tm_editable_header.tm-chrome-header {top:-34px!important;}
}