/* =====================================================================
   gig.mx Fase 1 · Desarrollos (ERS §8, DES-A … DES-D). Solo en /desarrollos.
   ===================================================================== */

/* ---------- DES-A · Encabezado y filtros ---------- */
.gx-plist { padding: calc(var(--gx-u) * 130) calc(var(--gx-u) * 80) calc(var(--gx-u) * 120); scroll-margin-top: var(--gx-header-h); }
.gx-plist .gx-page-title { padding-left: calc(var(--gx-u) * 12); margin-bottom: calc(var(--gx-u) * 40); }
.gx-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding: 0 calc(var(--gx-u) * 20) calc(var(--gx-u) * 22); border-bottom: 1px solid var(--gx-line); margin-bottom: calc(var(--gx-u) * 70); }
.gx-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px calc(var(--gx-u) * 25); }
.gx-tab { font-size: var(--gx-fs-lead); line-height: 1.5; color: var(--gx-t-60); transition: color .3s; }
.gx-tab:hover { color: var(--gx-t-85); }
.gx-tab.is-active { color: var(--gx-purple); }
.gx-tabs__sep { width: 1px; height: 1.1em; background: rgba(var(--gx-purple-rgb), .3); }
.gx-filters__right { display: flex; align-items: center; gap: calc(var(--gx-u) * 30); }
.gx-fstatus, .gx-floc { position: relative; display: flex; align-items: center; gap: 4px; }
.gx-fstatus__cycle, .gx-floc__btn { display: inline-flex; align-items: center; gap: 10px; font-size: var(--gx-fs-lead); line-height: 1.5; color: var(--gx-t-60); transition: color .3s; }
.gx-dotc { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: rgba(var(--gx-purple-rgb), .2); transition: background-color .3s; flex: 0 0 auto; }
.gx-dotc--preventa, .gx-fstatus__cycle.is-preventa .gx-dotc { background: var(--gx-status-preventa); }
.gx-dotc--activo, .gx-fstatus__cycle.is-activo .gx-dotc { background: var(--gx-status-activo); }
.gx-dotc--proximamente, .gx-fstatus__cycle.is-proximamente .gx-dotc { background: var(--gx-status-proximamente); }
.gx-fstatus__cycle.is-preventa { color: var(--gx-status-preventa); }
.gx-fstatus__cycle.is-activo { color: var(--gx-status-activo); }
.gx-fstatus__cycle.is-proximamente { color: var(--gx-status-proximamente); }
.gx-fstatus__caret { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--gx-t-60); }
.gx-fstatus__caret svg { width: 16px; height: 16px; }
.gx-floc__btn.is-set { color: var(--gx-purple); }
.gx-floc__clear { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--gx-purple); }
.gx-floc__clear svg { width: 16px; height: 16px; }
.gx-floc__clear[hidden] { display: none; }
.gx-ficon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--gx-t-80); }
.gx-ficon svg { width: 30px; height: 30px; }
.gx-menu { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 10px; background: var(--gx-white); border-radius: 20px; box-shadow: 0 8px 24px rgba(37, 23, 92, .14); }
.gx-menu--right { left: auto; right: 0; }
.gx-menu[hidden] { display: none; }
.gx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 14px; border-radius: 12px; font-size: var(--gx-fs-body-l); line-height: 1.136; color: var(--gx-t-70); }
.gx-menu button:hover, .gx-menu button:focus-visible { background: rgba(var(--gx-purple-rgb), .06); }
.gx-menu button[aria-checked="true"] { color: var(--gx-purple); font-weight: 500; }

/* ---------- Grid y tarjetas ---------- */
.gx-results { transition: opacity .3s; min-height: 200px; }
.gx-results.is-loading { opacity: .4; pointer-events: none; }
.gx-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: calc(var(--gx-u) * 25); row-gap: calc(var(--gx-u) * 35); }
.gx-pcard { border: 1px solid var(--gx-line); border-radius: var(--gx-r-lg); padding: calc(var(--gx-u) * 20) calc(var(--gx-u) * 25) calc(var(--gx-u) * 30); transition: box-shadow .3s, border-color .3s; min-width: 0; display: flex; flex-direction: column; }
.gx-pcard:hover { box-shadow: var(--gx-shadow-card); border-color: rgba(var(--gx-purple-rgb), .3); }
.gx-pcard__media { position: relative; aspect-ratio: 520 / 412; border-radius: var(--gx-r-img); overflow: hidden; background: #E9E7EE; }
.gx-pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--gx-ease-out); }
.gx-pcard:hover .gx-pcard__media img { transform: scale(1.05); }
.gx-pcard__media .gx-badge { position: absolute; top: calc(var(--gx-u) * 22); left: calc(var(--gx-u) * 18); }
.gx-pcard__name { margin: calc(var(--gx-u) * 18) 0 calc(var(--gx-u) * 10) calc(var(--gx-u) * 11); font-size: max(24px, calc(var(--gx-u) * 50)); line-height: 1.2; letter-spacing: -.015em; color: var(--gx-t-80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0 0 calc(var(--gx-u) * 20) calc(var(--gx-u) * 11); font-size: var(--gx-fs-body); line-height: 1.3; color: var(--gx-t-60); }
.gx-pcard__meta span { display: inline-flex; align-items: center; gap: 6px; padding-right: 12px; }
.gx-pcard__meta span + span { padding-left: 12px; border-left: 1px solid rgba(var(--gx-purple-rgb), .25); }
.gx-pcard__meta .gx-ico { width: 18px; height: 18px; }
.gx-pcard__actions { display: flex; gap: calc(var(--gx-u) * 5); margin-top: auto; }
.gx-pcard__actions .gx-btn { flex: 1 1 auto; min-width: 0; width: auto; margin-right: 0; }
.gx-pcard__actions .gx-btn--315 { flex-basis: 61%; }
.gx-pcard__actions .gx-btn--arrow:hover { width: auto; }
.gx-pcard__actions .gx-btn--arrow::before, .gx-pcard__actions .gx-btn--arrow::after { display: none; }
.gx-empty { text-align: center; padding: 80px 16px; display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* ---------- DES-B · Paginación ---------- */
.gx-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: calc(var(--gx-u) * 70); flex-wrap: wrap; }
.gx-page-btn { display: inline-flex; align-items: center; justify-content: center; transition: background-color .4s, color .4s; color: var(--gx-purple); }
.gx-page-btn--num { width: calc(var(--gx-u) * 60); height: calc(var(--gx-u) * 60); min-width: 40px; min-height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(var(--gx-purple-rgb), .2); font-size: max(16px, calc(var(--gx-u) * 28)); }
.gx-page-btn--num:hover { background: rgba(var(--gx-purple-rgb), .08); }
.gx-page-btn--num.is-active { background: var(--gx-t-85); color: var(--gx-bg); box-shadow: none; }
.gx-page-btn--arrow { width: 32px; height: 40px; }
.gx-page-btn--arrow svg { width: 20px; height: 20px; }
.gx-page-btn.is-disabled { opacity: .3; }
.gx-page-gap { color: var(--gx-t-50); padding: 0 4px; }

/* ---------- Panel lateral de filtros ---------- */
.gx-fpanel { position: fixed; inset: 0; z-index: 1150; background: rgba(31, 26, 51, .25); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.gx-fpanel.is-open { opacity: 1; visibility: visible; }
.gx-fpanel__card { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--gx-bg); padding: 28px; overflow: auto; transform: translateX(100%); transition: transform .4s var(--gx-ease-in-out); display: flex; flex-direction: column; }
.gx-fpanel.is-open .gx-fpanel__card { transform: none; }
.gx-fpanel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.gx-fpanel__head .gx-modal__close { position: static; }
.gx-fpanel__form { display: flex; flex-direction: column; gap: 24px; flex: 1; }
.gx-fpanel__group { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.gx-fpanel__group legend { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--gx-t-50); margin-bottom: 8px; }
.gx-fpanel__opt { display: flex; align-items: center; gap: 12px; padding: 8px 4px; cursor: pointer; font-size: 18px; color: var(--gx-t-70); }
.gx-fpanel__opt input { width: 18px; height: 18px; accent-color: var(--gx-purple); }
.gx-fpanel__actions { margin-top: auto; display: flex; gap: 12px; position: sticky; bottom: 0; background: var(--gx-bg); padding-top: 12px; }
.gx-fpanel__actions .gx-btn { flex: 1; width: auto; min-width: 0; margin-right: 0; }

/* ---------- Modal "Hablemos" ---------- */
.gx-modal__card--talk { padding: calc(var(--gx-u) * 60) calc(var(--gx-u) * 60) calc(var(--gx-u) * 50); }
.gx-modal__card--talk .gx-modal__title { margin-bottom: calc(var(--gx-u) * 30); }
.gx-modal__card--talk .gx-btn--arrow { margin-right: 0; }

/* ---------- DES-C · Financiamiento ---------- */
.gx-fin { position: relative; isolation: isolate; display: grid; grid-template-columns: 700fr 1120fr; padding: calc(var(--gx-u) * 140) var(--gx-pad-x) calc(var(--gx-u) * 200); }
.gx-fin > .gx-bg-photo img { position: sticky; top: 0; height: 100vh; }
.gx-fin__side { position: sticky; top: calc(var(--gx-header-h) + 20px); align-self: start; padding-right: calc(var(--gx-u) * 60); }
.gx-fin__side .gx-h2 { margin: 6px 0 calc(var(--gx-u) * 40); }
.gx-fin__list { margin-bottom: calc(var(--gx-u) * 50); box-shadow: inset 2px 0 0 rgba(var(--gx-purple-rgb), .2); }
.gx-fin__item { padding: 8px 0 8px 14px; }
.gx-fin__item.is-active { box-shadow: inset 2px 0 0 var(--gx-purple); }
.gx-fin__item > button { display: flex; gap: 14px; align-items: baseline; text-align: left; width: 100%; }
.gx-fin__num { font-size: max(22px, calc(var(--gx-u) * 40)); line-height: 1.3; color: rgba(var(--gx-purple-rgb), .3); transition: color .6s; }
.gx-fin__title { font-size: var(--gx-fs-h4); line-height: 1.2; color: var(--gx-t-60); transition: color .6s; }
.gx-fin__item.is-active .gx-fin__num { color: var(--gx-purple); }
.gx-fin__item.is-active .gx-fin__title { color: var(--gx-t-80); }
.gx-fin__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1.3s var(--gx-ease-in-out); padding-left: calc(max(22px, calc(var(--gx-u) * 40)) + 14px); }
.gx-fin__desc > p { overflow: hidden; font-size: var(--gx-fs-body); line-height: 1.25; color: var(--gx-t-40); max-width: calc(var(--gx-u) * 570); }
.gx-fin__item.is-active .gx-fin__desc { grid-template-rows: 1fr; }
.gx-fin__item.is-active .gx-fin__desc > p { padding-top: 6px; }
.gx-fin__cards { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: calc(var(--gx-u) * 30); row-gap: calc(var(--gx-u) * 120); padding: 8vh 0 25vh; align-content: start; }
.gx-fin-card { aspect-ratio: 290 / 215; border-radius: var(--gx-r-card); background: var(--gx-surface); box-shadow: var(--gx-shadow-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; color: var(--gx-t-40); }
.gx-fin-card:nth-child(3n+2) { transform: translateY(calc(var(--gx-u) * 107)); }
.gx-fin-card--dark { background: var(--gx-purple); color: rgba(250, 250, 250, .4); box-shadow: none; }
.gx-fin-card__logo { width: 60%; max-width: 170px; height: 42%; display: flex; align-items: center; justify-content: center; }
.gx-fin-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gx-fin-card__name { font-size: var(--gx-fs-body); line-height: 1.25; text-align: center; }

/* ---------- DES-D · Beneficios ---------- */
.gx-benefits { padding: calc(var(--gx-u) * 140) var(--gx-pad-x) calc(var(--gx-u) * 40); text-align: center; display: flex; flex-direction: column; align-items: center; }
.gx-benefits .gx-h2 { max-width: calc(var(--gx-u) * 1200); }
.gx-benefits__body { max-width: calc(var(--gx-u) * 1150); margin: 18px 0 calc(var(--gx-u) * 60); }
.gx-benefits__body p + p { margin-top: 6px; }
.gx-benefits__cards { display: flex; justify-content: center; flex-wrap: wrap; gap: calc(var(--gx-u) * 60); margin-bottom: calc(var(--gx-u) * 70); }
.gx-benefit { width: calc(var(--gx-u) * 330); min-width: 220px; min-height: calc(var(--gx-u) * 340); padding: 32px 24px; background: var(--gx-white); border-radius: var(--gx-r-card); box-shadow: var(--gx-shadow-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--gx-u) * 40); }
.gx-benefit__icon { width: calc(var(--gx-u) * 100); height: calc(var(--gx-u) * 100); min-width: 64px; min-height: 64px; }
.gx-benefit__icon img { width: 100%; height: 100%; }
.gx-benefit__text { font-size: var(--gx-fs-h4); line-height: 1.14; color: var(--gx-t-60); }
.gx-benefits .gx-btn--arrow { margin-right: 0; }

/* ---------- Responsive (KOUD) ---------- */
@media (max-width: 1279px) {
  .gx-pgrid { grid-template-columns: repeat(2, 1fr); column-gap: 20px; row-gap: 24px; }
  .gx-fin { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 1023px) {
  .gx-plist { padding: calc(var(--gx-header-h) + 16px) 24px 64px; }
  .gx-tabs { display: none; }
  .gx-fstatus, .gx-floc { display: none; }
  .gx-filters { justify-content: flex-end; border-bottom: 0; padding: 0; margin-top: -64px; margin-bottom: 24px; }
  .gx-ficon { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(var(--gx-purple-rgb), .2); }
  .gx-fin { grid-template-columns: 1fr; padding: 72px 24px; }
  .gx-fin__side { position: relative; top: 0; padding: 0 0 32px; }
  .gx-fin__desc { grid-template-rows: 1fr; }
  .gx-fin__cards { grid-template-columns: repeat(2, 1fr); row-gap: 16px; column-gap: 16px; padding: 0; }
  .gx-fin-card:nth-child(3n+2) { transform: none; }
  .gx-benefits { padding: 72px 24px 24px; }
}
@media (max-width: 767px) {
  .gx-plist { padding: calc(var(--gx-header-h) + 8px) 16px 56px; }
  .gx-plist .gx-page-title { font-size: 44px; padding-left: 0; }
  .gx-filters { margin-top: -62px; }
  .gx-pgrid { grid-template-columns: 1fr; }
  .gx-pcard { padding: 14px 14px 18px; border-radius: 26px; }
  .gx-pcard__actions .gx-btn { font-size: 16px; }
  .gx-modal__card--talk { padding: 44px 18px 24px; }
  .gx-benefits__cards { gap: 16px; }
  .gx-benefit { width: 100%; min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 20px; }
  .gx-benefit__text { font-size: 20px; }
}
