.home-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fbf9fa;
  background: linear-gradient(112deg, #111115, #0d0d11 52%, #171014);
  border-bottom: 1px solid #30272d;
  box-shadow: inset 0 1px #ffffff08, 0 8px 24px #0004;
}
.home-header__layout {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.65rem, 1.4vw, 1.25rem);
  width: min(1320px, 100% - clamp(1.55rem, 4vw, 4.5rem));
  min-height: 74px;
  margin: 0 auto;
}
.home-header__brand { display: inline-flex; align-items: center; min-height: 44px; }
.home-header__brand .msmkt-official-logo { display: block; width: clamp(8.8rem, 12.2vw, 10.25rem); height: 3.8rem; }
.home-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.45rem, 1vw, .85rem);
  min-width: 0;
}
.home-header__sections { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; gap: clamp(.28rem, 1vw, 1rem); }
.home-header__sections a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .2rem .32rem;
  color: #e1dce1;
  white-space: nowrap;
  font: 750 .735rem/1.1 Montserrat, Inter, system-ui, sans-serif;
  transition: color 150ms ease;
}
.home-header__sections a:hover { color: #fff; }
.home-header__sections a::after {
  content: '';
  position: absolute;
  inset: auto .32rem 4px;
  height: 2px;
  border-radius: 2px;
  background: #ff4f66;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}
.home-header__sections a:hover::after,
.home-header__sections a:focus-visible::after,
.home-header__sections a[aria-current="location"]::after { transform: scaleX(1); }
.home-header__sections a[aria-current="location"] { color: #fff; }
.home-header__sponsor, .home-header__quote, .home-header__toggle {
  display: inline-flex; justify-content: center; align-items: center; gap: .48rem;
  min-height: 44px; padding: .45rem .73rem; border-radius: .58rem;
  white-space: nowrap; font: 780 .735rem/1.15 Montserrat, Inter, system-ui, sans-serif;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.home-header__sponsor { color: #f6edf1; background: #21191e; border: 1px solid #50414a; }
.home-header__sponsor:hover { border-color: #ad6471; background: #34242b; }
.home-header__quote { color: #fff; border: 1px solid #fd5264; background: #c70c23; box-shadow: 0 4px 18px #c70c2340; }
.home-header__quote:hover { background: #df112b; box-shadow: 0 4px 20px #e11d4859; }
.home-header svg { width: 1rem; height: 1rem; flex: 0 0 1rem; }
.home-header__toggle { display: none; border: 1px solid #50414a; color: #f6edf1; background: #21191e; min-width: 44px; }
.home-header__toggle:hover { border-color: #ad6471; background: #34242b; }
.home-header__toggle .home-header__close { display: none; }
.home-header__toggle[aria-expanded="true"] .home-header__close { display: block; }
.home-header__toggle[aria-expanded="true"] .home-header__open { display: none; }
.home-header :is(a, button):focus-visible { outline: 2px solid #ffa7b3; outline-offset: 3px; }
:where(#cartelera, #ecosistema, #produccion, #agencia, #contacto) { scroll-margin-top: 5rem; }

@media (max-width: 1140px) {
  .home-header__layout { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 68px; }
  .home-header__brand { justify-self: start; }
  .home-header__brand .msmkt-official-logo { height: 3.4rem; width: clamp(7rem, 24vw, 9.5rem); }
  .home-header__quote { grid-column: 3; grid-row: 1; }
  .home-header__nav { grid-column: 1 / -1; padding-bottom: .7rem; flex-wrap: wrap; }
  .home-header__sections { flex-wrap: wrap; justify-content: flex-start; }
  .home-header[data-menu-ready] .home-header__toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
  .home-header[data-menu-ready] .home-header__nav {
    display: none;
    position: absolute;
    z-index: 1;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 5.3rem);
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid #483a43;
    border-radius: 0 0 .85rem .85rem;
    background: #181319;
    box-shadow: 0 15px 32px #0009;
  }
  .home-header[data-menu-open] .home-header__nav { display: grid; }
  .home-header[data-menu-ready] .home-header__sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
  .home-header[data-menu-ready] .home-header__sections a {
    justify-content: flex-start;
    padding: .35rem .6rem;
    border-radius: .45rem;
    background: #261e25;
    white-space: normal;
  }
  .home-header[data-menu-ready] .home-header__sections a::after { inset: auto .6rem 3px; }
  .home-header[data-menu-ready] .home-header__sponsor { justify-self: start; }
}
@media (max-width: 420px) {
  .home-header__layout { gap: .35rem; }
  .home-header__quote { padding-inline: .52rem; font-size: .67rem; gap: .3rem; }
  .home-header__toggle { padding-inline: .48rem; }
  .home-header__toggle span { display: none; }
}
@media (max-width: 330px) {
  .home-header__quote svg { display: none; }
  .home-header__brand .msmkt-official-logo { width: 6.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-header * { transition: none !important; }
}
