/* Waxelicious · Hero cinematográfico v1.0.0 */
body.wx-demo {
  margin: 0;
  background: #0a0806;
  color: #f6ecd9;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.demo-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4.2vw, 72px);
  color: #e8b04a;
  background: linear-gradient(to bottom, rgba(10, 8, 6, 0.68), transparent);
  pointer-events: none;
}

.demo-nav__logo {
  display: block;
  width: 132px;
  height: auto;
  fill: currentColor;
  color: #e8b04a;
}

.demo-nav__note {
  color: #a99a84;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

#hero-scroll {
  --wx-black: #0a0806;
  --wx-gold-light: #ffd98a;
  --wx-gold: #e8b04a;
  --wx-gold-deep: #c97a17;
  --wx-cream: #f6ecd9;
  --wx-muted: #a99a84;
  --wx-scroll-length: 500vh;
  --wx-exit: 0;
  --wx-load: 0;
  --wx-glow-x: 72%;
  --wx-glow-y: 35%;
  position: relative;
  height: 100vh;
  height: 100svh;
  background: var(--wx-black);
  isolation: isolate;
}

#hero-scroll.is-enhanced {
  height: var(--wx-scroll-length);
}

#hero-scroll.is-reduced,
#hero-scroll.has-error {
  height: 100vh;
  height: 100svh;
}

.wx-hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--wx-black);
}

.is-reduced .wx-hero__sticky,
.has-error .wx-hero__sticky {
  position: relative;
}

.wx-hero__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: calc(1 - var(--wx-exit));
  background: var(--wx-black);
  will-change: opacity;
}

.wx-hero__shade,
.wx-hero__vignette,
.wx-hero__grain,
.wx-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wx-hero__shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.36) 0%, transparent 24%, transparent 66%, rgba(10, 8, 6, 0.42) 100%),
    linear-gradient(90deg, rgba(10, 8, 6, 0.24), transparent 45%, rgba(10, 8, 6, 0.08));
  opacity: calc(1 - var(--wx-exit));
}

.wx-hero__vignette {
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(5, 3, 2, 0.18) 66%, rgba(5, 3, 2, 0.72) 115%);
  opacity: calc(1 - var(--wx-exit));
}

.wx-hero__grain {
  z-index: 3;
  inset: -30%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  opacity: calc(0.055 * (1 - var(--wx-exit)));
}

.wx-hero__glow {
  z-index: 2;
  inset: auto;
  left: var(--wx-glow-x);
  top: var(--wx-glow-y);
  width: min(52vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 138, 0.105) 0%, rgba(232, 176, 74, 0.04) 35%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  opacity: calc(1 - var(--wx-exit));
  will-change: left, top;
}

.wx-hero__copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  padding: 100px clamp(24px, 7vw, 112px) 92px;
  pointer-events: none;
}

.wx-hero__segment {
  grid-area: 1 / 1;
  align-self: center;
  width: min(100%, 680px);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity, filter;
}

.wx-hero__segment.is-active {
  opacity: 1;
  visibility: visible;
}

.wx-hero__segment--center {
  justify-self: center;
  width: min(100%, 980px);
  text-align: center;
}

.wx-hero__segment--left {
  justify-self: start;
  text-align: left;
}

.wx-hero__kicker {
  margin: 0 0 24px;
  color: var(--wx-gold-light);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.24em;
}

.wx-hero__title {
  margin: 0;
  color: var(--wx-cream);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(58px, 6.4vw, 108px);
  font-weight: 400;
  font-style: normal;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 3px 32px rgba(0, 0, 0, 0.32);
}

.wx-hero__title em {
  color: var(--wx-gold-light);
  font-weight: 400;
  font-style: italic;
}

.wx-hero__segment:first-child .wx-hero__title::after {
  content: none;
  display: block;
  width: 58px;
  height: 1px;
  margin: 30px auto 0;
  background: linear-gradient(90deg, transparent, var(--wx-gold), transparent);
}

.wx-hero__sub {
  max-width: 440px;
  margin: 24px 0 0;
  color: var(--wx-cream);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  opacity: 0.78;
}

.wx-hero__segment--center .wx-hero__sub {
  margin-inline: auto;
}

.wx-hero__scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: var(--wx-cream);
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.wx-hero__cue-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wx-hero__drop-track {
  position: relative;
  display: block;
  width: 14px;
  height: 28px;
}

.wx-hero__drop {
  position: absolute;
  top: 0;
  left: 4px;
  width: 7px;
  height: 10px;
  border: 1px solid var(--wx-gold-light);
  border-radius: 65% 35% 62% 38%;
  box-shadow: 0 0 10px rgba(232, 176, 74, 0.25);
  animation: wx-drop 1.9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes wx-drop {
  0% { opacity: 0; transform: translateY(0) rotate(45deg) scale(0.75); }
  25% { opacity: 1; }
  75% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(16px) rotate(45deg) scale(1); }
}

.wx-hero__loader {
  position: absolute;
  z-index: 6;
  right: clamp(22px, 3vw, 48px);
  bottom: 31px;
  display: none;
  width: 96px;
  height: 1px;
  overflow: hidden;
  background: rgba(246, 236, 217, 0.16);
  opacity: 0.8;
  transition: opacity 600ms ease;
}

.is-enhanced .wx-hero__loader {
  display: block;
}

.wx-hero__loader > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--wx-gold-deep), var(--wx-gold-light));
  transform: scaleX(var(--wx-load));
  transform-origin: left center;
  transition: transform 180ms linear;
}

.wx-hero__loader.is-complete {
  opacity: 0;
}

/* Contenido de relleno para comprobar la transición de salida. */
.wx-after {
  position: relative;
  z-index: 3;
  min-height: 200vh;
  min-height: 200svh;
  margin-top: -1px;
  padding: clamp(100px, 14vw, 210px) clamp(24px, 7vw, 112px) 80px;
  overflow: hidden;
  background: #0a0806;
}

.wx-after__intro {
  max-width: 980px;
}

.wx-after__eyebrow {
  margin: 0 0 26px;
  color: #e8b04a;
  font-size: 10px;
  letter-spacing: 0.22em;
}

.wx-after h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.wx-after__lead {
  max-width: 520px;
  margin: 44px 0 0 auto;
  color: #a99a84;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
}

.wx-after__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 68px);
  margin-top: clamp(120px, 18vw, 250px);
  padding-top: 30px;
  border-top: 1px solid rgba(232, 176, 74, 0.2);
}

.wx-after__grid article > span {
  color: #e8b04a;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.wx-after__grid h3 {
  margin: 28px 0 16px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.wx-after__grid p {
  margin: 0;
  color: #a99a84;
  font-size: 14px;
  line-height: 1.75;
}

.wx-after__closing {
  min-height: 65vh;
  min-height: 65svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 160px;
}

.wx-after__closing p {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.wx-after__closing em {
  color: #ffd98a;
  font-weight: 400;
}

.wx-after__closing > span {
  margin-top: 100px;
  color: rgba(232, 176, 74, 0.16);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(64px, 14.2vw, 230px);
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .demo-nav {
    height: 76px;
    padding-inline: 22px;
  }

  .demo-nav__logo {
    width: 116px;
  }

  .demo-nav__note {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .wx-hero__copy {
    padding: 92px 22px 94px;
  }

  .wx-hero__segment,
  .wx-hero__segment--left,
  .wx-hero__segment--center {
    justify-self: center;
    width: min(100%, 560px);
    text-align: center;
  }

  .wx-hero__title {
    font-size: clamp(50px, 14.5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.02em;
  }

  .wx-hero__kicker {
    margin-bottom: 20px;
    font-size: 9px;
  }

  .wx-hero__sub {
    margin-inline: auto;
    font-size: 14px;
  }

  .wx-hero__glow {
    display: none;
  }

  .wx-hero__loader {
    right: 20px;
    bottom: 24px;
    width: 64px;
  }

  .wx-after {
    padding-inline: 22px;
  }

  .wx-after h2 {
    font-size: clamp(62px, 20vw, 92px);
  }

  .wx-after__lead {
    margin-left: 0;
  }

  .wx-after__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .wx-after__closing > span {
    font-size: 20vw;
  }
}

@media (hover: none), (pointer: coarse) {
  .wx-hero__glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wx-hero__drop {
    animation: none;
    opacity: 0.8;
  }

  .wx-hero__loader,
  .wx-hero__loader > span {
    transition: none;
  }

  .wx-hero__glow {
    display: none;
  }
}

.is-reduced .wx-hero__scroll-cue,
.has-error .wx-hero__scroll-cue {
  display: none;
}
