/* ============================================================
   gss-mhero — hero de módulo [gss_mhero] y tira de clientes [gss_logos]
   Diseño aprobado el 2026-10-06 (maqueta 5). Ancho 1366 px, gutter 40 px.
   Botón de la capa común gss-ui (.gss-btn .gss-btn--lg) en aguamarina.
   ============================================================ */

/* La cabecera va transparente sobre el hero: el fondo sube hasta arriba (como .gss-hero) */
body.gss-mm-on.gss-mm-transparent .l-main > .l-section:first-of-type:has(.gss-mhero) > .l-section-h { padding-top: 0 !important; }

.gss-mhero {
  --mh-quantum: #041438; --mh-aqua: #00FFD7; --mh-soft: rgba(255, 255, 255, .8);
  position: relative; overflow: hidden; color: #fff; font-family: 'Poppins', sans-serif;
  padding: calc(var(--header-height, 84px) + clamp(28px, 4vw, 56px)) 0 120px;
  /* degradado aprobado --gss-grad-quantum (#041438 → #0f2560 → #3656b8 → #00ffd7) llevado a los dos lados */
  background:
    radial-gradient(55% 85% at 0% 100%, rgba(54, 86, 184, .85) 0%, rgba(15, 37, 96, .4) 45%, transparent 75%),
    radial-gradient(50% 70% at 100% 15%, rgba(80, 120, 255, .55) 0%, rgba(54, 86, 184, .25) 45%, transparent 75%),
    radial-gradient(38% 55% at 100% 100%, rgba(0, 255, 215, .28) 0%, transparent 70%),
    linear-gradient(180deg, #041438 0%, #0a1d4f 60%, #0f2560 100%);
}
/* trama de puntos muy suave a la izquierda para que el fondo no sea plano */
.gss-mhero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 50%); mask-image: linear-gradient(90deg, #000, transparent 50%);
}
.gss-mhero__wrap {
  position: relative; z-index: 1; max-width: 1366px; margin: 0 auto; padding-inline: 40px;
  display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 64px; align-items: center;
}
.gss-mhero__copy { min-width: 0; }

.gss-mhero h1 {
  margin: 0; padding: 0; font-family: inherit; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.08; font-weight: 700;
  letter-spacing: -.02em; color: #fff; text-wrap: balance;
}
.gss-mhero h1 em { font-style: normal; color: var(--mh-aqua); }
.gss-mhero__sub { margin: 22px 0 0; padding: 0; font-size: 18px; line-height: 1.55; color: var(--mh-soft); max-width: 46ch; }
.gss-mhero__checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.gss-mhero__checks li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; font-size: 15.5px; line-height: 1.45; color: #fff; }
.gss-mhero__checks svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

/* la nota de G2 justo encima del botón: la prueba se lee antes de decidir */
.gss-mhero__act { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 30px; }
.gss-mhero__proof { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.gss-mhero__proof .gss-mhero__badge { width: 44px; height: auto; flex: none; margin: 0; }
.gss-mhero__stars { display: flex; gap: 2px; margin-bottom: 4px; }
.gss-mhero__stars svg { width: 14px; height: 14px; }
.gss-mhero__proof small { display: block; font-size: 13px; line-height: 1.4; color: var(--mh-soft); }
.gss-mhero__proof small b { font-weight: 600; color: #fff; }
.gss-mhero__proof:hover small { text-decoration: underline; }
.gss-mhero a.gss-mhero__cta { color: var(--mh-quantum); background: var(--mh-aqua); border-color: var(--mh-aqua); }
.gss-mhero a.gss-mhero__cta:hover, .gss-mhero a.gss-mhero__cta:focus-visible { color: var(--mh-quantum); background: #fff; border-color: #fff; }

/* vídeo corto en bucle con «Ver vídeo» en el centro */
.gss-mhero__media {
  position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--mh-quantum);
  border: 6px solid rgba(255, 255, 255, .18); border-radius: var(--gss-r-panel, 28px); background-clip: padding-box;
  box-shadow: 0 40px 80px rgba(4, 20, 56, .35);
}
.gss-mhero__media video { display: block; width: 100%; height: auto; margin: 0; }
/* solo un velo suave alrededor del botón; el resto del vídeo se ve con su color */
.gss-mhero__shade { position: absolute; inset: 0; background: radial-gradient(42% 38% at 50% 50%, rgba(4, 20, 56, .28), transparent 100%); pointer-events: none; }
.gss-mhero__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px 12px 12px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--gss-r-control, 999px);
  background: rgba(4, 20, 56, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 16px; font-weight: 400; line-height: 1.2; text-decoration: none;
  box-shadow: 0 14px 34px rgba(4, 20, 56, .35); transition: background-color .3s, color .3s;
}
.gss-mhero__play i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mh-aqua); color: var(--mh-quantum); transition: background-color .3s, color .3s; }
.gss-mhero__play i svg { width: 15px; height: 15px; margin-left: 2px; }
.gss-mhero__play:hover, .gss-mhero__play:focus-visible { background: var(--mh-aqua); color: var(--mh-quantum); }
.gss-mhero__play:hover i, .gss-mhero__play:focus-visible i { background: var(--mh-quantum); color: var(--mh-aqua); }

/* ventana del vídeo (la abre gss-mhero.js) */
.gss-mhero-modal { width: min(1100px, 92vw); max-width: none; padding: 0; border: 0; border-radius: var(--gss-r-card, 20px); background: #000; overflow: visible; }
.gss-mhero-modal::backdrop { background: rgba(4, 20, 56, .82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.gss-mhero-modal__frame { position: relative; aspect-ratio: 16 / 9; border-radius: inherit; overflow: hidden; }
.gss-mhero-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gss-mhero-modal__close {
  position: absolute; top: -56px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: var(--gss-r-round, 50%); background: #fff; color: #041438; font-size: 24px; line-height: 1; cursor: pointer;
  transition: background-color .3s;
}
.gss-mhero-modal__close:hover, .gss-mhero-modal__close:focus-visible { background: #00FFD7; }

/* ============================================================
   gss-logos — tira de clientes a color en tarjeta blanca
   ============================================================ */
.gss-logos { position: relative; z-index: 2; font-family: 'Poppins', sans-serif; padding: 0 0 clamp(40px, 5vw, 64px); }
/* detrás del hero de módulo, la tarjeta se monta sobre su borde inferior */
.l-section:has(.gss-mhero) + .l-section .gss-logos { margin-top: -64px; }
.gss-logos__wrap { max-width: 1366px; margin: 0 auto; padding-inline: 40px; }
.gss-logos__card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 28px;
  padding: 26px 0 26px 32px; background: #fff; border-radius: var(--gss-r-card, 20px);
  box-shadow: 0 18px 50px rgba(4, 20, 56, .14);
}
.gss-logos__lbl { margin: 0; padding: 0; font-size: 16px; line-height: 1.35; font-weight: 500; color: #041438; }
.gss-logos__lbl b { display: block; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; color: #5078FF; }
.gss-logos__rail {
  position: relative; overflow: hidden; padding: 10px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gss-logos__track { display: flex; align-items: center; gap: 56px; width: max-content; padding-inline: 28px; animation: gss-logos-slide 60s linear infinite; }
.gss-logos__rail:hover .gss-logos__track, .gss-logos__rail:focus-within .gss-logos__track { animation-play-state: paused; }
.gss-logos__item { position: relative; display: flex; align-items: center; flex: none; height: 48px; text-decoration: none; }
.gss-logos__item img { display: block; width: auto; max-width: none; margin: 0; transition: transform .3s; }
a.gss-logos__item:hover img, a.gss-logos__item:focus-visible img { transform: scale(1.06); }
a.gss-logos__item::after {
  content: attr(data-case); position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%);
  font-size: 11px; color: #5078FF; white-space: nowrap; opacity: 0; transition: opacity .3s;
}
a.gss-logos__item:hover::after, a.gss-logos__item:focus-visible::after { opacity: 1; }
a.gss-logos__item:focus-visible { outline: 2px solid #5078FF; outline-offset: 4px; border-radius: 8px; }
.gss-logos__grid { display: none; }
@keyframes gss-logos-slide { to { transform: translateX(-50%); } }

/* ---------- tableta y móvil ---------- */
@media (max-width: 1100px) {
  .gss-mhero__wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .gss-mhero { padding-bottom: 96px; }
  .gss-mhero__wrap, .gss-logos__wrap { padding-inline: 16px; }
  .gss-mhero__sub { font-size: 16px; }
  .gss-mhero__act a.gss-mhero__cta { width: 100%; }
  .gss-mhero__play { font-size: 14px; padding: 10px 18px 10px 10px; }
  .gss-mhero__play i { width: 32px; height: 32px; }
  .gss-logos__card { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .gss-logos__lbl b { display: inline; font-size: inherit; }
  .gss-logos__rail { display: none; }
  .gss-logos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; align-items: center; justify-items: center; }
  .gss-logos__grid img { display: block; width: auto; max-width: 100%; height: auto; max-height: 28px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gss-logos__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 24px; }
  .gss-logos__track [aria-hidden="true"] { display: none; }
  .gss-mhero__play, .gss-mhero__play i, .gss-logos__item img { transition: none; }
}
