/* Wonderland Essentials — Cabecera */
.wl.wl-header {
  position: relative;
  z-index: 100;
  background: var(--wl-gradient);
}
.wl .wl-header__inner {
  width: 100%;
  height: 88px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.wl .wl-header__brand { color: inherit; display: flex; align-items: center; flex: 0 0 auto; }
.wl .wl-header__logo { display: block; width: 225px; height: auto; max-height: 34px; object-fit: contain; object-position: left center; }
.wl .wl-header__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(38px, 5.2vw, 82px);
  margin-left: auto;
}
.wl .wl-header__link {
  position: relative;
  padding: 10px 0;
  color: #f7f3eb;
  font-family: var(--wl-font-body);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.92;
  white-space: nowrap;
  transition: opacity .2s ease, color .2s ease;
}
.wl .wl-header__link:hover,
.wl .wl-header__link:focus-visible { opacity: 1; color: var(--wl-gold); }
.wl .wl-header__toggle { display: none; }
.wl .wl-header__toggle-close { display: none; }
.wl .wl-header__toggle[aria-expanded="true"] .wl-header__toggle-open { display: none; }
.wl .wl-header__toggle[aria-expanded="true"] .wl-header__toggle-close { display: inline; }

@media (max-width: 1080px) {
  .wl .wl-header__inner { height: 82px; padding: 0 34px; gap: 28px; }
  .wl .wl-header__logo { width: 205px; max-height: 31px; }
  .wl .wl-header__menu { gap: 30px; }
  .wl .wl-header__link { font-size: 0.91rem; }
}
@media (max-width: 820px) {
  .wl .wl-header__inner { height: 70px; padding: 0 22px; }
  .wl .wl-header__logo { width: 185px; max-height: 28px; }
  .wl .wl-header__menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 22px 18px;
    background: var(--wl-mobile-bg, linear-gradient(180deg, var(--wl-navy-end) 0%, var(--wl-navy-start) 100%));
    border-top: 1px solid rgba(238,214,172,.18);
    box-shadow: 0 18px 34px rgba(2,10,34,.28);
  }
  .wl .wl-header__menu.is-open { display: flex; }
  .wl .wl-header__link {
    padding: 14px 2px;
    border-bottom: 1px solid var(--wl-mobile-divider, rgba(238,214,172,.14));
  }
  .wl .wl-header__link:last-child { border-bottom: 0; }
  .wl .wl-header__toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--wl-cream);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
  }
  .wl .wl-header__toggle:hover,
  .wl .wl-header__toggle:focus { background: transparent; color: var(--wl-cream); }
  .wl .wl-header__toggle[aria-expanded="true"] {
    background: rgba(238,214,172,.1);
    border-color: rgba(238,214,172,.28);
  }
}
@media (max-width: 520px) {
  .wl .wl-header__logo { width: 168px; max-height: 25px; }
}
