/* Componente global de navegacion de Cielos que Inspiran. */
:root {
  --header-height:48px;
  --header-content-width:1120px;
  --header-pad-x:clamp(14px,3vw,28px);
}

.site-header {
  position:fixed;
  top:max(0px,env(safe-area-inset-top,0px));
  left:0;
  right:0;
  width:100%;
  min-height:var(--header-height);
  z-index:50;
  opacity:1;
  pointer-events:auto;
  display:grid;
  grid-template-columns:minmax(0,var(--header-content-width));
  justify-content:center;
  padding:0 max(var(--header-pad-x),env(safe-area-inset-right,0px)) 0 max(var(--header-pad-x),env(safe-area-inset-left,0px));
  border:0;
  border-radius:0;
  box-shadow:0 16px 52px rgba(0,0,0,.34);
  isolation:isolate;
  overflow:visible;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}

.site-header::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:rgba(18,28,46,.74);
  -webkit-backdrop-filter:blur(24px);
  backdrop-filter:blur(24px);
  pointer-events:none;
}

.site-header::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:rgba(255,255,255,.08);
  pointer-events:none;
}

.header-brand,
.header-actions,
.menu-toggle {
  position:relative;
  z-index:1;
}

.header-brand {
  grid-column:1;
  grid-row:1;
  align-self:center;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  text-decoration:none;
  color:var(--text);
  min-width:44px;
}

.header-brand img {
  width:34px;
  height:34px;
  object-fit:contain;
  object-position:center;
  border-radius:0;
  padding:0;
  background:transparent;
  border:0;
  transform:none;
}

.header-actions {
  grid-column:1;
  grid-row:1;
  align-self:center;
  justify-self:end;
  display:flex;
  gap:clamp(10px,1.9vw,26px);
  align-items:center;
  justify-content:flex-end;
  min-width:0;
}

.header-actions a {
  color:rgba(247,249,255,.78);
  text-decoration:none;
  padding:0;
  border:0;
  background:transparent;
  font-size:clamp(.64rem,.72vw,.76rem);
  white-space:nowrap;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  line-height:1.05;
}

.header-actions a.header-tab {
  min-height:var(--header-height);
  font-weight:500;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.header-actions a:hover,
.header-actions a:focus-visible {
  color:#fff;
}

.header-actions a.header-tab.button--primary,
.header-actions a.header-tab:not(.button--primary) {
  color:rgba(247,249,255,.78);
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}

.menu-toggle {
  grid-column:1;
  grid-row:1;
  align-self:center;
  justify-self:end;
  display:none;
  place-items:center;
  width:44px;
  height:44px;
  border:0;
  border-radius:0;
  background:transparent;
  color:rgba(247,249,255,.92);
  cursor:pointer;
  box-shadow:none;
  padding:0;
}

.menu-toggle span {
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  box-shadow:0 6px 0 currentColor,0 -6px 0 currentColor;
}

.home-link {
  display:inline-grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  aspect-ratio:1/1;
  flex:0 0 40px;
  padding:0!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(255,255,255,.28)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.22)!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}

.home-link:hover {
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(0,0,0,.28)!important;
}

.home-link img {
  width:22px;
  height:22px;
  display:block;
  object-fit:contain;
}

.floating-home-link {
  position:fixed;
  right:max(18px,env(safe-area-inset-right,0px));
  bottom:max(18px,env(safe-area-inset-bottom,0px));
  z-index:45;
  display:inline-grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 18px 48px rgba(0,0,0,.34);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
  transition:opacity .24s ease,transform .24s ease,visibility 0ms linear 0ms;
}

.floating-home-link img {
  width:28px;
  height:28px;
  display:block;
  object-fit:contain;
}

.floating-home-link.is-hidden {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px) scale(.94);
  transition:opacity .24s ease,transform .24s ease,visibility 0ms linear .24s;
}

@media (max-width:760px) and (orientation:portrait), (max-width:620px) {
  .site-header {
    --header-height:48px;
    --header-pad-x:14px;
    box-shadow:0 14px 42px rgba(0,0,0,.32);
  }

  .header-brand {
    width:44px;
    height:44px;
    min-width:44px;
  }

  .header-brand img {
    width:32px;
    height:32px;
  }

  .menu-toggle {
    display:grid;
  }

  .header-actions {
    position:absolute;
    top:100%;
    left:calc(-1 * max(var(--header-pad-x),env(safe-area-inset-left,0px)));
    right:calc(-1 * max(var(--header-pad-x),env(safe-area-inset-right,0px)));
    z-index:60;
    display:grid;
    gap:0;
    justify-content:stretch;
    width:auto;
    padding:14px max(24px,env(safe-area-inset-right,0px)) 18px max(24px,env(safe-area-inset-left,0px));
    background:rgba(18,28,46,.94);
    border-top:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);
    -webkit-backdrop-filter:blur(24px);
    backdrop-filter:blur(24px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-8px);
    transition:opacity .2s ease,transform .2s ease,visibility 0ms linear .2s;
  }

  .site-header.menu-open .header-actions {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
    transition:opacity .2s ease,transform .2s ease,visibility 0ms linear 0ms;
  }

  .header-actions a,
  .header-actions a.header-tab {
    width:100%;
    min-height:42px;
    justify-content:flex-start;
    text-align:left;
    font-size:.82rem;
    letter-spacing:.08em;
    line-height:1.08;
    padding:0;
    white-space:nowrap;
  }
}

@media(max-width:360px) {
  .site-header {
    --header-pad-x:12px;
  }

  .header-brand img {
    width:30px;
    height:30px;
  }
}
