
/* HONDA AUTOS - CABECERA */

:root {
  --hat-red: #e60012;
  --hat-dark: #171717;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
}

#hat-header {
  position: relative;
  z-index: 9999;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ededed;
  font-family: "Open Sans", Arial, sans-serif;
}

#hat-header .hat-container {
  width: 100%;
  max-width: 1440px;
  min-height: 78px;
  margin: 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 */

.hat-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.hat-logo-honda {
  display: block;
  width: 185px;
  max-width: 100%;
  max-height: 65px;
  height: auto;
  object-fit: contain;
  transition: width .3s ease;
}

/* MENU ESCRITORIO */

.hat-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 55px;
  height: 78px;
}

.hat-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: var(--hat-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-decoration: none;
  transition: color .25s ease;
}

.hat-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hat-red);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.hat-nav-link:hover,
.hat-nav-link.is-active {
  color: var(--hat-red);
}

.hat-nav-link:hover::after,
.hat-nav-link.is-active::after {
  transform: scaleX(1);
}

/* TSUTOMU */

.hat-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 16px;
}

.hat-tsutomu {
  display: inline-flex;
  align-items: center;
}

.hat-tsutomu img {
  display: block;
  width: 130px;
  max-height: 60px;
  height: auto;
  object-fit: contain;
}

/* HAMBURGUESA */

.hat-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hat-line {
  width: 23px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

#hat-header.is-open .hat-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hat-header.is-open .hat-line:nth-child(2) {
  opacity: 0;
}

#hat-header.is-open .hat-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MENU MOVIL */

.hat-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;
}

#hat-header.is-open .hat-mobile {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hat-mobile-inner {
  padding: 8px 24px 22px;
}

.hat-mobile-link {
  display: grid;
  grid-template-columns: 18px 1fr 22px;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 12px 0;
  color: var(--hat-dark);
  border-bottom: 1px solid #ededed;
  text-decoration: none;
}

.hat-mobile-link:hover,
.hat-mobile-link.is-active {
  color: var(--hat-red);
}

.hat-mobile-number {
  font-size: 10px;
  color: #a3a3a3;
}

.hat-mobile-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .7px;
}

.hat-mobile-arrow {
  font-size: 22px;
  color: var(--hat-red);
}

/* STICKY */

#hat-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

#hat-header.is-scrolled {
  box-shadow: 0 5px 25px rgba(0,0,0,.09);
}

#hat-header.is-scrolled .hat-container {
  min-height: 68px;
}

#hat-header.is-scrolled .hat-logo-honda {
  width: 165px;
}

#hat-header.is-scrolled .hat-nav {
  height: 68px;
}

/* TABLET */

@media (max-width: 1024px) {
  #hat-header .hat-container {
    padding: 0 25px;
    gap: 20px;
  }

  .hat-logo-honda {
    width: 155px;
  }

  .hat-nav {
    gap: 30px;
  }

  .hat-tsutomu img {
    width: 110px;
  }
}

/* MOVIL */

@media (max-width: 767px) {
  #hat-header .hat-container,
  #hat-header.is-scrolled .hat-container {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    padding: 0 17px;
    gap: 10px;
  }

  .hat-logo-honda,
  #hat-header.is-scrolled .hat-logo-honda {
    width: 135px;
    max-height: 55px;
  }

  .hat-nav {
    display: none;
  }

  .hat-right {
    gap: 12px;
  }

  .hat-tsutomu img {
    width: 85px;
    max-height: 50px;
  }

  .hat-toggle {
    display: flex;
  }
}

@media (max-width: 360px) {
  .hat-logo-honda {
    width: 110px;
  }

  .hat-tsutomu img {
    width: 70px;
  }

  #hat-header .hat-container {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hat-header,
  #hat-header * {
    transition: none !important;
  }
}
