/* 01 · Opening: "Hola Yaya" intro + hero. The stage is pinned and scroll drives the timeline. */
.opening { position: relative; }
.opening__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- Hero (bottom layer) ---------- */
.hero {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 40%, #fbf7f1 0%, var(--cream) 45%, var(--cream-deep) 100%);
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__jargon { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.hero__jargon li {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  padding: 7px 12px; border: 1px solid rgba(14, 13, 12, .16); border-radius: var(--radius);
  background: rgba(246, 241, 234, .6); backdrop-filter: blur(4px);
  font: 500 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap;
}
@media (max-width: 760px) { .hero__jargon li:nth-child(n+6) { display: none; } }

.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 96px;
  max-width: 1280px;
}
.hero__kicker { color: var(--orange-deep); }
.hero__title { font-size: clamp(44px, 7.4vw, 128px); line-height: .98; max-width: 11ch; }
.hero__title .w { display: inline-block; position: relative; margin-right: .22em; will-change: transform; }
.hero__title .w:last-child { margin-right: 0; }
.hero__title .w__t { position: relative; z-index: 1; }
/* Orange marker underlining "fácil" */
.hero__title .w__mark {
  position: absolute; z-index: 0; left: -.08em; right: -.1em; bottom: .02em; height: .46em;
  background: var(--orange); border-radius: .12em; transform-origin: 0 50%; rotate: -1.5deg;
}
.hero__text { max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); }
/* Quick links: three "doors" to what matters (resources, courses and websites for businesses) */
.hero__doors { display: grid; grid-template-columns: repeat(2, minmax(0, 270px)); gap: 10px; }
.door {
  --bg: rgba(255, 255, 255, .55); --fg: var(--ink); --line: rgba(14, 13, 12, .16);
  position: relative; display: grid; gap: 6px; padding: 16px 48px 16px 18px; border-radius: 18px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--line); text-decoration: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.door--ink { --bg: var(--ink); --fg: var(--cream); --line: var(--ink); }
.door--orange { --bg: var(--orange); --line: var(--orange); }
.door__k { font-size: 10.5px; opacity: .7; }
.door__t { font: 700 clamp(15px, 1.15vw, 18px)/1.15 var(--font-display); letter-spacing: -.01em; }
.door__a { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-size: 18px; transition: transform .5s var(--ease-out); }
.door:hover { transform: translateY(-3px); }
.door:hover .door__a { transform: translateY(3px); }
.door:not(.door--ink):not(.door--orange):hover { --bg: var(--cream); --line: var(--ink); }
.door--ink:hover { --bg: #26221f; }
.door--orange:hover { --bg: #f6b37e; }
@media (max-width: 760px) {
  .hero__content { gap: 18px; padding-bottom: 72px; }
  .hero__doors { grid-template-columns: 1fr; gap: 8px; width: 100%; max-width: 420px; }
  .door { padding: 12px 44px 12px 16px; gap: 2px; border-radius: 14px; }
}

.hero__scroll {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 28px;
  display: flex; align-items: center; gap: 12px; color: var(--muted);
}
.hero__scroll-line { width: 56px; height: 1px; background: currentColor; transform-origin: left; animation: line 2.4s var(--ease-in-out) infinite; }
@keyframes line { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- Intro (top curtain) ---------- */
.intro { position: absolute; inset: 0; z-index: 10; display: none; }
.js .intro { display: block; }
.is-reduced .intro { display: none; }
.intro__svg { width: 100%; height: 100%; }
.intro__curtain { fill: var(--ink); }
.intro__hint {
  position: absolute; left: 0; right: 0; bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--cream); font-size: 13px; text-align: center; opacity: 0;
}
.intro__hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translateY(6px); opacity: .4; } }

/* Until GSAP starts, hero content stays hidden to avoid flicker */
.js:not(.is-reduced) [data-hero-kicker],
.js:not(.is-reduced) [data-hero-text],
.js:not(.is-reduced) [data-hero-ctas],
.js:not(.is-reduced) [data-hero-scroll],
.js:not(.is-reduced) [data-jargon] li { visibility: hidden; }

.hero__gl { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__gl.is-ready { opacity: 1; }
