/* ==========================================================================
   Zeltron Academy — Página de captación (/informacion/)
   Video persuasivo + cierre que lleva al formulario de inscripción.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header simplificado
   -------------------------------------------------------------------------- */

.zt-lead-header .zt-header__inner {
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Hero de captación
   -------------------------------------------------------------------------- */

.zt-lead-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: calc(var(--zt-header-h) + clamp(1rem, 2vw, 1.5rem)) 0 clamp(1rem, 1.8vw, 1.4rem);
  background: radial-gradient(115% 110% at 78% 0%, #0b4f96 0%, #063a70 45%, #03254a 100%);
  color: var(--zt-white);
}

.zt-lead-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zt-lead-hero__mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 65% at 50% 25%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 25%, #000 20%, transparent 100%);
}

.zt-lead-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.zt-lead-hero__glow--blue {
  top: -16%;
  right: -10%;
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  background: rgba(19, 135, 240, 0.55);
}

.zt-lead-hero__glow--red {
  bottom: -22%;
  left: -12%;
  width: 30vw;
  height: 30vw;
  max-width: 380px;
  max-height: 380px;
  background: rgba(255, 0, 0, 0.28);
}

.zt-lead-hero__inner {
  position: relative;
  z-index: 1;
}

.zt-lead-hero__intro {
  max-width: none;
}

/* Texto distribuido en el ancho del contenedor: relato a la izquierda y
   datos clave del programa a la derecha. */
.zt-lead-hero__meta {
  display: grid;
  gap: 0.7rem 2.25rem;
  margin-top: 0.85rem;
}

.zt-lead-hero__title {
  margin: 0;
  font-family: var(--zt-font-display);
  font-size: clamp(1.72rem, 1.05rem + 2.1vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--zt-white);
  text-wrap: balance;
}

.zt-lead-hero__title-lead {
  display: block;
  color: var(--zt-white);
}

.zt-lead-hero__title-accent {
  display: block;
  margin-top: 0.14em;
  background: linear-gradient(100deg, #7cc0f8 0%, #d8ecff 45%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.zt-lead-hero__lede {
  max-width: 60ch;
  margin-top: 0;
  font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.04rem);
  line-height: 1.55;
  color: rgba(216, 236, 255, 0.88);
}

.zt-lead-hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(224, 240, 255, 0.92);
}

.zt-lead-hero__bullets li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.zt-lead-hero__bullets .zt-icon {
  width: 17px;
  height: 17px;
  color: #8ed0ff;
}

/* Botón de apertura del formulario: debajo del video en móvil y flotando
   sobre el video, abajo y centrado, en escritorio. */

.zt-lead-hero__media {
  position: relative;
}

.zt-lead-hero__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(1rem, 1.8vw, 1.4rem);
}

.zt-lead-hero__cta .btn-zt {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Bloque de video
   -------------------------------------------------------------------------- */

.zt-video-block {
  margin-top: clamp(1rem, 1.8vw, 1.45rem);
}

.zt-video-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.zt-video-block__head .zt-pill--soft {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(226, 241, 255, 0.95);
}

.zt-video-block__duration {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(190, 216, 240, 0.75);
}

.zt-video {
  position: relative;
  margin: 0;
  border-radius: var(--zt-radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: #04223d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--zt-shadow-lg);
  aspect-ratio: 16 / 9;
  /* El texto y la nota son hijos en flujo: se apilan al pie sin taparse y el
     arte del video conserva toda la altura restante. */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.zt-video__bg {
  position: absolute;
  inset: 0;
  background-color: #04223d;
  background-size: cover;
  background-position: center;
}

.zt-video__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 45%, #000 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 10%, transparent 100%);
}

.zt-video__art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -56%);
  color: rgba(124, 192, 248, 0.12);
}

.zt-video__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 24, 44, 0.15) 0%, rgba(3, 24, 44, 0.72) 100%);
}

/* Con portada real se retira el arte decorativo y se aclara el velo, para
   que la foto se vea antes de que la persona pulse reproducir. */
.zt-video--poster .zt-video__grid,
.zt-video--poster .zt-video__art {
  display: none;
}

.zt-video--poster .zt-video__shade {
  /* El velo se concentra arriba, donde va el t?tulo, y abajo, donde se apoya
     el bot?n: el centro queda limpio para que se lea la foto. */
  background: linear-gradient(
    180deg,
    rgba(3, 24, 44, 0.72) 0%,
    rgba(3, 24, 44, 0.16) 26%,
    rgba(3, 24, 44, 0.02) 52%,
    rgba(3, 24, 44, 0.82) 100%
  );
}

.zt-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 84px);
  height: clamp(64px, 8vw, 84px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--zt-white);
  color: var(--zt-blue);
  box-shadow: 0 22px 46px -18px rgba(3, 24, 44, 0.85);
  cursor: pointer;
  transition: transform 0.25s var(--zt-ease), box-shadow 0.25s var(--zt-ease),
    background-color 0.25s var(--zt-ease);
}

.zt-video__play::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation: zt-video-pulse 2.8s var(--zt-ease) infinite;
}

.zt-video__play .zt-icon {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.zt-video__play:hover,
.zt-video__play:focus-visible {
  background: var(--zt-white);
  color: var(--zt-red);
  transform: translate(-50%, -50%) scale(1.06);
}

.zt-video__play:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

@keyframes zt-video-pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(1.28);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

.zt-video__caption {
  position: relative;
  z-index: 1;
  padding: clamp(0.85rem, 1.9vw, 1.25rem);
  padding-bottom: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zt-video__title {
  margin: 0;
  max-width: 30ch;
  font-family: var(--zt-font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.28rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--zt-white);
}

.zt-video__notice {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 0, 0, 0.9);
  color: var(--zt-white);
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
}

.zt-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

/* Pastilla para silenciar o devolver el audio del video. */
.zt-video__sound {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(4, 34, 61, 0.8);
  color: var(--zt-white);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s var(--zt-ease), border-color 0.2s var(--zt-ease);
}

.zt-video__sound[hidden] {
  display: none;
}

.zt-video__sound .zt-icon {
  width: 15px;
  height: 15px;
}

.zt-video__sound:hover,
.zt-video__sound:focus-visible {
  background: rgba(4, 34, 61, 0.96);
  border-color: rgba(255, 255, 255, 0.6);
}

.zt-video__sound:focus-visible {
  outline: 2px solid var(--zt-white);
  outline-offset: 2px;
}

/* Mientras el navegador mantenga el audio bloqueado, el boton avisa. */
.zt-video__sound[aria-pressed="false"] {
  border-color: rgba(255, 255, 255, 0.65);
  background: #d10f18;
  animation: zt-sound-pulso 2s var(--zt-ease) infinite;
}

.zt-video__sound[aria-pressed="false"]:hover,
.zt-video__sound[aria-pressed="false"]:focus-visible {
  background: #e8181f;
  border-color: var(--zt-white);
}

@keyframes zt-sound-pulso {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }

  60% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zt-video__sound[aria-pressed="false"] {
    animation: none;
  }
}

.zt-video.is-playing .zt-video__bg,
.zt-video.is-playing .zt-video__play,
.zt-video.is-playing .zt-video__caption,
.zt-video.is-playing .zt-video__notice {
  display: none;
}

/* --------------------------------------------------------------------------
   Fila de confianza
   -------------------------------------------------------------------------- */

.zt-lead-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: clamp(1rem, 1.8vw, 1.4rem) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(206, 228, 248, 0.85);
}

.zt-lead-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.zt-lead-trust__mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(47, 158, 99, 0.22);
  color: #6fe3a6;
}

.zt-lead-trust__mark .zt-icon {
  width: 12px;
  height: 12px;
}

/* --------------------------------------------------------------------------
   Footer reducido
   -------------------------------------------------------------------------- */

.zt-lead-footer {
  padding: 2.25rem 0;
  background: var(--zt-white);
  border-top: 1px solid var(--zt-line);
}

.zt-lead-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.zt-lead-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.zt-lead-footer__text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--zt-muted);
}

.zt-lead-footer__legal {
  margin: 0;
  font-size: 0.74rem;
  color: var(--zt-muted);
}

.zt-lead-footer__demo {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--zt-muted);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .zt-lead-footer__legal {
    max-width: 42ch;
    text-align: right;
  }
}

/* --------------------------------------------------------------------------
   CTA móvil de la página de captación
   -------------------------------------------------------------------------- */

.zt-mobile-cta--lead {
  justify-content: center;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
}

/* --------------------------------------------------------------------------
   Ajustes responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .zt-video {
    aspect-ratio: 16 / 11;
  }
}

@media (min-width: 992px) {
  /* Texto en dos bloques dentro del ancho completo del contenedor. */
  .zt-lead-hero__meta {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .zt-lead-hero__bullets {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* La leyenda sube al borde superior para dejar libre el pie del video, donde
     flota el botón. */
  .zt-video {
    justify-content: space-between;
    /* El hero completo (texto, video y botón) cabe en la pantalla. */
    width: 100%;
    max-height: clamp(280px, calc(100vh - 27rem), 640px);
    max-height: clamp(280px, calc(100svh - 27rem), 640px);
  }

  .zt-video__shade {
    background: linear-gradient(
      180deg,
      rgba(3, 24, 44, 0.76) 0%,
      rgba(3, 24, 44, 0.12) 42%,
      rgba(3, 24, 44, 0.5) 100%
    );
  }

  /* Botón flotante sobre el video, abajo y centrado. Se mantiene por encima
     de la barra de controles nativa para no taparla. */
  .zt-lead-hero__cta {
    position: absolute;
    right: 0;
    bottom: 4.4rem;
    left: 0;
    z-index: 3;
    margin: 0;
    pointer-events: none;
  }

  .zt-lead-hero__cta .btn-zt {
    pointer-events: auto;
    box-shadow: 0 20px 44px -16px rgba(3, 24, 44, 0.92);
  }
}

@media (max-width: 575.98px) {
  .zt-lead-hero {
    padding-top: calc(var(--zt-header-h) + 1.5rem);
  }

  .zt-video {
    aspect-ratio: 4 / 3;
    border-radius: var(--zt-radius);
  }

  .zt-video__title {
    max-width: 24ch;
    font-size: 0.98rem;
  }

  .zt-lead-hero__cta .btn-zt {
    width: 100%;
  }

  .zt-lead-trust {
    gap: 0.5rem 1.1rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zt-video__play::after {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Franja de urgencia: el hero de captación ajusta su espacio superior
   -------------------------------------------------------------------------- */

.zt-body--with-urgency .zt-lead-hero {
  padding-top: clamp(0.85rem, 2vw, 1.4rem);
}



/* --------------------------------------------------------------------------
   Versión móvil del hero de captación
   Un solo hilo de lectura: título, relato, video con su botón y, al final,
   los datos del programa. La franja de convocatoria y la fila de garantías
   repetían información que ya está en el propio hero.
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .zt-body--with-urgency .zt-urgency {
    display: none;
  }

  /* Sin la franja superior, el hero recupera el hueco del encabezado fijo. */
  .zt-body--with-urgency .zt-lead-hero {
    padding-top: calc(var(--zt-header-h) + clamp(1rem, 2vw, 1.5rem));
  }

  .zt-lead-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }

  /* Los envoltorios dejan de crear caja propia: sus hijos entran en el
     orden del grid del hero. */
  .zt-lead-hero__intro,
  .zt-lead-hero__meta {
    display: contents;
  }

  .zt-lead-hero__title {
    order: 1;
  }

  .zt-lead-hero__lede {
    order: 2;
    margin-bottom: 0;
  }

  .zt-lead-hero__media {
    order: 3;
  }

  .zt-lead-hero__media .zt-video-block {
    margin-top: 0;
  }

  .zt-lead-hero__bullets {
    order: 4;
  }

  .zt-lead-trust {
    display: none;
  }

  /* En pantalla pequeña el dato de duración compite con la etiqueta del
     bloque de video y se parte en dos líneas. */
  .zt-video-block__duration {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Ventana de captura rápida
   Tres datos y el consentimiento. Se abre desde cualquier botón de la portada.
   -------------------------------------------------------------------------- */

.zt-captura {
  width: min(30rem, calc(100vw - 1.5rem));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 1.1rem;
  background: var(--zt-white);
  color: var(--zt-ink);
  box-shadow: 0 32px 80px rgba(2, 20, 42, 0.48);
}

.zt-captura::backdrop {
  background: rgba(2, 22, 46, 0.74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.zt-captura[open] {
  animation: zt-captura-in 0.22s ease-out both;
}

@keyframes zt-captura-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* El fondo no debe desplazarse mientras la ventana está abierta. */
body.zt-captura--open {
  overflow: hidden;
}

.zt-captura__panel {
  position: relative;
  padding: clamp(1.35rem, 3.4vw, 1.9rem);
}

.zt-captura__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(11, 35, 64, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--zt-ink);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.zt-captura__close:hover,
.zt-captura__close:focus-visible {
  background: #eef3fa;
  border-color: rgba(11, 35, 64, 0.28);
}

.zt-captura__close .zt-icon {
  width: 1rem;
  height: 1rem;
}

.zt-captura__title {
  margin: 0 2.25rem 0.5rem 0;
  font-family: var(--zt-font-display);
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.zt-captura__lede {
  margin-bottom: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--zt-text);
}

.zt-captura__field {
  margin-bottom: 0.85rem;
}

.zt-captura__field .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.zt-captura__field .form-text {
  margin-top: 0.3rem;
  font-size: 0.74rem;
}

.zt-captura__consent {
  margin: 1rem 0 0;
  font-size: 0.84rem;
}

.zt-captura__consent .invalid-feedback,
.zt-captura__field .invalid-feedback {
  font-size: 0.76rem;
}

.zt-captura__error {
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(208, 32, 39, 0.08);
  color: #a01018;
  font-size: 0.82rem;
  line-height: 1.45;
}

.zt-captura__error[hidden] {
  display: none;
}

.zt-captura__form .btn-zt {
  margin-top: 1rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.zt-captura__form .btn-zt .zt-icon {
  flex: 0 0 auto;
}

.zt-captura__note {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  color: var(--zt-muted);
}

@media (max-width: 575.98px) {
  .zt-captura {
    width: calc(100vw - 1.25rem);
    margin: auto;
  }

  .zt-captura__panel {
    padding: 1.25rem 1.1rem 1.35rem;
  }

  .zt-captura__form .btn-zt {
    padding-inline: 0.9rem;
    font-size: 0.86rem;
  }
}
