/*
 * Home Surexs · index.php
 * Carga después de css/index.css y de docs/designsystem_landings_surexs/shared/surexs-landings.css.
 * Prefijo de página: hm- (BEM). No redefine .sx-button, .sx-card ni .sx-heading-*.
 * Las secciones se migran una a una; las que aún no se migran siguen en css/index.css.
 */

/* ==========================================================
   PÁGINA Y TOKENS LOCALES
========================================================== */

.home-page {
  --hm-border: #a8d5ff;
  --hm-surface-soft: #f6fbff;
  --hm-surface-sky-end: #eef6fd;
  --hm-surface-muted: #e8f2fb;
  --hm-shadow: 0 10px 35px rgba(0, 119, 188, .08);
  --hm-shadow-hover: 0 18px 45px rgba(0, 119, 188, .2);
  --hm-ease: cubic-bezier(.22, 1, .36, 1);
  /* Alto de la barra superior + navegación fija en modo overlay (escritorio) */
  --hm-nav-offset: 0px;
}

/* ==========================================================
   ELEMENTOS COMPARTIDOS
========================================================== */

/* Eyebrow canónico (design.md 6.1) con icono por máscara */
.hm-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.15rem;
  padding: .48rem 1.3rem;
  border: 1px solid var(--sx-color-blue-200);
  border-radius: var(--sx-radius-pill);
  background: var(--sx-color-blue-100);
  color: var(--sx-color-blue-600);
  font-family: var(--sx-font-heading);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06rem;
  text-transform: uppercase;
}

.hm-eyebrow::before {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  background: currentColor;
  content: "";
  -webkit-mask: var(--icon-url, url("../img/iconos/sistema/negro/target-05.svg")) center / contain no-repeat;
  mask: var(--icon-url, url("../img/iconos/sistema/negro/target-05.svg")) center / contain no-repeat;
}

.hm-eyebrow--inverse {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .1);
  color: color-mix(in srgb, var(--sx-color-white) 86%, var(--sx-color-blue-100));
  backdrop-filter: blur(.45rem);
}

/* Título de sección (design.md 6.2) */
.hm-title {
  max-width: 46rem;
  margin: 0 auto 1.2rem;
  color: var(--sx-color-blue-700);
  font-family: var(--sx-font-heading);
  font-size: clamp(2.15rem, 3.6vw, 3.15rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.hm-title strong {
  display: block;
  color: var(--sx-color-blue-600);
  font-weight: 700;
}

/* Descripción de sección (design.md 6.3); index.css fuerza Open Sans en <p> */
.hm-description {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--sx-color-blue-800);
  font-size: .98rem;
  line-height: 1.68;
}

/* Microcopy canónico (design.md 11.8) */
.hm-microcopy {
  display: flex;
  width: 100%;
  max-width: 32rem;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 1rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--sx-color-blue-600) 38%, var(--sx-color-white));
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 38px rgba(0, 82, 144, .12);
  text-align: left;
}

.hm-microcopy__icon {
  display: inline-flex;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: .6rem;
  background: var(--sx-color-blue-100);
  box-shadow: 0 8px 18px rgba(0, 119, 188, .16);
}

.hm-microcopy__icon img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.hm-microcopy p {
  margin: 0;
  color: var(--sx-color-blue-800);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.5;
}

/* ==========================================================
   1. HERO (design.md 11.17, composición centrada)
========================================================== */

.hm-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(56rem, 100vh);
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--hm-nav-offset) + 4.5rem) 0 6rem;
  overflow: hidden;
  color: var(--sx-color-white);
  font-family: var(--sx-font-body);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--sx-color-blue-400) 30%, transparent), transparent 26rem),
    linear-gradient(135deg, var(--sx-color-blue-600), var(--sx-color-blue-700));
}

/* Textura de puntos */
.hm-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .14;
  background: radial-gradient(circle, color-mix(in srgb, var(--sx-color-aqua-200) 12%, transparent) 0 1px, transparent 1px);
  background-size: 4.8rem 4.8rem;
  content: "";
  pointer-events: none;
}

/* Fondo animado (design.md 12 y 14): decorativo, lento y sólo con transform/mask */
.hm-hero__bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Aurora: manchas de color de marca que derivan y se funden con el degradado */
.hm-hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(5rem);
  will-change: transform;
}

.hm-hero__aurora--aqua {
  bottom: -14rem;
  left: 8%;
  width: 46rem;
  height: 30rem;
  background: rgba(0, 194, 206, .3);
  animation: hm-aurora-a 24s ease-in-out infinite alternate;
}

.hm-hero__aurora--sky {
  top: -8rem;
  right: 4%;
  width: 42rem;
  height: 32rem;
  background: rgba(83, 160, 213, .42);
  animation: hm-aurora-b 28s ease-in-out infinite alternate;
}

.hm-hero__aurora--deep {
  top: 30%;
  left: -12rem;
  width: 36rem;
  height: 36rem;
  background: rgba(20, 33, 53, .32);
  animation: hm-aurora-c 32s ease-in-out infinite alternate;
}

/* Retícula de puntos más brillante, visible sólo donde pasa el foco de luz */
.hm-hero__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(170, 236, 240, .7) 0 1.4px, transparent 1.6px);
  background-size: 2.4rem 2.4rem;
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 30%, transparent 62%) no-repeat;
  mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 30%, transparent 62%) no-repeat;
  -webkit-mask-size: var(--hm-spot-size) var(--hm-spot-size);
  mask-size: var(--hm-spot-size) var(--hm-spot-size);
  animation: hm-spotlight 26s ease-in-out infinite;
  --hm-spot-size: 48rem;
}

/* Con mouse, js/home.js mueve el foco: sigue al cursor y, en reposo, recorre el hero solo */
.hm-hero.is-spot-interactive .hm-hero__spotlight {
  -webkit-mask-position: calc(var(--hm-spot-x, 50%) - var(--hm-spot-size) / 2) calc(var(--hm-spot-y, 50%) - var(--hm-spot-size) / 2);
  mask-position: calc(var(--hm-spot-x, 50%) - var(--hm-spot-size) / 2) calc(var(--hm-spot-y, 50%) - var(--hm-spot-size) / 2);
  animation: none;
}

/* Círculos de acento de la primera propuesta, con respiración lenta */
.hm-hero__circle {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: hm-breathe 12s ease-in-out infinite;
}

.hm-hero__circle--ring {
  top: -10rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, .16);
}

.hm-hero__circle--fill {
  bottom: -7rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(118, 221, 227, .1);
  animation-delay: -6s;
}

@keyframes hm-aurora-a {
  to { transform: translate(18rem, -6rem) scale(1.15); }
}

@keyframes hm-aurora-b {
  to { transform: translate(-16rem, 8rem) scale(.9); }
}

@keyframes hm-aurora-c {
  to { transform: translate(10rem, -10rem) scale(1.1); }
}

/* El foco recorre el hero en un lazo suave */
@keyframes hm-spotlight {
  0%, 100% { -webkit-mask-position: 8% 20%; mask-position: 8% 20%; }
  25% { -webkit-mask-position: 70% 8%; mask-position: 70% 8%; }
  50% { -webkit-mask-position: 95% 75%; mask-position: 95% 75%; }
  75% { -webkit-mask-position: 30% 95%; mask-position: 30% 95%; }
}

@keyframes hm-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Líneas punteadas que unen las figuras de las esquinas */
.hm-hero__lines {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(92rem, 100%);
  height: auto;
  opacity: .5;
  transform: translate(-50%, -46%);
  pointer-events: none;
}

/* Columna central */
.hm-hero__content {
  display: flex;
  max-width: 52rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.hm-hero__title {
  margin: 0 0 1.35rem;
  color: var(--sx-color-white);
  font-family: var(--sx-font-heading);
  font-size: clamp(2.35rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .02em;
  text-wrap: balance;
}

.hm-hero__title strong {
  font-weight: 700;
}

.hm-hero__title-line {
  display: block;
}


.hm-hero__title span.hm-hero__title-line {
  color: var(--sx-color-aqua-200);
}

.hm-hero__description {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  color: color-mix(in srgb, var(--sx-color-white) 88%, var(--sx-color-blue-100));
  font-size: 1rem;
  line-height: 1.65;
}

/* Cotizador: card blanca con un chip por programa (enlace directo) */
.hm-quote {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 28px;
  background: var(--sx-color-white);
  box-shadow: 0 1.75rem 4rem rgba(20, 33, 53, .24);
  color: var(--sx-color-text);
}

.hm-quote__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 0 0 1rem;
  color: var(--sx-color-blue-700);
  /* index.css fuerza Open Sans con !important en todos los <p> */
  font-family: var(--sx-font-heading) !important;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}

.hm-quote__label-icon {
  display: inline-flex;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: .6rem;
  background: var(--sx-color-blue-100);
  color: var(--sx-color-blue-600);
}

.hm-quote__label-icon::before {
  width: 1.2rem;
  height: 1.2rem;
  background: currentColor;
  content: "";
  -webkit-mask: url("../img/iconos/sistema/negro/clipboard-check.svg") center / contain no-repeat;
  mask: url("../img/iconos/sistema/negro/clipboard-check.svg") center / contain no-repeat;
}

/* Una sola línea en escritorio; en pantallas estrechas se reparten centrados */
.hm-quote__chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-quote__chip {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem .55rem .9rem;
  border: 1.5px solid var(--sx-color-blue-200);
  border-radius: var(--sx-radius-pill);
  background: var(--hm-surface-soft);
  color: var(--sx-color-blue-700);
  font-family: var(--sx-font-heading);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease, box-shadow .3s ease, color .3s ease;
}

.hm-quote__chip::before {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  background: var(--sx-color-blue-600);
  content: "";
  -webkit-mask: var(--hm-icon) center / contain no-repeat;
  mask: var(--hm-icon) center / contain no-repeat;
  transition: background-color .3s ease;
}

.hm-quote__chip:hover {
  border-color: var(--sx-color-blue-600);
  background: var(--sx-color-blue-600);
  box-shadow: 0 10px 22px rgba(0, 119, 188, .24);
  color: var(--sx-color-white);
  text-decoration: none;
  transform: translateY(-2px);
}

.hm-quote__chip:hover::before {
  background: var(--sx-color-white);
}

.hm-quote__chip:focus-visible {
  outline: 3px solid rgba(0, 119, 188, .35);
  outline-offset: 3px;
}

/* Asesor: CTA verde canónico fuera de la card */
.hm-hero__advisor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem 1rem;
  margin-top: 1.5rem;
}

.hm-hero__advisor p {
  margin: 0;
  color: color-mix(in srgb, var(--sx-color-white) 88%, var(--sx-color-blue-100));
  font-size: .95rem;
}

.hm-hero__advisor .sx-button {
  min-height: 2.85rem;
  gap: .5rem;
  padding: .375rem 1.25rem;
  border-width: 1.5px;
}

.hm-hero__advisor .sx-button img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

/* Figuras en las esquinas (escritorio); en tablet y móvil pasan a una fila bajo el cotizador */
.hm-hero__figures {
  position: absolute;
  z-index: -1;
  inset: calc(var(--hm-nav-offset) + 1.5rem) clamp(1rem, 3vw, 3rem) 2rem;
  pointer-events: none;
}

.hm-hero__figure {
  position: absolute;
  display: block;
  width: clamp(9rem, 13vw, 13.5rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.25rem 1.75rem rgba(20, 33, 53, .24));
  /* Responde al mouse aunque el contenedor no: así sólo las figuras captan el hover */
  pointer-events: auto;
  animation: hm-float 7s ease-in-out var(--hm-float-delay, 0s) infinite;
}

.hm-hero__figure--mail { top: 0; left: 0; }
.hm-hero__figure--fleet { top: 0; right: 0; --hm-float-delay: -3.5s; }
.hm-hero__figure--gmm { bottom: 0; left: 0; --hm-float-delay: -1.75s; }
.hm-hero__figure--robot { right: 0; bottom: 0; width: clamp(10rem, 15vw, 15.5rem); --hm-float-delay: -5.25s; }

/* Salto con rebote al pasar el mouse (js/home.js añade .is-jumping una vez por hover).
   Usa la propiedad translate para sumarse a la levitación, que usa transform. */
.hm-hero__figure.is-jumping {
  animation:
    hm-float 7s ease-in-out var(--hm-float-delay, 0s) infinite,
    hm-jump .9s cubic-bezier(.28, .84, .42, 1) 1;
}

@keyframes hm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.5rem); }
}

@keyframes hm-jump {
  0% { translate: 0 0; }
  30% { translate: 0 -1.75rem; }
  55% { translate: 0 0; }
  70% { translate: 0 -.6rem; }
  85% { translate: 0 0; }
  93% { translate: 0 -.15rem; }
  100% { translate: 0 0; }
}

/* ==========================================================
   2. PROGRAMAS CORPORATIVOS (design.md 11.1 + carrusel)
========================================================== */

.hm-programs {
  padding: 5.5rem 0;
  background: var(--sx-color-white);
}

/* Contenedor agrupador grande (design.md 8.4) */
.hm-programs__wrapper {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--sx-color-blue-200);
  border-radius: 32px;
  /* Glass ligero: las nubes se adivinan detrás de la card */
  background: linear-gradient(180deg, rgba(246, 251, 255, .7) 0%, rgba(255, 255, 255, .88) 55%);
  box-shadow: 0 16px 45px rgba(0, 82, 144, .08);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Textura de puntos que se desvanece hacia abajo */
.hm-programs__wrapper::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 45%;
  background: radial-gradient(circle, rgba(83, 160, 213, .22) 0 1px, transparent 1.4px);
  background-size: 1.6rem 1.6rem;
  content: "";
  -webkit-mask: linear-gradient(180deg, #000, transparent);
  mask: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}

.hm-programs__header {
  max-width: 55rem;
  margin: 0 auto 1rem;
  text-align: center;
}

/* Carrusel */
.hm-programs__carousel {
  --hm-card-gap: 1.5rem;
  --hm-card-visible: 3;
  position: relative;
}

.hm-programs__track {
  display: grid;
  grid-auto-columns: calc((100% - (var(--hm-card-visible) - 1) * var(--hm-card-gap)) / var(--hm-card-visible));
  grid-auto-flow: column;
  gap: var(--hm-card-gap);
  margin: 0;
  /* Espacio para la burbuja de imagen y la elevación en hover dentro del área con scroll */
  padding: 5rem .25rem 1.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-behavior: smooth;
  scroll-padding-inline: .25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hm-programs__track::-webkit-scrollbar {
  display: none;
}

.hm-programs__track:focus-visible {
  border-radius: 28px;
  outline: 3px solid rgba(0, 119, 188, .35);
  outline-offset: 4px;
}

.hm-programs__item {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}

/* Card canónica clara (design.md 8.1) */
.hm-program-card {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 4.5rem 1.6rem 1.6rem;
  border: 2px solid var(--hm-border);
  border-radius: 28px;
  background: var(--sx-color-white);
  box-shadow: var(--hm-shadow);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.hm-program-card:hover,
.hm-program-card:focus-within {
  border-color: var(--sx-color-blue-600);
  box-shadow: var(--hm-shadow-hover);
  transform: translateY(-.35rem);
}

.hm-program-card__image {
  position: absolute;
  top: -4.5rem;
  left: 50%;
  display: flex;
  width: 8.5rem;
  height: 8.5rem;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  transition: transform .3s ease;
}

/* La imagen ya trae su propio círculo de fondo */
.hm-program-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hm-program-card:hover .hm-program-card__image {
  transform: translateX(-50%) scale(1.06);
}

.hm-program-card__title {
  margin: 0 0 .85rem;
  color: var(--sx-color-blue-800);
  font-family: var(--sx-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.hm-program-card__text {
  margin: 0 0 1rem;
  color: var(--sx-color-blue-700);
  font-size: .86rem;
  line-height: 1.6;
}

.hm-program-card__list {
  display: grid;
  gap: .6rem;
  margin: 0 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--sx-color-blue-100);
  list-style: none;
}

.hm-program-card__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--sx-color-text-muted);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.48;
}

.hm-program-card__list li::before {
  position: absolute;
  top: .1rem;
  left: 0;
  width: 1.05rem;
  height: 1.05rem;
  background: var(--sx-color-aqua-600);
  content: "";
  -webkit-mask: url("../img/iconos/sistema/negro/check-circle.svg") center / contain no-repeat;
  mask: url("../img/iconos/sistema/negro/check-circle.svg") center / contain no-repeat;
}

/* CTA secundario (design.md 10) que se rellena con el hover de la card */
.hm-program-card__link {
  display: flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: auto;
  padding: .5rem 1rem;
  border: 1.5px solid var(--sx-color-blue-600);
  border-radius: var(--sx-radius-pill);
  color: var(--sx-color-blue-700);
  font-family: var(--sx-font-heading);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}

.hm-program-card__link::after {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  background: currentColor;
  content: "";
  -webkit-mask: url("../img/iconos/sistema/negro/arrow-narrow-right.svg") center / contain no-repeat;
  mask: url("../img/iconos/sistema/negro/arrow-narrow-right.svg") center / contain no-repeat;
  transition: transform .3s ease;
}

.hm-program-card:hover .hm-program-card__link,
.hm-program-card__link:focus-visible {
  background: var(--sx-color-blue-600);
  color: var(--sx-color-white);
}

.hm-program-card:hover .hm-program-card__link::after {
  transform: translateX(3px);
}

.hm-program-card__link:focus-visible {
  outline: 3px solid rgba(0, 119, 188, .35);
  outline-offset: 3px;
}

/* Controles: flechas y posición, debajo del carrusel para no tapar las cards */
.hm-programs__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: .5rem;
}

.hm-programs__controls[hidden] {
  display: none;
}

.hm-programs__arrow {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sx-color-blue-700);
  box-shadow: 0 10px 22px rgba(0, 82, 144, .22);
  color: var(--sx-color-white);
  cursor: pointer;
  transition: background-color .3s ease, transform .3s ease, opacity .3s ease;
}

.hm-programs__arrow::before {
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  content: "";
  -webkit-mask: url("../img/iconos/sistema/negro/arrow-narrow-left.svg") center / contain no-repeat;
  mask: url("../img/iconos/sistema/negro/arrow-narrow-left.svg") center / contain no-repeat;
}

.hm-programs__arrow--next::before {
  -webkit-mask-image: url("../img/iconos/sistema/negro/arrow-narrow-right.svg");
  mask-image: url("../img/iconos/sistema/negro/arrow-narrow-right.svg");
}

.hm-programs__arrow:hover {
  background: var(--sx-color-blue-600);
  transform: translateY(-2px);
}

.hm-programs__arrow:focus-visible {
  outline: 3px solid rgba(0, 119, 188, .35);
  outline-offset: 3px;
}

.hm-programs__arrow:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.hm-programs__dots {
  display: flex;
  gap: .45rem;
}

.hm-programs__dot {
  width: .55rem;
  height: .55rem;
  border-radius: var(--sx-radius-pill);
  background: var(--sx-color-blue-200);
  transition: width .3s var(--hm-ease), background-color .3s ease;
}

.hm-programs__dot.is-active {
  width: 1.75rem;
  background: var(--sx-color-blue-600);
}

.hm-programs__footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 32rem));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

/* ==========================================================
   4. BENEFICIOS 360 (mejora sobre .index-beneficios de index.css)
   Se conserva el diseño; se suman legibilidad, semántica y movimiento.
========================================================== */

/* "360" cuenta desde 0 al entrar en pantalla; ancho fijo para no mover el título */
.hm-benefits__count {
  display: inline-block;
  min-width: 2.15ch;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Misma ilustración de ciudad que Planes, bajo el degradado azul */
.hm-benefits {
  isolation: isolate;
}

.hm-benefits::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 52, 96, .92) 0%, rgba(0, 82, 144, .88) 48%, rgba(0, 119, 188, .84) 100%),
    url("../images/index/planesfondo.webp") 70% bottom / cover no-repeat;
  content: "";
  pointer-events: none;
}

/* Onda superior recoloreada con el tono de la sección anterior (era un SVG blanco) */
.hm-wave {
  display: block;
  aspect-ratio: 1451 / 83;
  background: var(--hm-surface-sky-end);
  -webkit-mask: url("../images/index/beneficios-lineaondeada.svg") center top / 100% 100% no-repeat;
  mask: url("../images/index/beneficios-lineaondeada.svg") center top / 100% 100% no-repeat;
}

/* Lista real de beneficios */
.hm-benefits .hm-benefits__grid {
  grid-auto-rows: auto;
  padding: 0;
  list-style: none;
}

.hm-benefits__item {
  display: flex;
  min-width: 0;
}

/* Glass muy ligero (design.md 8.5) para leer sobre la ilustración sin ocultarla */
.hm-benefits .beneficio-card {
  width: 100%;
  isolation: isolate;
  border-color: rgba(255, 255, 255, .3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .21), rgba(255, 255, 255, .08)),
    rgba(0, 52, 96, .33);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 12px 30px rgba(0, 30, 60, .12);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  backdrop-filter: blur(6px) saturate(130%);
}

/* Hover original de index.css (degradado azul sólido) */
.hm-benefits .beneficio-card:hover {
  border-color: transparent;
  background: linear-gradient(145deg, #2b628f, #005290);
  box-shadow: 0 24px 60px rgba(0, 82, 144, .28);
}

/* Legibilidad: textos más grandes y con más contraste sobre el azul */
.hm-benefits .beneficio-card h3 {
  font-family: var(--sx-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.hm-benefits .beneficio-card p {
  color: rgba(255, 255, 255, .92);
  font-size: .9rem;
  line-height: 1.65;
}

/* Foco de luz que sigue al mouse dentro de la card y, por el borde, en las vecinas */
.hm-benefits .beneficio-card::before,
.hm-benefits .beneficio-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.hm-benefits .beneficio-card::before {
  background: radial-gradient(20rem circle at var(--hm-mx, 50%) var(--hm-my, 50%), rgba(118, 221, 227, .2), transparent 62%);
}

.hm-benefits .beneficio-card::after {
  z-index: 0;
  padding: 2px;
  background: radial-gradient(16rem circle at var(--hm-mx, 50%) var(--hm-my, 50%), rgba(170, 236, 240, .95), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.hm-benefits__grid.is-glowing .beneficio-card::after {
  opacity: 1;
}

.hm-benefits .beneficio-card:hover::before {
  opacity: 1;
}

.hm-benefits .beneficio-card__top,
.hm-benefits .beneficio-card p {
  position: relative;
  z-index: 1;
}

/* Icono con un pequeño giro elástico al pasar el mouse */
.hm-benefits .beneficio-card__icon img {
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.hm-benefits .beneficio-card:hover .beneficio-card__icon img {
  transform: rotate(-6deg) scale(1.1);
}

/* ==========================================================
   6. TECNOLOGÍA AMMIA (variante compacta de index-tech,
      adaptada de .index-tech--ecosistema en css/ecosistema-ammia.css)
========================================================== */

.hm-tech {
  padding: 6.5rem 0 5rem;
  background: radial-gradient(circle at top, rgba(11, 125, 218, .08), transparent 42%);
}

.hm-tech .index-tech__wrapper {
  padding: 3.5rem;
  border-radius: 32px;
}

.hm-tech .index-tech__header {
  margin-bottom: 2.5rem;
}

.hm-tech .index-tech__title {
  max-width: 52rem;
  margin: 0 auto;
  font-size: clamp(2.15rem, 3.6vw, 3.15rem);
  line-height: 1.08;
  text-wrap: balance;
}

.hm-tech .index-tech__title strong {
  display: block;
}

.hm-tech .index-tech__description {
  max-width: 49rem;
  margin: 1.25rem auto 0;
  color: var(--sx-color-blue-800);
  font-size: .94rem;
  line-height: 1.68;
}

/* Tabs */
.hm-tech .index-tech__selector {
  margin-bottom: 3rem;
}

.hm-tech .index-tech__tab {
  min-width: 150px;
}

.hm-tech .index-tech__tab:focus-visible {
  outline: 3px solid rgba(0, 119, 188, .35);
  outline-offset: 3px;
}

.hm-tech__tab-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
  transition: transform .25s ease;
}

.hm-tech .index-tech__tab:hover .hm-tech__tab-icon {
  transform: scale(1.08);
}

/* Sin JS: los tabs no sirven, así que se ocultan y los paneles quedan apilados */
.hm-tech:not(.is-enhanced) .index-tech__selector {
  display: none;
}

.hm-tech .index-tech__panel {
  display: block;
}

.hm-tech:not(.is-enhanced) .index-tech__panel + .index-tech__panel {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--sx-color-blue-100);
}

.hm-tech .index-tech__panel[hidden] {
  display: none;
}

.hm-tech .index-tech__panel:focus-visible {
  border-radius: 24px;
  outline: 3px solid rgba(0, 119, 188, .35);
  outline-offset: 6px;
}

/* Panel */
.hm-tech .index-tech__content {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hm-tech__audience {
  display: block;
  margin-bottom: .4rem;
  color: var(--sx-color-blue-600);
  font-family: var(--sx-font-heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06rem;
  text-transform: uppercase;
}

.hm-tech .index-tech__heading {
  margin: 0 0 .6rem;
  font-size: 1.8rem;
}

.hm-tech__description {
  margin: 0 0 .8rem;
  color: var(--sx-color-blue-800);
  font-size: .9rem;
  line-height: 1.55;
}

/* Funciones: lista completa, sin scroll interno */
.hm-tech .index-tech__features {
  height: auto;
  max-height: none;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style: none;
}

.hm-tech .index-tech__feature {
  padding: .4rem 0;
}

.hm-tech .index-tech__feature-card {
  gap: .7rem;
  padding-bottom: .7rem;
}

.hm-tech .index-tech__feature-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  place-items: center;
  border-radius: .7rem;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.hm-tech .index-tech__feature:hover .index-tech__feature-icon {
  transform: scale(1.08);
}

.hm-tech__feature-icon {
  width: 1.35rem;
  height: 1.35rem;
  background: var(--sx-color-blue-600);
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

.hm-tech .index-tech__feature-card h4 {
  margin-bottom: .2rem;
  font-size: .94rem;
  line-height: 1.25;
}

/* Legibilidad: algo mayor que en ecosistema (.78rem) */
.hm-tech .index-tech__feature-card p {
  font-size: .84rem;
  line-height: 1.5;
}

/* CTA amarillo canónico (.sx-button--accent) con flecha */
.hm-tech__button {
  margin-top: 1rem;
  min-height: 2.85rem;
  padding: .375rem 1.15rem;
  border-width: 1.5px;
  font-size: .95rem;
}

.hm-tech__button-icon {
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask: url("../img/iconos/sistema/negro/arrow-narrow-right.svg") center / contain no-repeat;
  mask: url("../img/iconos/sistema/negro/arrow-narrow-right.svg") center / contain no-repeat;
  transition: transform .3s ease;
}

.hm-tech__button:hover .hm-tech__button-icon {
  transform: translateX(3px);
}

/* Visual */
.hm-tech__media {
  display: grid;
  min-height: 25rem;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf5ff, #cfe8ff);
  color: var(--sx-color-blue-600);
}

.hm-tech__media > img,
.hm-tech__media > .index-tech__video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 30rem;
  object-fit: contain;
}

/* Entrada del panel al cambiar de tab: texto y visual con un leve desfase */
.hm-tech.is-enhanced .index-tech__panel--active .index-tech__info {
  animation: hm-tech-in .5s var(--hm-ease) both;
}

.hm-tech.is-enhanced .index-tech__panel--active .index-tech__media {
  animation: hm-tech-in .6s var(--hm-ease) .08s both;
}

@keyframes hm-tech-in {
  from { opacity: 0; transform: translateY(.75rem); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================
   7. CTA PROSPECTOS (banner intermedio, design.md 11.24,
      sobre la composición original de .index-partners)
========================================================== */

.hm-partners {
  margin-bottom: 0;
  padding: 1rem 0 6.5rem;
}

.hm-partners .index-partners__wrapper {
  min-height: 26rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem);
  background: var(--sx-color-blue-700);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 82, 144, .18);
}

/* La foto se acerca muy despacio al pasar el mouse */
/* Encuadre centrado en las personas (la foto trae un monitor a la izquierda) */
.hm-partners .index-partners__image img {
  object-position: 70% 8%;
  transition: transform 1.2s var(--hm-ease);
}

.hm-partners .index-partners__wrapper:hover .index-partners__image img {
  transform: scale(1.04);
}

/* Degradado del hero (11.17) que se funde con la foto */
.hm-partners .index-partners__image-overlay {
  background:
    linear-gradient(90deg, var(--sx-color-blue-700) 0%, rgba(0, 82, 144, .94) 36%, rgba(0, 119, 188, .45) 64%, rgba(0, 119, 188, 0) 100%);
}

.hm-partners .index-partners__content {
  max-width: 34rem;
}

.hm-partners .index-partners__title {
  margin: 0 0 1.2rem;
  color: var(--sx-color-white);
  font-family: var(--sx-font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.hm-partners .index-partners__title strong {
  color: var(--sx-color-aqua-200);
  font-weight: 700;
}

.hm-partners .index-partners__description {
  max-width: 30rem;
  margin-bottom: 1.5rem;
  color: color-mix(in srgb, var(--sx-color-white) 88%, var(--sx-color-blue-100));
  font-size: .95rem;
  line-height: 1.65;
}

/* Checks aqua sobre círculo translúcido (design.md 11.24) */
.hm-partners__list {
  display: grid;
  gap: .7rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.hm-partners__list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--sx-color-white);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
}

.hm-partners__list li::before {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 1.6rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376dde3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .85rem no-repeat,
    rgba(255, 255, 255, .12);
  content: "";
}

.hm-partners__button {
  min-height: 2.85rem;
  gap: .5rem;
  padding: .375rem 1.25rem;
  border-width: 1.5px;
}

.hm-partners__button img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

/* Variante del programa de partners (CTA final) */
.hm-partners--program .index-partners__image img {
  object-position: right center;
}

.hm-partners--program .hm-eyebrow {
  margin-bottom: 1.25rem;
}

.hm-partners__floating {
  position: absolute;
  z-index: 4;
  right: 2rem;
  bottom: 2rem;
  width: auto;
  max-width: 19rem;
  margin: 0;
}

/* El icono ya trae su propio fondo: sin envolvente */
.hm-partners__floating .hm-microcopy__icon {
  background: none;
  box-shadow: none;
}

.hm-partners__floating .hm-microcopy__icon img {
  width: 100%;
  height: 100%;
}

.hm-partners__floating p strong {
  color: var(--sx-color-blue-700);
  font-weight: 700;
}

/* ==========================================================
   8. HISTORIAS Y TESTIMONIOS (mejora sobre .index-historias)
========================================================== */

.hm-stories .index-historias__title {
  font-family: var(--sx-font-heading);
  text-wrap: balance;
}

.hm-stories__intro {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  color: var(--sx-color-blue-800);
  font-size: .95rem;
  line-height: 1.65;
}

/* Botón de reproducir con anillo que late (se detiene con movimiento reducido) */
.hm-stories .index-historias__play {
  position: relative;
}

.hm-stories .index-historias__play::after {
  position: absolute;
  inset: -.5rem;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  content: "";
  animation: hm-play-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes hm-play-ring {
  0% { opacity: .9; transform: scale(.85); }
  100% { opacity: 0; transform: scale(1.35); }
}

.hm-stories .index-historias__play:focus-visible {
  outline: 3px solid var(--sx-color-aqua-200);
  outline-offset: 6px;
}

.hm-stories .index-historias__iframe[hidden],
.hm-stories .index-historias__thumbnail-placeholder[hidden] {
  display: none;
}

.hm-stories .index-historias__iframe:not([hidden]) {
  display: block;
}

/* Cambio de historia: la información entra con un fundido corto */
.hm-stories .index-historias__video-info.is-changing {
  animation: hm-tech-in .45s var(--hm-ease);
}

/* La lista es de botones reales: se reinician sus estilos nativos */
.hm-stories .index-historias__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.hm-stories .index-historias__list > li {
  display: flex;
  min-width: 0;
}

.hm-stories .index-historias__item {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}

.hm-stories .index-historias__item:focus-visible {
  outline: 3px solid rgba(0, 119, 188, .35);
  outline-offset: 2px;
}

/* El elemento activo se marca con borde, no sólo con el fondo */
.hm-stories .index-historias__item--active {
  box-shadow: inset 0 0 0 2px var(--sx-color-blue-200);
}

/* Las piezas son <span> dentro del botón; index.css ya da display a la flecha */
.hm-stories .index-historias__item-thumb,
.hm-stories .index-historias__item-image,
.hm-stories .index-historias__item-content {
  display: block;
}

.hm-stories .index-historias__item-image {
  transition: transform .5s var(--hm-ease);
}

.hm-stories .index-historias__item:hover .index-historias__item-image {
  transform: scale(1.04);
}

/* Título y texto de cada historia (antes h4/p; dentro de un botón deben ser texto en línea) */
.hm-stories .index-historias__item-content .hm-stories__item-title {
  display: block;
  margin: 0 0 .35rem;
  color: var(--sx-color-blue-800);
  font-family: var(--sx-font-heading);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
}

.hm-stories .index-historias__item-content .hm-stories__item-text {
  display: block;
  margin: 0;
  color: var(--sx-color-text-muted);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

/* ==========================================================
   9. PLANES DE SERVICIO (anatomía de .ps-plans en soluciones/index.php,
      design.md 11.12 y acentos por plan 5.9)
========================================================== */

.hm-title--inverse,
.hm-title--inverse strong {
  color: var(--sx-color-white);
}

/* Acento por plan: el mismo color en pastilla, borde de imagen e icono de rango */
.hm-accent--essential {
  --hm-accent: var(--sx-color-aqua-600);
  --hm-accent-strong: #005c5d;
  --hm-accent-soft: var(--sx-color-aqua-100);
}

.hm-accent--corporate {
  --hm-accent: var(--sx-color-blue-600);
  --hm-accent-strong: var(--sx-color-blue-700);
  --hm-accent-soft: var(--sx-color-blue-100);
}

.hm-accent--enterprise {
  --hm-accent: var(--sx-color-blue-700);
  --hm-accent-strong: var(--sx-color-blue-800);
  --hm-accent-soft: #e4eef8;
}

.hm-plans {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 7rem 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .08) 18%, transparent 52%),
    radial-gradient(circle at 12% 18%, rgba(110, 190, 255, .18) 0%, transparent 38%),
    linear-gradient(180deg, #1389d3 0%, var(--sx-color-blue-600) 35%, #0068a8 100%);
}

/* Mapa ilustrado bajo el degradado azul, como el fondo de Ubicaciones */
.hm-plans::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 52, 96, .96) 0%, rgba(0, 82, 144, .94) 48%, rgba(0, 119, 188, .92) 100%),
    url("../images/index/planes2.webp") center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.hm-plans::before {
  position: absolute;
  z-index: -1;
  top: -16rem;
  left: 50%;
  width: 56rem;
  height: 56rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05) 35%, transparent 70%);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.hm-plans__header {
  max-width: 52rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.hm-plans__description {
  max-width: 44rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  line-height: 1.75;
}

.hm-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-plans__item {
  min-width: 0;
}

.hm-plan-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 119, 188, .12);
  border-radius: 30px;
  background: var(--sx-color-white);
  box-shadow: 0 14px 35px rgba(16, 24, 40, .08);
  transition: transform .45s ease, box-shadow .45s ease, border-color .35s ease;
}

.hm-plan-card:hover,
.hm-plan-card:focus-within {
  border-color: rgba(0, 119, 188, .25);
  box-shadow: 0 18px 40px rgba(0, 82, 144, .12), 0 30px 70px rgba(0, 119, 188, .18);
  transform: translateY(-.6rem);
}

/* Imagen en escala de grises que recupera el color en hover (design.md 11.12) */
.hm-plan-card__media {
  height: 10.3rem;
  overflow: hidden;
  border-bottom: 4px solid var(--hm-accent);
}

.hm-plan-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform .65s ease, filter .55s ease;
}

.hm-plan-card:hover .hm-plan-card__media img,
.hm-plan-card:focus-within .hm-plan-card__media img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.hm-plan-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.85rem;
}

.hm-plan-card__stage {
  display: inline-flex;
  width: fit-content;
  min-height: 2rem;
  align-items: center;
  margin-bottom: .9rem;
  padding: .4rem .85rem;
  border: 1px solid color-mix(in srgb, var(--hm-accent) 30%, var(--sx-color-white));
  border-radius: var(--sx-radius-pill);
  background: var(--hm-accent-soft);
  color: var(--hm-accent-strong);
  font: 700 .8rem/1.1 var(--sx-font-body);
  letter-spacing: .03em;
}

.hm-plan-card__title {
  margin: 0 0 .75rem;
  color: var(--sx-color-blue-800);
  font: 600 1.75rem/1.2 var(--sx-font-heading);
}

/* Franja de rango: el dato que más ayuda a elegir */
.hm-plan-card__range {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  background: var(--hm-surface-soft);
  color: var(--sx-color-blue-700);
  font: 700 .92rem/1.35 var(--sx-font-heading) !important;
}

.hm-plan-card__range-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  background: var(--hm-accent);
  -webkit-mask: url("../img/iconos/sistema/negro/users-01.svg") center / contain no-repeat;
  mask: url("../img/iconos/sistema/negro/users-01.svg") center / contain no-repeat;
}

.hm-plan-card__summary {
  flex: 1;
  margin: 0 0 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0, 119, 188, .14);
  color: var(--sx-color-text-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.hm-plan-card__button {
  align-self: center;
  margin-top: auto;
}

/* Flecha por máscara para CTA */
.hm-arrow {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  background: currentColor;
  -webkit-mask: url("../img/iconos/sistema/negro/arrow-narrow-right.svg") center / contain no-repeat;
  mask: url("../img/iconos/sistema/negro/arrow-narrow-right.svg") center / contain no-repeat;
  transition: transform .3s ease;
}

.sx-button:hover .hm-arrow {
  transform: translateX(.2rem);
}

/* ==========================================================
   SUPERFICIES DE SECCIÓN Y DECORACIÓN (design.md 4.3 y 12)
   Alternan blanco, azul claro y azul para marcar el cambio de
   sección con discreción. Van al final para ganar sobre el fondo
   propio de cada sección.
========================================================== */

.hm-surface {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

/* Azul cielo: arriba más azul, se funde a blanco abajo */
.hm-surface--sky {
  background:
    radial-gradient(circle, rgba(83, 160, 213, .14) 0 1px, transparent 1.5px) 0 0 / 2.4rem 2.4rem,
    linear-gradient(180deg, #e3f1fd 0%, var(--hm-surface-sky-end) 100%);
}

/* Continuación del cielo (Aseguradoras) */
.hm-surface--sky-end {
  background:
    radial-gradient(circle, rgba(83, 160, 213, .14) 0 1px, transparent 1.5px) 0 0 / 2.4rem 2.4rem,
    var(--hm-surface-sky-end);
}

/* Azul rebajado: alterna con el azul claro para dar variedad entre secciones */
.hm-surface--muted {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .7), transparent 22rem),
    radial-gradient(circle at 6% 90%, rgba(118, 221, 227, .12), transparent 24rem),
    var(--hm-surface-muted);
}

/* Azul claro editorial (#F6FBFF) con brillos de color muy suaves */
.hm-surface--soft {
  background:
    radial-gradient(circle at 8% 12%, rgba(83, 160, 213, .1), transparent 24rem),
    radial-gradient(circle at 94% 88%, rgba(118, 221, 227, .1), transparent 22rem),
    var(--hm-surface-soft);
}

/* Continúa el azul claro de la sección anterior y se funde al azul rebajado de la siguiente */
.hm-surface--soft-fade {
  background: linear-gradient(180deg, var(--hm-surface-soft) 0%, var(--hm-surface-soft) 45%, var(--hm-surface-muted) 100%);
}

/* De blanco a azul claro (une con la sección siguiente) */
.hm-surface--to-soft {
  background:
    radial-gradient(circle at 90% 70%, rgba(83, 160, 213, .08), transparent 24rem),
    linear-gradient(180deg, var(--sx-color-white) 0%, var(--hm-surface-soft) 45%);
}

/* Formas sutiles (como .ps-hero__decor): un anillo fino arriba y un círculo
   degradado abajo; sin texturas ni ilustraciones para no ensuciar el fondo */
.hm-decor {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hm-decor--top {
  top: -14rem;
  left: -10rem;
  width: clamp(22rem, 34vw, 32rem);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 119, 188, .1);
  box-shadow: inset 0 0 0 3.5rem rgba(255, 255, 255, .25);
}

.hm-decor--bottom {
  right: -9rem;
  bottom: -11rem;
  width: clamp(18rem, 28vw, 26rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, rgba(118, 221, 227, .16), rgba(83, 160, 213, .06) 55%, transparent 72%);
}

/* Nubes de Programas: Vector.svg recoloreado en azul Surexs que cruza despacio */
.hm-clouds {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.hm-cloud {
  position: absolute;
  left: 0;
  /* Mismo tamaño y color en todas; cada una va en su propio carril vertical */
  top: calc(var(--hm-cloud-lane, 0) * var(--hm-cloud-lane-h, 12.5%) + .75rem);
  width: var(--hm-cloud-w, 10rem);
  aspect-ratio: 389 / 226;
  background: var(--sx-color-blue-200);
  opacity: .6;
  -webkit-mask: url("../img/informativas/modelo-servicio/Vector.svg") center / contain no-repeat;
  mask: url("../img/informativas/modelo-servicio/Vector.svg") center / contain no-repeat;
  transform: translateX(-120%);
  animation: hm-cloud-drift 100s linear infinite;
  animation-delay: var(--hm-cloud-delay, 0s);
  will-change: transform;
}

/* Carriles separados más que el alto de una nube y retrasos repartidos:
   varias nubes a la vista, nunca juntas ni encimadas */
.hm-cloud--1 { --hm-cloud-lane: 0; --hm-cloud-delay: 0s; }
.hm-cloud--2 { --hm-cloud-lane: 1; --hm-cloud-delay: -50s; }
.hm-cloud--3 { --hm-cloud-lane: 2; --hm-cloud-delay: -25s; }
.hm-cloud--4 { --hm-cloud-lane: 3; --hm-cloud-delay: -75s; }
.hm-cloud--5 { --hm-cloud-lane: 4; --hm-cloud-delay: -12s; }
.hm-cloud--6 { --hm-cloud-lane: 5; --hm-cloud-delay: -62s; }
.hm-cloud--7 { --hm-cloud-lane: 6; --hm-cloud-delay: -37s; }
.hm-cloud--8 { --hm-cloud-lane: 7; --hm-cloud-delay: -87s; }

/* Aseguradoras: franja baja, dos carriles */
.hm-clouds--insurers .hm-cloud { --hm-cloud-w: 8rem; --hm-cloud-lane-h: 50%; }
.hm-clouds--insurers .hm-cloud--1 { --hm-cloud-lane: 0; --hm-cloud-delay: -30s; }
.hm-clouds--insurers .hm-cloud--2 { --hm-cloud-lane: 1; --hm-cloud-delay: -80s; }
@keyframes hm-cloud-drift {
  from { transform: translateX(-120%); }
  to { transform: translateX(calc(100vw + 2rem)); }
}

/* Aseguradoras a todo el ancho; los logos se desvanecen en los bordes */
.hm-insurers .aseguradoras__logos-container {
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ==========================================================
   APARICIÓN CON SCROLL (design.md 14.2)
========================================================== */

.home-page [data-reveal] {
  opacity: 1;
  transform: none;
}

.is-reveal-ready .home-page [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity .6s var(--hm-ease) var(--reveal-delay, 0ms),
    transform .6s var(--hm-ease) var(--reveal-delay, 0ms);
}

.is-reveal-ready .home-page [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

/* Navegación fija sobre el hero sólo en escritorio (navbar-desktop-refresh.css) */
@media (min-width: 992px) {
  .home-page {
    --hm-nav-offset: 6.5rem;
  }
}

/* Laptop: las figuras se reducen para no rozar el texto */
@media (max-width: 1399.98px) {
  .hm-hero__figure { width: clamp(8rem, 11vw, 11rem); }
  .hm-hero__figure--robot { width: clamp(9rem, 12.5vw, 12.5rem); }
}

@media (max-width: 1199.98px) {
  /* Panel de historias más angosto: miniatura menor y sin flecha */
  .hm-stories .index-historias__item {
    grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
    gap: .9rem;
  }

  .hm-stories .index-historias__item-arrow {
    display: none;
  }

  .hm-program-card {
    padding-inline: 1.25rem;
  }

  .hm-program-card__link {
    padding-inline: .75rem;
    font-size: .88rem;
    white-space: nowrap;
  }

  .hm-hero {
    min-height: 0;
    padding-bottom: 4.5rem;
  }

  .hm-hero__lines {
    display: none;
  }

  .hm-hero__figures {
    position: static;
    display: grid;
    width: min(calc(100% - 2rem), 46rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 1rem;
    margin: 3rem auto 0;
  }

  .hm-hero__figure,
  .hm-hero__figure--robot {
    position: static;
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .hm-hero {
    padding-top: 4.5rem;
  }

  .hm-programs {
    padding: 5rem 0;
  }

  .hm-programs__carousel {
    --hm-card-visible: 2;
  }

  .hm-programs__footer {
    grid-template-columns: minmax(0, 32rem);
  }

  .hm-tech {
    padding: 5rem 0;
  }

  .hm-tech .index-tech__wrapper {
    padding: 2.5rem;
  }

  .hm-tech .index-tech__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-tech__media {
    min-height: 0;
  }

  .hm-plans {
    padding: 5rem 0;
  }

  .hm-plans__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
    margin-inline: auto;
    gap: 1.5rem;
  }

  /* Tablet: index.css apila miniatura y texto en una cuadrícula de 2 columnas */
  .hm-stories .index-historias__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-partners {
    padding-bottom: 5rem;
  }

  .hm-partners__floating {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-start;
    margin-top: 2rem;
  }

  .hm-partners .index-partners__image-overlay {
    background:
      linear-gradient(90deg, var(--sx-color-blue-700) 0%, rgba(0, 82, 144, .9) 55%, rgba(0, 119, 188, .6) 100%);
  }

  .hm-quote__chips {
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .hm-hero {
    padding: 3.5rem 0 4rem;
  }

  .hm-programs {
    padding: 4rem 0;
  }

  .hm-programs__wrapper {
    padding: 2.5rem 1rem 2rem;
    border-radius: 24px;
  }

  .hm-programs__header {
    text-align: left;
  }

  .hm-programs__header .hm-eyebrow {
    padding-inline: 1rem;
    font-size: .62rem;
    line-height: 1.3;
  }

  .hm-title,
  .hm-description {
    margin-inline: 0;
  }

  /* Una card y un asomo de la siguiente para invitar al swipe */
  .hm-programs__carousel {
    --hm-card-gap: 1rem;
    --hm-card-visible: 1.12;
  }

  .hm-program-card {
    padding: 4.25rem 1.25rem 1.35rem;
    border-radius: 24px;
  }

  .hm-microcopy {
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
  }

  .hm-microcopy__icon {
    flex-basis: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .hm-microcopy p {
    font-size: .76rem;
  }

  .hm-tech {
    padding: 4rem 0;
  }

  .hm-tech .index-tech__wrapper {
    padding: 2rem 1rem;
    border-radius: 24px;
  }

  .hm-tech .index-tech__title {
    font-size: clamp(2.15rem, 10vw, 2.65rem);
  }

  .hm-tech .index-tech__selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 20px;
  }

  .hm-tech .index-tech__tab {
    width: 100%;
    min-width: 0;
    padding-inline: .6rem;
  }

  .hm-tech .index-tech__tab span:last-child {
    overflow: visible;
    text-overflow: clip;
  }

  .hm-tech .index-tech__feature-card {
    flex-direction: row;
  }

  .hm-tech__button {
    width: 100%;
    padding: 12px 20px;
    border-radius: 1rem;
  }

  /* Móvil: la foto pasa al flujo, arriba del texto, y se funde con el azul */
  .hm-partners {
    padding: 0 0 4rem;
  }

  .hm-partners .index-partners__wrapper {
    min-height: 0;
    padding: 0;
    border-radius: 24px;
  }

  .hm-partners .index-partners__image {
    position: relative;
    height: 12rem;
  }

  .hm-partners .index-partners__image img {
    object-position: 62% 22%;
  }

  .hm-partners .index-partners__image-overlay {
    background: linear-gradient(180deg, rgba(0, 82, 144, 0) 35%, var(--sx-color-blue-700) 100%);
  }

  .hm-partners .index-partners__content {
    padding: .5rem 1.25rem 1.75rem;
  }

  .hm-partners .index-partners__title {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .hm-partners__button {
    width: 100%;
    padding: 12px 20px;
    border-radius: 1rem;
  }

  .hm-partners--program .index-partners__image img {
    object-position: 85% center;
  }

  .hm-partners__floating {
    width: calc(100% - 2.5rem);
    max-width: none;
    margin: 0 1.25rem 1.5rem;
  }

  .hm-plans {
    padding: 4rem 0;
  }

  .hm-plans__header {
    margin-bottom: 2.5rem;
  }

  .hm-plans .hm-eyebrow {
    padding-inline: 1rem;
    font-size: .62rem;
    line-height: 1.3;
  }

  .hm-plan-card {
    border-radius: 24px;
  }

  .hm-plan-card__body {
    padding: 1.5rem 1.35rem;
  }

  .hm-plan-card__title {
    font-size: 1.5rem;
  }

  .hm-plan-card__button {
    width: 100%;
    padding: 12px 20px;
    border-radius: 1rem;
  }

  /* Carrusel horizontal de historias: el <li> es ahora el elemento que se desliza */
  .hm-stories .index-historias__list > li {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .hm-stories .index-historias__item {
    flex: 1 1 auto;
  }

  .hm-stories .index-historias__item-content .hm-stories__item-title {
    font-size: .9rem;
  }

  .hm-stories .index-historias__item-content .hm-stories__item-text {
    font-size: .8rem;
  }

  .hm-benefits .beneficio-card {
    min-height: 0;
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .hm-benefits .beneficio-card__top {
    align-items: center;
  }

  .hm-benefits .beneficio-card p {
    font-size: .88rem;
  }

  /* Apiladas: sin escalonado (design.md 14.2) */
  .hm-benefits__item {
    --reveal-delay: 0ms !important;
  }


  .hm-hero__title {
    font-size: clamp(2.35rem, 9vw, 3.05rem);
  }

  .hm-hero__description {
    margin-bottom: 2rem;
    font-size: .92rem;
  }

  .hm-quote {
    width: 100%;
    padding: 1.15rem 1rem 1.25rem;
    border-radius: 24px;
  }

  .hm-quote__label {
    font-size: 1rem;
  }

  .hm-quote__chip {
    min-height: 2.75rem;
    padding-inline: .8rem .95rem;
    font-size: .88rem;
  }

  .hm-hero__advisor {
    width: 100%;
    flex-direction: column;
  }

  .hm-hero__advisor .sx-button {
    width: 100%;
    padding: 12px 20px;
    border-radius: 1rem;
  }

  .hm-hero__aurora--aqua { left: -40%; }
  .hm-hero__aurora--sky { right: -60%; }

  .hm-hero__spotlight {
    --hm-spot-size: 30rem;
  }

  /* Móvil: el header muestra sólo textos y cards */
  .hm-hero__figures {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-cloud {
    animation: none;
    transform: translateX(var(--hm-cloud-static, 10vw));
  }

  .hm-cloud--1 { --hm-cloud-static: 4vw; }
  .hm-cloud--2 { --hm-cloud-static: 78vw; }
  .hm-cloud--3 { --hm-cloud-static: 62vw; }
  .hm-cloud--4 { --hm-cloud-static: 30vw; }
  .hm-cloud--5 { --hm-cloud-static: 12vw; }
  .hm-cloud--6 { --hm-cloud-static: 70vw; }
  .hm-cloud--7 { --hm-cloud-static: 40vw; }
  .hm-cloud--8 { --hm-cloud-static: 82vw; }

  .hm-plan-card,
  .hm-plan-card__media img,
  .hm-arrow {
    transition: none;
  }

  .hm-plan-card:hover,
  .hm-plan-card:focus-within,
  .hm-plan-card:hover .hm-plan-card__media img,
  .hm-plan-card:focus-within .hm-plan-card__media img {
    transform: none;
  }

  .hm-stories .index-historias__play::after,
  .hm-stories .index-historias__video-info.is-changing {
    animation: none;
  }

  .hm-stories .index-historias__item-image {
    transition: none;
  }

  .hm-partners .index-partners__image img {
    transition: none;
  }

  .hm-partners .index-partners__wrapper:hover .index-partners__image img {
    transform: none;
  }

  .hm-tech__tab-icon,
  .hm-tech__button-icon,
  .hm-tech .index-tech__feature-icon {
    transition: none;
  }

  .hm-tech.is-enhanced .index-tech__panel--active .index-tech__info,
  .hm-tech.is-enhanced .index-tech__panel--active .index-tech__media,
  .hm-tech .index-tech__panel--active {
    animation: none;
  }

  .hm-benefits .beneficio-card::before,
  .hm-benefits .beneficio-card::after,
  .hm-benefits .beneficio-card__icon img {
    transition: none;
  }

  .hm-benefits .beneficio-card:hover .beneficio-card__icon img {
    transform: none;
  }

  .hm-programs__track {
    scroll-behavior: auto;
  }

  .hm-program-card,
  .hm-program-card__image,
  .hm-program-card__link,
  .hm-program-card__link::after,
  .hm-programs__arrow,
  .hm-programs__dot {
    transition: none;
  }

  .hm-program-card:hover,
  .hm-program-card:focus-within {
    transform: none;
  }

  .hm-hero__figure,
  .hm-hero__figure.is-jumping {
    animation: none;
  }

  .hm-hero__aurora,
  .hm-hero__spotlight,
  .hm-hero__circle {
    animation: none;
  }

  .hm-quote__chip,
  .hm-quote__chip::before {
    transition: none;
  }

  .is-reveal-ready .home-page [data-reveal],
  .is-reveal-ready .home-page [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
