/* Header global unificado — Legal&Fixer · proporción de referencia */
.global-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:9999;
  height:50px;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(24px,4vw,64px);
  background:rgba(83,87,92,.96);
  border-bottom:1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  color:#fff;
  box-sizing:border-box;
}
.global-header *{box-sizing:border-box}
.global-header__brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  height:100%;
  text-decoration:none;
}
.global-header__brand img{
  display:block;
  width:auto;
  height:34px;
  max-height:34px;
  object-fit:contain;
}
.global-header__nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(21px,2vw,30px);
  margin-left:auto;
  height:100%;
}
.global-header__nav a{
  display:flex;
  align-items:center;
  height:100%;
  color:#fff !important;
  text-decoration:none !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:15px !important;
  font-weight:600 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  white-space:nowrap;
  opacity:1 !important;
  transition:color .2s ease,opacity .2s ease;
}
.global-header__nav a:hover{color:#f0d57c !important}
.global-header__nav a[aria-current="page"]{color:#fff !important}

.global-header__toggle{
  display:none;
  width:38px;
  height:38px;
  margin-left:auto;
  border:1px solid rgba(255,255,255,.42);
  border-radius:999px;
  background:transparent;
  color:#fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  position:relative;
}
.global-header__toggle span,
.global-header__toggle::before,
.global-header__toggle::after{
  content:"";
  display:block;
  position:absolute;
  width:16px;
  height:1.5px;
  background:currentColor;
  transition:transform .25s ease,opacity .25s ease;
}
.global-header__toggle::before{transform:translateY(-5px)}
.global-header__toggle::after{transform:translateY(5px)}
.global-header__toggle.is-open span{opacity:0}
.global-header__toggle.is-open::before{transform:rotate(45deg)}
.global-header__toggle.is-open::after{transform:rotate(-45deg)}

.global-header__mobile{
  display:none;
  position:fixed;
  z-index:9998;
  top:50px;
  left:12px;
  right:12px;
  padding:10px;
  border-radius:0 0 12px 12px;
  background:rgba(83,87,92,.985);
  box-shadow:0 18px 45px rgba(0,0,0,.24);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.global-header__mobile a{
  display:block;
  padding:12px 10px;
  color:#fff !important;
  text-decoration:none !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:16px !important;
  font-weight:600 !important;
  text-align:center;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.global-header__mobile a:last-child{border-bottom:0}
.global-header__mobile.is-open{display:block}

/* Conserva headers previos en DOM para no romper scripts, pero no los muestra. */
body.has-global-header > .site-header,
body.has-global-header > .home-top-header,
body.has-global-header > .services-home-header,
body.has-global-header > .services-home-mobile{
  display:none !important;
}

@media (max-width:900px){
  .global-header{
    height:62px;
    min-height:62px;
    padding:0 16px;
  }
  .global-header__brand img{height:38px;max-height:38px}
  .global-header__nav{display:none}
  .global-header__toggle{display:flex}
  .global-header__mobile{top:62px}
}
