/* HEADER POLIT I ELEGANT */
.site-header {
  text-align: center;
  position: relative;
  width: min(100%, var(--max-width-container));
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 56px) clamp(40px, 5vw, 60px);
  background: var(--gradient-hero);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(217, 180, 74, 0.2);
  border-radius: calc(var(--radius-xl) + 6px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.site-header::before {
  width: 340px;
  height: 340px;
  top: -180px;
  right: -70px;
  background: radial-gradient(circle, rgba(217, 180, 74, 0.2) 0%, rgba(217, 180, 74, 0) 72%);
  z-index: -1;
}

.site-header::after {
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -250px;
  background: radial-gradient(circle, rgba(19, 44, 99, 0.14) 0%, rgba(19, 44, 99, 0) 74%);
  z-index: -1;
}

.ecosystem-badge {
  display: flex;
  justify-content: center;
  margin: 4px auto 8px;
}

.ecosystem-badge img {
  width: clamp(18px, 2.2vw, 24px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(11, 21, 38, 0.08));
}

.theme-toggle {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(19, 44, 99, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(11, 21, 38, 0.08);
  backdrop-filter: blur(12px);
}

.shop-link.shop-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 180, 74, 0.28);
  background: rgba(255, 247, 223, 0.88);
  color: var(--color-principal-fosc);
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(165, 122, 18, 0.12);
}

.shop-link.shop-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 247, 223, 0.98), rgba(243, 229, 181, 0.95));
}

.shop-link.shop-cta svg {
  fill: currentColor;
}

@media (max-width: 768px) {
  .ecosystem-badge {
    margin: 4px auto 8px;
  }

  .shop-link.shop-cta {
    gap: 0;
    padding: 12px;
  }

  .shop-link.shop-cta .shop-text {
    display: none;
  }
}

[data-theme="dark"] .site-header {
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.96) 0%, rgba(14, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(217, 180, 74, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .site-header::before {
  background: radial-gradient(circle, rgba(245, 211, 106, 0.12) 0%, rgba(245, 211, 106, 0) 72%);
}

[data-theme="dark"] .site-header::after {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0) 74%);
}

[data-theme="dark"] .shop-link.shop-cta {
  background: rgba(245, 211, 106, 0.1);
  border-color: rgba(245, 211, 106, 0.2);
  color: #f8fafc;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
