/* ===================================================================
   CINEMATIC SCROLL SCRUB MODULE (ssq-scrub) - SCOPED STYLES
   All rules strictly scoped under .ssq-scrub. Zero global side effects.
   =================================================================== */

.ssq-scrub,
.ssq-scrub * {
  box-sizing: border-box;
}

.ssq-scrub {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

/* 900vh outer scroll track */
.ssq-scrub .ssq-scrub-track {
  position: relative;
  width: 100%;
  height: 900vh;
  margin: 0;
  padding: 0;
}

/* 100vh sticky viewport container */
.ssq-scrub .ssq-scrub-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #0D0B08;
}

/* Canvas layer */
.ssq-scrub .ssq-scrub-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Radial Vignette Overlay */
.ssq-scrub .ssq-scrub-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.55) 90%);
  z-index: 2;
}

/* 2px Loading bar at bottom */
.ssq-scrub .ssq-scrub-loader {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: #C9A227;
  width: 0%;
  z-index: 10;
  pointer-events: none;
  transition: width 0.1s linear, opacity 0.4s ease;
}

/* Thin vertical progress indicator on right edge */
.ssq-scrub .ssq-scrub-progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 0%;
  background-color: #C9A227;
  opacity: 0.75;
  z-index: 10;
  pointer-events: none;
  transition: height 0.05s linear;
}

/* Sequential Text Waypoints */
.ssq-scrub .ssq-scrub-waypoint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 800px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s linear;
  pointer-events: none;
  z-index: 5;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.ssq-scrub .ssq-scrub-waypoint[data-waypoint="4"] {
  z-index: 6;
}

/* Eyebrow Label */
.ssq-scrub .ssq-scrub-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #E8C468;
  margin-bottom: 8px;
}

/* Headline */
.ssq-scrub .ssq-scrub-headline {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto;
}

/* Body / Supporting Line */
.ssq-scrub .ssq-scrub-body {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 12px auto 0;
}

/* CTA Button in Waypoint 4 */
.ssq-scrub .ssq-scrub-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  background-color: #C9A227;
  color: #0D0B08;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-shadow: none;
}

.ssq-scrub .ssq-scrub-cta:hover {
  transform: scale(1.05);
  background-color: #d8af2c;
  box-shadow: 0 6px 25px rgba(201, 162, 39, 0.4);
}

.ssq-scrub .ssq-scrub-cta:active {
  transform: scale(0.98);
}

/* Bienvenida en el waypoint 1: logo + botones */
.ssq-scrub .ssq-scrub-logo {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.ssq-scrub .ssq-scrub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  pointer-events: auto;
}
