/* Primera sección de TechLab basada en la composición del hero de Inicio. */
@keyframes tl-home-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.techlab-page .tl-home-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px 0 96px;
  background:
    radial-gradient(circle at 18% 16%, rgba(24, 83, 188, 0.24), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(20, 54, 130, 0.3), transparent 38%),
    radial-gradient(circle at 84% 92%, rgba(255, 85, 56, 0.1), transparent 32%),
    linear-gradient(135deg, #02081f 0%, #06103c 34%, #09144c 62%, #030718 100%);
}

/* La sección inicial replica la entrada escalonada del Inicio. */
.techlab-page .tl-home-hero.tl-section-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.techlab-page .tl-home-hero::before {
  left: -18%;
  right: -18%;
  top: auto;
  bottom: -26%;
  height: 48%;
  border-radius: 48% 52% 0 0 / 78% 82% 0 0;
  background: linear-gradient(104deg, rgba(20, 43, 121, 0.22), rgba(6, 13, 48, 0.4) 48%, rgba(255, 85, 56, 0.07));
  mask-image: none;
  transform: rotate(-4deg);
}

.techlab-page .tl-home-hero::after {
  top: -22%;
  right: -26%;
  bottom: auto;
  width: 78%;
  height: 48%;
  border: 0;
  border-radius: 0 0 0 78% / 0 0 0 92%;
  background: linear-gradient(122deg, rgba(12, 28, 88, 0.24), rgba(9, 15, 55, 0.38) 58%, rgba(255, 85, 56, 0.08));
  box-shadow: none;
  transform: rotate(-8deg);
}

.techlab-page .tl-home-hero .tl-hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 64px;
}

.tl-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #38d5ff;
  font-size: 15px;
  font-weight: 800;
  animation: tl-home-fade-up .9s cubic-bezier(.16, 1, .3, 1) .16s both;
}

.tl-home-eyebrow::before {
  width: 30px;
  height: 3px;
  border-radius: 99px;
  content: "";
  background: #ff5538;
}

.techlab-page .tl-home-hero h1 {
  max-width: 720px;
  font-size: 64px;
  line-height: 1.04;
  animation: tl-home-fade-up .95s cubic-bezier(.16, 1, .3, 1) .28s both;
}

.tl-home-gradient {
  color: transparent;
  background: linear-gradient(90deg, #38d5ff, #fff 42%, #7ca7ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.techlab-page .tl-home-hero .tl-hero-lead {
  max-width: 670px;
  margin-top: 26px;
  color: #d9e3ff;
  font-size: 22px;
  line-height: 1.55;
  animation: tl-home-fade-up .95s cubic-bezier(.16, 1, .3, 1) .4s both;
}

.techlab-page .tl-home-hero .tl-actions {
  animation: tl-home-fade-up .95s cubic-bezier(.16, 1, .3, 1) .52s both;
}

.tl-mobile-hero-image { display: none; }

.tl-home-showcase {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(42, 79, 166, 0.48), rgba(7, 19, 69, 0.18) 48%, rgba(2, 8, 31, 0.34)),
    linear-gradient(135deg, #102a78 0%, #07194f 52%, #020a2b 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: tl-home-fade-up 1.05s cubic-bezier(.16, 1, .3, 1) .34s both;
}

.tl-home-showcase:hover {
  transform: translateY(-8px);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.32);
}

.tl-home-video-frame {
  position: absolute;
  inset: 30px;
  z-index: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: rgba(3, 10, 40, 0.42);
}

.tl-home-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.tl-home-video-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(6, 21, 69, 0.14), rgba(6, 21, 69, 0.54)), radial-gradient(circle at 82% 18%, rgba(56, 213, 255, 0.2), transparent 34%);
}

.tl-home-video-ribbon {
  position: absolute;
  z-index: 3;
  top: 54px;
  left: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 10, 40, 0.34);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  backdrop-filter: blur(12px);
}

.tl-home-video-ribbon::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: #38d5ff;
  box-shadow: 0 0 0 7px rgba(56, 213, 255, 0.13);
}

@media (max-width: 1199px) {
  .techlab-page .tl-home-hero .tl-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .techlab-page .tl-home-hero h1 { font-size: 58px; }

  .techlab-page .tl-home-hero .tl-home-showcase {
    width: 100%;
    min-height: 540px;
  }
}

@media (max-width: 767px) {
  .techlab-page .tl-home-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 118px 24px 88px;
    background:
      linear-gradient(90deg, rgba(2, 8, 31, 0.97), rgba(6, 16, 60, 0.92) 52%, rgba(3, 7, 24, 0.82)),
      url("../techlab/techlab-optimiza-tareas.webp") center / cover no-repeat;
  }

  .techlab-page .tl-home-hero::before { display: none; }

  .techlab-page .tl-home-hero::after { display: none; }
  .techlab-page .tl-home-hero .tl-container { width: 100%; }
  .techlab-page .tl-home-hero .tl-hero-grid { display: block; }
  .tl-home-eyebrow { margin-bottom: 24px; font-size: 17px; }
  .techlab-page .tl-home-hero h1 { max-width: 390px; font-size: 40px; line-height: 1.1; }
  .techlab-page .tl-home-hero .tl-hero-lead { max-width: 390px; margin-top: 34px; font-size: 23px; line-height: 1.28; }
  .techlab-page .tl-home-hero .tl-actions { margin-top: 44px; }
  .techlab-page .tl-home-hero .tl-btn { width: 220px; }
  .tl-mobile-hero-image,
  .tl-home-showcase { display: none; }
  .techlab-page .tl-home-hero .tl-btn-secondary { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-home-showcase { transition: none; }
}
