.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: stretch;
  min-height: 82px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  pointer-events: auto;
}

.menu-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: none;
  min-height: 82px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(7, 16, 24, 0.94);
  border: 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}


.brand {
  position: relative;
  flex: 0 0 auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  padding: 6px;
  width: max-content;
  overflow: visible;
  pointer-events: auto;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(150px, 14vw, 230px);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(120, 255, 21, 0.18));
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 18px rgba(120, 255, 21, 0.28));
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  color: #eaf2df;
  font-size: 1.05rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  color: rgba(229, 231, 235, 0.86);
  background: transparent;
  transform: translateY(0);
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover {
  color: #00e5ff;
  transform: translateY(-4px);
}

.nav-links a.is-current {
  color: #78ff15;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle span:not(.menu-toggle-text) {
  display: block;
  width: 15px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle-text {
  margin-left: 4px;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
    padding: 0;
  }

  .brand {
    position: relative;
    left: auto;
    top: auto;
  }

  .brand-logo {
    width: clamp(92px, 26vw, 128px);
  }

  .menu-panel {
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: none;
    min-height: 70px;
    margin-left: 0;
    padding: 8px 14px;
    background: rgba(7, 16, 24, 0.94);
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
    min-height: 42px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.24);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    width: auto;
    padding: 10px;
    background: rgba(7, 16, 24, 0.96);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
  }

  .site-header.is-menu-open .nav-links,
  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: transparent;
    transform: none;
  }

  .nav-links a:hover,
  .nav-links a.is-current {
    background-color: rgba(0, 229, 255, 0.12);
    transform: none;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 420px) {
  .menu-toggle-text {
    display: none;
  }

  .menu-toggle {
    width: 44px;
    padding: 0;
  }

}


.nav-links a {
  color: rgba(229, 231, 235, 0.86);
  background-image: none;
}

.menu-toggle {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.24);
}

@media (max-width: 820px) {


  .nav-links {
    border-color: rgba(0, 229, 255, 0.18);
  }
}


/* Dropdown de cuenta al lado de contacto */
.nav-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}

.nav-user-menu summary {
  list-style: none;
}

.nav-user-menu summary::-webkit-details-marker {
  display: none;
}

.account-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: #dfe6d7;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.account-icon-button:hover,
.nav-user-menu[open] .account-icon-button {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.48);
  background: rgba(0, 229, 255, 0.1);
}

.account-icon-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f5f7f0;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 10px;
  background: rgba(10, 14, 20, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.account-dropdown a {
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #eaf2df;
  background: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.account-dropdown a:hover,
.account-dropdown a.is-current {
  color: #0d1209;
  background: rgba(0, 229, 255, 0.92);
}

@media (max-width: 820px) {
  .nav-user-menu {
    display: grid;
  }

  .account-icon-button {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 0 12px;
  }

  .account-dropdown {
    position: static;
    min-width: 100%;
    margin-top: 6px;
    background: rgba(7, 16, 24, 0.72);
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .account-dropdown a {
    min-height: 46px;
    padding: 0 14px;
    color: #eaf2df;
  }

  .account-dropdown a:hover,
  .account-dropdown a.is-current {
    color: #071018;
    background: rgba(0, 229, 255, 0.18);
  }
}



.nav-links .nav-plugin-link {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0, 229, 255, 0.46);
  border-radius: 999px;
  color: #071018;
  background: #00e5ff;
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.nav-links .nav-plugin-link:hover,
.nav-links .nav-plugin-link.is-current {
  color: #071018;
  background: #eaffdf;
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .nav-links .nav-plugin-link {
    justify-content: flex-start;
    border-radius: 8px;
  }
}



/* account single label fix */
.account-icon-button {
  gap: 0;
}

.account-icon-text {
  white-space: nowrap;
}


.account-nav-button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
}

.account-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.account-hover-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  display: none;
  min-width: 170px;
  padding: 8px;
  border: 1px solid rgba(0, 229, 255, 0.20);
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.account-menu-wrap:hover .account-hover-menu,
.account-menu-wrap:focus-within .account-hover-menu {
  display: grid;
  gap: 4px;
}

.account-hover-menu[hidden] {
  display: none !important;
}

.account-hover-menu a,
.account-hover-menu button {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #eaffdf;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-hover-menu a:hover,
.account-hover-menu button:hover {
  color: #ffffff;
  background: rgba(0, 229, 255, 0.18);
}

.account-icon-symbol {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.account-icon-symbol::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.account-icon-symbol::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 17px;
  height: 10px;
  border: 2px solid currentColor;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom: 0;
  transform: translateX(-50%);
}

.account-nav-button.has-session .account-icon-symbol {
  color: #eaffdf;
}

@media (max-width: 820px) {
  .account-nav-button {
    width: 46px;
    justify-content: center;
    border-radius: 999px;
    padding: 0;
  }
}
