/* ==========================================
   Header
   ========================================== */
.ahc-main-header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ahc-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 121px;
}

.ahc-logo img {
  height: 57px;
}

.ahc-main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-right: 16px;
}

.ahc-nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ahc-nav-links .menu-item:not(.btn) a {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.02em;
  color: #000;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Reserva el ancho del texto en bold sin mostrarlo */
.ahc-nav-links a::before {
  content: attr(data-label);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
}

.ahc-nav-links .menu-item:not(.btn) a:hover,
.ahc-nav-links .menu-item:not(.btn) a.ahc-active {
  color: var(--accent-red);
}

.ahc-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.ahc-mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ahc-mobile-menu-btn.ahc-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.ahc-mobile-menu-btn.ahc-active span:nth-child(2) {
  opacity: 0;
}

.ahc-mobile-menu-btn.ahc-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.ahc-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ahc-nav-overlay.ahc-active {
  opacity: 1;
  pointer-events: auto;
}

.ahc-nav-links .menu-item.current-menu-item a {
  color: var(--accent-red);
}

.ahc-mobile-menu-container,
.ahc-mobile-nav-footer {
  display: none;
}

.ahc-main-header .ahc-menu-cta>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: #3D61A3;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 23px;
  font-size: 12px;
}

@media (max-width: 768px) {

  .ahc-menu-container {
    display: none;
  }

  .ahc-mobile-menu-container {
    display: flex;
    height: 100%;
    width: 100%;
  }

  .ahc-mobile-menu-btn {
    display: flex;
    margin-left: auto;
    margin-right: 20px;
    position: relative;
    z-index: 1010;
  }

  .ahc-main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 85%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 60px 40px;
    box-sizing: border-box;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1005;
    border-radius: 0 0 0 32px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    margin: 0;
  }

  .ahc-main-nav.ahc-active {
    transform: translateX(0);
  }

  .ahc-mobile-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 0;
    display: flex;
  }

  .ahc-mobile-menu li {
    width: 100%;
  }

  .ahc-mobile-menu .menu-item:not(.btn) a {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    display: block;
    padding: 6px 0;
    transition: color 0.3s ease;
  }

  .ahc-mobile-menu .menu-item.btn a {
    width: 100%;
    display: flex;
  }

  .ahc-mobile-menu a.ahc-active {
    color: var(--accent-red);
    font-weight: 700;
  }

  .ahc-main-header .ahc-menu-cta>a {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: auto;
  }

  .ahc-mobile-menu .ahc-menu-cta {
    justify-content: end;
    margin-top: auto;
  }
}