.site-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: rgba(244, 248, 244, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 50, 28, 0.08);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(46, 168, 88, 0.35),
    rgba(46, 168, 88, 0.05)
  );
  border: 1px solid rgba(46, 168, 88, 0.18);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 50, 28, 0.08);
}

.navlink {
  text-decoration: none;
  color: rgba(20, 40, 30, 0.9);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.navlink:hover {
  background: rgba(217, 234, 220, 0.55);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 50, 28, 0.08);
  overflow: hidden;
}
.lang-btn {
  padding: 9px 12px;
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.lang-btn.active {
  background: rgba(217, 234, 220, 0.75);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(15, 50, 28, 0.08);
}
.btn-primary {
  background: rgba(22, 128, 66, 0.95);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.02);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 50, 28, 0.1);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(20, 40, 30, 0.85);
  margin: 4px auto;
  border-radius: 99px;
}

/* Mobile */
.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  margin: 10px 16px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* Solo se muestra cuando el JS lo abre */
.mobile-panel.is-open {
  display: flex;
}

/* En desktop NUNCA se muestra, aunque tenga la clase */
@media (min-width: 860px) {
  .mobile-panel,
  .mobile-panel.is-open {
    display: none !important;
  }
}
.m-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 50, 28, 0.08);
  text-decoration: none;
  color: rgba(20, 40, 30, 0.92);
  font-weight: 700;
}
.m-buy {
  background: rgba(22, 128, 66, 0.95);
  color: #fff;
  border-color: rgba(22, 128, 66, 0.3);
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-inner {
    padding: 10px 14px;
  }
  .btn {
    padding: 8px 12px;
    font-size: .85rem;
  }
}

@media (max-width: 380px) {
  .lang-switch { display: none; }
  .header-inner { gap: 8px; }
  .brand-text { font-size: .9rem; }
}

.nav-drawer {
  display: none;
}

.nav-drawer.open {
  display: block;
}

@media (min-width: 900px) {
  .nav-drawer {
    display: none !important;
  }
}
