/* Tecnomoción section headers from the 2026-11-04 reference ZIP.
   Only the homepage uses native website.menu. No rotating red borders here. */
/* Search, professional account and Archivos ECU are shared controls:
   keep them visible on every page whenever the responsive header has room. */
#tm_editable_header .tm-header-nav > .tm-section-back {
  flex:0 0 auto!important;
  display:inline-flex;
  align-items:center;
  color:#aeb4bd!important;
  font:700 12px/1.3 Inter,Arial,sans-serif!important;
  text-decoration:none;
  white-space:nowrap;
  padding:10px 2px;
}
#tm_editable_header .tm-header-nav > .tm-section-back:hover {
  color:#fff!important;
}
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu {
  flex:1 1 auto;
  min-width:0;
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end!important;
  gap:clamp(13px,1.5vw,25px)!important;
}
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu > a,
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu > button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  min-height:40px;
  flex:0 0 auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#f7f7f8!important;
  font:700 12px/1.3 Inter,Arial,sans-serif!important;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:none;
}
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu > a:hover,
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu > button:hover {
  color:#ff4a69!important;
}
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu > a::before,
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu > a::after,
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu > button::before,
#tm_editable_header .tm-header-nav #home-menu.tm-section-menu > button::after {
  content:none!important;
  animation:none!important;
}
#tm_editable_header .tm-header-nav .tm-section-cta {
  padding:12px 18px!important;
  min-height:46px!important;
  height:auto!important;
  font-size:12px!important;
  margin-top:0!important;
}
#tm_editable_header.tm-section-network.tm-chrome-header,
#tm_editable_header.tm-section-booking.tm-chrome-header,
#tm_editable_header.tm-section-legal.tm-chrome-header {
  top:0!important;
}
#tm_editable_header.tm-section-network .nav-wrap.tm-header-nav {
  min-height:78px!important;
}
#tm_editable_header .tm-header-nav #home-menu.tm-network-menu .tm-network-find {
  background:#e3032e!important;
  border:1px solid #e3032e!important;
  color:white!important;
  border-radius:6px;
  padding:13px 17px;
  min-height:44px;
}
#tm_editable_header .tm-header-nav #home-menu.tm-network-menu .tm-network-find:hover {
  background:#c5032a!important;
  color:#fff!important;
}
@media (max-width:1350px) {
  #tm_editable_header .tm-header-nav #home-menu.tm-section-menu {
    display:none!important;
  }
  #tm_editable_header .tm-header-nav #home-menu.tm-section-menu.is-open {
    display:flex!important;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    margin:0!important;
    padding:12px 18px 18px;
    width:100%;
    max-height:calc(100dvh - 95px);
    overflow-y:auto;
    border:1px solid #343b45;
    border-radius:0 0 10px 10px;
    background:#11151b;
    box-shadow:0 15px 25px #0006;
    flex-direction:column;
    align-items:stretch;
    gap:0!important;
    z-index:1400;
  }
  #tm_editable_header .tm-header-nav #home-menu.tm-section-menu.is-open > a,
  #tm_editable_header .tm-header-nav #home-menu.tm-section-menu.is-open > button {
    justify-content:flex-start;
    width:100%;
    padding:14px 10px;
    min-height:44px;
    white-space:normal;
  }
  #tm_editable_header .tm-header-nav #home-menu.tm-network-menu .tm-network-find {
    margin-top:6px;
    justify-content:center!important;
  }
  #tm_editable_header .tm-header-nav > .tm-section-back {
    margin-left:auto;
    font-size:11px!important;
  }
}
@media (max-width:650px) {
  #tm_editable_header .tm-header-nav > .tm-section-back {display:none!important;}
  #tm_editable_header:not(.tm-section-home) .tm-header-nav > .nav-cta {display:none!important;}
}
