/* ==========================================================================
   GRUPO GI — Sistema visual 2026
   Tokens globales + sitio público (prefijo gx-).
   Se carga después de gi-responsive.css. No toca cartas, credenciales ni PDF.
   ========================================================================== */

:root {
  /* Tinta (azul marino) */
  --gx-ink-950: #08131f;
  --gx-ink-900: #0c1b2a;
  --gx-ink-800: #132a3f;
  --gx-ink-700: #1d3a54;

  /* Marca: azul acero del logo, más profundo para botones con buen contraste */
  --gx-brand-700: #24506e;
  --gx-brand-600: #2d5f80;
  --gx-brand-500: #3d7196;
  --gx-brand-400: #60829b;
  --gx-brand-200: #c9d8e4;
  --gx-brand-100: #e5eef5;
  --gx-brand-50: #f1f6fa;

  /* Acento único: oro apagado */
  --gx-gold-600: #a07a35;
  --gx-gold-500: #b98f45;
  --gx-gold-300: #dcc39a;
  --gx-gold-100: #f6eedf;

  /* Neutros (familia fría) */
  --gx-bg: #f4f6f9;
  --gx-surface: #ffffff;
  --gx-surface-2: #f8fafc;
  --gx-line: #e2e8ef;
  --gx-line-strong: #cdd6e0;
  --gx-text: #0f1d2b;
  --gx-text-2: #334355;
  --gx-muted: #5d6c7c;

  /* Estados */
  --gx-ok: #1f7a55;
  --gx-ok-bg: #e7f4ee;
  --gx-warn: #9a6512;
  --gx-warn-bg: #fbf1df;
  --gx-danger: #b4372b;
  --gx-danger-bg: #fbecea;

  /* Tipografía */
  --gx-font: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gx-serif: 'Instrument Serif', 'Times New Roman', serif;

  /* Forma y profundidad (sombras teñidas de azul tinta) */
  --gx-r-sm: 8px;
  --gx-r-md: 12px;
  --gx-r-lg: 18px;
  --gx-r-xl: 26px;
  --gx-shadow-sm: 0 1px 2px rgba(12, 27, 42, 0.06), 0 1px 1px rgba(12, 27, 42, 0.04);
  --gx-shadow-md: 0 2px 4px rgba(12, 27, 42, 0.05), 0 10px 28px -8px rgba(12, 27, 42, 0.14);
  --gx-shadow-lg: 0 4px 10px rgba(12, 27, 42, 0.06), 0 28px 60px -18px rgba(12, 27, 42, 0.28);
  --gx-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --gx-nav-h: 72px;
  --gx-container: 1200px;
}

/* ─── Base del sitio público ────────────────────────────────────────────── */

.gx-site {
  font-family: var(--gx-font);
  color: var(--gx-text);
  background: var(--gx-bg);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
.gx-site *, .gx-site *::before, .gx-site *::after { box-sizing: border-box; }
/* :where() deja estos reinicios sin especificidad, para que cada bloque fije sus márgenes. */
:where(.gx-site) :where(h1, h2, h3, p, dl, dd, ul) { margin: 0; padding: 0; }
:where(.gx-site) :where(ul) { list-style: none; }
:where(.gx-site) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.gx-site a { color: inherit; }
.gx-site :focus-visible { outline: 2px solid var(--gx-gold-500); outline-offset: 3px; border-radius: 6px; }
.gx-site main { display: block; }

.gx-container { width: 100%; max-width: var(--gx-container); margin: 0 auto; padding: 0 28px; }

.gx-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gx-gold-500); color: var(--gx-ink-950); padding: 10px 14px; border-radius: var(--gx-r-sm);
  font-weight: 600; text-decoration: none;
}
.gx-skip:focus { top: 12px; }

.gx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gx-brand-600);
}
.gx-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gx-gold-500); }
.gx-eyebrow--light { color: var(--gx-gold-300); }

.gx-h2 {
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em;
  font-weight: 600; color: var(--gx-ink-900); text-wrap: balance; margin-top: 14px;
}
.gx-h2--serif { font-family: var(--gx-serif); font-weight: 400; letter-spacing: -0.01em; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.gx-h2--light { color: #fff; }
.gx-lead { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--gx-muted); max-width: 60ch; text-wrap: pretty; }

.gx-section { padding: 104px 0 112px; }
.gx-head { margin-bottom: 44px; }

/* ─── Botones ───────────────────────────────────────────────────────────── */

.gx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--gx-ease), background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gx-site .gx-btn:active { transform: translateY(1px) scale(0.985); }
.gx-btn svg { transition: transform 0.25s var(--gx-ease); }
.gx-btn:hover svg { transform: translateX(3px); }
.gx-site .gx-btn--gold { background: var(--gx-gold-500); color: var(--gx-ink-950); box-shadow: 0 8px 24px -10px rgba(185, 143, 69, 0.7); }
.gx-site .gx-btn--gold:hover { background: #c79c50; }
.gx-site .gx-btn--ghost-light { color: #e9eff5; border: 1px solid rgba(255, 255, 255, 0.22); }
.gx-site .gx-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.gx-btn--block { width: 100%; }
.gx-site .gx-btn--nav {
  height: 40px; padding: 0 16px; font-size: 14px;
  color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
}
.gx-site .gx-btn--nav:hover { background: rgba(255, 255, 255, 0.18); }
.gx-btn--nav svg { transition: none; }
.gx-btn--nav:hover svg { transform: none; }

/* ─── Navegación ────────────────────────────────────────────────────────── */

.gx-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--gx-nav-h);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.gx-nav__inner {
  max-width: var(--gx-container); height: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 32px;
}
.gx-nav__brand { display: flex; align-items: center; padding: 0; }
.gx-nav__logo { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); transition: filter 0.3s ease; }
.gx-nav__links { display: flex; gap: 4px; margin-left: auto; }
.gx-site .gx-nav__link {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: rgba(233, 239, 245, 0.82);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.gx-site .gx-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.gx-nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.gx-site .gx-nav__menu {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, 0.1);
}

.gx-nav--solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--gx-line), 0 8px 24px -16px rgba(12, 27, 42, 0.25);
}
.gx-nav--solid .gx-nav__logo { filter: none; }
.gx-site .gx-nav--solid .gx-nav__link { color: var(--gx-text-2); }
.gx-site .gx-nav--solid .gx-nav__link:hover { color: var(--gx-ink-900); background: var(--gx-brand-50); }
.gx-site .gx-nav--solid .gx-btn--nav { color: #fff; background: var(--gx-ink-900); border-color: var(--gx-ink-900); }
.gx-site .gx-nav--solid .gx-btn--nav:hover { background: var(--gx-ink-700); }
.gx-site .gx-nav--solid .gx-nav__menu { color: var(--gx-ink-900); background: var(--gx-brand-50); }

.gx-nav__sheet {
  position: fixed; top: var(--gx-nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98); padding: 12px 20px 32px;
  display: flex; flex-direction: column; animation: gx-sheet 0.28s var(--gx-ease);
}
.gx-site .gx-nav__sheet button {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6px; font-size: 20px; font-weight: 600; color: var(--gx-ink-900);
  border-bottom: 1px solid var(--gx-line);
}
@keyframes gx-sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.gx-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--gx-ink-900);
  padding: calc(var(--gx-nav-h) + 72px) 0 96px;
  min-height: min(860px, 100dvh);
  display: flex; align-items: center;
}
.gx-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(61, 113, 150, 0.45), transparent 60%),
    radial-gradient(700px 480px at 10% 100%, rgba(185, 143, 69, 0.16), transparent 60%),
    linear-gradient(180deg, var(--gx-ink-950) 0%, var(--gx-ink-900) 55%, #0f2335 100%);
}
.gx-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.gx-hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px; align-items: center;
}
.gx-hero__title {
  margin-top: 22px; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 600; text-wrap: balance; color: #fff;
}
.gx-hero__title em {
  font-family: var(--gx-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  color: var(--gx-gold-300);
}
.gx-hero__lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: rgba(222, 231, 240, 0.78); max-width: 52ch; text-wrap: pretty; }
.gx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.gx-hero__facts {
  display: flex; gap: 0; margin-top: 52px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); max-width: 520px;
}
.gx-hero__facts > div { flex: 1; padding-right: 20px; }
.gx-hero__facts > div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.gx-hero__facts dt { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gx-hero__facts dd { margin-top: 4px; font-size: 13px; color: rgba(222, 231, 240, 0.6); }

/* Tarjeta de estado en vivo */
.gx-status {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--gx-r-xl); padding: 22px; color: #fff;
}
.gx-status__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 4px 18px; }
.gx-status__kicker { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(222, 231, 240, 0.6); }
.gx-status__head strong { display: block; margin-top: 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.gx-live {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(31, 122, 85, 0.22); color: #9fe0c1;
}
.gx-live__dot { width: 7px; height: 7px; border-radius: 50%; background: #4cd295; box-shadow: 0 0 0 0 rgba(76, 210, 149, 0.6); animation: gx-pulse 2.2s infinite; }
.gx-live--off { background: rgba(255, 255, 255, 0.08); color: rgba(222, 231, 240, 0.7); }
.gx-live--off .gx-live__dot { background: #94a3b8; animation: none; }
@keyframes gx-pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 210, 149, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(76, 210, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 210, 149, 0); } }
.gx-status__list { display: grid; gap: 2px; }
.gx-status__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: var(--gx-r-sm); font-size: 15px;
}
.gx-status__list li:nth-child(odd) { background: rgba(255, 255, 255, 0.035); }
.gx-status__name { font-weight: 500; }
.gx-status__list li.is-closed .gx-status__name { color: rgba(222, 231, 240, 0.55); }
.gx-site .gx-status__foot {
  margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px; border-radius: var(--gx-r-md); font-size: 14.5px; font-weight: 600;
  color: var(--gx-gold-300); background: rgba(185, 143, 69, 0.1); transition: background-color 0.2s ease;
}
.gx-site .gx-status__foot:hover { background: rgba(185, 143, 69, 0.18); }

/* Chips de estado */
.gx-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.gx-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gx-chip--ok { background: var(--gx-ok-bg); color: var(--gx-ok); }
.gx-chip--warn { background: var(--gx-warn-bg); color: var(--gx-warn); }
.gx-chip--off { background: #eef1f5; color: var(--gx-muted); }
.gx-status .gx-chip--ok { background: rgba(31, 122, 85, 0.24); color: #a6e6c8; }
.gx-status .gx-chip--warn { background: rgba(185, 143, 69, 0.24); color: var(--gx-gold-300); }
.gx-status .gx-chip--off { background: rgba(255, 255, 255, 0.07); color: rgba(222, 231, 240, 0.6); }

/* ─── Valores ───────────────────────────────────────────────────────────── */

.gx-values { position: relative; margin-top: -1px; background: var(--gx-surface); border-bottom: 1px solid var(--gx-line); }
.gx-values__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gx-value { padding: 40px 28px 44px; }
.gx-value + .gx-value { border-left: 1px solid var(--gx-line); }
.gx-value__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--gx-brand-600); background: var(--gx-brand-50); border: 1px solid var(--gx-brand-100);
}
.gx-value h3 { margin-top: 20px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--gx-ink-900); }
.gx-value p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--gx-muted); }

/* ─── Localizador de sucursales ─────────────────────────────────────────── */

.gx-branches { background: var(--gx-bg); }
.gx-locator {
  display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 0;
  background: var(--gx-surface); border: 1px solid var(--gx-line); border-radius: var(--gx-r-xl);
  box-shadow: var(--gx-shadow-lg); overflow: hidden; height: 640px;
}
.gx-locator__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--gx-line); }
.gx-locator__toolbar { display: flex; gap: 6px; padding: 16px; border-bottom: 1px solid var(--gx-line); background: var(--gx-surface-2); }
.gx-site .gx-locator__toolbar button {
  flex: 1; height: 38px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--gx-muted);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.gx-site .gx-locator__toolbar button:hover { color: var(--gx-ink-900); }
.gx-site .gx-locator__toolbar button.is-on { background: var(--gx-surface); color: var(--gx-ink-900); box-shadow: var(--gx-shadow-sm), 0 0 0 1px var(--gx-line); }
.gx-branch-list { overflow-y: auto; padding: 8px; flex: 1; overscroll-behavior: contain; }
.gx-branch { border-radius: var(--gx-r-md); transition: background-color 0.2s ease; }
.gx-branch + .gx-branch { margin-top: 2px; }
.gx-branch:hover { background: var(--gx-surface-2); }
.gx-branch.is-active { background: var(--gx-brand-50); box-shadow: inset 3px 0 0 var(--gx-brand-600); }
.gx-site .gx-branch__main { display: block; width: 100%; text-align: left; padding: 14px 14px 8px; }
.gx-branch__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.gx-branch__name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--gx-ink-900); }
.gx-branch__row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--gx-text-2); margin-top: 4px; }
.gx-branch__row svg { flex: none; margin-top: 2px; color: var(--gx-brand-400); }
.gx-branch__links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 2px 14px 14px; }
.gx-branch__links a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600;
  color: var(--gx-brand-600); text-decoration: none;
}
.gx-branch__links a:hover { color: var(--gx-brand-700); text-decoration: underline; text-underline-offset: 3px; }
.gx-branch-empty { padding: 28px 18px; font-size: 14.5px; line-height: 1.6; color: var(--gx-muted); }

.gx-map { position: relative; min-height: 0; }
.gx-map__canvas { position: absolute; inset: 0; background: #e9eef3; }
.gx-map .leaflet-control-zoom { border: 0 !important; box-shadow: var(--gx-shadow-md) !important; border-radius: 12px !important; overflow: hidden; margin: 0 16px 16px 0 !important; }
.gx-map .leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--gx-ink-900) !important; border-color: var(--gx-line) !important; }

/* Pines y popups del mapa (marcado generado por Leaflet) */
.gx-site .gi-map-pin { display: flex; flex-direction: column; align-items: center; transform-origin: bottom center; transition: transform 0.25s var(--gx-ease); }
.gx-site .gi-map-pin:hover { transform: translateY(-2px); }
.gx-site .gi-map-pin__name {
  background: var(--gx-ink-900); color: #fff; border: 0; border-radius: 6px;
  font: 600 11.5px/1 var(--gx-font); padding: 5px 8px; margin-bottom: 4px; white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(12, 27, 42, 0.5);
}
.gx-site .gi-map-pin__bubble {
  width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  border: 2px solid var(--gx-brand-600); box-shadow: 0 6px 16px -6px rgba(12, 27, 42, 0.5);
}
.gx-site .gi-map-pin__bubble svg { width: 24px; height: 24px; }
.gx-site .gi-map-pin__point { width: 2px; height: 10px; background: var(--gx-brand-600); }
.gx-site .gi-map-pin--active .gi-map-pin__name { background: var(--gx-gold-500); color: var(--gx-ink-950); }
.gx-site .gi-map-pin--active .gi-map-pin__bubble { border-color: var(--gx-gold-500); transform: scale(1.1); }
.gx-site .gi-map-popup-wrap .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--gx-shadow-lg); padding: 2px; }
.gx-site .gi-map-popup-wrap .leaflet-popup-content { margin: 14px 16px; font-family: var(--gx-font); }
.gx-site .gi-map-popup { display: grid; gap: 4px; font-size: 13.5px; color: var(--gx-text-2); }
.gx-site .gi-map-popup strong { font-size: 15px; color: var(--gx-ink-900); }
.gx-site .gi-map-popup em { font-style: normal; color: var(--gx-muted); }
.gx-site .gi-map-popup__link {
  margin-top: 8px; display: inline-flex; justify-content: center; padding: 8px 12px; border-radius: 999px;
  background: var(--gx-ink-900); color: #fff !important; font-weight: 600; text-decoration: none;
}

/* ─── Nosotros ──────────────────────────────────────────────────────────── */

.gx-about { background: var(--gx-surface); border-top: 1px solid var(--gx-line); }
.gx-about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; align-items: start; }
.gx-about__statement .gx-h2 { color: var(--gx-ink-900); }
.gx-about__body { padding-top: 34px; }
.gx-about__body > p { font-size: 17px; line-height: 1.7; color: var(--gx-text-2); max-width: 58ch; }
.gx-about__facts { margin-top: 36px; border-top: 1px solid var(--gx-line); }
.gx-about__facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--gx-line); }
.gx-about__facts dt { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--gx-brand-600); font-variant-numeric: tabular-nums; }
.gx-about__facts dd { font-size: 15px; line-height: 1.5; color: var(--gx-muted); }

/* ─── Contacto (CTA) ────────────────────────────────────────────────────── */

.gx-cta { position: relative; overflow: hidden; background: var(--gx-ink-900); color: #fff; padding: 96px 0; }
.gx-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 90% 0%, rgba(61, 113, 150, 0.4), transparent 60%),
              radial-gradient(500px 300px at 0% 100%, rgba(185, 143, 69, 0.14), transparent 60%);
}
.gx-cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.gx-cta__lead { margin-top: 16px; font-size: 17px; line-height: 1.6; color: rgba(222, 231, 240, 0.75); max-width: 50ch; }
.gx-cta__card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--gx-r-xl); padding: 24px; display: grid; gap: 18px;
}
.gx-cta__note { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(222, 231, 240, 0.85); }
.gx-cta__note svg { color: var(--gx-gold-300); flex: none; }
.gx-cta__phones { display: grid; gap: 2px; }
.gx-cta__phones li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14.5px; }
.gx-cta__phones a { color: var(--gx-gold-300); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

/* ─── Pie ───────────────────────────────────────────────────────────────── */

.gx-footer { background: var(--gx-ink-950); color: rgba(222, 231, 240, 0.7); padding: 56px 0 28px; }
.gx-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gx-footer__logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.gx-footer__brand p { margin-top: 14px; font-size: 14px; }
.gx-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.gx-site .gx-footer__nav a, .gx-site .gx-footer__nav button { font-size: 14.5px; font-weight: 500; color: rgba(233, 239, 245, 0.85); text-decoration: none; padding: 4px 0; }
.gx-site .gx-footer__nav a:hover, .gx-site .gx-footer__nav button:hover { color: #fff; }
.gx-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.gx-footer .gi-atrix-btn { margin: 0; }

/* ─── Globo de marca en el hero ─────────────────────────────────────────── */

.gx-globe {
  position: absolute; right: -6%; top: 50%; width: min(760px, 62vw); height: auto; transform: translateY(-50%);
  color: rgba(167, 199, 222, 0.22); pointer-events: none;
}
.gx-globe__spin { transform-origin: 200px 200px; animation: gx-spin 60s linear infinite; }
@keyframes gx-spin { to { transform: rotateY(360deg); } }
.gx-hero__grid { z-index: 1; }

/* ─── Franja de sucursales ──────────────────────────────────────────────── */

.gx-marquee {
  position: relative; overflow: hidden; background: var(--gx-ink-950); color: rgba(222, 231, 240, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gx-marquee__track { display: flex; width: max-content; animation: gx-marquee 48s linear infinite; }
.gx-marquee:hover .gx-marquee__track { animation-play-state: paused; }
.gx-marquee__row { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.gx-marquee__row li { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; font-size: 14px; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, 0.07); }
.gx-marquee__row strong { color: #fff; font-weight: 600; }
.gx-marquee__row span:last-child { font-variant-numeric: tabular-nums; color: rgba(222, 231, 240, 0.6); }
.gx-marquee__dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.gx-marquee__dot.is-open { background: #4cd295; box-shadow: 0 0 0 3px rgba(76, 210, 149, 0.18); }
@keyframes gx-marquee { to { transform: translateX(-50%); } }

/* ─── Cómo funciona ─────────────────────────────────────────────────────── */

.gx-how { background: var(--gx-surface); border-top: 1px solid var(--gx-line); }
.gx-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; }
.gx-head--split .gx-lead { margin-top: 0; }
.gx-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.gx-step {
  position: relative; padding: 30px 28px 32px; border-radius: var(--gx-r-xl);
  background: var(--gx-bg); border: 1px solid var(--gx-line);
  transition: transform 0.35s var(--gx-ease), box-shadow 0.35s var(--gx-ease), background-color 0.35s ease;
}
.gx-step:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--gx-shadow-md); }
.gx-step__n { font-family: var(--gx-serif); font-size: 64px; line-height: 1; color: var(--gx-gold-500); }
.gx-step h3 { margin-top: 20px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--gx-ink-900); }
.gx-step p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--gx-muted); }
.gx-step::after {
  content: ''; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gx-gold-500), transparent); opacity: 0.6;
}

/* ─── Directorio en el pie ──────────────────────────────────────────────── */

.gx-footer__dir { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 10px 32px; }
.gx-footer__dir li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.gx-site .gx-footer__dir a { color: rgba(233, 239, 245, 0.9); text-decoration: none; font-weight: 500; }
.gx-site .gx-footer__dir a:hover { color: var(--gx-gold-300); }
.gx-footer__dir span { font-variant-numeric: tabular-nums; color: rgba(222, 231, 240, 0.5); }

@media (max-width: 1080px) {
  .gx-how__steps { grid-template-columns: 1fr; }
  .gx-head--split { grid-template-columns: 1fr; gap: 12px; }
  .gx-globe { opacity: 0.6; width: 90vw; right: -30%; }
}
@media (max-width: 768px) {
  .gx-footer__dir { grid-template-columns: 1fr; }
  .gx-marquee__row li { padding: 12px 20px; font-size: 13px; }
}

/* ─── Aparición al hacer scroll ─────────────────────────────────────────── */

.gx-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--gx-ease), transform 0.7s var(--gx-ease); }
.gx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .gx-reveal { opacity: 1; transform: none; transition: none; }
  .gx-globe__spin, .gx-marquee__track { animation: none; }
  .gx-live__dot { animation: none; }
  .gx-nav__sheet { animation: none; }
}

/* ─── Responsivo ────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .gx-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .gx-status { max-width: 560px; }
  .gx-values__grid { grid-template-columns: repeat(2, 1fr); }
  .gx-value:nth-child(3) { border-left: 0; }
  .gx-value:nth-child(n + 3) { border-top: 1px solid var(--gx-line); }
  .gx-locator { grid-template-columns: 340px minmax(0, 1fr); }
  .gx-about__grid { grid-template-columns: 1fr; gap: 24px; }
  .gx-about__body { padding-top: 0; }
  .gx-cta__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --gx-nav-h: 64px; }
  .gx-container, .gx-nav__inner { padding: 0 16px; }
  .gx-nav__logo { height: 32px; }
  .gx-nav__actions { margin-left: auto; }
  .gx-hero { padding: calc(var(--gx-nav-h) + 40px) 0 56px; min-height: 0; }
  .gx-hero__lead { font-size: 16.5px; }
  .gx-hero__actions .gx-btn { flex: 1 1 100%; }
  .gx-hero__facts { margin-top: 36px; }
  .gx-hero__facts dt { font-size: 22px; }
  .gx-status { padding: 16px; border-radius: var(--gx-r-lg); }
  .gx-status__list li { font-size: 14px; padding: 10px; }
  .gx-chip { font-size: 12px; padding: 4px 8px; }
  .gx-section { padding: 64px 0 72px; }
  .gx-head { margin-bottom: 28px; }
  .gx-values__grid { grid-template-columns: 1fr; }
  .gx-value { padding: 28px 0; }
  .gx-value + .gx-value { border-left: 0; border-top: 1px solid var(--gx-line); }
  .gx-locator { grid-template-columns: 1fr; height: auto; border-radius: var(--gx-r-lg); }
  .gx-locator__list { border-right: 0; border-bottom: 1px solid var(--gx-line); }
  .gx-branch-list { max-height: none; overflow: visible; }
  .gx-map { height: 380px; }
  .gx-about__facts > div { grid-template-columns: 1fr; gap: 4px; }
  .gx-cta { padding: 64px 0; }
  .gx-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   PANELES (admin y empleado): barra lateral, botones, superficies
   ========================================================================== */

.gi-admin-layout, .gi-empleado-layout { font-family: var(--gx-font); }

/* Barra lateral oscura */
.gx-side {
  width: 248px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--gx-ink-900); color: rgba(222, 231, 240, 0.78);
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
  background-image: radial-gradient(420px 260px at 0% 0%, rgba(61, 113, 150, 0.28), transparent 70%);
}
.gx-side--collapsed { width: 72px; }
.gx-side__brand { padding: 22px 22px 18px; }
.gx-side__logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; display: block; }
.gx-side--collapsed .gx-side__brand { padding: 22px 12px; }
.gx-side--collapsed .gx-side__logo { height: 26px; }
.gx-side__who {
  margin: 0 14px 10px; padding: 12px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07);
}
.gx-side__avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--gx-gold-500); color: var(--gx-ink-950); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
}
.gx-side__who-text { min-width: 0; display: grid; }
.gx-side__who-text strong { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-side__who-text small { font-size: 11.5px; color: rgba(222, 231, 240, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-side__nav { flex: 1; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.gx-side__item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font: 500 14px/1.2 var(--gx-font); color: rgba(222, 231, 240, 0.72); text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.gx-side__item svg { flex: none; opacity: 0.85; }
.gx-side__label { flex: 1; }
.gx-side__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.gx-side__item.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; }
.gx-side__item.is-active::before {
  content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gx-gold-500);
}
.gx-side__item.is-active svg { color: var(--gx-gold-300); opacity: 1; }
.gx-side__item:focus-visible { outline: 2px solid var(--gx-gold-500); outline-offset: 2px; }
.gx-side--collapsed .gx-side__item { justify-content: center; padding: 10px 0; }
.gx-side__foot { padding: 10px 12px 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); display: grid; gap: 6px; }
.gx-side__credits { padding: 4px 12px; color: rgba(222, 231, 240, 0.45) !important; --gi-dev-muted: rgba(222, 231, 240, 0.45); }
.gx-side__logout { color: #f2a59c; }
.gx-side__logout:hover { background: rgba(240, 122, 110, 0.12); color: #ffc2bb; }

/* Barra superior y área de trabajo */
.gi-admin-shell > header {
  min-height: 64px; padding: 10px 28px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.gi-admin-view { max-width: 1320px; }

/* Botones compartidos: estados de hover y pulsado (los colores vienen del tema) */
.gi-btn:not(:disabled):hover { filter: brightness(1.08); }
.gi-btn--primary:not(:disabled), .gi-btn--dark:not(:disabled) { box-shadow: 0 1px 2px rgba(12, 27, 42, 0.12), 0 6px 14px -8px rgba(36, 80, 110, 0.6); }
.gi-btn--secondary:not(:disabled):hover, .gi-btn--ghost:not(:disabled):hover { filter: none; background: rgba(45, 95, 128, 0.07) !important; }
.gi-btn:not(:disabled):active { transform: translateY(1px) scale(0.99); }
.gi-btn:focus-visible { outline: 2px solid var(--gx-gold-500); outline-offset: 2px; }

/* Campos con foco visible */
.gi-input-wrap input:focus, .gi-input-row:focus-within, .gi-admin-view input:focus, .gi-admin-view select:focus, .gi-admin-view textarea:focus {
  outline: none; border-color: var(--gx-brand-500) !important; box-shadow: 0 0 0 3px rgba(61, 113, 150, 0.16);
}

/* ==========================================================================
   INICIO DE SESIÓN
   ========================================================================== */

.gi-login { background: var(--gx-bg) !important; font-family: var(--gx-font); }
.gi-login__bg { display: none; }
.gi-login__shell {
  border: 1px solid var(--gx-line) !important; border-radius: var(--gx-r-xl) !important; overflow: hidden;
  box-shadow: var(--gx-shadow-lg) !important; background: var(--gx-surface) !important;
}
.gi-login__brand {
  position: relative; overflow: hidden; color: #fff;
  background: var(--gx-ink-900) !important; border: 0 !important;
  justify-content: center;
}
.gi-login__brand::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(61, 113, 150, 0.45), transparent 65%),
    radial-gradient(380px 260px at 0% 100%, rgba(185, 143, 69, 0.18), transparent 65%);
}
.gi-login__brand > * { position: relative; }
.gi-login__logo-stage {
  width: auto !important; height: auto !important; aspect-ratio: auto !important;
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 28px !important;
}
.gi-login__logo-ring, .gi-login__logo-glow { display: none !important; }
.gi-login__logo { filter: brightness(0) invert(1); max-width: 220px !important; height: auto !important; animation: none !important; }
.gi-login__brand-title { font-family: var(--gx-serif) !important; font-weight: 400 !important; font-size: 40px !important; letter-spacing: -0.01em !important; color: #fff !important; }
.gi-login__brand-sub { color: var(--gx-gold-300) !important; font-weight: 600 !important; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12.5px !important; }
.gi-login__brand-desc { color: rgba(222, 231, 240, 0.72) !important; }
.gi-login__panel-head h2 { font-size: 30px !important; letter-spacing: -0.025em !important; color: var(--gx-ink-900) !important; font-weight: 600 !important; }
.gi-login__panel-head p { color: var(--gx-muted) !important; }
.gi-login__tabs { background: var(--gx-bg) !important; border-radius: 12px !important; padding: 4px !important; border: 1px solid var(--gx-line) !important; }
.gi-login__tab { border-radius: 9px !important; font-weight: 600 !important; color: var(--gx-muted) !important; }
.gi-login__tab--active { background: var(--gx-surface) !important; color: var(--gx-ink-900) !important; box-shadow: var(--gx-shadow-sm) !important; }
.gi-login__submit { height: 50px; border-radius: 12px !important; background: var(--gx-ink-900) !important; font-size: 15px !important; }
.gi-login__submit:not(:disabled):hover { background: var(--gx-ink-700) !important; filter: none !important; }
.gi-login__back { border-radius: 999px !important; border: 1px solid var(--gx-line) !important; background: var(--gx-surface) !important; box-shadow: var(--gx-shadow-sm) !important; font-weight: 600; }
.gi-login__error { border-radius: 10px !important; }
