/* =====================================================================
   gig.mx Fase 1 · Inicio (ERS §6, INI-A … INI-G). Solo se carga en "/".
   Medidas en unidades de diseño (--gx-u = 1px @1920).
   ===================================================================== */

/* ---------- INI-A · Hero ---------- */
.gx-hero { position: relative; height: max(100vh, calc(var(--gx-u) * 1204)); min-height: 640px; overflow: hidden; color: var(--gx-surface); background: var(--gx-ink); }
.gx-hero__slides, .gx-hero__slide, .gx-hero__shade { position: absolute; inset: 0; }
.gx-hero__slide { opacity: 0; transition: opacity var(--gx-d-slide) var(--gx-ease-in-out); }
.gx-hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform var(--gx-d-slide) var(--gx-ease-in-out); }
.gx-hero__slide.is-active { opacity: 1; z-index: 1; }
.gx-hero__slide.is-active img { transform: scale(1); }
.gx-hero__shade { z-index: 2; background: linear-gradient(90deg, rgba(26, 26, 26, .45) 0%, rgba(26, 26, 26, 0) 55%), linear-gradient(0deg, rgba(26, 26, 26, .35) 0%, rgba(26, 26, 26, 0) 40%); pointer-events: none; }
.gx-hero__content { position: absolute; z-index: 3; left: calc(var(--gx-u) * 117); bottom: calc(var(--gx-u) * 250); max-width: calc(var(--gx-u) * 1013); }
.gx-hero__dots { position: absolute; left: calc(var(--gx-u) * -37); top: calc(var(--gx-u) * -12); height: calc(var(--gx-u) * 250); justify-content: flex-start; }
.gx-hero__eyebrow { font-size: var(--gx-fs-lead); line-height: 1.5; color: var(--gx-surface); }
.gx-hero__title { font-size: var(--gx-fs-display-l); line-height: .9; letter-spacing: -.015em; font-weight: 500; opacity: .96; margin-bottom: calc(var(--gx-u) * 60); }
.gx-hero__title span { display: block; }
.gx-hero__panel { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: calc(var(--gx-u) * 600); padding: calc(var(--gx-u) * 160) calc(var(--gx-u) * 80) 0;
  background: rgba(250, 250, 250, .12); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .25); }
.gx-hero__cards { display: grid; gap: calc(var(--gx-u) * 29); }
.gx-hero-card { position: relative; display: block; width: 100%; height: calc(var(--gx-u) * 191); border-radius: var(--gx-r-img); overflow: hidden; text-align: left; background: var(--gx-green);
  transition: transform .3s var(--gx-ease-out), box-shadow .3s; }
.gx-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gx-hero-card::after { content: ""; position: absolute; inset: 0; background: var(--gx-gradient-card); transition: opacity .3s; }
.gx-hero-card__title { position: absolute; z-index: 1; left: calc(var(--gx-u) * 25); bottom: calc(var(--gx-u) * 25); right: 12px; font-size: max(16px, calc(var(--gx-u) * 28)); line-height: 1.07; color: var(--gx-surface); }
.gx-hero-card:hover { transform: scale(1.03); }
.gx-hero-card:hover::after { opacity: .7; }
.gx-hero-card.is-active { box-shadow: 0 0 0 3px var(--gx-green); }

/* ---------- INI-B · Mapa y contadores ---------- */
.gx-mapsec { position: relative; z-index: 4; margin-top: calc(var(--gx-u) * -77); display: grid; grid-template-columns: 1052fr 688fr; column-gap: 0;
  padding: calc(var(--gx-u) * 204) var(--gx-pad-x) calc(var(--gx-u) * 120) var(--gx-pad-x); align-items: start; }
.gx-mapsec__map { position: relative; margin-right: calc(var(--gx-u) * -170); }
.gx-mapsec__map.is-empty { min-height: calc(var(--gx-u) * 300); display: flex; align-items: flex-end; margin-right: 0; }
.gx-map-svg { width: 100%; height: auto; overflow: visible; }
.gx-map-svg path, .gx-map-svg polygon { fill: var(--gx-map-off); stroke: var(--gx-bg); stroke-width: 1; transition: fill var(--gx-d-map) var(--gx-snap), transform var(--gx-d-map) var(--gx-snap), filter var(--gx-d-map) var(--gx-snap); }
.gx-map-svg .is-on { fill: var(--gx-green); stroke-width: 2; cursor: pointer; outline: none; }
.gx-mapsec__map.is-hovering .gx-map-svg .is-on { fill: var(--gx-map-dim); }
.gx-mapsec__map.is-hovering .gx-map-svg .is-on.is-hover { fill: var(--gx-green); transform: translate(-4px, -6px); filter: drop-shadow(0 8px 12px rgba(37, 23, 92, .25)); }
.gx-map__labels { display: flex; flex-wrap: wrap; gap: 8px calc(var(--gx-u) * 45); margin-top: calc(var(--gx-u) * 40); }
.gx-map__label { font-size: var(--gx-fs-lead); line-height: 1.5; color: rgba(31, 26, 51, .65); transition: color var(--gx-d-map) var(--gx-snap); }
.gx-map__label:hover, .gx-map__label.is-hover, .gx-map__label:focus-visible { color: var(--gx-green); }
.gx-mapsec__text { padding-top: calc(var(--gx-u) * 78); position: relative; z-index: 1; }
.gx-mapsec__title { margin: 8px 0 calc(var(--gx-u) * 18); line-height: 1.2; }
.gx-mapsec__btns { margin-top: calc(var(--gx-u) * 110); }

/* ---------- INI-C · Casos de éxito ---------- */
.gx-cases { position: relative; isolation: isolate; margin: 0 calc(var(--gx-u) * 30); height: calc(var(--gx-u) * 925); min-height: 560px; border-radius: var(--gx-r-md); overflow: hidden; background: var(--gx-ink); color: var(--gx-surface); }
.gx-cases__video, .gx-cases__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.gx-cases__video { object-fit: cover; z-index: -2; }
.gx-cases__shade { z-index: -1; background: linear-gradient(180deg, rgba(26, 26, 26, .25) 0%, rgba(26, 26, 26, .6) 100%); }
.gx-cases__content { position: absolute; inset: auto calc(var(--gx-u) * 70) calc(var(--gx-u) * 75) calc(var(--gx-u) * 70); }
.gx-cases__title { opacity: .96; line-height: 1; margin: 4px 0 calc(var(--gx-u) * 55); color: var(--gx-surface); }
.gx-cases__title span { display: block; }
.gx-cases__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--gx-u) * 78); }
.gx-case-card { position: relative; display: block; height: calc(var(--gx-u) * 191); min-height: 120px; border-radius: var(--gx-r-img); overflow: hidden; background: var(--gx-green); transition: transform .3s var(--gx-ease-out); }
.gx-case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gx-case-card::after { content: ""; position: absolute; inset: 0; background: var(--gx-gradient-card); }
.gx-case-card__title { position: absolute; z-index: 1; left: calc(var(--gx-u) * 25); bottom: calc(var(--gx-u) * 25); right: 12px; font-size: max(16px, calc(var(--gx-u) * 28)); line-height: 1.07; color: rgba(247, 247, 250, .6); transition: color .3s; }
.gx-case-card:hover { transform: scale(1.03); }
.gx-case-card:hover .gx-case-card__title { color: var(--gx-surface); }

/* ---------- INI-D · Inversión (sticky) ---------- */
.gx-invest { position: relative; isolation: isolate; display: grid; grid-template-columns: 692fr 1128fr; padding: calc(var(--gx-u) * 160) var(--gx-pad-x) calc(var(--gx-u) * 200); }
.gx-invest > .gx-bg-photo img { position: sticky; top: 0; height: 100vh; }
.gx-invest__side { position: sticky; top: calc(var(--gx-header-h) + 20px); align-self: start; padding-right: calc(var(--gx-u) * 60); }
.gx-invest__side .gx-h2 { margin: 6px 0 calc(var(--gx-u) * 45); }
.gx-invest__list { margin-bottom: calc(var(--gx-u) * 50); }
.gx-invest__item { display: block; width: 100%; text-align: left; font-size: var(--gx-fs-lead); line-height: 1.5; padding-left: 14px; color: var(--gx-t-60); box-shadow: inset 2px 0 0 rgba(var(--gx-purple-rgb), .2); transition: color .3s, box-shadow .3s; }
.gx-invest__item.is-active, .gx-invest__item:hover { color: var(--gx-t-85); box-shadow: inset 2px 0 0 var(--gx-purple); }
.gx-invest__cards { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--gx-u) * 58); row-gap: 40vh; padding: 10vh 0 20vh; }
.gx-invest-card { width: 100%; max-width: calc(var(--gx-u) * 450); min-height: calc(var(--gx-u) * 400); border-radius: var(--gx-r-card); background: var(--gx-purple); color: var(--gx-surface);
  padding: calc(var(--gx-u) * 40); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.gx-invest-card:nth-child(even) { transform: translateY(calc(var(--gx-u) * 185)); }
.gx-invest-card:nth-child(even).gx-reveal:not(.is-in) { transform: translateY(calc(var(--gx-u) * 185 + 40px)); }
.gx-invest-card--green { background: var(--gx-green); }
.gx-invest-card__icon { width: calc(var(--gx-u) * 80); height: calc(var(--gx-u) * 80); min-width: 48px; min-height: 48px; margin-bottom: auto; }
.gx-invest-card__icon img { width: 100%; height: 100%; filter: brightness(0) invert(1); }
.gx-invest-card__title { font-size: var(--gx-fs-h4); line-height: 1.14; color: rgba(247, 247, 250, .6); margin-top: calc(var(--gx-u) * 40); }
.gx-invest-card__text { font-size: var(--gx-fs-body); line-height: 1.25; color: rgba(247, 247, 250, .5); }

/* ---------- INI-E · Banners ---------- */
.gx-banners { position: relative; margin: 0 calc(var(--gx-u) * 41); height: calc(var(--gx-u) * 925); min-height: 480px; border-radius: var(--gx-r-md); background: var(--gx-purple); overflow: hidden; color: var(--gx-surface); }
.gx-banners__dots { position: absolute; z-index: 2; top: calc(var(--gx-u) * 80); left: 50%; transform: translateX(-50%); }
.gx-banners__track { position: absolute; inset: 0; display: flex; transform: translateX(calc(var(--gx-index, 0) * -100%)); transition: transform var(--gx-d-slide) var(--gx-ease-in-out); }
.gx-banner { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; gap: calc(var(--gx-u) * 12); }
.gx-banner__title { color: var(--gx-surface); max-width: calc(var(--gx-u) * 1100); margin-bottom: calc(var(--gx-u) * 50); font-weight: 400; }
.gx-banner .gx-btn--arrow { margin-right: 0; }

/* ---------- INI-F · Testimonios + formulario corto ---------- */
.gx-testi { position: relative; padding: calc(var(--gx-u) * 160) 0 0; }
.gx-testi__top { position: relative; z-index: 2; display: grid; grid-template-columns: calc(var(--gx-u) * 620) 1fr; gap: calc(var(--gx-u) * 60); padding-left: calc(var(--gx-u) * 100); align-items: start; }
.gx-testi__intro { padding-bottom: calc(var(--gx-u) * 130); }
.gx-testi__carousel { align-self: end; }
.gx-testi__intro .gx-h2 { margin: 6px 0 calc(var(--gx-u) * 20); }
.gx-testi__carousel { position: relative; min-width: 0; }
.gx-testi__arrows { position: absolute; top: calc(var(--gx-u) * -90); right: calc(var(--gx-u) * 100); }
.gx-testi__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 4px; padding: 6px 4px 24px; scrollbar-width: none; -ms-overflow-style: none; }
.gx-testi__track::-webkit-scrollbar { display: none; }
.gx-testi-card { position: relative; flex: 0 0 calc(var(--gx-u) * 552); min-width: 280px; min-height: calc(var(--gx-u) * 299); scroll-snap-align: start; background: var(--gx-white); border-radius: var(--gx-r-card);
  box-shadow: var(--gx-shadow-card); padding: calc(var(--gx-u) * 36) calc(var(--gx-u) * 130) calc(var(--gx-u) * 36) calc(var(--gx-u) * 150); }
.gx-testi-card__q { position: absolute; font-size: max(70px, calc(var(--gx-u) * 150)); line-height: 1; font-weight: 500; color: rgba(33, 199, 59, .8); }
.gx-testi-card__q--open { left: calc(var(--gx-u) * 30); top: calc(var(--gx-u) * 10); }
.gx-testi-card__q--close { right: calc(var(--gx-u) * 30); bottom: calc(var(--gx-u) * -50); }
.gx-testi-card__name { font-size: var(--gx-fs-h4); line-height: 1.2; color: rgba(31, 26, 51, .75); }
.gx-testi-card__meta { font-size: var(--gx-fs-small); color: var(--gx-t-50); margin-bottom: 10px; }
.gx-testi-card__quote { margin: 0; font-size: var(--gx-fs-body-l); line-height: 1.136; color: var(--gx-t-50); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gx-testi__form { position: relative; z-index: 1; margin: calc(var(--gx-u) * -85) 0 0 calc(var(--gx-u) * 400); padding: calc(var(--gx-u) * 155) calc(var(--gx-u) * 40) calc(var(--gx-u) * 40) calc(var(--gx-u) * 60);
  background: var(--gx-purple); border-radius: var(--gx-r-md) 0 0 var(--gx-r-md); display: grid; grid-template-columns: 1fr calc(var(--gx-u) * 708); gap: calc(var(--gx-u) * 60); align-items: start; }
.gx-testi__form-text .gx-h2 { margin-bottom: 14px; }
.gx-form--home .gx-form__row { gap: calc(var(--gx-u) * 28); }
.gx-form__legal { font-size: 14px; color: var(--gx-l-50); }
.gx-form__legal a { text-decoration: underline; }

/* ---------- INI-G · FAQ ---------- */
.gx-faq { padding: calc(var(--gx-u) * 160) 0 0 calc(var(--gx-u) * 40); }
.gx-faq__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 0 var(--gx-pad-x) calc(var(--gx-u) * 55) calc(var(--gx-u) * 60); }
.gx-faq__body { max-width: calc(var(--gx-u) * 790); margin-top: 10px; }
.gx-faq__track { position: relative; display: flex; gap: calc(var(--gx-u) * 15); overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.gx-faq-card { flex: 0 0 calc(var(--gx-u) * 395); min-width: 220px; height: calc(var(--gx-u) * 500); min-height: 320px; border-radius: var(--gx-r-card); background: #F2F2F2;
  display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--gx-u) * 40); overflow: hidden;
  transition: flex-basis .6s var(--gx-ease-in-out), background-color .6s var(--gx-ease-in-out); }
.gx-faq-card.is-active { flex-basis: calc(var(--gx-u) * 720); min-width: min(420px, 86vw); background: var(--gx-purple); justify-content: center; }
.gx-faq-card__q { display: flex; gap: 14px; align-items: baseline; text-align: left; width: 100%; }
.gx-faq-card__num { font-size: max(22px, calc(var(--gx-u) * 40)); color: var(--gx-t-70); flex: 0 0 auto; }
.gx-faq-card__text { font-size: var(--gx-fs-h4); line-height: 1.2; color: var(--gx-t-60); }
.gx-faq-card.is-active .gx-faq-card__num { color: var(--gx-l-60); }
.gx-faq-card.is-active .gx-faq-card__text { font-size: var(--gx-fs-h2); line-height: 1.033; font-weight: 500; color: var(--gx-bg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gx-faq-card__a { margin-top: calc(var(--gx-u) * 30); padding-left: calc(var(--gx-u) * 60); font-size: var(--gx-fs-small); line-height: 1.22; color: rgba(250, 250, 250, .5); }
.gx-faq-card__a p + p { margin-top: 10px; }

/* ---------- Responsive (KOUD) ---------- */
@media (max-width: 1279px) {
  .gx-hero__panel { width: 34%; padding: 120px 32px 0; }
  .gx-mapsec { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .gx-mapsec__map { margin-right: 0; }
  .gx-cases__cards { gap: 20px; }
  .gx-testi__form { margin-left: 40px; grid-template-columns: 1fr 1.3fr; }
}
@media (max-width: 1023px) {
  .gx-hero { height: 100svh; min-height: 620px; }
  .gx-hero__panel { top: auto; left: 0; width: auto; padding: 0 0 20px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gx-hero__cards { grid-auto-flow: column; grid-auto-columns: 220px; overflow-x: auto; padding: 0 24px; gap: 12px; scrollbar-width: none; }
  .gx-hero-card { height: 120px; }
  .gx-hero__content { left: 24px; right: 24px; bottom: 170px; }
  .gx-hero__dots { left: 0; top: -56px; height: auto; flex-direction: row; }
  .gx-hero__dots .gx-dot.is-active { height: 8px; width: 60px; }
  .gx-mapsec { grid-template-columns: 1fr; padding: 72px 24px 64px; margin-top: -30px; border-radius: 30px 30px 0 0; }
  .gx-mapsec__text { padding-top: 32px; }
  .gx-mapsec__btns { margin-top: 40px; }
  .gx-cases { margin: 0 16px; height: auto; min-height: 620px; }
  .gx-cases__content { position: relative; inset: auto; padding: 160px 24px 32px; }
  .gx-cases__cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gx-invest { grid-template-columns: 1fr; padding: 72px 24px; }
  .gx-invest__side { position: relative; top: 0; padding: 0 0 32px; }
  .gx-invest__cards { row-gap: 16px; column-gap: 16px; padding: 0; }
  .gx-invest-card:nth-child(even), .gx-invest-card:nth-child(even).gx-reveal:not(.is-in) { transform: none; }
  .gx-invest-card { max-width: none; min-height: 260px; }
  .gx-banners { margin: 0 16px; height: 520px; }
  .gx-testi { padding-top: 72px; }
  .gx-testi__top { grid-template-columns: 1fr; padding: 0 24px; }
  .gx-testi__arrows { position: static; justify-content: flex-end; margin-bottom: 12px; }
  .gx-testi__form { margin: 0 16px; border-radius: 30px; padding: 40px 24px; grid-template-columns: 1fr; margin-top: 24px; }
  .gx-faq { padding: 72px 0 0 16px; }
  .gx-faq__head { padding: 0 24px 32px 8px; }
}
@media (max-width: 767px) {
  .gx-hero__title { margin-bottom: 24px; font-size: 44px; }
  .gx-cases__title, .gx-banner__title { font-size: 38px; line-height: 1.05; overflow-wrap: anywhere; }
  .gx-banner { padding-top: 56px; }
  .gx-faq-card.is-active .gx-faq-card__text { font-size: 26px; }
  .gx-stat__num { font-size: 44px; }
  .gx-stat__label { font-size: 15px; }
  .gx-cases__cards { grid-template-columns: 1fr; }
  .gx-invest__cards { grid-template-columns: 1fr; }
  .gx-banners { height: 460px; }
  .gx-testi-card { flex-basis: 84vw; padding: 28px 24px 40px 72px; }
  .gx-testi-card__q--open { left: 14px; top: 0; }
  .gx-faq-card { height: 380px; }
  .gx-faq-card.is-active { flex-basis: 86vw; }
  .gx-faq-card__a { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-hero__slide, .gx-hero__slide img, .gx-banners__track, .gx-faq-card { transition: none; }
}
