/* =========================================================
   TRENIA — hero en una pantalla, cinta de datos y perfiles
   ========================================================= */

/* ---------- hero: siempre entra completo ---------- */
@media (min-width: 961px) {
  .hero {
    height: 100svh; min-height: 620px; max-height: 1080px;
    padding-top: clamp(80px, 11vh, 120px); padding-bottom: clamp(20px, 4vh, 56px);
    grid-template-rows: auto 1fr auto auto;
  }
  /* más aire: columnas separadas y bloques con respiro propio */
  .hero { grid-template-columns: 1.15fr .85fr; column-gap: clamp(72px, 8vw, 150px); }
  .hero { padding-bottom: clamp(32px, 6vh, 72px); }
  .hero__title { font-size: clamp(52px, min(7.6vw, 10.4vh), 136px); line-height: .9; margin: clamp(20px, 3.5vh, 48px) 0 0; align-self: end; }
  .hero__rail { --rw: 80%; }
  .hero__bottom { margin-top: clamp(24px, 4.6vh, 52px); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: clamp(22px, 4vh, 40px); }
  .hero__lede { font-size: clamp(15px, 2vh, 18px); line-height: 1.6; max-width: 500px; }
  .hero__cta { gap: 36px; }
  .hero__meta { grid-column: 1; grid-row: 1; }
  .hero__head { grid-row: 2; align-self: center; }
  .hero__bottom { grid-row: 4; }
  .hero__device { grid-column: 2; grid-row: 1 / 5; align-self: center; }
  .phone--hero { width: clamp(220px, 34vh, 300px); }
  .phone--hero .emom__ring { width: 66%; }
  .phone--hero .emom__read strong { font-size: clamp(44px, 6.4vh, 64px); }
}
@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 104px; }
  .hero__title { font-size: clamp(54px, 16.5vw, 110px); }
}

/* ---------- cinta: TRENIA en números ---------- */
.ticker { padding: 22px 0; }
.ticker__track { animation-duration: 60s; }
.ticker span { font: 600 18px/1 var(--f-d); letter-spacing: .14em; text-transform: uppercase; color: #8c94a1; gap: 18px; padding: 0 30px 0 0; }
.ticker span:nth-child(7n+1) { color: #8c94a1; }
.ticker span b { font: italic 800 44px/.8 var(--f-d); letter-spacing: -.01em; color: var(--bone); text-transform: none; }
.ticker span:nth-child(3n+1) b { color: var(--acc); transition: color .5s; }
.ticker span::after { margin-left: 30px; }

/* ---------- perfiles ---------- */
.roles { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 170px) var(--gut) 0; }
.roles__head { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 24px 60px; margin-bottom: clamp(48px, 6vw, 80px); }
.roles__head .kicker { grid-column: 1 / -1; margin: 0; }
/* el título usa todo el ancho para entrar en dos líneas; el texto de apoyo va debajo, a la derecha */
.roles__head .display { grid-column: 1 / -1; }
.roles__head .display em { white-space: nowrap; }
.roles__lede { grid-column: 1 / -1; margin: 0; color: #a9b0ba; font-size: 19px; max-width: 380px; justify-self: end; }

.switch-sentinel { height: 1px; }
.switch {
  --i: 0;
  position: sticky; top: 62px; z-index: 40;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line);
  transition: top .5s var(--ease);
}
html.nav-up .switch { top: 0; }
.switch::before { /* fondo a sangre cuando queda fijo */
  content: ""; position: absolute; inset: -1px 0; z-index: -1;
  background: rgba(8, 12, 18, .96);
  box-shadow: 0 0 0 100vmax rgba(8, 12, 18, .96); clip-path: inset(0 -100vmax); /* sangra sin ensanchar la página */
  opacity: 0; transition: opacity .35s;
}
.switch.is-stuck::before { opacity: 1; }
.switch__ink {
  position: absolute; left: 0; top: -1px; height: 3px; width: calc(100% / 3);
  background: var(--acc); box-shadow: 0 0 18px rgba(var(--acc-rgb), .6);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .6s var(--ease), background .5s;
}
.switch__btn {
  position: relative; text-align: left; padding: 30px 28px 32px 0;
  display: grid; gap: 8px; align-content: start;
  transition: padding .4s var(--ease);
}
.switch__btn + .switch__btn { padding-left: 28px; border-left: 1px solid var(--line); }
.switch__for { font: 600 12px/1 var(--f-d); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); transition: color .3s; }
.switch__who {
  font: italic 900 clamp(44px, 5.4vw, 84px)/.86 var(--f-d); text-transform: uppercase; letter-spacing: -.015em;
  color: transparent; -webkit-text-stroke: 1.5px #3b4452;
  transition: color .35s, -webkit-text-stroke-color .35s, font-size .4s var(--ease);
}
.switch__verb { font-size: 15px; color: #6c7482; max-width: 260px; transition: color .3s, opacity .3s; }
.switch__btn:hover .switch__who { -webkit-text-stroke-color: var(--bone); }
.switch__btn.is-on .switch__who { color: var(--bone); -webkit-text-stroke-color: var(--bone); }
.switch__btn.is-on .switch__for { color: var(--acc); }
.switch__btn.is-on .switch__verb { color: #b4bbc4; }
.switch__btn::after { /* flecha de "ver" */
  content: ""; position: absolute; right: 24px; bottom: 34px; width: 12px; height: 10px;
  background: var(--acc); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: rotate(180deg) scale(0); transition: transform .4s var(--ease);
}
.switch__btn.is-on::after { transform: rotate(180deg) scale(1); }

/* compacto cuando queda fijo */
.switch.is-stuck .switch__btn { padding-top: 14px; padding-bottom: 14px; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
.switch.is-stuck .switch__who { font-size: 26px; -webkit-text-stroke-width: 1px; }
.switch.is-stuck .switch__verb { display: none; }
.switch.is-stuck .switch__btn::after { bottom: 50%; margin-bottom: -5px; }

/* paneles */
.panels { position: relative; }
.panel[hidden] { display: none; }
.panel.is-enter { animation: panelIn .7s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } }
.panel > .sec { padding-left: 0; padding-right: 0; }
.panel > .sec:first-child { padding-top: clamp(60px, 7vw, 100px); }
.panel > .sec + .sec { padding-top: clamp(90px, 10vw, 140px); }
.panel .sec__head--split { display: block; }
.panel .story__stage { top: 70px; height: calc(100vh - 70px); }

/* footer sin planes */
.final { padding-top: clamp(100px, 12vw, 170px); }

@media (max-width: 960px) {
  .roles__head { grid-template-columns: 1fr; }
  .roles__lede { justify-self: start; }
  .switch { top: 65px; }
  .gym__brand { grid-template-columns: 1fr; }
  .switch__btn, .switch__btn + .switch__btn { padding: 18px 10px 20px; }
  .switch__btn:first-child { padding-left: 0; }
  .switch__who { font-size: clamp(24px, 7.4vw, 44px); -webkit-text-stroke-width: 1px; }
  .switch__for { font-size: 10px; letter-spacing: .18em; }
  .switch__verb, .switch__btn::after { display: none; }
  .switch.is-stuck .switch__btn { padding-top: 12px; padding-bottom: 12px; display: grid; grid-template-columns: 1fr; gap: 2px; }
  .switch.is-stuck .switch__for { display: none; }
  .switch.is-stuck .switch__who { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel.is-enter { animation: none; }
}
