/* Tecnomocion ZIP navigation, backed entirely by website.menu (Odoo 19).
   Scoped to Tecnomocion shared header; no StageTec/Academy effects. */
#tm_editable_header #home-menu.tm-native-menu {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
  width:auto;
  gap:clamp(9px,1.05vw,19px)!important;
  margin:0 0 0 auto;
  padding:0;
}
#tm_editable_header #home-menu.tm-native-menu > li {
  position:relative;
  display:block;
  flex:0 0 auto;
  list-style:none;
  padding:0;
  margin:0;
}
#tm_editable_header #home-menu.tm-native-menu > li > a {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:42px;
  padding:0;
  border:0;
  background:transparent;
  color:#f2f2f3!important;
  font:700 12px/1.2 Inter,Arial,sans-serif!important;
  white-space:nowrap;
  text-decoration:none;
  box-shadow:none;
}
#tm_editable_header #home-menu.tm-native-menu a:hover,
#tm_editable_header #home-menu.tm-native-menu a:focus-visible {color:#ff4a69!important;}
#tm_editable_header #home-menu.tm-native-menu .dropdown-menu {
  position:absolute;
  top:100%;
  left:0;
  min-width:210px;
  background:#11151b;
  color:#fff;
  border:1px solid #363b43;
  border-radius:8px;
  z-index:1200;
  padding:8px 0;
  box-shadow:0 15px 35px #0005;
}
#tm_editable_header #home-menu.tm-native-menu .dropdown-menu a {
  display:block;
  padding:10px 16px;
  color:#fff!important;
  font:600 12px Inter,Arial,sans-serif;
  white-space:nowrap;
  text-decoration:none;
}
#tm_editable_header #home-menu.tm-native-menu .dropdown-menu a:hover {background:#282e37;}
/* Prominent native Soporte tecnico menu item, matching the ZIP. */
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support {
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-width:127px;
  min-height:54px;
  padding:6px 11px;
  border:1px solid #363d48;
  border-radius:9px;
  background:#0e1116;
  color:#fff!important;
}
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support::before {
  content:'★★★★★';
  display:block;
  color:#00ca70;
  font:800 11px/1 Inter,Arial,sans-serif;
  letter-spacing:1px;
}
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support:hover {
  border-color:#e3032e;
}
#tm_editable_header .brand-logo img {
  width:100%!important;
  height:100%!important;
  max-height:66px!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
@media (max-width:1500px) and (min-width:1251px) {
  #tm_editable_header .nav-wrap.tm-header-nav {gap:10px!important;}
  #tm_editable_header .nav-wrap .brand-logo {flex-basis:190px!important;width:190px!important;max-width:190px!important;}
  #tm_editable_header #home-menu.tm-native-menu {gap:10px!important;}
  #tm_editable_header #home-menu.tm-native-menu > li > a {font-size:11px!important;}
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support {min-width:110px;}
}
@media (max-width:1250px) {
  #tm_editable_header #home-menu.tm-native-menu {display:none!important;}
  #tm_editable_header #home-menu.tm-native-menu.is-open {
    display:flex!important;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    width:auto;
    margin:0;
    padding:14px 22px 20px;
    border:1px solid #343b45;
    border-radius:0 0 12px 12px;
    background:#11151b;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0!important;
    max-height:calc(100dvh - 110px);
    overflow-y:auto;
    box-shadow:0 20px 30px #0005;
    z-index:1200;
  }
  #tm_editable_header #home-menu.tm-native-menu > li {width:100%;padding:0;border-bottom:1px solid #ffffff12;}
  #tm_editable_header #home-menu.tm-native-menu > li > a {
    display:flex!important;
    justify-content:flex-start;
    padding:12px 4px!important;
    width:100%;
    min-height:42px;
    color:#fff!important;
  }
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support {
    align-items:flex-start;
    min-width:0;
    min-height:0;
    border:0;
    border-radius:0;
    background:transparent;
    flex-direction:row;
  }
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support::before {margin-right:9px;align-self:center;}
  #tm_editable_header #home-menu.tm-native-menu .dropdown-menu {
    display:block;
    position:static;
    border:0;
    box-shadow:none;
    background:#171c23;
    padding:3px 8px;
    margin:0 0 9px;
  }
}

/* Support card: copy the exact animated border implementation from the
   original Archivos ECU button. Use ::before for the orbit and keep the five
   stars as the separate ::after content, not as the animated border. */
@media (min-width:1351px) {
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support {
    position:relative!important;
    isolation:isolate;
    overflow:visible!important;
  }
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support:hover,
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support:focus-visible {
    border-color:#363d48!important;
  }
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support::before {
    display:block!important;
    content:"";
    position:absolute;
    inset:-2px;
    padding:2px;
    border-radius:7px;
    background:conic-gradient(from var(--button-border-angle),transparent 0 68%,#e3032e 80%,#e3032e 88%,transparent 100%);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
    pointer-events:none;
    filter:drop-shadow(0 0 4px #e3032e80);
    animation:buttonBorderOrbit 2.8s linear infinite;
    z-index:4;
  }
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support::after {
    content:"★★★★★";
    order:-1;
    display:block;
    position:static!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    padding:0!important;
    border:0!important;
    background:none!important;
    transition:none!important;
    color:#25d36b;
    font:800 11px/1 Inter,Arial,sans-serif;
    letter-spacing:1px;
    text-shadow:0 0 7px #25d36b90;
    animation:supportStars 1.8s ease-in-out infinite;
  }
  /* Original thin vertical divider between the support card and search. */
  #tm_editable_header .tm-header-nav > .search-trigger {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:49px!important;
    min-height:42px!important;
    padding:4px 4px 4px 17px!important;
    border:0!important;
    border-left:1px solid #353b45!important;
    border-radius:0!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support::before {
    animation:none!important;
    background:linear-gradient(110deg,transparent 30%,#e3032e 75%,transparent 100%);
  }
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-native-support::after {
    animation:none!important;
  }
}

/* ZIP "Tienda NUEVO" pill: native website.menu stays the source of truth.
   Keep SVG, label and badge in the same flex row. */
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-shop-launch {
  display:inline-flex!important;
  align-items:center!important;
  flex-direction:row!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  min-height:42px!important;
  padding:9px 13px!important;
  background:#e90032!important;
  border:1px solid #ff3154!important;
  border-radius:7px!important;
  color:white!important;
  font-weight:800!important;
  text-decoration:none!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-shop-launch:hover {
  background:#bb0028!important;
  border-color:#ff718b!important;
  color:white!important;
}
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-shop-launch svg.tm-shop-launch-icon {
  display:inline-block!important;
  flex:0 0 19px!important;
  width:19px!important;
  height:19px!important;
}
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-shop-launch .tm-shop-launch-new {
  display:inline-flex!important;
  align-items:center!important;
  flex:none!important;
  background:#fff!important;
  color:#d0002d!important;
  font:800 8px/1 Inter,Arial,sans-serif!important;
  border-radius:3px!important;
  padding:4px 5px!important;
  white-space:nowrap!important;
  letter-spacing:.04em!important;
}
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-shop-launch::before,
#tm_editable_header #home-menu.tm-native-menu > li > a.tm-shop-launch::after {
  content:none!important;
  display:none!important;
}
@media (max-width:1250px) {
  #tm_editable_header #home-menu.tm-native-menu > li > a.tm-shop-launch {
    justify-content:flex-start!important;
    margin:8px 0!important;
    width:100%!important;
  }
}
