/* ===== Intro cinematográfica TradeLab (canvas real) ===== */
.tl-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(120% 90% at 50% 15%, #10141c 0%, #070910 55%, #03040a 100%);
  color: #f4f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  animation: tl-intro-in 0.5s ease both;
}
.tl-intro.tl-intro-salida {
  animation: tl-intro-out 0.9s cubic-bezier(0.7, 0, 0.25, 1) both;
}
@keyframes tl-intro-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tl-intro-out {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.15); filter: blur(16px); visibility: hidden; }
}

.tl-intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: tl-cam 14s ease-in-out infinite alternate;
}
@keyframes tl-cam {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.12) translateY(-1.5%); }
}

/* ===== bloque de texto ===== */
.tl-intro-escena {
  position: relative;
  z-index: 3;
  max-width: 880px;
  padding: 0 28px;
  text-align: center;
  animation: tl-escena-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tl-escena-in {
  from { opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.tl-intro-flash-scene {
  position: absolute;
  inset: -40vh -50vw;
  background: radial-gradient(closest-side, rgba(255, 170, 80, 0.35), transparent 70%);
  pointer-events: none;
  animation: tl-flash 0.9s ease-out both;
}
@keyframes tl-flash {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.5); }
}

.tl-intro-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ff9a3c;
  margin: 0 0 18px;
  animation: tl-kicker 0.8s ease both;
}
@keyframes tl-kicker {
  from { opacity: 0; letter-spacing: 0.7em; }
  to { opacity: 1; letter-spacing: 0.32em; }
}

.tl-intro-titulo {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tl-intro-titulo .tl-l {
  display: block;
}
.tl-intro-titulo .tl-em {
  font-style: italic;
}
.tl-intro-titulo .tl-em .tl-pal {
  background: linear-gradient(100deg, #ffb45c, #ff6a14);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tl-pal {
  display: inline-block;
  animation: tl-pal-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tl-pal-in {
  from { opacity: 0; transform: translateY(0.5em) rotateX(-70deg) scale(1.15); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.tl-intro-sub {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: rgba(238, 242, 250, 0.72);
  animation: tl-sub-in 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tl-sub-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* pasos */
.tl-intro-pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}
.tl-paso {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 154, 60, 0.22);
  backdrop-filter: blur(8px);
  animation: tl-paso-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tl-paso-in {
  from { opacity: 0; transform: translateY(26px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.tl-paso b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #ff9a3c;
  margin-bottom: 8px;
}
.tl-paso p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(238, 242, 250, 0.78);
}

/* CTA */
.tl-intro-cta {
  margin-top: 34px;
  padding: 16px 34px;
  border: 0;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #12060a;
  background: linear-gradient(100deg, #ffb45c, #ff6a14);
  cursor: pointer;
  box-shadow: 0 14px 42px rgba(255, 106, 20, 0.45);
  animation: tl-cta-in 0.7s 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both, tl-cta-pulse 2.4s 1.6s ease-in-out infinite;
  transition: transform 0.18s ease;
}
.tl-intro-cta:hover { transform: translateY(-2px) scale(1.03); }
@keyframes tl-cta-in {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to { opacity: 1; transform: none; }
}
@keyframes tl-cta-pulse {
  0%, 100% { box-shadow: 0 14px 42px rgba(255, 106, 20, 0.45); }
  50% { box-shadow: 0 14px 62px rgba(255, 106, 20, 0.75); }
}

/* progreso */
.tl-intro-progreso {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.tl-intro-progreso i {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.4s ease, width 0.4s ease;
}
.tl-intro-progreso i.on {
  background: linear-gradient(90deg, #ffb45c, #ff6a14);
  width: 34px;
}

/* saltar */
.tl-intro-saltar {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: rgba(238, 242, 250, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}
.tl-intro-saltar:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .tl-intro-escena { padding: 0 20px; }
  .tl-intro-pasos { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .tl-paso { padding: 12px 14px; }
  .tl-paso p { font-size: 0.84rem; }
  .tl-intro-cta { margin-top: 26px; padding: 14px 26px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-intro *, .tl-intro { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
