/* ===========================================
   ESTRUCTURA DIVI ADAPTADA
   =========================================== */
.jig-scroll-hero-section, .jig-sticky-row, .jig-scroll-hero__video {
  box-sizing: border-box;
}

/* SECCIÓN 1: Pista de Scroll */
.jig-scroll-hero-section {
  position: relative;
  height: 250vh;
  width: 100vw;
  background: var(--neutral100);
  margin-left: calc(-50vw + 50%);
  padding: 0 !important;
  overflow: visible !important;
}

/* FILA 1: Contenedor Fijo (Sticky) */
.jig-sticky-row {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh;
  overflow: hidden;
  background: var(--neutral100);
  z-index: 2;
  padding: 0 !important;
  margin: 0 !important;
  background-image: url("/wp-content/uploads/2026/05/ampersand-intro.svg");
  background-repeat: no-repeat;
  background-position: right 0px bottom 0px;
  background-size: auto 800px;
}

/* SECCIÓN 2: Se coloca debajo del Sticky esperando a ser revelada */
.jig-transition-section {
  position: relative;
  min-height: 100vh;
  margin-top: -70vh !important;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px !important;
}

/* ===========================================
   ELEMENTOS INTERNOS (Video y Textos)
   =========================================== */
.jig-scroll-hero__video {
  position: absolute;
  overflow: hidden;
  width: 44.68vw;
  height: auto;
  aspect-ratio: 2 / 1;
  left: 12.85vw;
  top: 28.18vh;
  z-index: 2;
  will-change: width, height, top, left, opacity;
  cursor: none !important;
}

.jig-scroll-hero__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ─── CUSTOM CURSOR SOUND ─── */
.jig-sound-cursor {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.jig-sound-cursor--visible {
  opacity: 1;
}

.jig-sound-cursor__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.jig-sound-cursor__text {
  color: #fff;
  font-family: var(--typo-base);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.jig-sound-cursor--hidden .jig-sound-cursor__text {
  display: none;
}

/* ─── TEXTOS ─── */
.jig-scroll-hero__title h1 {
  position: absolute;
  top: 37vh;
  left: 60vw;
  z-index: 3;
  color: var(--color-text-emphasis);
  font-family: var(--typo-base);
  font-weight: 400;
  font-size: clamp(18px, 1.64vw, 28px);
  line-height: 1;
  letter-spacing: -0.01em;
  will-change: opacity, transform;
}

.jig-scroll-hero__title span {
  display: block;
}

.jig-scroll-hero__description h2 {
  position: absolute;
  top: 70vh;
  left: 4.63vw;
  max-width: 36.1vw;
  z-index: 3;
  color: var(--color-text-base);
  font-family: var(--typo-base);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-indent: 72px;
  will-change: opacity, transform;
}

.jig-scroll-hero__badge {
  position: absolute;
  top: 76vh;
  left: 86.7vw;
  z-index: 3;
  color: var(--color-text-base);
  font-family: var(--typo-base);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  will-change: opacity, transform;
}

/* ─── REVEAL TEXT ─── */
.reveal-text .char {
  opacity: 0.15;
  transition: opacity 0.25s ease;
  display: inline;
}

.reveal-text .char.visible {
  opacity: 1;
}

/* ---------------------------------------------------------
   TABLET / MOBILE (<=1180px)
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  body {
    overflow-x: hidden;
  }

  .jig-scroll-hero-section {
    height: calc(100svh - 72px) !important;
    padding: 40px 24px 0 24px !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .jig-sticky-row {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 0 !important;
    box-sizing: border-box;
    top: 0;
  }

  .jig-transition-section {
    margin-top: 0 !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .jig-scroll-hero-section .jig-sticky-row .et_pb_column,
  .jig-scroll-hero-section .jig-sticky-row .et_pb_column .et_pb_code,
  .jig-scroll-hero-section .jig-sticky-row .et_pb_column .et_pb_code .et_pb_code_inner {
    height: 100%;
  }

  .jig-scroll-hero__video {
    position: relative !important;
    width: 100% !important;
    max-width: 80% !important;
    height: auto !important;
    aspect-ratio: 2 / 1;
    left: 0 !important;
    top: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    order: 1;
    cursor: pointer !important;
  }

  .jig-scroll-hero__video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .jig-sound-cursor {
    display: none !important;
  }

  .jig-scroll-hero__title h1 {
    position: relative !important;
    top: 50px !important;
    right: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    font-size: 28px;
    order: 2;
    width: 100%;
  }

  .jig-scroll-hero__description h2 {
    top: inherit !important;
    bottom: 7vh !important;
    left: auto !important;
    max-width: 100%;
    opacity: 1 !important;
    transform: none !important;
    font-size: clamp(18px, 3.5vw, 28px);
    order: 3;
    width: 60%;
  }

  .jig-scroll-hero__badge {
    top: inherit !important;
    bottom: 2vh !important;
    left: auto !important;
    width: 100%;
    align-self: flex-start;
    opacity: 1 !important;
    transform: none !important;
    font-size: clamp(12px, 2vw, 16px);
    text-align: right;
    order: 4;
  }
}

@media (max-width: 980px) {
  .jig-transition-section {
    padding: 0 24px !important;
  }
}

@media (max-width: 767px) {
  .jig-transition-section {
    padding: 0 16px !important;
  }
}

/* ===========================================
   MÓVIL PEQUEÑO (<=600px)
   =========================================== */
@media (max-width: 600px) {
  .jig-scroll-hero-section {
    padding: 40px 20px 0 !important;
  }

  .jig-scroll-hero__title {
    position: relative;
  }

  .jig-scroll-hero__title h1 {
    left: initial;
    position: absolute !important;
    width: 160px;
  }

  .jig-scroll-hero__description h2 {
    text-indent: 40px;
    width: 100%;
    font-size: clamp(16px, 4.5vw, 22px);
  }
}