/* ============================================================================
   INICIO (index.php) — rediseño v3
   Solo lo exclusivo de la home. La base es kondory-ui.css + kdx-components.css.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   Hero corporativo (v7)
   ---------------------------------------------------------------------------
   La esencia del sitio: texto sobre navy a la izquierda y la foto del equipo a
   sangre en la mitad derecha, fundida con el fondo. Sobre esa base, detalles
   para que no se vea cuadrado: antetitulo en pastilla, segunda linea del
   titular en azul claro, garantias en dos columnas con icono, botones
   redondeados y dos tarjetas flotando sobre la foto.
   --------------------------------------------------------------------------- */
.hx5 {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(92svh, 860px);
  padding-top: 80px; /* alto del header fijo */
  color: #fff;
  background: var(--kdx-navy);
}

/* Foto: mitad derecha, fundida hacia la izquierda y hacia abajo */
.hx5__photo {
  position: absolute;
  top: 80px;
  right: 0;
  bottom: 0;
  width: 54%;
  margin: 0;
  overflow: hidden; /* la entrada con zoom no debe asomar fuera del degradado */
}

.hx5__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}

.hx5__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--kdx-navy) 0%, rgba(8, 15, 36, .78) 18%, rgba(8, 15, 36, .15) 48%, rgba(8, 15, 36, 0) 70%),
    linear-gradient(0deg, var(--kdx-navy) 0%, rgba(8, 15, 36, 0) 30%);
}

.hx5__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.hx5__copy { max-width: 620px; }

.hx5__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(147, 197, 253, .28);
  border-radius: 999px;
  background: rgba(59, 130, 246, .12);
  font-size: .84rem;
  font-weight: 600;
  color: #bfdbfe;
}

.hx5__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .18);
}

.main-wrapper .hx5 .hx5__title {
  margin: 0 0 20px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.35rem) !important;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}

/* El cierre del titular ("para empresas") sigue en la misma linea y en blanco:
   la segunda linea azul se quito a pedido del cliente. */
.hx5__title span {
  display: inline;
  font: inherit;
  color: inherit;
}

.hx5__lead {
  margin: 0;
  max-width: 54ch;
  font-size: 1.06rem;
  line-height: 1.72;
  color: #b3c3e0;
}

.hx5__lead strong { color: #fff; font-weight: 600; }

/* Garantias: dos columnas con icono */
.hx5__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: .93rem;
  color: #dbe6f7;
}

@media (min-width: 576px) { .hx5__trust { grid-template-columns: repeat(2, minmax(0, max-content)); } }

.hx5__trust li { display: flex; align-items: center; gap: 10px; }
.hx5__trust i { color: #93c5fd; font-size: 1.05rem; }

/* Botones redondeados: el principal en blanco sobre el azul */
.hx5__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hx5 .hx5__btn { border-radius: 999px; padding: 15px 30px; }

.hx5 .hx5__btn--main {
  background: var(--kdx-blue);
  border-color: var(--kdx-blue);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .65);
}

.hx5 .hx5__btn--main:hover,
.hx5 .hx5__btn--main:focus-visible { background: #1d4ed8; border-color: #1d4ed8; color: #fff; transform: translateY(-2px); }

.hx5 .hx5__btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .32); color: #fff; }

.hx5 .hx5__btn--ghost:hover,
.hx5 .hx5__btn--ghost:focus-visible { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); color: #fff; transform: translateY(-2px); }

/* Tarjetas flotantes sobre la foto */
.hx5__card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  padding: 13px 18px 13px 13px;
  border-radius: 16px;
  background: #fff;
  color: var(--kdx-ink);
  box-shadow: 0 24px 50px -20px rgba(2, 8, 30, .6);
}

.hx5__card--top { top: 44px; right: 40px; }
.hx5__card--bottom { bottom: 132px; left: 22%; }

.hx5__card-ico {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 10px;
  background: #dcfce7;
  color: #15803d;
  font-size: 1.1rem;
}

.hx5__card-ico--blue { background: #e0ecff; color: var(--kdx-blue); }

.hx5__card strong {
  display: block;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--kdx-ink);
}

.hx5__card small { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.4; color: var(--kdx-muted); }

/* Cifras: tarjeta blanca flotante entre el hero y "Que hacemos". La mitad
   superior se monta sobre el navy (el hero deja ese espacio abajo) y la
   inferior queda sobre el blanco de la seccion siguiente. */
.hx5 .hx5__inner { padding-bottom: 104px; }

.hx5-stats {
  position: relative;
  z-index: 3;
  margin-top: -64px;
}

.hx5-stats + .kdx-section { padding-top: 64px; }

/* Transicion: el borde inferior del hero es una curva suave (mas honda en el
   centro, donde se apoya la tarjeta) en lugar de un corte recto, y la seccion
   siguiente no repite el filete superior justo debajo de la tarjeta. */
.hx5 {
  border-bottom-left-radius: 50% 72px;
  border-bottom-right-radius: 50% 72px;
}

.hx5-stats + .kdx-section .kdx-head { padding-top: 0; border-top: 0; }

/* Halo azul suave bajo la tarjeta: la sombra del hero que "cae" sobre el blanco */
.hx5-stats::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(1100px, 90vw);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(37, 99, 235, .14), rgba(37, 99, 235, 0));
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 991px) {
  .hx5 { border-bottom-left-radius: 50% 36px; border-bottom-right-radius: 50% 36px; }
}

.hx5__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--kdx-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(8, 15, 36, .45);
}

.hx5__facts > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-left: 1px solid var(--kdx-line);
}

.hx5__facts > div:first-child { border-left: 0; }

.hx5__fact-ico {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 14px;
  background: #eef3ff;
  color: var(--kdx-blue);
  font-size: 1.25rem;
}

.hx5__fact-txt { display: flex; flex-direction: column; min-width: 0; }

.main-wrapper .hx5__facts dt {
  color: var(--kdx-ink);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.main-wrapper .hx5__facts dd { margin: 3px 0 0; font-size: .86rem; line-height: 1.35; color: var(--kdx-muted); }

/* Entrada suave, una sola vez */
.hx5__copy > *,
.hx5__card {
  animation: hx5-in .8s cubic-bezier(.16, 1, .3, 1) both;
}

.hx5__copy > :nth-child(2) { animation-delay: .06s; }
.hx5__copy > :nth-child(3) { animation-delay: .12s; }
.hx5__copy > :nth-child(4) { animation-delay: .18s; }
.hx5__copy > :nth-child(5) { animation-delay: .24s; }
.hx5__photo img { animation: hx5-zoom 1.6s cubic-bezier(.16, 1, .3, 1) both; }
.hx5__card--top { animation-delay: .5s; }
.hx5__card--bottom { animation-delay: .65s; }

@keyframes hx5-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes hx5-zoom { from { transform: scale(1.06); opacity: .4; } }

/* Tablet y movil: la foto pasa arriba, a lo ancho */
@media (max-width: 991px) {
  .hx5 { min-height: 0; }
  .hx5__photo { position: relative; top: 0; width: 100%; height: 340px; }
  .hx5__photo::after { background: linear-gradient(0deg, var(--kdx-navy) 0%, rgba(8, 15, 36, 0) 55%); }
  .hx5__card--top { top: 16px; right: 16px; }
  .hx5__card--bottom { display: none; }
  .hx5__inner { padding-top: 8px; padding-bottom: 40px; }
  .hx5 .hx5__inner { padding-bottom: 96px; }
  .hx5__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx5__facts > div:nth-child(3) { border-left: 0; }
  .hx5__facts > div:nth-child(n+3) { border-top: 1px solid var(--kdx-line); }
}

@media (max-width: 575px) {
  .hx5__photo { height: 260px; }
  .hx5__card { max-width: 250px; padding: 10px 14px 10px 10px; }
  .hx5__card small { display: none; }
  .hx5__card-ico { flex-basis: 32px; height: 32px; font-size: .95rem; }
  .hx5__actions .kdx-btn { width: 100%; }
  .hx5__facts > div { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .hx5__fact-ico { flex-basis: auto; width: 40px; height: 40px; font-size: 1.05rem; }
  .main-wrapper .hx5__facts dt { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hx5__copy > *, .hx5__card, .hx5__photo img { animation: none; }
}
}

/* ---------------------------------------------------------------------------
   Cabecera partida: titulo a la izquierda, entradilla a la derecha
   --------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .hx-head-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
  }
  .hx-head-split .kdx-lead { margin: 0; justify-self: end; }
}

/* ---------------------------------------------------------------------------
   Industrias: filas con filete y enlace a la solucion (4 / 2 / 1 columnas)
   --------------------------------------------------------------------------- */
.hx-ind {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--kdx-line);
}

@media (min-width: 576px) { .hx-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .hx-ind { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.hx-ind li { border-bottom: 1px solid var(--kdx-line); }

.hx-ind__item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px 0;
  color: var(--kdx-ink);
  text-decoration: none;
}

.hx-ind__ico {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--kdx-paper);
  border: 1px solid var(--kdx-line);
  color: var(--kdx-blue);
  font-size: 1.05rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hx-ind__name { flex: 1; font-family: 'Poppins', system-ui, sans-serif; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.hx-ind__go { color: var(--kdx-muted); transition: transform .2s ease, color .2s ease; }

a.hx-ind__item:hover .hx-ind__ico { background: var(--kdx-blue); border-color: var(--kdx-blue); color: #fff; }
a.hx-ind__item:hover .hx-ind__name,
a.hx-ind__item:hover .hx-ind__go { color: var(--kdx-blue); }
a.hx-ind__item:hover .hx-ind__go { transform: translateX(3px); }
a.hx-ind__item:focus-visible { outline: 3px solid rgba(56, 189, 248, .55); outline-offset: 2px; border-radius: 8px; }

/* ---------------------------------------------------------------------------
   Vitrina de soluciones (pestañas por sector)
   --------------------------------------------------------------------------- */
.hx-show {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.hx-show__tabs { display: flex; flex-direction: column; gap: 4px; }

.hx-show__hint {
  margin: 0 0 8px 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--kdx-muted);
}

.hx-show__tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.hx-show__tab > i {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--kdx-paper);
  border: 1px solid var(--kdx-line);
  color: var(--kdx-blue);
  font-size: 1.05rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hx-show__tab span { display: flex; flex-direction: column; min-width: 0; }
.hx-show__tab strong { font-family: 'Poppins', system-ui, sans-serif; font-size: .94rem; font-weight: 600; color: var(--kdx-ink); }
.hx-show__tab small { font-size: .8rem; color: var(--kdx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hx-show__tab:hover { background: var(--kdx-paper); }
.hx-show__tab[aria-selected="true"] { background: #f3f7ff; border-color: rgba(37, 99, 235, .25); }
.hx-show__tab[aria-selected="true"] > i { background: var(--kdx-blue); border-color: var(--kdx-blue); color: #fff; }
.hx-show__tab:focus-visible { outline: 3px solid rgba(56, 189, 248, .55); outline-offset: 2px; }

.hx-show__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .hx-show__panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

@media (min-width: 992px) {
  .hx-show__panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
}

.hx-show__panel.is-in { animation: hx-in .5s cubic-bezier(.16, 1, .3, 1); }

@keyframes hx-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hx-show__photo figcaption {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(8, 15, 36, .78);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
}

.main-wrapper .hx-show__body h3 {
  margin: 0 0 12px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--kdx-ink);
}

.hx-show__body > p { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.7; color: var(--kdx-body); }

.hx-show__list { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; }

.hx-show__list li {
  display: flex;
  gap: 10px;
  font-size: .97rem;
  line-height: 1.5;
  color: var(--kdx-ink);
}

.hx-show__list i {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: .8rem;
}

.hx-show__all { margin-top: 32px; }

/* Movil: las pestañas pasan a una fila desplazable */
@media (max-width: 991px) {
  .hx-show__tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .hx-show__tabs::-webkit-scrollbar { display: none; }
  .hx-show__hint { display: none; }
  .hx-show__tab {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 14px 8px 8px;
    border-color: var(--kdx-line);
    scroll-snap-align: start;
  }
  .hx-show__tab > i { flex-basis: 32px; height: 32px; font-size: .9rem; }
  .hx-show__tab small { display: none; }
}

/* Escritorio: los sectores van arriba en una rejilla de 4 columnas (filas
   simetricas, sin importar cuantos productos se marquen en el panel) y el
   producto elegido ocupa todo el ancho debajo. Antes la lista vertical de 8
   sectores medía el doble que el panel y dejaba un hueco grande al lado. */
@media (min-width: 992px) {
  .hx-show { gap: 36px; }
  .hx-show__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .hx-show__hint { grid-column: 1 / -1; }
  .hx-show__tab { height: 100%; border-color: var(--kdx-line); background: #fff; }
  .hx-show__tab small { white-space: normal; }
}

/* ---------------------------------------------------------------------------
   Servicios: cabecera fija con foto a la izquierda, dos grupos a la derecha
   --------------------------------------------------------------------------- */
.hx-svc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 992px) {
  .hx-svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .hx-svc__head { position: sticky; top: 104px; }
}

.hx-svc__head .kdx-lead { margin: 16px 0 28px; }

.hx-svc__photo {
  position: relative;
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--kdx-line-dark);
}

.hx-svc__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.hx-svc__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(0deg, rgba(8, 15, 36, .88), rgba(8, 15, 36, 0));
  font-size: .86rem;
  color: #dbe5f6;
}

.hx-svc__groups { display: grid; gap: 40px; }

.main-wrapper .hx-svc__gtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 6px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: .8rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8fa6c8;
}

.hx-svc__gtitle::after { content: ''; flex: 1; height: 1px; background: var(--kdx-line-dark); }

.hx-svc__list { margin: 0; padding: 0; list-style: none; }

.hx-svc__list a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 16px;
  margin: 0 -16px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background-color .25s ease;
}

.hx-svc__list li + li a { border-top: 1px solid var(--kdx-line-dark); border-radius: 0 0 14px 14px; }
.hx-svc__list li + li a:hover { border-top-color: transparent; border-radius: 14px; }

.hx-svc__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--kdx-line-dark);
  color: #93c5fd;
  font-size: 1.15rem;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.hx-svc__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.hx-svc__txt strong {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
}

.hx-svc__txt span { font-size: .93rem; line-height: 1.55; color: #a9bbdb; }

.hx-svc__go { color: #5f7396; font-size: 1.1rem; transition: color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }

.hx-svc__list a:hover { background: rgba(255, 255, 255, .05); }
.hx-svc__list a:hover .hx-svc__ico { background: var(--kdx-blue); border-color: var(--kdx-blue); color: #fff; }
.hx-svc__list a:hover .hx-svc__go { color: #fff; transform: translateX(4px); }
.hx-svc__list a:focus-visible { outline: 3px solid rgba(56, 189, 248, .55); outline-offset: 2px; }

@media (max-width: 575px) {
  .hx-svc__list a { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 10px; margin: 0 -10px; }
  .hx-svc__ico { width: 40px; height: 40px; font-size: 1rem; }
  .hx-svc__go { display: none; }
  .hx-svc__head .kdx-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-svc__list a, .hx-svc__ico, .hx-svc__go { transition: none; }
}

/* ---------------------------------------------------------------------------
   Caso de exito
   --------------------------------------------------------------------------- */
.hx-case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hx-case { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
}

.hx-case__photo { overflow: visible; }
.hx-case__photo img { border-radius: var(--svx-radius); }

.hx-case__card {
  position: absolute;
  right: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--kdx-shadow-lg);
}

.hx-case__card strong { display: block; font-family: 'Poppins', system-ui, sans-serif; font-size: .9rem; color: var(--kdx-ink); }
.hx-case__card small { font-size: .8rem; color: var(--kdx-body); }

.hx-case__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 1.2rem;
}

.hx-case__body .kdx-h2 { margin: 0 0 20px; }

@media (max-width: 575px) {
  .hx-case__card { right: 10px; left: 10px; bottom: -24px; }
  .hx-case { gap: 56px; }
}

/* ---------------------------------------------------------------------------
   Integraciones
   --------------------------------------------------------------------------- */
.hx-int { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .hx-int { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

.hx-int li {
  display: flex;
  align-items: flex-start;  /* titulos alineados arriba aunque la descripcion ocupe 1 o 2 lineas */
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--kdx-line-dark);
}

.hx-int__logo {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  height: 64px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.hx-int__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hx-int__txt { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; }

/* Cabecera de integraciones: la entradilla iba pegada al titulo */
.hx-int-head .kdx-lead { margin: 16px 0 0; }
.hx-int__txt strong { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #fff; }
.hx-int__txt span { font-size: .9rem; line-height: 1.5; color: #a9bbdb; }

@media (prefers-reduced-motion: reduce) {
  .hx-ind__go { transition: none; }
  .hx-show__panel.is-in { animation: none; }
  .hx-svc__list a, .hx-svc__go { transition: none; }
}

/* ===========================================================================
   Estandar de secciones del inicio (referencia: pagina-biomantenimiento)
   - Cabecera centrada: antetitulo en pastilla con punto, titulo grande y
     entradilla centrados, sin filete superior.
   - Las secciones con columna lateral (servicios, integraciones, preguntas)
     conservan su titulo a la izquierda con la misma pastilla.
   - El contenido va en tarjetas redondeadas con sombra suave.
   =========================================================================== */
/* El antetitulo en pastilla y la cabecera centrada (.kdx-head--center) viven en kondory-ui.css */

/* Cabeceras laterales: sin filete, como en biomantenimiento */
.svx-when__head, .hx-svc__head { border-top: 0; }
.kdx-faq .kdx-head { border-top: 0; padding-top: 0; }

/* Vitrina de soluciones: dentro de un panel blanco redondeado */
@media (min-width: 992px) {
  .hx-show {
    padding: 28px;
    border: 1px solid var(--kdx-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 60px -40px rgba(8, 15, 36, .35);
  }
  .hx-show__tab { background: var(--kdx-paper); border-color: transparent; }
  .hx-show__tab[aria-selected="true"] { background: #f3f7ff; border-color: rgba(37, 99, 235, .25); }
}
.hx-show__all { display: table; margin: 32px auto 0; }

/* Industrias: tarjetas con icono (4 / 2 / 1 columnas) */
.hx-ind { gap: 16px; border-top: 0; }
.hx-ind li { border-bottom: 0; }
.hx-ind__item {
  padding: 18px 20px;
  border: 1px solid var(--kdx-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px -24px rgba(8, 15, 36, .35);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.hx-ind__item:hover { border-color: rgba(37, 99, 235, .35); box-shadow: 0 18px 36px -22px rgba(8, 15, 36, .4); transform: translateY(-2px); }

/* Integraciones: cada plataforma en una tarjeta de vidrio */
.hx-int { gap: 16px; }
.hx-int li {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}

/* Proceso: la foto con las mismas esquinas que el resto de tarjetas */
#proceso .svx-photo { border-radius: 20px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .hx-ind__item { transition: none; }
  a.hx-ind__item:hover { transform: none; }
}

/* Servicios: cada servicio en una tarjeta de vidrio (como las integraciones) */
.hx-svc__list { display: grid; gap: 10px; }
.hx-svc__list a,
.hx-svc__list li + li a {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}
.hx-svc__list a:hover,
.hx-svc__list li + li a:hover { border-color: rgba(147, 197, 253, .35); border-radius: 16px; background: rgba(255, 255, 255, .08); }

/* Preguntas frecuentes del inicio sobre fondo claro (las tarjetas son globales) */
.kdx-faq > .kdx-section { background: var(--kdx-paper); }

@media (max-width: 575px) {
  .hx-svc__list a, .hx-svc__list li + li a { padding: 14px; margin: 0; }
}

/* ---------------------------------------------------------------------------
   Clientes: banda compacta bajo el hero (como pagina-biomantenimiento)
   --------------------------------------------------------------------------- */
.kdx-clients.hx-logos { padding: 48px 0; border-bottom: 1px solid var(--kdx-line); }
.hx5-stats + .hx-logos { padding-top: 56px; }

.hx-logos__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 992px) {
  .hx-logos__inner { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
}

.main-wrapper .hx-logos__title {
  margin: 0 0 6px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.15rem !important;
  font-weight: 600;
  line-height: 1.35;
  color: var(--kdx-ink);
}

.hx-logos__text { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--kdx-muted); }

/* La pista de logos mide miles de px: se recorta aqui mismo para no depender
   de .swiper { overflow: hidden } de main.css, que carga en diferido; sin eso
   los logos pasaban por encima del titulo de la franja. */
.hx-logos__strip { min-width: 0; overflow: hidden; }
.hx-logos .swiper.test-swiper { position: relative; overflow: hidden; }
.hx-logos .swiper-wrapper { display: flex; box-sizing: content-box; }
.hx-logos .swiper-slide { flex-shrink: 0; }
.hx-logos__strip .container { max-width: none; padding: 0; }

/* Logos sin tarjeta: solo la marca en gris, a color al pasar el cursor */
.kdx-clients.hx-logos .company-card,
.kdx-clients.hx-logos .company-card:hover {
  height: 88px;
  padding: 10px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important; /* el parcial trae la utilidad shadow-sm */
}

.hx-logos .company-card img { max-height: 56px; opacity: .55; }
.hx-logos .swiper.test-swiper,
.hx-logos .swiper-wrapper,
.hx-logos .swiper-slide { height: 88px; }

@media (max-width: 991px) {
  .hx-logos__head { text-align: center; }
  .kdx-clients.hx-logos .company-card img { max-height: 44px; }
}
