.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #111318;
  background: rgba(246, 245, 241, .96);
  border-bottom: 1px solid rgba(17, 19, 24, .12);
  backdrop-filter: blur(16px);
}

.global-header__inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.global-header__brand { display: inline-flex; flex: 0 0 auto; }
.global-header__brand img { display: block; width: 176px; height: auto; }
.global-header__actions,
.global-header__nav { display: flex; align-items: center; gap: 28px; }
.global-header__nav a {
  color: #252930;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.global-header__nav a:hover,
.global-header__nav a[aria-current="page"] { color: #d71920; }
.global-header__cta {
  padding: 13px 20px;
  color: white !important;
  background: #111318;
  border-radius: 10px;
}
.global-header__cta:hover { background: #d71920; }

.global-header__rate,
.global-header__secondary { display: none; }

/* Al bajar, sombra suave para separar el header del contenido. */
.global-header { transition: box-shadow .2s ease, background-color .2s ease; }
.global-header.is-scrolled {
  background: rgba(246, 245, 241, .92);
  box-shadow: 0 8px 24px rgba(17, 19, 24, .08);
}
.global-header__menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #111318;
  background: white;
  border: 1px solid #d9dbde;
  border-radius: 9px;
  cursor: pointer;
}
.global-header__menu-lines,
.global-header__menu-lines::before,
.global-header__menu-lines::after {
  width: 19px;
  height: 2px;
  display: block;
  position: relative;
  background: currentColor;
  border-radius: 99px;
  transition: transform .18s ease, opacity .18s ease;
}
.global-header__menu-lines::before,
.global-header__menu-lines::after { content: ""; position: absolute; left: 0; }
.global-header__menu-lines::before { top: -6px; }
.global-header__menu-lines::after { top: 6px; }
.global-header.is-open .global-header__menu-lines { background: transparent; }
.global-header.is-open .global-header__menu-lines::before { top: 0; transform: rotate(45deg); }
.global-header.is-open .global-header__menu-lines::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .global-header { overflow: visible; }
  .global-header__inner {
    width: min(100% - 32px, 1240px);
    min-height: 68px;
    position: relative;
    gap: 14px;
  }
  .global-header__brand img { width: 148px; }
  .global-header__actions { gap: 10px; }
  .global-header__menu-toggle { display: grid; }
  .global-header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 10;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: white;
    border: 1px solid #d9dbde;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 36px rgba(17, 19, 24, .14);
  }
  .global-header.is-open .global-header__nav { display: flex; }
  .global-header__nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 7px;
  }
  .global-header__nav a:not(.global-header__cta):hover { background: #f6f5f1; }
  .global-header__cta { padding: 11px 12px; font-size: 14px !important; text-align: center; }
  /* Renglon secundario del menu movil: contacto y privacidad, en pequeno. */
  .global-header__secondary {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eceae4;
  }
  .global-header__secondary a {
    padding: 9px 12px;
    color: #6b7079;
    font-size: 13px;
    font-weight: 700;
  }
  .global-header__rate:not(:empty) {
    display: block;
    margin: 6px 0 0;
    padding: 11px 12px 4px;
    border-top: 1px solid #eceae4;
    color: #6b7079;
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .global-header__brand img { width: 132px; }
}
