

/* Progreso estable en tablet y móvil: no depende del estado hover */
@media (max-width: 1080px) {
  .horbath-home .hh-nav-solutions .hh-nav-main-link::after,
  .horbath-home .hh-nav-solutions:hover .hh-nav-main-link::after,
  .horbath-home .hh-nav-solutions:focus-within .hh-nav-main-link::after {
    transform: rotate(45deg) translateY(-2px);
  }

  .horbath-home .hh-nav-solutions.is-open .hh-nav-main-link::after,
  .horbath-home .hh-nav-solutions.is-open:hover .hh-nav-main-link::after,
  .horbath-home .hh-nav-solutions.is-open:focus-within .hh-nav-main-link::after {
    transform: rotate(225deg) translate(-2px, -1px);
  }

  .talenthub-page .th-process-head .th-eyebrow::before {
    flex: 0 0 30px;
    min-width: 30px;
    opacity: 1;
  }

  .talenthub-page .th-process-line {
    isolation: isolate;
  }

  .talenthub-page .th-process-line::before,
  .talenthub-page .th-process-line::after {
    z-index: 0;
    display: block;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .talenthub-page .th-process-line::before {
    background: rgba(202, 214, 255, 0.34);
  }

  .talenthub-page .th-process-line[data-active-step="2"]::after { width: 21%; }
  .talenthub-page .th-process-line[data-active-step="3"]::after { width: 42%; }
  .talenthub-page .th-process-line[data-active-step="4"]::after { width: 63%; }
  .talenthub-page .th-process-line[data-active-step="5"]::after { width: 84%; }

  .talenthub-page .th-process-line[data-active-step="2"] .th-process-step:nth-child(-n+2) .th-process-number,
  .talenthub-page .th-process-line[data-active-step="3"] .th-process-step:nth-child(-n+3) .th-process-number,
  .talenthub-page .th-process-line[data-active-step="4"] .th-process-step:nth-child(-n+4) .th-process-number,
  .talenthub-page .th-process-line[data-active-step="5"] .th-process-step:nth-child(-n+5) .th-process-number {
    color: var(--th-white);
    border-color: var(--th-sky);
    background: var(--th-blue);
    box-shadow: 0 0 0 7px rgba(46, 202, 255, 0.16), 0 20px 44px rgba(11, 72, 232, 0.34);
    transform: translateY(-2px) scale(1.018);
  }
}

@media (max-width: 767px) {
  .talenthub-page .th-process-line[data-active-step="2"]::after {
    width: 2px;
    height: calc((100% - 116px) * 0.25);
  }

  .talenthub-page .th-process-line[data-active-step="3"]::after {
    width: 2px;
    height: calc((100% - 116px) * 0.5);
  }

  .talenthub-page .th-process-line[data-active-step="4"]::after {
    width: 2px;
    height: calc((100% - 116px) * 0.75);
  }

  .talenthub-page .th-process-line[data-active-step="5"]::after {
    width: 2px;
    height: calc(100% - 116px);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .talenthub-page .th-contact-card h3 {
    max-width: 560px;
    font-size: 28px;
    line-height: 1.25;
  }

  .talenthub-page .th-contact-card p {
    max-width: 580px;
    font-size: 17px;
    line-height: 1.5;
  }
}

/* Hover estable y pausado para las tarjetas de capacidades.
   El desplazamiento corto evita que el cursor pierda la esquina de la tarjeta. */
@media (hover: hover) and (pointer: fine) {
  .horbath-home .th-capability-card.th-reveal.is-visible {
    transform-origin: center bottom;
    transition:
      transform 0.56s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.52s ease,
      border-color 0.42s ease;
    transition-delay: 0ms;
  }

  .horbath-home .th-capability-card.th-reveal.is-visible:hover {
    transform: translateY(-6px) scale(1.004);
    border-color: rgba(11, 72, 232, 0.28);
    box-shadow: 0 26px 58px rgba(7, 21, 69, 0.14);
  }
}

@media (max-width: 767px) {
  .talenthub-page .th-hero-tags {
    display: none;
  }

  .talenthub-page .th-hero .th-title {
    font-size: 48px;
    line-height: 1.1;
  }

  .talenthub-page .th-hero .th-lead {
    font-size: 20px;
    line-height: 1.4;
  }

  .talenthub-page .th-hero .hh-btn,
  .talenthub-page .th-hero .hh-btn-secondary {
    width: 240px;
    height: 62px;
    min-height: 62px;
    padding-inline: 20px;
    font-size: 18px;
  }
}

/* Excepción intencional: las filas de perfiles conservan su respuesta táctil. */
@media (max-width: 767px) {
  html body.has-reveal .horbath-home .talenthub-page .th-profile-row.th-reveal.is-visible:hover,
  html body.has-reveal .horbath-home .talenthub-page .th-profile-row.th-reveal.is-visible:active {
    color: var(--th-blue);
    border-color: rgba(11, 72, 232, 0.28);
    transform: translateX(6px);
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }
}

/* Las modalidades describen el servicio; no son controles ni conservan estado visual al tocarlas. */
.talenthub-page .th-service-tags span,
.talenthub-page .th-service-tags span:hover,
.talenthub-page .th-service-tags span:focus,
.talenthub-page .th-service-tags span:active,
.horbath-home .th-service-tags span.th-reveal.is-visible:hover {
  pointer-events: none;
  color: var(--th-white);
  border-color: rgba(202, 214, 255, 0.28);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
  transform: none;
  transition: none;
}

@media (max-width: 767px) {
  .talenthub-page .th-count-10 { --th-count: 10; }
  .talenthub-page .th-count-3 { --th-count: 3; }
  .talenthub-page .th-count-12 { --th-count: 12; }

  .talenthub-page .th-count {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .talenthub-page .th-profile-row {
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .talenthub-page .th-profile-row:hover,
  .talenthub-page .th-profile-row:active {
    color: var(--th-blue);
    border-color: rgba(11, 72, 232, 0.28);
    transform: translateX(6px);
  }
}

/* En pantallas táctiles el contenido se presenta estable: las entradas en
   cascada hacían que texto y tarjetas parecieran moverse al desplazarse. */
@media (max-width: 767px) {
  .horbath-home .hh-nav-inner,
  .talenthub-page .th-hero :is(.th-hero-tags, .th-title, .th-lead, .th-actions, .th-signature),
  .talenthub-page .th-hero-visual {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  html body.has-reveal .horbath-home .talenthub-page .th-reveal,
  html body.has-reveal .horbath-home .talenthub-page .th-reveal.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
/* Hover estable para las tarjetas de capacidades.
   La tarjeta ya no se desplaza fuera del puntero cuando este entra por un borde. */
@media (hover: hover) and (pointer: fine) {
  .talenthub-page .th-capability-card,
  .horbath-home .th-capability-card.th-reveal.is-visible {
    transform-origin: center center;
    transition:
      transform 0.68s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.64s ease,
      border-color 0.56s ease;
    transition-delay: 0ms;
  }

  .talenthub-page .th-capability-card:hover,
  .horbath-home .th-capability-card.th-reveal.is-visible:hover {
    transform: translate3d(0, 0, 0) scale(1.004);
    border-color: rgba(11, 72, 232, 0.3);
    box-shadow: 0 26px 58px rgba(7, 21, 69, 0.14);
  }

  .talenthub-page .th-capability-card::before {
    transition: height 0.56s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.48s ease;
  }

  .talenthub-page .th-capability-icon,
  .horbath-home .th-capability-icon.th-reveal.is-visible {
    transition:
      transform 0.62s cubic-bezier(0.16, 1, 0.3, 1),
      color 0.5s ease,
      background-color 0.5s ease,
      box-shadow 0.58s ease;
    transition-delay: 0ms;
  }
}

@media (max-width: 767px) {
  html body.has-reveal .horbath-home .talenthub-page .th-profile-row.th-reveal.is-visible:hover,
  html body.has-reveal .horbath-home .talenthub-page .th-profile-row.th-reveal.is-visible:active {
    color: var(--th-blue);
    border-color: rgba(11, 72, 232, 0.28);
    transform: translateX(6px);
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }
}
