/* =====================================================================
   transformacion.css · Página /transformacion (videos de estrategia)
   Reutiliza los tokens y componentes globales de styles.css
   (nav, btn, hero__aurora, eyebrow, section, wrap, mono, footer, form).
   Aquí sólo van los componentes propios: hero a dos columnas,
   bandas por línea y el reproductor de video de marca.
   ===================================================================== */

/* ---------- HERO ---------- */
.tx-hero {
  position: relative;
  background: var(--primary-deep);
  color: #fff;
  overflow: hidden;
  padding: clamp(120px, 16vh, 200px) 0 clamp(72px, 10vh, 120px);
}
.tx-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tx-hero__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.tx-hero__title .w { display: inline-block; margin-right: .28em; }
.tx-accent { color: var(--accent); }
.tx-hero__sub {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,.78);
}

/* línea-chips */
.tx-lines {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tx-lines a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.tx-lines a .mono { color: var(--accent); font-size: 12px; }
.tx-lines a:hover { border-color: var(--accent); background: rgba(106,0,250,.18); color: #fff; }

/* ---------- REPRODUCTOR DE VIDEO ---------- */
.tx-player {
  margin: 0;
  width: 100%;
}
.tx-player__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #0E0420;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  text-align: left;
  color: #fff;
}
.tx-player__frame::after {
  /* viñeta para legibilidad del meta */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,4,24,.05) 0%, rgba(10,4,24,.18) 45%, rgba(10,4,24,.82) 100%);
  z-index: 1;
}
.tx-poster {
  position: absolute;
  inset: 0;
  display: block;
}
.tx-poster svg { width: 100%; height: 100%; display: block; }
.tx-poster--manifesto    { background: radial-gradient(120% 120% at 50% 35%, #221046 0%, #0E0420 70%); }
.tx-poster--consultoria  { background: radial-gradient(120% 120% at 65% 30%, #1E0F3F 0%, #0E0420 72%); }
.tx-poster--cultura      { background: radial-gradient(120% 120% at 35% 35%, #24114A 0%, #0E0420 72%); }
.tx-poster--herramientas { background: radial-gradient(120% 120% at 55% 40%, #1C0E3B 0%, #0E0420 72%); }

/* onda animada del manifiesto */
.tx-wave path {
  stroke-dasharray: 6 10;
  animation: txWave 2.6s linear infinite;
}
@keyframes txWave { to { stroke-dashoffset: -64; } }

/* botón play */
.tx-player__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(106,0,250,.92);
  color: #fff;
  padding-left: 4px;
  box-shadow: 0 12px 36px rgba(106,0,250,.5);
  transition: transform var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.tx-player__frame:hover .tx-player__play { transform: translate(-50%, -50%) scale(1.08); }
.tx-player__frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* meta (tag, título, duración) */
.tx-player__meta {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 3vw, 28px);
  right: clamp(18px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tx-player__tag {
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.7);
}
.tx-player__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.15;
}
.tx-player__time { font-size: 12px; color: rgba(255,255,255,.6); }

/* estado "Próximamente" */
.tx-player.is-soon .tx-player__play {
  background: rgba(255,255,255,.12);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.25);
}
.tx-player.is-soon .tx-player__frame { cursor: default; }

/* hero player un poco más prominente */
.tx-player--hero .tx-player__frame { box-shadow: 0 40px 100px -30px rgba(0,0,0,.85); }

/* embed inyectado al reproducir */
.tx-player__embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  display: block;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}

/* ---------- INTRO ---------- */
.tx-intro { padding-bottom: clamp(20px, 4vw, 40px); }

/* ---------- BANDAS POR LÍNEA ---------- */
.tx-line { overflow: hidden; }
.tx-line--alt { background: var(--surface-alt); }
.tx-line__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tx-line__grid--rev .tx-line__copy { order: 2; }
.tx-line__grid--rev .tx-player { order: 1; }
.tx-line__lead {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
}
.tx-line__lead strong { color: var(--ink); font-weight: 600; }
.tx-line__bullets {
  list-style: none;
  margin: 22px 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.tx-line__bullets li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink);
}
.tx-line__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

/* tarjetas de herramientas */
.tx-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 4px;
}
.tx-tool {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.tx-tool:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(106,0,250,.5);
}
.tx-tool__name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.tx-tool__desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.tx-tool__cta { font-size: 12px; color: var(--accent); margin-top: 2px; }

/* ---------- CIERRE ---------- */
.tx-close { background: var(--primary-deep); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .tx-hero__inner,
  .tx-line__grid { grid-template-columns: 1fr; }
  .tx-line__grid--rev .tx-line__copy { order: 1; }
  .tx-line__grid--rev .tx-player { order: 2; }
  .tx-tools { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tx-wave path { animation: none; }
}
