/* Header CSS */

.header-area {
  transition: padding 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.location-flag ul {
  gap: 1rem;
}

.menu-area ul {
  gap: 1.5rem;
}

.profile-area {
  margin-right: 2rem;
}

.profile-area a {
  color: #6c757d !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  line-height: 100% !important;
  display: flex;
  align-items: center;
}

.profile-area a span {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.profile-area a:hover {
  color: var(--verde-syg) !important;
}

.search-area a,
.menu-area ul li a {
  color: var(--verde-syg) !important;
  text-decoration: none !important;
  font-family: inherit !important;
}

.search-area a {
  font-weight: 500 !important;
  font-size: 1.125rem !important;
  line-height: 2.5rem !important;
}

.search-area a span {
  margin-right: 0.625rem;
}

.search-area a:hover {
  color: var(--amarillo-syg) !important;
}

.menu-area ul li a {
  font-weight: 500 !important;
  font-size: 1.15rem !important;
  line-height: 1.625rem !important;
  position: relative;
  padding: 0;
}

.menu-area ul li a:after,
.menu-area ul li:last-child a,
.menu-area ul li:last-child a:hover,
.mobile-menu,
.mobile-menu.active {
  transition: all 0.5s;
}

.menu-area ul li a:after,
.menu-area ul li.active a:after {
  content: '';
  position: absolute;
  width: 0%;
  bottom: -0.625rem;
  height: 2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--verde-syg);
}

.menu-area ul li a:hover:after,
.menu-area ul li.active a:after {
  width: 90%;
}

.menu-area ul li:last-child a {
  color: var(--white) !important;
  border: 1px solid var(--verde-syg);
  background-color: var(--verde-syg);
  padding: 0.5rem 1.5rem;
  display: inline-block;
  min-width: unset;
  text-align: center;
  border-radius: 50px;
  font-size: 1.1rem !important;
  line-height: 100% !important;
  font-weight: 700 !important;
}

.menu-area ul li:last-child a:hover {
  border-color: var(--amarillo-syg);
  background-color: var(--amarillo-syg);
  color: var(--white) !important;
  text-decoration: none !important;
}

.menu-area ul li:last-child a:after {
  display: none;
}

/* El logo-area permite overflow visible para que el logo crezca
   sin afectar el alto del contenedor flex del header */
.logo-area {
  overflow: visible;
}

.header-logo-img {
  /* height fija reemplaza max-height: el logo tiene tamaño
     garantizado; overflow visible en logo-area lo muestra completo */
  height: 6rem;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.3s ease;
}

.header-area.header-small {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-area.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.mobile-menu {
  position: fixed;
  width: 100%;
  transform: translateX(100%);
  right: 0;
  min-height: 100vh;
  background-color: var(--verde-syg);
  z-index: 9999;
  top: 0;
  padding: 2.5rem;
  background-image: url('../images/white-logo.png');
  background-position: 2.5rem 90%;
  background-repeat: no-repeat;
  visibility: hidden;
  transition: transform 0.5s ease, visibility 0s linear 0.5s;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.5s ease, visibility 0s linear 0s;
}

.mobile-menu ul {
  flex-direction: column;
}

.mobile-menu ul li a {
  color: var(--white) !important;
  font-size: 1.5625rem !important;
  display: block;
  border-bottom: 2px solid var(--verde-syg-dark);
  padding: 0.625rem 0;
  font-weight: 600 !important;
}

.mobile-menu ul li:last-child a {
  border: 0;
  background: transparent;
  padding: 0.625rem 0;
  border-radius: 0;
}

.menu-close {
  position: absolute;
  top: 0.625rem;
  right: 1.25rem;
  color: var(--white);
  font-size: 1.5625rem;
}

.mobile-navbar img {
  max-height: 2.5rem;
  width: auto;
  cursor: pointer;
}

@media (min-width: 992px) {
  .header-area {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 1200px) {
  .header-logo-img {
    height: 11rem; /* logo grande en desktop sin agrandar el header */
  }

  .menu-area ul {
    gap: 2rem;
  }

  .menu-area ul li a {
    font-size: 1.25rem !important;
  }

  .header-area {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }
}