/* ==========================================================================
   TWL Values Experience — Apple-style scroll storytelling
   Scoped under .twl-values, inherits tokens from .twl
   ========================================================================== */

/* --- FASE 1: Intro cinemática --- */

.twl-values__intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--twl-space-section) 0;
}

.twl-values__intro-inner {
  max-width: var(--twl-container-narrow);
  margin: 0 auto;
}

.twl-values__eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--twl-accent);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
}

.twl-values__title {
  font-family: var(--twl-font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 32px;
}

.twl-values__title-line {
  display: block;
  clip-path: inset(0 100% 0 0);
}

.twl-values__lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--twl-text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

/* --- FASE 2: Scroll storytelling --- */

.twl-values__storytelling {
  padding-bottom: var(--twl-space-section);
}

.twl-values__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}

/* Visual sticky (izquierda) */
.twl-values__visual {
  position: sticky;
  top: 20vh;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.twl-values__visual-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.twl-values__big-number {
  font-family: var(--twl-font-display);
  font-size: clamp(120px, 15vw, 200px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--twl-border);
  transition: -webkit-text-stroke-color var(--twl-transition);
  user-select: none;
}

.twl-values__big-number.is-active {
  -webkit-text-stroke-color: var(--twl-accent);
}

.twl-values__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--twl-accent), transparent 70%);
  opacity: 0.05;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

/* Cards (derecha) */
.twl-values__cards {
  display: flex;
  flex-direction: column;
}

.twl-values__card {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  opacity: 0.15;
  transition: opacity var(--twl-transition);
}

.twl-values__card.is-active {
  opacity: 1;
}

.twl-values__card-number {
  font-family: var(--twl-font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--twl-accent);
  margin-bottom: 16px;
  display: block;
}

.twl-values__card-title {
  font-family: var(--twl-font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
}

.twl-values__card-text {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--twl-text-muted);
  max-width: 480px;
  margin: 0 0 24px;
}

.twl-values__card-accent {
  width: 40px;
  height: 3px;
  background: var(--twl-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.twl-values__card.is-active .twl-values__card-accent {
  transform: scaleX(1);
}

/* --- Mobile (≤768px) --- */

@media (max-width: 768px) {
  .twl-values__intro {
    min-height: 70vh;
  }

  .twl-values__layout {
    grid-template-columns: 1fr;
  }

  .twl-values__visual {
    display: none;
  }

  .twl-values__card {
    min-height: auto;
    opacity: 1;
    padding: 32px 0;
    border-bottom: 1px solid var(--twl-border);
  }

  .twl-values__card:last-child {
    border-bottom: none;
  }

  .twl-values__card-accent {
    transform: scaleX(1);
  }
}

/* --- Reduced motion fallback --- */

@media (prefers-reduced-motion: reduce) {
  .twl-values__title-line {
    clip-path: none;
  }

  .twl-values__eyebrow,
  .twl-values__lead {
    opacity: 1;
    transform: none;
  }

  .twl-values__card {
    opacity: 1;
  }

  .twl-values__card-accent {
    transform: scaleX(1);
  }
}

/* --- No-JS / no-GSAP fallback --- */

.twl-values:not(.twl-gsap-active *) .twl-values__title-line,
.twl-values:not(.is-animated) .twl-values__title-line {
  clip-path: none;
}

.twl-values:not(.twl-gsap-active *) .twl-values__eyebrow,
.twl-values:not(.twl-gsap-active *) .twl-values__lead,
.twl-values:not(.is-animated) .twl-values__eyebrow,
.twl-values:not(.is-animated) .twl-values__lead {
  opacity: 1;
  transform: none;
}

.twl-values:not(.twl-gsap-active *) .twl-values__card,
.twl-values:not(.is-animated) .twl-values__card {
  opacity: 1;
}

.twl-values:not(.twl-gsap-active *) .twl-values__card-accent,
.twl-values:not(.is-animated) .twl-values__card-accent {
  transform: scaleX(1);
}
