/* Encabezado unificado de ZosHosting */

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  width: 100%;
  border-bottom: 1px solid #ffffff14;
  background: #1b1b1bed;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.site-header .container.nav-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: min(calc(100% - 48px), 1180px) !important;
  height: auto !important;
  min-height: 82px !important;
  margin-inline: auto !important;
  gap: 28px !important;
}

.site-header .brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-header .brand img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 22px !important;
  margin-left: auto !important;
}

.site-header .nav-links a {
  position: relative;
  padding: 0;
  color: #c9c5ce !important;
  font-family: "Sora", sans-serif;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.site-header .nav-links a:hover {
  color: #ffffff !important;
}

/* Página activa: mismo comportamiento en todas las páginas */
.site-header .nav-links a[aria-current="page"] {
  color: #ffffff !important;
}

.site-header .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -11px;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #8a2cf6;
}

.site-header .header-cta {
  display: inline-flex !important;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 17px !important;
  border: 1px solid #8a2cf6;
  border-radius: 12px;
  color: #ffffff;
  background: #8a2cf6;
  font-family: "Sora", sans-serif;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transform: none !important;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.site-header .header-cta:hover {
  background: #9a44fa;
  transform: translateY(-2px) !important;
}

.site-header .menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff1c;
  border-radius: 11px;
  background: #ffffff0a;
  cursor: pointer;
}

.site-header .menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: #ffffff;
}

/* Oculta el botón antes de que el menú quede sin espacio */
@media (min-width: 861px) and (max-width: 1250px) {
  .site-header .header-cta {
    display: none !important;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .site-header .nav-links {
    gap: 15px !important;
  }
}

/* Menú móvil */
@media (max-width: 860px) {
  .site-header .container.nav-wrap {
    width: min(calc(100% - 36px), 1180px) !important;
    min-height: 72px !important;
  }

  .site-header .menu-toggle {
    display: block;
    flex: none;
    margin-left: auto;
  }

  .site-header .header-cta {
    display: none !important;
  }

  .site-header .nav-links {
    position: absolute;
    inset: 72px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    margin-left: 0 !important;
    padding: 10px;
    border: 1px solid #ffffff1c;
    border-radius: 15px;
    background: #1b1b1bfa;
    box-shadow: 0 20px 50px #00000059;
  }

  .site-header .nav-links.is-open {
    display: flex;
  }

  .site-header .nav-links a {
    padding: 14px;
    font-size: 12px !important;
  }

  .site-header .nav-links a[aria-current="page"]::after {
    display: none;
  }
}