/* ==========================================
   HONDA MOTOS TRUJILLO
   HEADER PREMIUM - INDEPENDIENTE
========================================== */

#hmt-header {
  --hmt-red: #e60012;
  --hmt-dark: #171717;
  --hmt-height: 78px;

  position: relative;
  z-index: 99999;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ededed;
  font-family: "Open Sans", Arial, sans-serif;
  transition: box-shadow .3s ease;
}

#hmt-header *,
#hmt-header *::before,
#hmt-header *::after {
  box-sizing: border-box;
}

#hmt-header .hmt-container {
  width: 100%;
  max-width: 1440px;
  min-height: var(--hmt-height);
  margin: 0 auto;
  padding: 0 55px;

  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 30px;

  transition: min-height .3s ease;
}

/* LOGO HONDA MOTOS */

#hmt-header .hmt-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

#hmt-header .hmt-logo-honda {
  display: block;
  width: 110px;
  max-height: 62px;
  height: auto;
  object-fit: contain;
}

/* MENÚ CENTRAL */

#hmt-header .hmt-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 55px;
  height: var(--hmt-height);
  margin: 0;
  padding: 0;
}

#hmt-header .hmt-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;

  color: var(--hmt-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}

#hmt-header .hmt-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--hmt-red);
  transform: scaleX(0);
  transition: transform .25s ease;
}

#hmt-header .hmt-nav-link:hover,
#hmt-header .hmt-nav-link.is-active {
  color: var(--hmt-red);
}

#hmt-header .hmt-nav-link:hover::after,
#hmt-header .hmt-nav-link.is-active::after {
  transform: scaleX(1);
}

/* LOGO TSUTOMU */

#hmt-header .hmt-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 16px;
}

#hmt-header .hmt-tsutomu {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

#hmt-header .hmt-tsutomu img {
  display: block;
  width: 130px;
  max-height: 60px;
  height: auto;
  object-fit: contain;
}

/* HAMBURGUESA */

#hmt-header .hmt-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

#hmt-header .hmt-line {
  display: block;
  width: 23px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

#hmt-header.is-open .hmt-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hmt-header.is-open .hmt-line:nth-child(2) {
  opacity: 0;
}

#hmt-header.is-open .hmt-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MENÚ MÓVIL */

#hmt-header .hmt-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);

  box-shadow: 0 15px 30px rgba(0,0,0,.08);

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease;
}

#hmt-header.is-open .hmt-mobile {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#hmt-header .hmt-mobile-inner {
  padding: 8px 24px 22px;
}

#hmt-header .hmt-mobile-link {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) 22px;
  align-items: center;
  column-gap: 16px;

  min-height: 62px;
  padding: 12px 0;

  color: var(--hmt-dark);
  border-bottom: 1px solid #ededed;
  text-decoration: none;
  transition: color .25s ease;
}

#hmt-header .hmt-mobile-link:hover,
#hmt-header .hmt-mobile-link.is-active {
  color: var(--hmt-red);
}

#hmt-header .hmt-mobile-number {
  font-size: 10px;
  font-weight: 600;
  color: #a3a3a3;
}

#hmt-header .hmt-mobile-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .7px;
}

#hmt-header .hmt-mobile-arrow {
  font-size: 22px;
  color: var(--hmt-red);
}

/* STICKY */

#hmt-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

#hmt-header.is-scrolled {
  box-shadow: 0 5px 25px rgba(0,0,0,.09);
}

#hmt-header.is-scrolled .hmt-container {
  min-height: 68px;
}

#hmt-header.is-scrolled .hmt-nav {
  height: 68px;
}

/* TABLET */

@media (max-width: 1024px) {
  #hmt-header .hmt-container {
    padding: 0 25px;
    gap: 20px;
  }

  #hmt-header .hmt-logo-honda {
    width: 100px;
  }

  #hmt-header .hmt-nav {
    gap: 30px;
  }

  #hmt-header .hmt-tsutomu img {
    width: 110px;
  }
}

/* MÓVIL */

@media (max-width: 767px) {
  #hmt-header {
    --hmt-height: 70px;
  }

  #hmt-header .hmt-container,
  #hmt-header.is-scrolled .hmt-container {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    padding: 0 17px;
    gap: 10px;
  }

  #hmt-header .hmt-logo-honda {
    width: 85px;
    max-height: 55px;
  }

  #hmt-header .hmt-nav {
    display: none;
  }

  #hmt-header .hmt-right {
    gap: 12px;
  }

  #hmt-header .hmt-tsutomu img {
    width: 100px;
    max-height: 50px;
  }

  #hmt-header .hmt-toggle {
    display: flex;
  }
}

@media (max-width: 360px) {
  #hmt-header .hmt-logo-honda {
    width: 72px;
  }

  #hmt-header .hmt-tsutomu img {
    width: 82px;
  }

  #hmt-header .hmt-container {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hmt-header,
  #hmt-header * {
    transition: none !important;
  }
}
