/* RTG 2.0 — hero cinemático controlado por scroll */

.rtgsh {
  --rtgsh-len: 280vh;
  position: relative;
  height: var(--rtgsh-len);
  margin-top: -64px; /* .site-main reserva 64px para el header fijo; el hero va debajo de él */
  background: var(--black);
}

.rtgsh-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--black);
}

/* ─── palabra gigante de fondo ─── */
.rtgsh-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.rtgsh-word span {
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(110px, 26vw, 420px);
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,.28);
  opacity: 0;
  transform: translateY(6%) scale(.96);
  transition: opacity .7s ease, transform .9s cubic-bezier(.16,1,.3,1);
}
.rtgsh-word span.is-active { opacity: 1; transform: none; }

/* ─── frames ─── */
.rtgsh-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  --rtgsh-fw: 100vw;
  -webkit-mask-image: linear-gradient(90deg,
    transparent calc(50% - var(--rtgsh-fw) / 2),
    #000 calc(50% - var(--rtgsh-fw) / 2 + 90px),
    #000 calc(50% + var(--rtgsh-fw) / 2 - 90px),
    transparent calc(50% + var(--rtgsh-fw) / 2));
          mask-image: linear-gradient(90deg,
    transparent calc(50% - var(--rtgsh-fw) / 2),
    #000 calc(50% - var(--rtgsh-fw) / 2 + 90px),
    #000 calc(50% + var(--rtgsh-fw) / 2 - 90px),
    transparent calc(50% + var(--rtgsh-fw) / 2));
}
.rtgsh-video,
.rtgsh-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rtgsh-video { opacity: 0; transition: opacity .35s ease; background: var(--black); }
.rtgsh.is-ready .rtgsh-video { opacity: 1; }
.rtgsh.is-ready .rtgsh-poster { opacity: 0; }

/* Escritorio (pantalla ancha): los tenis ocupan la franja central del video,
   así que se acerca 1.55x y se centra en esa franja (54% del alto). */
@media (min-aspect-ratio: 4/5) {
  .rtgsh-media { --rtgsh-fw: calc(100svh * 1.55 * .5625); }
  .rtgsh-video,
  .rtgsh-poster {
    inset: auto;
    left: 50%;
    top: 50%;
    width: auto;
    height: 155%;
    aspect-ratio: 9 / 16;
    object-fit: fill;
    transform: translate(-50%, -54%);
  }
}

.rtgsh-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,0) 38%),
    linear-gradient(to bottom, rgba(10,10,10,.75) 0%, rgba(10,10,10,0) 22%);
}

/* ─── capítulos de texto ─── */
.rtgsh-chapters {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.rtgsh-ch {
  position: absolute;
  bottom: 13vh;
  left: 24px;
  right: 24px;
  max-width: 560px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .8s cubic-bezier(.16,1,.3,1), visibility 0s linear .6s;
}
.rtgsh-ch.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity .6s ease .12s, transform .8s cubic-bezier(.16,1,.3,1) .12s, visibility 0s;
}

.rtgsh-eyebrow,
.rtgsh-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rtgsh-eyebrow::before,
.rtgsh-num::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.rtgsh-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, min(15vw, 13.5vh), 140px);
  line-height: .9;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.rtgsh-title .gold { color: var(--gold); }

.rtgsh-h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, min(12vw, 15vh), 120px);
  line-height: .92;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.rtgsh-copy {
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(240,237,232,.78);
  margin: 14px 0 22px;
  max-width: 34ch;
}
.rtgsh-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.rtgsh-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201,168,76,.45);
  transition: gap .3s ease, border-color .3s ease, color .3s ease;
}
@media (hover: hover) {
  .rtgsh-link:hover { gap: 16px; border-color: var(--gold-light); color: var(--gold-light); }
}

/* ─── HUD: riel de progreso ─── */
.rtgsh-hud {
  position: absolute;
  z-index: 4;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.rtgsh-rail {
  position: relative;
  width: 2px;
  height: 120px;
  background: rgba(240,237,232,.16);
  overflow: hidden;
}
.rtgsh-rail-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(0);
}
.rtgsh-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.rtgsh-count b { color: var(--white); font-weight: 600; }

/* ─── indicador "Desliza" ─── */
.rtgsh-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(240,237,232,.55);
  transition: opacity .4s ease;
  pointer-events: none;
}
.rtgsh-cue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: rtgsh-cue 1.8s ease-in-out infinite;
  transform-origin: top;
}
.rtgsh.is-scrolled .rtgsh-cue { opacity: 0; }
@keyframes rtgsh-cue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(14px); opacity: 0; }
}

/* ─── botón saltar ─── */
.rtgsh-skip {
  position: absolute;
  z-index: 5;
  right: 20px;
  bottom: 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(240,237,232,.7);
  padding: 10px 16px;
  border: 1px solid rgba(240,237,232,.22);
  border-radius: 999px;
  background: rgba(10,10,10,.45);
  backdrop-filter: blur(6px);
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
@media (hover: hover) {
  .rtgsh-skip:hover { color: var(--gold); border-color: var(--gold); background: rgba(10,10,10,.7); }
}

/* ─── escritorio ─── */
@media (min-width: 900px) {
  .rtgsh-ch { bottom: 50%; transform: translateY(calc(50% + 28px)); max-width: 460px; }
  .rtgsh-ch.is-active { transform: translateY(50%); }
  .rtgsh-ch--a { left: 7vw; right: auto; }
  .rtgsh-ch--b { right: 9vw; left: auto; }
  .rtgsh-hud { right: 32px; }
  .rtgsh-skip { right: 32px; bottom: 28px; }
  .rtgsh-shade {
    background:
      linear-gradient(to bottom, rgba(10,10,10,.75) 0%, rgba(10,10,10,0) 18%),
      linear-gradient(to top, rgba(10,10,10,.8) 0%, rgba(10,10,10,0) 18%);
  }
}

/* ─── sin movimiento: hero estático ─── */
@media (prefers-reduced-motion: reduce) {
  .rtgsh { height: auto; }
  .rtgsh-stage { position: relative; height: auto; min-height: 100svh; padding: 110px 0 60px; }
  .rtgsh-chapters { position: relative; display: flex; flex-direction: column; gap: 56px; }
  .rtgsh-ch { position: relative; bottom: auto; left: auto; right: auto; opacity: 1; visibility: visible; transform: none; padding: 0 24px; }
  .rtgsh-ch--a, .rtgsh-ch--b { left: auto; right: auto; }
  .rtgsh-cue, .rtgsh-hud, .rtgsh-word, .rtgsh-skip { display: none; }
  .rtgsh-ch, .rtgsh-ch.is-active { transition: none; }
  .rtgsh-cue i { animation: none; }
}
