/* =============================================================
   NG LOGÍSTICA v5 — 3/3 SECCIONES
   Barra de sistema · hero · layouts de módulos · contacto ·
   footer · responsive · reduced-motion
   ============================================================= */

/* ── Barra de sistema (fija, fuera del smooth scroll) ── */
.sysbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  background: rgba(242, 239, 232, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.sysbar-inner {
  display: flex; align-items: center; gap: 20px;
  width: min(1240px, calc(100% - clamp(36px, 6vw, 72px)));
  margin-inline: auto;
  min-height: var(--header-h);
}
.sys-brand {
  display: inline-flex; align-items: center; gap: 11px;
  /* Lockup espejado del footer (preferido en validación 2026-07-14):
     Roboto Condensed 700 · 20px · ls 4.5% · isotipo a tamaño natural 52×24.
     OJO: difiere del lockup del manual (Roboto Black 900) — pendiente de
     ratificar y asentar en el manual de marca. */
  /* En prueba: +13% de cuerpo y peso 600 (solo header; footer sigue 700/20px) */
  font-family: var(--display); font-weight: 600; font-size: 22.5px;
  letter-spacing: 0.045em;
  color: var(--ink);
}
.sys-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.12em;
  color: var(--mute);
  padding: 5px 10px;
  border: 1px solid var(--hairline); border-radius: 4px;
  background: var(--card);
  box-shadow: var(--elev-1);
}
.sys-status b { font-weight: 400; color: var(--dim); font-variant-numeric: tabular-nums; }
/* CTA de barra: verde de marca, mismo degradé que el botón del hero */
.sys-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg, var(--signal), var(--signal-dark));
  padding: 11px 17px; border-radius: 4px;
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: filter .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sys-cta:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: var(--elev-2); }
.sys-cta b { font-weight: 600; }
.sys-cta b.is-swap { display: inline-block; animation: rotorSwap .5s var(--ease); }

/* Botón de menú: la palabra entre corchetes verdes (firma del rotor del H1) */
.menu-btn {
  display: inline-flex; align-items: center;
  padding: 12px 6px;
  border: 0; background: none; box-shadow: none;
  color: var(--ink);
  transition: color .25s var(--ease);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
}
.menu-btn:hover { color: var(--signal-dark); }
.mb-label::before { content: "["; margin-right: 8px; color: var(--signal-dark); }
.mb-label::after { content: "]"; margin-left: 8px; color: var(--signal-dark); }

/* Con el menú abierto la barra se eleva SOBRE el overlay: sin esto el
   botón de cerrar quedaba tapado (z 95 < z 105) y en móvil no había salida. */
html.menu-open .sysbar {
  z-index: 120;
  background: transparent; border-bottom-color: transparent;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.menu-open .sys-status, html.menu-open .sys-cta { visibility: hidden; }
html.menu-open .sys-brand span { color: #f2efe8; }
html.menu-open .menu-btn { color: #f2efe8; }
html.menu-open .mb-label::before, html.menu-open .mb-label::after { color: var(--signal-bright); }

/* ── Índice de sistema: overlay 100% ── */
.omenu {
  position: fixed; inset: 0; z-index: 105;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 20px) clamp(24px, 6vw, 90px) 26px;
  background: var(--void);
  color: #f2efe8;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .65s var(--ease), visibility 0s linear .65s;
  overflow: auto;
}
/* Fondo: la escena del interludio, espejada, oscurecida y fuera de foco */
.omenu-bg {
  position: absolute; inset: -12px;
  background: url("../img/hero-logistica-operacion.jpg") center / cover no-repeat;
  transform: scaleX(-1);
  filter: blur(5px) brightness(0.95);
}
.omenu-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 20% 15%, rgba(101, 168, 23, 0.12), transparent 60%),
    rgba(23, 21, 16, 0.78);
}
html.menu-open .omenu {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path .65s var(--ease);
}
.omenu-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 239, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 232, 0.05) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse 100% 90% at 30% 20%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 30% 20%, black 25%, transparent 78%);
}
.omenu-ghost {
  position: absolute; right: 3vw; bottom: 4vh; pointer-events: none;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(11rem, 34vh, 24rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 239, 232, 0.1);
  user-select: none;
}
.omenu-nav {
  position: relative; z-index: 1;
  display: grid; margin: auto 0; max-width: 880px;
}
/* Entrada escalonada de grupos y links directos */
.og, .og-link {
  border-bottom: 1px solid rgba(242, 239, 232, 0.14);
  opacity: 0; transform: translateY(26px);
  transition: opacity .55s var(--ease) var(--d, 0s), transform .55s var(--ease) var(--d, 0s);
}
html.menu-open .og, html.menu-open .og-link { opacity: 1; transform: none; }

/* Fila principal (cabecera de grupo o link directo) */
.og-head, .og-link {
  position: relative;
  display: grid; grid-template-columns: 58px 1fr auto;
  grid-template-areas: "num word chev" "num desc chev";
  column-gap: 22px; align-items: center;
  width: 100%;
  padding: 17px 16px;
  text-align: left; cursor: pointer;
  transition: background .25s var(--ease), padding-left .3s var(--ease);
}
.og-head:hover, .og-link:hover, .og-head:focus-visible, .og-link:focus-visible {
  padding-left: 32px;
  background: rgba(123, 209, 31, 0.07);
}
.og-head b, .og-link b {
  grid-area: num;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--signal-bright);
}
.og-head span, .og-link span {
  grid-area: word;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.7rem, 5vh, 2.6rem); line-height: 1.05;
  letter-spacing: -0.01em; color: #f2efe8;
  transition: color .25s var(--ease);
}
.og-head:hover span, .og-link:hover span, .og.open .og-head span { color: var(--signal-bright); }
.og-head em, .og-link em {
  grid-area: desc;
  font-style: normal; font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(242, 239, 232, 0.55);
  margin-top: 3px;
}
.og-link.is-cta span { color: var(--signal-bright); }
.og-link.is-cta:hover span { color: #fff; }
.og-link::after {
  content: "→"; position: absolute; right: 18px; top: 50%;
  transform: translate(-10px, -50%);
  font-family: var(--mono); font-size: 22px; color: var(--signal-bright);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.og-link:hover::after { opacity: 1; transform: translate(0, -50%); }

/* Chevron de grupo */
.og-chev {
  grid-area: chev;
  width: 12px; height: 12px; margin-right: 8px;
  border-right: 2.5px solid rgba(242, 239, 232, 0.55);
  border-bottom: 2.5px solid rgba(242, 239, 232, 0.55);
  transform: rotate(45deg);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.og.open .og-chev { transform: rotate(225deg); border-color: var(--signal-bright); }

/* Submenú: despliegue animado + entrada en cascada */
.og-subs {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.og.open .og-subs { grid-template-rows: 1fr; }
.og-subs > div { overflow: hidden; display: grid; }
.og-subs a {
  position: relative;
  padding: 11px 16px 11px 96px;
  font-size: clamp(16px, 2.2vh, 18px); font-weight: 500;
  color: rgba(242, 239, 232, 0.8);
  border-top: 1px dashed rgba(242, 239, 232, 0.12);
  opacity: 0; transform: translateX(-12px);
  transition:
    opacity .4s var(--ease) calc(var(--i, 0) * 60ms),
    transform .4s var(--ease) calc(var(--i, 0) * 60ms),
    color .2s var(--ease), padding-left .25s var(--ease), background .2s var(--ease);
}
.og-subs a:nth-child(1) { --i: 1; } .og-subs a:nth-child(2) { --i: 2; }
.og-subs a:nth-child(3) { --i: 3; } .og-subs a:nth-child(4) { --i: 4; }
.og.open .og-subs a { opacity: 1; transform: none; }
.og-subs a::before {
  content: "→"; position: absolute; left: 68px;
  font-family: var(--mono); color: var(--signal-bright);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.og-subs a:hover { color: var(--signal-bright); padding-left: 104px; background: rgba(123, 209, 31, 0.05); }
.og-subs a:hover::before { opacity: 1; transform: none; }
.omenu-foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 26px;
  border-top: 1px solid var(--hairline-dark);
  padding-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(242, 239, 232, 0.5);
}
.omenu-foot a:hover { color: var(--signal-bright); }
.omf-status { display: inline-flex; align-items: center; gap: 8px; color: var(--signal-bright); }
.omf-status .pulse { background: var(--signal-bright); }

/* ── Modal de base: mapa + galería infinita ── */
.bmodal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: clamp(14px, 3vw, 44px);
  visibility: hidden; opacity: 0;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.bmodal.is-open { visibility: visible; opacity: 1; transition: opacity .4s var(--ease); }
.bmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 21, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bmodal-panel {
  position: relative; z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100svh - clamp(28px, 6vw, 88px));
  display: flex; flex-direction: column;
  overflow: clip;
  background: linear-gradient(180deg, var(--panel), var(--void));
  border: 1px solid rgba(242, 239, 232, 0.14);
  border-radius: 12px;
  box-shadow: var(--elev-3);
  color: #f2efe8;
  transform: translateY(28px) scale(0.985);
  transition: transform .45s var(--ease);
}
.bmodal.is-open .bmodal-panel { transform: none; }
.bmodal-head {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline-dark);
}
.bmodal-head b {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--signal-bright);
}
.bmodal-head strong {
  display: block; margin-top: 6px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.05;
}
.bmodal-head p { margin-top: 7px; font-size: 14.5px; color: rgba(242, 239, 232, 0.65); max-width: 56ch; }
.bmodal-x {
  margin-left: auto; flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(242, 239, 232, 0.22); border-radius: 6px;
  color: #f2efe8; font-size: 15px;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.bmodal-x:hover { border-color: var(--signal-bright); color: var(--signal-bright); transform: rotate(90deg); }
.bmodal-body {
  position: relative;
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1.25fr 0.75fr;
}
.bmodal-nav {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(23, 21, 16, 0.85);
  border: 1px solid rgba(242, 239, 232, 0.24); border-radius: 6px;
  color: #f2efe8;
  font-family: var(--mono); font-size: 17px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.bmodal-nav:hover { border-color: var(--signal-bright); color: var(--signal-bright); }
.bm-prev { left: 14px; }
.bm-next { right: 14px; }
.bm-prev:hover { transform: translateY(-50%) translateX(-3px); }
.bm-next:hover { transform: translateY(-50%) translateX(3px); }
.bmodal-map {
  position: relative;
  min-height: clamp(320px, 52svh, 540px);
  background: var(--void);
}
.bmodal-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
  filter: grayscale(0.85) contrast(1.05);
}
.bmodal-gal {
  position: relative; overflow: clip;
  border-left: 1px solid var(--hairline-dark);
  background: var(--void);
}
.bm-flow {
  display: grid; gap: 2px;
  animation: bmFlow 28s linear infinite;
  will-change: transform;
}
.bmodal-gal img { width: 100%; height: 190px; object-fit: cover; opacity: 0.88; }
@keyframes bmFlow { to { transform: translateY(-50%); } }
.bm-tag {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1;
  display: block;
  padding: 11px 15px;
  background: rgba(23, 21, 16, 0.92);
  border: 1px solid rgba(242, 239, 232, 0.16);
  border-left: 3px solid var(--signal);
  border-radius: 0 8px 8px 0;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; color: #f2efe8;
}
.bm-tag i { font-style: normal; color: var(--signal-bright); }

/* ── Hero ── */
.hero { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--hairline); }
.hero-grid-bg {
  position: absolute; inset: -8% 0; z-index: -2;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 105% 90% at 30% 12%, black 22%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 105% 90% at 30% 12%, black 22%, transparent 72%);
  will-change: transform;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 38% at 74% 58%, rgba(101, 168, 23, 0.09), transparent 70%),
    radial-gradient(60% 45% at 10% 8%, rgba(255, 255, 255, 0.75), transparent 62%);
  filter: blur(2px);
}
.hero-frame {
  align-items: center;
  width: min(1240px, calc(100% - clamp(36px, 6vw, 72px)));
  margin-inline: auto;
  padding-block: clamp(56px, 9vh, 110px) clamp(48px, 7vh, 84px);
}
.hero-kicker {
  font-family: var(--mono); font-size: clamp(11px, 1.2vw, 12.5px);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: clamp(20px, 3vh, 30px);
  animation: rise .7s var(--ease) both;
}
.k-mark { color: var(--signal-dark); margin-right: 8px; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-hero);
  line-height: 1.0; letter-spacing: -0.01em;
  max-width: 17ch;
  animation: rise .85s var(--ease) .1s both;
}
.hero h1 em { font-style: normal; position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em;
  height: 0.12em;
  background: linear-gradient(90deg, var(--signal), var(--signal-bright));
  opacity: 0.55; border-radius: 2px;
  transform-origin: left center;
  animation: swipe 1s var(--ease) .8s both;
}
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
[data-sector-rotor] { display: inline-block; }
[data-sector-rotor].is-swap { animation: rotorSwap .55s var(--ease); }

.hero-rotorline {
  margin-top: clamp(16px, 2.6vh, 24px);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  color: var(--ink-soft);
  animation: rise .85s var(--ease) .22s both;
}
.rotor {
  position: relative; display: inline-block;
  padding: 0 0.35em;
  color: var(--signal-dark); font-weight: 700;
  white-space: nowrap;
}
.rotor::before, .rotor::after {
  content: ""; position: absolute; top: -0.08em; bottom: -0.08em; width: 0.34em;
  border: 2px solid var(--signal);
}
.rotor::before { left: 0; border-right: 0; }
.rotor::after { right: 0; border-left: 0; }
.rotor-word { display: inline-block; }
.rotor-word.is-swap { animation: rotorSwap .55s var(--ease); }
@keyframes rotorSwap {
  0% { opacity: 0; transform: translateY(0.7em); }
  100% { opacity: 1; transform: none; }
}

.hero-sub {
  max-width: 56ch;
  margin-top: clamp(16px, 2.6vh, 24px);
  font-size: var(--t-lead);
  color: var(--dim);
  animation: rise .85s var(--ease) .34s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 13px;
  margin-top: clamp(26px, 4vh, 38px);
  animation: rise .85s var(--ease) .46s both;
}
.hero-stage { position: relative; will-change: transform; }

/* Franja de datos del hero */
.hero-data {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 58px);
  width: min(1240px, calc(100% - clamp(36px, 6vw, 72px)));
  margin-inline: auto;
  padding-block: 22px;
  border-top: 1px solid var(--hairline);
  /* Valores en Roboto (la mono en todo el renglón evocaba terminal vieja);
     la etiqueta conserva la voz mono del sistema */
  font-family: var(--sans); font-size: clamp(14.5px, 1.5vw, 17px);
  color: var(--ink-soft);
  animation: rise .85s var(--ease) .58s both;
}
.hero-data > span { white-space: nowrap; }
.hero-data b {
  font-family: var(--mono);
  color: var(--mute); font-weight: 500; letter-spacing: 0.14em;
  margin-right: 10px; font-size: clamp(11px, 1.1vw, 12.5px);
}
.hero-data .hd-end { margin-left: auto; color: var(--mute); font-family: var(--mono); font-size: clamp(11.5px, 1.2vw, 14px); }

/* ── Interludio: el sistema lee la escena ── */
.interlude {
  position: relative; overflow: clip;
  height: 100svh;
  background: var(--void);
}
.interlude-img {
  position: absolute; left: 0; top: -8%;
  width: 100%; height: 116%;
  object-fit: cover;
  will-change: transform;
}
.interlude-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 21, 16, 0.55) 0%, transparent 22%, transparent 72%, rgba(23, 21, 16, 0.65) 100%);
}
/* Corchetes de escáner sobre la zona del operario */
.int-target {
  position: absolute; left: 56%; top: 20%; width: 26%; height: 62%;
  pointer-events: none;
}
.int-target i {
  position: absolute; width: 34px; height: 34px;
  border: 2.5px solid var(--signal-bright);
  filter: drop-shadow(0 0 6px rgba(123, 209, 31, 0.4));
  animation: targetPulse 3.4s var(--ease) infinite;
}
.int-target i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.int-target i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; animation-delay: .2s; }
.int-target i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; animation-delay: .4s; }
.int-target i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; animation-delay: .6s; }
@keyframes targetPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
/* Barrido de escaneo */
.int-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 209, 31, 0.55), transparent);
  box-shadow: 0 0 18px rgba(123, 209, 31, 0.35);
  animation: intScan 7s var(--ease) infinite;
  pointer-events: none;
}
@keyframes intScan {
  0% { transform: translateY(6vh); opacity: 0; }
  8% { opacity: 1; }
  60% { transform: translateY(88vh); opacity: 1; }
  70%, 100% { transform: translateY(94vh); opacity: 0; }
}
.int-badge {
  position: absolute;
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 17px; border-radius: 8px;
  background: rgba(251, 249, 244, 0.95);
  border: 1px solid var(--hairline);
  box-shadow: var(--elev-2);
  backdrop-filter: blur(4px);
  animation: bob 6s ease-in-out infinite;
}
.int-badge span {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.int-badge strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.ib-a { left: 8%; top: 22%; }
.ib-b { right: 7%; bottom: 18%; animation-delay: .8s; }
.int-caption {
  position: absolute; left: clamp(18px, 3vw, 44px); bottom: clamp(48px, 10vh, 96px);
  font-family: var(--mono); font-size: clamp(15px, 1.7vw, 19px); font-weight: 500;
  letter-spacing: 0.2em; color: rgba(242, 239, 232, 0.92);
  text-shadow: 0 1px 12px rgba(23, 21, 16, 0.75);
}
.int-caption [data-caption-rotor] { display: inline-block; color: var(--signal-bright); }
.int-caption [data-caption-rotor].is-swap { animation: rotorSwap .55s var(--ease); }
.int-caption i { font-style: normal; color: var(--signal-bright); }

/* ── Layouts de módulos ── */
.what-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.about-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 6vw, 76px); }
.about-side { display: grid; gap: 13px; align-content: start; }

/* ── Contacto (momento oscuro) ── */
.section-dark {
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(101, 168, 23, 0.1), transparent 60%),
    linear-gradient(170deg, #201d16, var(--void));
  color: #f2efe8;
}
.cta-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(30px, 5vw, 60px); align-items: center;
}
.section-dark h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.section-dark h2 span { color: var(--signal-bright); }
.cta-copy { margin-top: 14px; color: rgba(242, 239, 232, 0.65); max-width: 46ch; }
.cta-actions { display: grid; gap: 12px; }

/* ── Footer ── */
.sysfooter { background: var(--void); color: rgba(242, 239, 232, 0.72); border-top: 1px solid var(--hairline-dark); }
.sysfooter-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(44px, 6vw, 60px);
}
.f-logo { display: flex; align-items: center; gap: 11px; }
.f-logo > span {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.045em; color: #f2efe8;
}
.f-brand img { filter: brightness(1.5) contrast(0.92); }
/* Misma tipografía que el párrafo: solo el color lo distingue.
   Neutraliza la regla .f-brand b (mono espaciada en bloque) que lo alcanzaba. */
.f-brand p b[data-foot-rotor] {
  display: inline-block; margin: 0;
  font: inherit; letter-spacing: inherit; line-height: inherit;
  color: var(--signal-bright);
}
.f-brand p { margin-top: 14px; font-size: 14px; max-width: 30ch; }
.f-title {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; font-weight: 500;
  color: var(--signal-bright); margin-bottom: 13px;
}
.sysfooter ul { display: grid; gap: 8px; font-size: 14px; }
.sysfooter a { transition: color .25s var(--ease); }
.sysfooter a:hover { color: var(--signal-bright); }
.sysfooter-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-block: 18px;
  border-top: 1px solid var(--hairline-dark);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: rgba(242, 239, 232, 0.4);
}
.sysfooter-bottom b { font-weight: 500; color: rgba(242, 239, 232, 0.6); }
/* Cierre de gestión: lo único mono de la columna, como sello discreto */
.f-gestion {
  margin-top: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; line-height: 1.9;
  color: rgba(242, 239, 232, 0.34);
}
.f-credit { color: rgba(242, 239, 232, 0.32); }
.f-credit i { font-style: normal; color: rgba(101, 168, 23, 0.55); }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .grid-12 { grid-template-columns: 1fr; }
  .col-5, .col-7 { grid-column: auto; }
  .hero-frame { gap: 52px; }
  .hero-stage { max-width: 580px; }
  .what-grid, .about-grid, .cta-grid, .case-grid { grid-template-columns: 1fr; }
  .case-side { position: static; }
  .strengths { grid-template-columns: repeat(2, 1fr); }
  .bases { grid-template-columns: repeat(2, 1fr); }
  .cov-wrap { grid-template-columns: 1fr; }
  .covmap { max-width: 250px; margin-inline: auto; }
  .ghost { font-size: clamp(7rem, 18vw, 12rem); right: -8px; }
}
@media (max-width: 880px) {
  .sys-status { display: none; }
  .chip-a { left: -8px; }
  .chip-b { right: 64px; }
  .hslide { width: 84vw; }
  .bmodal-body { grid-template-columns: 1fr; }
  .bmodal-gal { display: none; }
  .bmodal-map { min-height: min(58svh, 440px); }
  .sysfooter-grid { grid-template-columns: 1fr 1fr; }
  /* Sin pin: el header general ya compensa la barra fija */
  .hslides-head { padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  /* Invitación explícita al gesto en táctil */
  .hslides-head::after {
    content: "DESLIZÁ →";
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
    color: var(--signal-bright); white-space: nowrap;
  }
}
@media (max-width: 640px) {
  .sysbar-inner { gap: 10px; }
  /* CTA de barra fuera en móvil: el contacto vive en el hero y en el menú */
  .sys-cta { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* El hero arranca donde arranca la lectura: sin colchón heredado de desktop */
  .hero-frame { padding-block: 24px 44px; }
  .hero-data { gap: 12px; font-size: 11px; }
  .hero-data .hd-end { display: none; }
  .ops-feed span { display: none; }
  .ops-feed li { grid-template-columns: auto auto; justify-content: space-between; }
  .bases, .strengths, .case-stats { grid-template-columns: 1fr; }
  .cov-wrap .bases { grid-template-columns: 1fr; }
  .covmap { max-width: 220px; }
  .interlude { height: 72svh; }
  .int-badge { display: none; }
  /* Escáner contenido: corchetes más chicos y lejos de la leyenda inferior */
  .int-target { left: 46%; top: 14%; width: 44%; height: 42%; }
  .int-target i { width: 22px; height: 22px; border-width: 2px; }
  .srv-body { grid-template-columns: 1fr; }
  .srv-body li { white-space: normal; }
  .srv-body p { border-left: 0; padding-left: 0; }
  /* Rotor en línea propia y SIEMPRE una sola línea: el cambio de palabra
     no puede mover la altura del resto del hero (movimiento contenido) */
  .hero-rotorline { font-size: 1.02rem; }
  /* !important: pisa el ancho animado que fija el JS — acá el rotor vive
     solo en su línea y el corchete debe abrazar la palabra, sin transición */
  .rotor { display: block; width: max-content !important; max-width: 100%; margin-top: 8px; transition: none !important; }
  /* El sector del H1 tampoco parte en dos: una sola línea, apenas menor */
  .hero h1 em { white-space: nowrap; font-size: 0.85em; }
  /* La etiqueta del chip viajero no entra a la izquierda del riel: solo el chip */
  .cycle-tip::after { content: none; }
  .chip-a, .chip-b { display: none; }
  .hslide { width: 86vw; }
  /* Footer móvil: marca a lo ancho, nav en dos columnas, contacto cerrando */
  .sysfooter-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-block: 34px; }
  .f-brand { grid-column: 1 / -1; padding-bottom: 4px; border-bottom: 1px solid var(--hairline-dark); }
  .f-brand p { max-width: none; }
  .sysfooter-grid > div:last-child {
    grid-column: 1 / -1;
    padding-top: 22px; border-top: 1px solid var(--hairline-dark);
  }
  /* Aire final: que el FAB del asistente no pise la última línea */
  .sysfooter-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-bottom: 96px; }
  .bmodal { padding: 10px; }
  .bmodal-head { padding: 16px 16px 14px; }
  .bmodal-nav { width: 40px; height: 40px; top: auto; bottom: 12px; transform: none; }
  .bm-prev { left: 12px; }
  .bm-next { right: 12px; }
  .bm-prev:hover, .bm-next:hover { transform: none; }
}

/* ── Reduced motion: solo lo intrusivo ── */
@media (prefers-reduced-motion: reduce) {
  .scanline { display: none; }
  .ticker-track { animation-duration: 100s; }
  .float-chip { animation: none; }
  .bm-flow { animation: none; }
}
