/* WESS 2026 — Hero de agradecimiento */
#wess-gracias {
  --wg-bg: #0c0410;
  --wg-ink: #fff;
  --wg-soft: rgba(255, 255, 255, .72);
  --wg-line: rgba(255, 255, 255, .16);
  --wg-teal: #2fd3c4;
  --wg-gold: #ffc85a;
  --wg-orange: #ff8a3d;
  --wg-pink: #ff4f9a;
  --wg-violet: #8b5cff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--wg-bg);
  color: var(--wg-ink);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#wess-gracias *, #wess-gracias *::before, #wess-gracias *::after { box-sizing: border-box; }

/* ---------- Capas de fondo ---------- */
.wg-bg {
  position: absolute; left: -4%; right: -4%; top: -4%; height: 118vh;
  background: url("panel-wess-2026.jpg") center 30% / cover no-repeat;
  filter: blur(6px) saturate(1.15);
  transform: scale(1.08);
  animation: wg-kenburns 38s ease-in-out infinite alternate;
  z-index: -4;
}
@keyframes wg-kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.2) translate3d(-1.5%, -2%, 0); }
}
.wg-tint {
  position: absolute; left: 0; right: 0; top: 0; height: 115vh; z-index: -3;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(120, 30, 110, .55), transparent 60%),
    linear-gradient(180deg, rgba(34, 6, 34, .8) 0%, rgba(20, 5, 24, .86) 45%, rgba(12, 4, 16, .95) 78%, var(--wg-bg) 100%);
}
.wg-aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen; opacity: .55; }
.wg-aurora i {
  position: absolute; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: wg-drift 22s ease-in-out infinite alternate;
}
.wg-aurora i:nth-child(1) { background: var(--wg-pink);   left: -10%; top: 2%; }
.wg-aurora i:nth-child(2) { background: var(--wg-teal);   right: -12%; top: 12%; animation-duration: 27s; animation-delay: -6s; }
.wg-aurora i:nth-child(3) { background: var(--wg-violet); left: 28%; top: 38%; animation-duration: 31s; animation-delay: -12s; opacity: .35; }
@keyframes wg-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8vw, 4vh, 0) scale(1.15); }
  100% { transform: translate3d(-4vw, 10vh, 0) scale(.9); }
}
#wg-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Contenido ---------- */
.wg-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(150px, 19vh, 210px) 20px 90px;
  text-align: center;
}
.wg-brand {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vw, 28px);
  margin-bottom: clamp(28px, 5vh, 52px);
}
.wg-brand img.wg-wess { width: clamp(250px, 34vw, 460px); height: auto; filter: drop-shadow(0 6px 30px rgba(255, 80, 160, .35)); }
.wg-brand .wg-sep { width: 1px; align-self: stretch; background: linear-gradient(transparent, rgba(255,255,255,.7), transparent); }
.wg-brand .wg-name {
  text-align: left; font-weight: 800; line-height: 1.12;
  font-size: clamp(15px, 2vw, 25px); letter-spacing: -.01em;
}

.wg-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--wg-line);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--wg-soft);
}
.wg-eyebrow b { width: 6px; height: 6px; border-radius: 50%; background: var(--wg-gold); box-shadow: 0 0 12px var(--wg-gold); }

.wg-title {
  margin: 22px 0 0;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(42px, 8.4vw, 118px);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: #fff;
}
.wg-title .wg-line { display: block; }
.wg-title .wg-w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .45em, 0) scale(.96);
  filter: blur(14px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1s ease;
  transition-delay: calc(var(--i) * 110ms + 150ms);
}
.wg-in .wg-title .wg-w { opacity: 1; transform: none; filter: none; }
.wg-title .wg-shine {
  background: linear-gradient(100deg, #fff 0%, #fff 35%, var(--wg-gold) 45%, var(--wg-pink) 52%, var(--wg-teal) 58%, #fff 68%, #fff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wg-shine 6s ease-in-out 1.6s infinite;
  background-position: 100% 0;
}
@keyframes wg-shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }

.wg-lead {
  max-width: 680px; margin: 26px auto 0;
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; font-weight: 500;
  color: var(--wg-soft);
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s ease 1s, transform .9s ease 1s;
}
.wg-in .wg-lead { opacity: 1; transform: none; }

/* ---------- Cifras ---------- */
.wg-stats {
  list-style: none; margin: clamp(40px, 7vh, 70px) auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  max-width: 1020px;
}
.wg-stat {
  --a: 0deg;
  position: relative;
  padding: clamp(18px, 2.6vw, 30px) 14px;
  border-radius: 22px;
  background: radial-gradient(140px 90px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.14), transparent 70%), rgba(255, 255, 255, .055);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i) * 90ms + 1.1s);
}
.wg-in .wg-stat { opacity: 1; transform: none; }
.wg-stat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--a), rgba(255,255,255,.55), var(--wg-pink), var(--wg-gold), var(--wg-teal), var(--wg-violet), rgba(255,255,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: wg-spin 7s linear infinite;
  animation-delay: calc(var(--i) * -1.1s);
  opacity: .9;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes wg-spin { to { --a: 360deg; } }
.wg-num {
  display: block;
  font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(255, 120, 190, .45);
}
.wg-lbl {
  display: block; margin-top: 10px;
  font-size: clamp(10.5px, 1.05vw, 13px); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--wg-soft);
}

/* ---------- Muro de logos ---------- */
.wg-thanks { margin-top: clamp(70px, 11vh, 120px); }
.wg-thanks h2 {
  margin: 0 0 8px; font-family: inherit; color: #fff;
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
}
.wg-thanks p.wg-sub { margin: 0 auto 34px; max-width: 620px; color: var(--wg-soft); font-size: 15.5px; line-height: 1.6; }
.wg-tier {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(18px, 3vw, 46px) clamp(26px, 4.4vw, 64px);
  padding: clamp(26px, 4vh, 38px) 0;
}
.wg-tier + .wg-tier { border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent) 1; }
.wg-logo {
  display: block; flex: 0 0 auto;
  width: var(--w); max-width: 42vw;
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1), filter .35s ease;
  transition-delay: calc(var(--d, 0) * 45ms);
}
.wg-logo img { display: block; width: 100%; height: auto; transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.wg-tier.wg-seen .wg-logo { opacity: .88; transform: none; }
.wg-logo:hover { opacity: 1 !important; }
.wg-logo:hover img { transform: scale(1.08); filter: drop-shadow(0 0 14px rgba(255, 200, 120, .55)); }

.wg-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 46px; padding: 14px 26px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--wg-line);
  color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important;
  transition: background .3s ease, transform .3s ease;
}
.wg-cta:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.wg-cta svg { animation: wg-bob 1.8s ease-in-out infinite; }
@keyframes wg-bob { 50% { transform: translateY(4px); } }

.wg-hint {
  position: absolute; right: 18px; bottom: 16px; z-index: 2;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.42);
  pointer-events: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 767px) {
  .wg-wrap { padding-top: 175px; padding-bottom: 70px; }
  .wg-eyebrow { font-size: 10.5px; letter-spacing: .12em; padding: 7px 14px; gap: 8px; }
  .wg-lbl { letter-spacing: .06em; line-height: 1.35; }
  .wg-stat { padding: 18px 10px; }
  .wg-brand { flex-direction: column; gap: 12px; }
  .wg-brand .wg-sep { display: none; }
  .wg-brand .wg-name { text-align: center; }
  .wg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-stat { border-radius: 18px; }
  .wg-logo { width: calc(var(--w) * .72); }
  .wg-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-bg, .wg-aurora i, .wg-stat::before, .wg-title .wg-shine, .wg-cta svg { animation: none !important; }
  .wg-title .wg-w, .wg-lead, .wg-stat, .wg-logo { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* El tema impone Poppins 400 a los h1 */
#wess-gracias h1.wg-title, #wess-gracias h1.wg-title * { font-family: "Manrope", system-ui, sans-serif !important; font-weight: 800 !important; }
