/* =========================================================
   ELLIS — Servicios Integrales de Seguridad 2.0
   Engineering-dossier visual system
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper: #EFEDE6;
  --paper-2: #E4E1D7;
  --paper-3: #F7F6F1;
  --ink: #001B79;
  --ink-deep: #000F45;
  --text: #121D55;
  --text-soft: #3A4474;
  --rule: rgba(0, 27, 121, .18);
  --rule-strong: rgba(0, 27, 121, .45);
  --grid: rgba(0, 27, 121, .055);
  --grid-dark: rgba(255, 255, 255, .06);
  --rule-dark: rgba(255, 255, 255, .2);
  --signal: #FF4A1C;
  --ok: #1F9D55;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* No CSS scroll-behavior: smooth — it fights ScrollTrigger's scroll restoration; anchors are smoothed in JS */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-family: var(--f-mono); font-size: 12px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }

.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.navy { background-color: var(--ink); color: var(--paper); }
.grid-bg-dark {
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Typography ---------- */
.mono-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .92;
  color: var(--ink);
}
.navy .display { color: var(--paper); }
.h2 { font-size: clamp(1.7rem, 5.6vw, 5rem); }
.h3 {
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.navy .h3 { color: var(--paper); }
.h4 {
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--ink);
}
.navy .h4 { color: var(--paper); }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  max-width: 56ch;
  color: var(--text-soft);
  margin-top: 28px;
}
.navy .lede { color: rgba(239, 237, 230, .82); }
strong { font-weight: 700; color: var(--ink); }
.navy strong { color: var(--paper); }
.hl { color: var(--ink); box-shadow: inset 0 -.18em 0 rgba(255, 74, 28, .55); }
.navy .hl { color: var(--paper); }

/* section header row */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.navy .sec-head { border-color: var(--rule-dark); color: var(--paper); }
.sec-coord { opacity: .7; text-align: right; display: inline-flex; align-items: center; gap: 8px; }

/* status dots */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--ok); }
.dot-live { background: var(--signal); animation: blink 1.6s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* crop-mark frame */
.frame {
  --fc: var(--ink);
  position: relative;
  background:
    linear-gradient(var(--fc), var(--fc)) top left / 16px 1.5px no-repeat,
    linear-gradient(var(--fc), var(--fc)) top left / 1.5px 16px no-repeat,
    linear-gradient(var(--fc), var(--fc)) top right / 16px 1.5px no-repeat,
    linear-gradient(var(--fc), var(--fc)) top right / 1.5px 16px no-repeat,
    linear-gradient(var(--fc), var(--fc)) bottom left / 16px 1.5px no-repeat,
    linear-gradient(var(--fc), var(--fc)) bottom left / 1.5px 16px no-repeat,
    linear-gradient(var(--fc), var(--fc)) bottom right / 16px 1.5px no-repeat,
    linear-gradient(var(--fc), var(--fc)) bottom right / 1.5px 16px no-repeat;
  padding: clamp(16px, 3vw, 32px);
}
.frame-light { --fc: var(--paper); }

.fig-cap { margin-top: 14px; color: var(--text-soft); }
.navy .fig-cap { color: rgba(239, 237, 230, .7); }

/* ---------- SVG line language ---------- */
svg { color: var(--ink); overflow: visible; }
.navy svg { color: var(--paper); }
.ln, .ln-thin, .ln-dash, .wall, .wall-in {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}
.ln { stroke-width: 2.2; }
.ln-bold { stroke-width: 5; }
.ln-thin { stroke-width: 1; opacity: .7; }
.ln-dash { stroke-width: 1; stroke-dasharray: 4 5; opacity: .75; }
.ln-signal { stroke: var(--signal); }
.ln-ok { stroke: var(--ok); }
.fill-paper { fill: var(--paper); }
.fill-ink { fill: currentColor; }
.fill-navy { fill: var(--ink); }
.node { fill: var(--paper); stroke: currentColor; stroke-width: 2.2; }
.navy .node { fill: var(--ink); }
.node-alert { stroke: var(--signal); fill: var(--signal); }
.tick { fill: currentColor; }
.svg-lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  fill: currentColor;
}
.svg-lbl.sig { fill: var(--signal); }

.node-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.node-pulse:nth-of-type(2n) { animation-delay: .6s; }
.node-pulse:nth-of-type(3n) { animation-delay: 1.2s; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.35); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.btn::after { content: "→"; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: transparent; color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--rule);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: auto; }
.brand-word { font-stretch: 125%; font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; }
.brand-sub {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.35; padding-left: 12px; border-left: 1px solid var(--rule); color: var(--text-soft);
}
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.site-nav ul { display: flex; gap: clamp(12px, 1.4vw, 20px); }
.site-nav ul a {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); position: relative; padding-block: 6px;
  display: inline-flex; gap: 6px; white-space: nowrap;
}
.site-nav ul a span { opacity: .45; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a:focus-visible::after { transform: scaleX(1); }
.site-nav .btn { padding: 11px 16px; font-size: 11px; }

.menu-toggle {
  display: none; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--ink);
  padding: 9px 12px; cursor: pointer; color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
}
.menu-toggle-bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle-bars i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Compact desktop header: drop the subtitle and index numbers so 7 links fit on one line */
/* With 7 nav links the subtitle no longer fits beside the brand; the tagline lives in the hero and footer */
.brand-sub { display: none; }
@media (max-width: 1520px) {
  .site-nav ul { gap: 18px; }
  .site-nav ul a span { display: none; }
}

@media (max-width: 1200px) {
  .brand-sub { display: none; }
  .site-nav ul a span { display: inline; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 24px var(--gutter) 32px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: flex; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
  .site-nav .btn { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 5vw, 64px));
  display: flex; flex-direction: column;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-bottom: 48px;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 28px; }
.hero-title {
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -.035em;
  line-height: .86;
  /* Max is capped so "SEGURIDAD" (~7.5em wide) always fits the 700px copy column */
  font-size: clamp(2.4rem, 6.2vw, 5.5rem);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line-in { display: inline-block; }
.line-num { display: flex !important; align-items: flex-end; gap: clamp(12px, 2vw, 28px); }
.line-num .line-in {
  font-stretch: 62%;
  font-weight: 800;
  font-size: 2.3em;
  line-height: .78;
  letter-spacing: -.02em;
}
.hero-annot { font-weight: 500; letter-spacing: .08em; color: var(--text-soft); padding-bottom: .6em; font-size: 11px; }
.hero-claim {
  margin-top: 32px; max-width: 34ch;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.4; color: var(--text-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-fig { width: 100%; }
.hero-svg { width: 100%; height: auto; }
.hero-fig .fig-cap { text-align: right; }

.ticker {
  display: flex; align-items: stretch;
  border-block: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.ticker-clock {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 12px var(--gutter);
  border-right: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.ticker-track { overflow: hidden; display: flex; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-run {
  display: flex; align-items: center; gap: 18px; padding-right: 18px; flex: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; white-space: nowrap;
  animation: ticker 32s linear infinite;
}
@keyframes ticker { to { transform: translateX(-100%); } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 70px;
  display: none; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  writing-mode: vertical-rl;
}
.scroll-cue i { width: 1px; height: 48px; background: var(--ink); transform-origin: top; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 1200px) { .scroll-cue { display: flex; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-fig { max-width: 560px; margin-inline: auto; }
  .hero-fig .fig-cap { text-align: left; }
}

/* ---------- Manifesto ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.manifesto-text {
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
}
.manifesto-text .w { display: inline-block; }
.manifesto-side { display: grid; gap: 16px; color: var(--text-soft); border-left: 1px solid var(--rule); padding-left: 24px; }
.manifesto-side .mono-label { color: var(--ink); }

.stats {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.stat { padding: 20px 20px 8px 0; border-right: 1px solid var(--rule); }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat dt { color: var(--ink); }
.stat dd { display: flex; align-items: baseline; gap: 6px; margin-block: 18px 12px; color: var(--ink); }
.stat .num {
  font-stretch: 62%; font-weight: 800; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .8;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat .unit { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.stat p { font-size: .95rem; color: var(--text-soft); max-width: 28ch; }

@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px; }
}

/* ---------- Comparison ---------- */
.compare { background: var(--paper-2); }
.spec-table { margin-top: clamp(48px, 6vw, 80px); border-top: 1.5px solid var(--ink); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.spec-headrow { padding-block: 14px; color: var(--ink); }
.spec-headrow em { font-style: normal; opacity: .6; }
.spec-param { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); padding-top: 4px; }
.spec-old { color: var(--text-soft); text-decoration: line-through; text-decoration-color: rgba(255, 74, 28, .6); text-decoration-thickness: 1.5px; }
.spec-new { color: var(--text); font-size: 1.08rem; position: relative; padding-left: 22px; }
.spec-new::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; }

@media (max-width: 760px) {
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .spec-headrow span:nth-child(n+2) { display: none; }
  .spec-old::before { content: "Tradicional: "; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
}

/* ---------- Pillars ---------- */
.pillars { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.pillars-progress { width: 140px; height: 2px; background: var(--rule); position: relative; display: block; }
.pillars-progress i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.pillars-viewport { margin-top: clamp(40px, 5vw, 64px); }
.pillars-track {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  width: max-content;
}
.pillar {
  width: min(1040px, 84vw);
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--rule);
  background: var(--paper-3);
}
.pillar-fig { position: relative; }
.pillar-fig svg { width: 100%; height: auto; }
.pillar-num {
  position: absolute; top: -8px; right: 10px;
  font-stretch: 62%; font-weight: 800; font-size: 4.5rem; line-height: 1; color: var(--ink); opacity: .12;
}
.pillar-copy { display: grid; gap: 16px; }
.pillar-copy > p { color: var(--text-soft); }
.cut { opacity: 1; }

.spec-list { border-top: 1px solid var(--ink); margin-top: 8px; }
.spec-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .95rem;
}
.spec-list span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); padding-top: 3px; }
.spec-list b { font-weight: 600; color: var(--ink); }

.spin-origin .spin { transform-box: fill-box; transform-origin: center; }

@media (max-width: 899px) {
  .pillars-track { flex-direction: column; width: auto; padding-inline: var(--gutter); }
  .pillar { width: 100%; grid-template-columns: 1fr; }
}

/* ---------- Monitor (navy) ---------- */
.monitor { padding-bottom: 0; }
.monitor-intro {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px); align-items: end;
}
.monitor-fail { display: grid; gap: 16px; color: rgba(239, 237, 230, .85); }
.strike-list { display: grid; gap: 6px; }
.strike-list li { font-stretch: 112%; font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--paper); }
.strike-list span { position: relative; display: inline-block; }
.strike-list span::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: 3px;
  background: var(--signal); transform-origin: left; transform: scaleX(var(--strike, 1));
}

.monitor-stage { padding-block: clamp(64px, 8vw, 110px); }
.monitor-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.pipeline { border: 1px solid var(--rule-dark); padding: clamp(20px, 3vw, 36px); background: rgba(0, 15, 69, .35); }
.pipeline-clock { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--rule-dark); }
.pipeline-time {
  font-family: var(--f-mono); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--paper);
}
.pipeline-body { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
.trace { width: 60px; height: 100%; }
.trace-bg { fill: none; stroke: var(--rule-dark); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.trace-line { fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pipeline-steps { display: grid; gap: 4px; }
.pipeline-steps li {
  display: grid; gap: 2px; padding: 10px 0 12px;
  border-bottom: 1px dashed var(--rule-dark);
  transition: opacity .35s, transform .35s var(--ease);
}
.pipeline-steps li:last-child { border-bottom: 0; }
.pipeline-steps .mono-label { color: var(--signal); }
.pipeline-steps b { font-stretch: 110%; font-size: 1.08rem; font-weight: 700; color: var(--paper); }
.pipeline-steps em { font-style: normal; font-size: .92rem; color: rgba(239, 237, 230, .72); }
.pipeline-steps li.is-pending { opacity: .22; transform: translateX(8px); }

.layers { display: grid; gap: 20px; }
.layer { border-top: 1.5px solid var(--paper); padding-top: 16px; display: grid; gap: 10px; }
.layer p:not(.mono-label) { color: rgba(239, 237, 230, .82); }
.layer .mono-label { color: var(--signal); }
.layer-quote {
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.05; margin-top: 12px; color: var(--paper);
}

@media (max-width: 900px) {
  .monitor-intro, .monitor-grid { grid-template-columns: 1fr; }
}

/* ---------- Alarms ---------- */
.alarms-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.plan-block {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.plan-svg { width: 100%; height: auto; }
.wall { stroke-width: 6; stroke-linecap: square; }
.wall-in { stroke-width: 3; stroke-linecap: square; }
.window { fill: var(--paper); stroke: currentColor; stroke-width: 1.5; }
.sensor-cone { fill: var(--ink); fill-opacity: 0; stroke: var(--ink); stroke-opacity: 0; stroke-width: 1; stroke-dasharray: 3 4; transition: fill-opacity .4s, stroke-opacity .4s; }
.sensor-dev { fill: var(--paper); stroke: currentColor; stroke-width: 2.2; transition: fill .3s; }
.sensor-ring { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sensor-tag { opacity: .5; transition: opacity .3s; }
.sensor.is-on .sensor-cone { fill-opacity: .08; stroke-opacity: .7; }
.sensor.is-on .sensor-dev { fill: var(--ink); }
.sensor.is-on .sensor-tag { opacity: 1; }
.sensor-alarm.is-on .sensor-dev { fill: var(--signal); stroke: var(--signal); }
.sensor-alarm.is-on .sensor-ring { opacity: 1; animation: ring 1.4s var(--ease) infinite; }
.sensor-alarm.is-on .sensor-tag { fill: var(--signal); }
@keyframes ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.plan-legend { display: grid; border-top: 1.5px solid var(--ink); }
.plan-legend li {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; row-gap: 2px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  transition: opacity .35s;
}
.plan-legend .mono-label { grid-row: span 2; color: var(--ink); padding-top: 3px; }
.plan-legend b { font-weight: 700; color: var(--ink); }
.plan-legend em { font-style: normal; font-size: .92rem; color: var(--text-soft); }
.plan-legend li.is-alarm .mono-label, .plan-legend li.is-alarm b { color: var(--signal); }
.js-anim .plan-legend li { opacity: .3; }
.js-anim .plan-legend li.is-on { opacity: 1; }

.diff-grid {
  margin-top: clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
}
.diff { padding: 20px 20px 24px 0; display: grid; gap: 10px; align-content: start; }
.diff + .diff { padding-left: 20px; border-left: 1px solid var(--rule); }
.diff .mono-label { color: var(--signal); }
.diff p { color: var(--text-soft); font-size: .95rem; }

.multivia {
  margin-top: clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.multivia-copy { display: grid; gap: 14px; }
.multivia-copy > p:not(.mono-label) { color: var(--text-soft); }
.multivia-copy > .mono-label:first-child { color: var(--ink); }
.multivia-status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.multivia-status.is-warn .dot { background: var(--signal); }
.multivia-svg { width: 100%; height: auto; }
.mv-base { fill: none; stroke: currentColor; stroke-width: 1; opacity: .35; }
.mv-flow {
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 2 12; animation: flow 1.1s linear infinite;
}
.mv-cut { fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
.mv-note { opacity: 0; fill: var(--signal); transition: opacity .3s; }
.mv-line.is-cut .mv-flow { opacity: 0; }
.mv-line.is-cut .mv-base { stroke: var(--signal); opacity: .8; stroke-dasharray: 4 5; }
.mv-line.is-cut .mv-cut { opacity: 1; }
.mv-line.is-boost .mv-flow { stroke: var(--signal); stroke-width: 3; animation-duration: .5s; }
.multivia.is-cut .mv-note { opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -28; } }

@media (max-width: 900px) {
  .alarms-top, .plan-block, .multivia { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diff, .diff + .diff { padding: 18px 14px 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .diff:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- App ---------- */
.app { background: var(--paper-2); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.app-step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  max-width: 48ch; transition: opacity .4s;
}
.app-step:first-child { min-height: 60vh; justify-content: flex-start; }
.app-step > p:not(.mono-label):not(.lede) { color: var(--text-soft); font-size: 1.08rem; }
.app-step .mono-label { color: var(--signal); }
.js-anim .app-step:not(.is-active) { opacity: .28; }

.app-phone-wrap {
  position: sticky; top: calc(50vh - 300px + var(--header-h) / 2);
  height: max-content; display: flex; justify-content: center;
}
.phone {
  position: relative; width: 290px; height: 600px;
  border: 2.5px solid var(--ink); border-radius: 46px; padding: 12px;
  background: var(--ink);
  box-shadow: 14px 14px 0 rgba(0, 27, 121, .12);
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 88px; height: 22px; margin-left: -44px; background: var(--ink); border-radius: 12px; z-index: 3; }
.phone-screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--paper-3); color: var(--ink);
}
.phone-bar { display: flex; justify-content: space-between; padding: 14px 24px 0; font-size: 10px; }
.screen {
  position: absolute; inset: 52px 18px 18px;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.screen.is-active { opacity: 1; transform: none; }
.s-kicker { color: var(--text-soft); font-size: 10px; }
.s-state {
  border: 2px solid var(--ink); border-radius: 18px; padding: 26px 16px;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; text-align: center;
}
.s-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s-btns span {
  border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 0; text-align: center;
  font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
}
.s-btns .on { background: var(--ink); color: var(--paper); }
.s-zones li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .88rem; }
.s-zones i { font-style: normal; font-family: var(--f-mono); font-size: 10px; color: var(--ok); }
.s-ring { position: relative; width: 190px; height: 190px; margin: 6px auto 0; display: grid; place-items: center; }
.s-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.s-ring circle { fill: none; stroke: var(--rule); stroke-width: 5; }
.s-ring .s-ring-fg { stroke: var(--ink); stroke-dasharray: 327; stroke-dashoffset: 0; stroke-linecap: round; }
.s-ring span { font-stretch: 125%; font-weight: 800; text-transform: uppercase; text-align: center; line-height: 1; font-size: 1.15rem; }
.s-ring-alarm .s-ring-fg { stroke: var(--signal); }
.s-ring-alarm span { color: var(--signal); }
.s-note { text-align: center; color: var(--text-soft); font-size: 9.5px; }
.s-push {
  background: var(--ink); color: var(--paper); border-radius: 16px; padding: 12px 14px;
  display: grid; gap: 3px; font-size: .8rem; box-shadow: 0 8px 0 rgba(0, 27, 121, .12);
}
.s-push .mono-label { font-size: 9px; opacity: .8; }
.s-push-title { font-weight: 700; font-size: 1rem; color: #fff; }
.s-push-title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 1px; }
.s-cta { margin-top: auto; background: var(--signal); color: #fff; border-radius: 14px; padding: 14px; text-align: center; font-weight: 700; font-size: .9rem; }
.s-video { position: relative; border-radius: 12px; overflow: hidden; background: var(--ink); }
.s-video svg { width: 100%; height: auto; }
.s-video rect, .s-video path { fill: none; stroke: rgba(239, 237, 230, .6); stroke-width: 1.5; }
.s-video .s-video-person { stroke: var(--paper); stroke-width: 2; }
.s-video .s-video-box { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 5 4; }
.s-rec { position: absolute; left: 10px; top: 8px; color: var(--signal); font-size: 9px; }
.s-scrub { height: 4px; border-radius: 2px; background: var(--rule); position: relative; }
.s-scrub i { position: absolute; inset: 0 40% 0 0; background: var(--ink); border-radius: 2px; }
.s-users li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.s-users i { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-style: normal; font-family: var(--f-mono); font-size: 10px; }
.s-users b { font-family: var(--f-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.s-panic {
  width: 180px; height: 180px; margin: 24px auto 4px; border-radius: 50%;
  display: grid; place-items: center; background: var(--signal); color: #fff;
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem;
  box-shadow: 0 0 0 10px rgba(255, 74, 28, .18), 0 0 0 22px rgba(255, 74, 28, .08);
}
.s-geo { text-align: center; font-size: 10px; }
.app-step .app-foot { color: var(--text-soft); font-size: 10px; }
/* Llegada segura */
.s-ring-arrival { width: 150px; height: 150px; }
.s-ring-arrival span { display: grid; gap: 6px; justify-items: center; font-stretch: 100%; text-transform: none; }
.s-ring-arrival b { font-family: var(--f-mono); font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.s-ring-arrival small { font-family: var(--f-mono); font-size: 8px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); max-width: 11ch; line-height: 1.3; }
.s-arrival.is-confirmed .s-ring-fg { stroke: var(--ok); }
.s-arrival.is-confirmed .s-ring-arrival small { color: var(--ok); }
.s-steps { list-style: none; margin: 0; padding: 0; }
.s-steps li {
  display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .82rem; color: var(--text-soft);
  opacity: .45; transition: opacity .35s, color .35s;
}
.s-steps li i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.s-steps em { font-style: normal; font-family: var(--f-mono); font-size: 9px; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 5px; }
.s-steps .s-cam svg { width: 26px; height: auto; }
.s-steps em { white-space: nowrap; }
.s-arrival-note { margin-top: auto; }
.s-steps .s-cam rect, .s-steps .s-cam path, .s-steps .s-cam circle { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.s-steps .ok { color: var(--ok); font-weight: 700; }
.s-steps li.is-now { opacity: 1; color: var(--ink); }
.s-steps li.is-now i { background: var(--signal); border-color: var(--signal); animation: s-blink 1s steps(2) infinite; }
.s-steps li.is-done { opacity: 1; color: var(--ink); }
.s-steps li.is-done i { background: var(--ink); }
.s-steps li:last-child.is-done i { background: var(--ok); border-color: var(--ok); }
@keyframes s-blink { 50% { opacity: .3; } }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  /* Flatten steps into the grid so the intro can sit above the sticky phone band */
  .app-steps { display: contents; }
  .app-phone-wrap {
    order: -1; top: var(--header-h); z-index: 2; height: 320px; overflow: hidden;
    display: flex; justify-content: center; padding-top: 10px;
    background: var(--paper-2); border-bottom: 1px solid var(--rule);
    margin-inline: calc(var(--gutter) * -1);
  }
  .app-phone-wrap .phone { transform: scale(.72); }
  .phone { width: 200px; height: 414px; border-radius: 34px; padding: 8px; transform-origin: top center; }
  .phone-screen { border-radius: 27px; }
  .phone-notch { top: 14px; width: 64px; margin-left: -32px; height: 16px; }
  .screen { inset: 40px 12px 12px; gap: 10px; }
  .s-ring { width: 130px; height: 130px; }
  .s-ring-arrival { width: 112px; height: 112px; }
  .s-ring-arrival b { font-size: 1.25rem; }
  .s-steps li { padding: 6px 0; font-size: .72rem; gap: 7px; }
  .s-steps .s-cam svg { display: none; }
  .s-panic { width: 120px; height: 120px; margin-top: 12px; }
  .s-state { padding: 16px 10px; font-size: 1rem; }
  .s-zones li, .s-users li { padding: 6px 0; font-size: .75rem; }
  .app-step { min-height: 44vh; background: var(--paper-2); position: relative; z-index: 1; padding-block: 24px; }
  /* Keep the section intro above the sticky phone so the phone never covers it */
  .app-step:first-child { min-height: auto; order: -2; }
}

/* ---------- Automation ---------- */
.auto-grid {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--rule); background: var(--paper);
}
.auto-card { padding: 24px 20px 28px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--rule); transition: background .3s; }
.auto-card:last-child { border-right: 0; }
.auto-card:hover { background: var(--paper-3); }
.auto-card .picto { width: 60px; height: 60px; margin-bottom: 12px; }
.auto-card .picto .node { stroke-width: 2; }
.auto-card p { color: var(--text-soft); font-size: .93rem; }
.deploy {
  margin-top: clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
}
.deploy-head { display: grid; gap: 12px; align-content: start; }
.deploy-head .mono-label { color: var(--signal); }
.deploy-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.deploy-steps li { padding: 18px 18px 0 0; display: grid; gap: 6px; align-content: start; }
.deploy-steps li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.deploy-num { font-stretch: 62%; font-weight: 800; font-size: clamp(3.2rem, 5vw, 4.6rem); line-height: .9; color: var(--ink); }
.deploy-steps .mono-label { color: var(--text-soft); }
.deploy-steps b { color: var(--ink); font-weight: 700; margin-top: 8px; }
.deploy-steps p { color: var(--text-soft); font-size: .93rem; }

@media (max-width: 1080px) {
  .auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auto-card { border-bottom: 1px solid var(--rule); }
  .auto-card:nth-child(2n) { border-right: 0; }
  .auto-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .deploy { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .auto-grid { grid-template-columns: 1fr; }
  .auto-card { border-right: 0; }
  .deploy-steps { grid-template-columns: 1fr; }
  .deploy-steps li, .deploy-steps li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Fleet ---------- */
.fleet-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.truck-fig { margin-top: clamp(48px, 6vw, 80px); }
.truck-svg { width: 100%; height: auto; }
.dash {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink); border-left: 1px solid var(--rule);
}
.tile { padding: 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
.tile > .mono-label { color: var(--ink); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.tile-rpm { grid-column: span 3; }
.tile-temp { grid-column: span 3; }
.tile-fuel { grid-column: span 6; }
.tile-score { grid-column: span 4; }
.tile-g { grid-column: span 8; }
.tile svg { width: 100%; height: auto; }
.tile-val { display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.tile-val span, .tile-big span { font-stretch: 62%; font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-val small, .tile-big small { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.tile-big { display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.tile-big span { font-size: 5rem; }
.tile-sub { color: var(--text-soft); font-size: 9.5px; }
.g-track { fill: none; stroke: var(--rule-strong); stroke-width: 8; stroke-linecap: round; }
.g-zone { fill: none; stroke: var(--signal); stroke-width: 8; }
.g-needle path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.g-needle circle { fill: var(--ink); }
.bar { height: 10px; border: 1.5px solid var(--ink); position: relative; margin-top: 18px; }
.bar i { position: absolute; inset: 1px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 9px); transform-origin: left; transform: scaleX(.62); }
.fuel-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.fuel-theft { fill: none; stroke: var(--signal); stroke-width: 3.2; stroke-linecap: round; }
.alert-tag { color: var(--signal); display: inline-flex; align-items: center; gap: 6px; }
.alert-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: blink 1.6s steps(2, end) infinite; }
.g-trace { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.score-ev { display: grid; gap: 4px; color: var(--text-soft); font-size: 10px; }

.tabs {
  margin-top: clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
}
.tab-list { display: grid; align-content: start; border-top: 1.5px solid var(--ink); }
.tab-list button {
  display: flex; gap: 14px; align-items: center; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: 14px 0; cursor: pointer; color: var(--text-soft);
  font-weight: 600; font-size: 1rem; transition: color .25s, padding .25s var(--ease);
}
.tab-list button span { font-family: var(--f-mono); font-size: 10px; color: var(--text-soft); }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { color: var(--ink); padding-left: 14px; box-shadow: inset 3px 0 0 var(--signal); }
.tab-panel { display: grid; gap: 16px; align-content: start; }
.tab-panel + .tab-panel { margin-top: 48px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }
.tab-panel > p { color: var(--text-soft); max-width: 60ch; }
html:not(.js) .tab-list { display: none; }

@media (max-width: 1000px) {
  .tile-rpm, .tile-temp { grid-column: span 6; }
  .tile-fuel, .tile-score, .tile-g { grid-column: span 12; }
}
@media (max-width: 900px) {
  .fleet-top, .tabs { grid-template-columns: 1fr; }
  .tab-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: thin; }
  .tab-list button { border-bottom: 0; padding: 14px 16px 14px 0; white-space: nowrap; }
  .tab-list button[aria-selected="true"] { padding-left: 0; box-shadow: inset 0 -3px 0 var(--signal); }
}
@media (max-width: 520px) {
  .tile-rpm, .tile-temp { grid-column: span 12; }
  .tile-big span { font-size: 4rem; }
}

/* ---------- Structures ---------- */
.struct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.struct-items { margin-top: 40px; border-top: 1.5px solid var(--paper); }
.struct-items article { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--rule-dark); }
.struct-items .mono-label { grid-row: span 2; color: var(--signal); padding-top: 3px; }
.struct-items p:not(.mono-label) { color: rgba(239, 237, 230, .8); font-size: .95rem; }
.site-fig { position: sticky; top: calc(var(--header-h) + 32px); }
.site-svg { width: 100%; height: auto; }
.perimeter { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 14 6; }
.lots rect { fill: none; stroke: rgba(239, 237, 230, .45); stroke-width: 1.2; }
.fiber { fill: none; stroke: var(--signal); stroke-width: 2.6; }
.radio-wave { animation: blink 1.6s steps(2, end) infinite; }
.navy .fill-navy { fill: var(--ink); stroke: var(--paper); }

@media (max-width: 900px) {
  .struct-grid { grid-template-columns: 1fr; }
  .site-fig { position: relative; top: 0; }
}

/* ---------- Closing ---------- */
.closing { padding-block: clamp(80px, 12vw, 160px); overflow: hidden; }
.kinetic { display: grid; gap: 8px; margin-bottom: clamp(48px, 7vw, 96px); }
.k-row {
  display: flex; gap: .4em; white-space: nowrap; width: max-content;
  font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 8vw, 8rem); line-height: .95; color: var(--ink);
}
.k-sep { color: var(--signal); }
.k-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.closing-inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.closing-quote p {
  font-stretch: 112%; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.12; letter-spacing: -.02em; color: var(--ink);
}
.closing-sub { color: var(--text-soft); border-left: 1px solid var(--rule); padding-left: 24px; }
@media (max-width: 900px) { .closing-inner { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-list { margin-top: 40px; border-top: 1.5px solid var(--paper); }
.contact-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-dark); align-items: baseline; }
.contact-list .mono-label { color: rgba(239, 237, 230, .65); }
.contact-list a { text-decoration: none; font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.2rem); overflow-wrap: anywhere; }
.contact-list a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }

.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  border: 1px solid var(--rule-dark); padding: clamp(20px, 3vw, 36px);
  background: rgba(0, 15, 69, .35);
}
.form-title { grid-column: 1 / -1; color: var(--signal); }
.contact-form label { display: grid; gap: 8px; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form .mono-label { color: rgba(239, 237, 230, .7); font-size: 10px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: transparent; color: var(--paper);
  border: 0; border-bottom: 1.5px solid rgba(239, 237, 230, .45);
  padding: 10px 0; border-radius: 0; font-size: 1rem;
}
.contact-form select option { color: var(--ink); background: var(--paper); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--signal); }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.form-msg { grid-column: 1 / -1; min-height: 1.5em; color: var(--paper); }
.form-msg.is-error { color: #FFB39E; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Hero solution links ---------- */
.sol-link { cursor: pointer; outline: none; }
.hero-svg .sol-link .svg-lbl { font-size: 12px; font-weight: 700; }
.sol-link text { pointer-events: bounding-box; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: fill .2s, text-decoration-color .2s; }
.sol-link .tick { transform-box: fill-box; transform-origin: center; transition: fill .2s, transform .25s var(--ease); }
.sol-link:hover text, .sol-link:focus-visible text { fill: var(--signal); text-decoration-color: var(--signal); }
.sol-link:hover .tick, .sol-link:focus-visible .tick { fill: var(--signal); transform: scale(1.8); }
.sol-link:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

/* ---------- Vigilancia 2.0 ---------- */
.vg-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.vg-intro .lede { margin-top: 0; }
.vg-stage { margin-top: clamp(48px, 6vw, 88px); }
.vg-stage-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.vg-map { background-color: var(--paper-3); margin: 0; }
.vg-readout {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); color: var(--text-soft);
}
.vg-readout b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.vg-readout .vg-act-lbl { color: var(--ink); }
.vg-readout[data-state="late"] [data-vg-det] { color: var(--signal); }
.vg-readout[data-state="early"] [data-vg-det] { color: var(--ok); }
.vg-svg { width: 100%; height: auto; }
.vg-svg .svg-lbl { font-size: 11px; }
.vg-soft { opacity: .55; }
.vg-walk { fill: none; stroke: var(--paper-2); stroke-width: 16; stroke-linecap: round; }
.vg-walk-c { fill: none; stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 2 7; }
.vg-hatch-line { stroke: var(--ink); stroke-width: 1.1; opacity: .3; }
.vg-blind { fill: var(--text-soft); letter-spacing: .14em; }
.vg-perim { stroke-width: 3; }
.vg-loop { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 5 6; opacity: .35; }
.vg-cone-guard { fill: rgba(0, 27, 121, .08); stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.vg-guard-dot { fill: var(--ink); stroke: var(--paper-3); stroke-width: 3; }
.vg-ext { fill: rgba(255, 74, 28, .045); stroke: var(--signal); stroke-width: 1; stroke-dasharray: 2 6; stroke-opacity: .45; }
.vg-ext-lbl { fill: var(--signal); letter-spacing: .22em; opacity: .75; }
/* Analytics cameras look INTO the property (ink); thermal cameras look OUT over the exterior band (signal). */
.vg-acone path { fill: rgba(0, 27, 121, .07); stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.vg-tcone path { fill: rgba(255, 74, 28, .16); stroke: var(--signal); stroke-width: 1.2; }
.vg-svg .vg-flash { fill: var(--signal); stroke: none; opacity: 0; }
.vg-acone .vg-flash { fill: var(--ink); }
.vg-cam-body { fill: var(--ink); }
.vg-tcam-body { fill: var(--signal); stroke: var(--paper-3); stroke-width: 1.5; }
.vg-divert-path { fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-dasharray: 5 5; stroke-linecap: round; }
.vg-heat-halo { fill: rgba(255, 74, 28, .28); }
.vg-alert-lead { fill: none; stroke: var(--signal); stroke-width: 1; }
.vg-alert-v { fill: var(--ok); font-weight: 700; }
.vg-svg .vg-halo { paint-order: stroke; stroke: var(--paper-3); stroke-width: 5px; stroke-linejoin: round; }
.vg-lock-outer { transform-box: fill-box; transform-origin: center; animation: vg-spin 6s linear infinite; }
.vg-sensor .node { stroke-width: 2; }
.vg-ring { fill: none; stroke: var(--ok); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: vg-ping 2.6s var(--ease) infinite; }
.vg-sensor:nth-child(3n) .vg-ring { animation-delay: .8s; }
.vg-sensor:nth-child(3n+1) .vg-ring { animation-delay: 1.6s; }
.vg-ring-static { fill: none; stroke: var(--ok); stroke-width: 1.2; }
@keyframes vg-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.vg-drone-path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; opacity: .75; }
.vg-rotor { fill: var(--paper-3); stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 9 3; transform-box: fill-box; transform-origin: center; animation: vg-spin .6s linear infinite; }
@keyframes vg-spin { to { transform: rotate(360deg); } }
.vg-intr-dot { fill: var(--signal); }
.vg-intr-pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: vg-ping 1.6s var(--ease) infinite; }
.vg-lock circle, .vg-lock path { fill: none; stroke: var(--signal); stroke-width: 2; }
.vg-lock .vg-lock-outer { stroke-width: 1; stroke-dasharray: 4 4; }
.vg-lock-legend { fill: none; stroke: var(--signal); stroke-width: 1.2; }
.vg-tcone-static { fill: rgba(255, 74, 28, .2); stroke: var(--signal); stroke-width: 1.2; }
.vg-acone-static { fill: rgba(0, 27, 121, .08); stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 2; }
.vg-alert-bg { fill: var(--paper-3); stroke: var(--signal); stroke-width: 1; }
.vg-alert-a { font-weight: 700; }
.vg-route { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; }
.vg-resp-dot { fill: var(--ink); }
.vg-resp-glyph { fill: none; stroke: var(--paper-3); stroke-width: 1.8; stroke-linecap: round; }

.vg-side { display: grid; gap: 4px; }
.vg-act-card { display: grid; gap: 10px; padding-block: 22px; border-top: 1px solid var(--rule); transition: opacity .45s; }
.vg-act-card .mono-label { color: var(--signal); }
.vg-act-card > p:last-child { color: var(--text-soft); }
.js-anim .vg-act-card:not(.is-active) { opacity: .3; }
.vg-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding-top: 18px; border-top: 1px solid var(--ink); }
.vg-legend li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); }
.vg-legend svg { width: 20px; height: 20px; flex: none; }

.vg-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1.5px solid var(--ink); }
.vg-cap { padding: 28px 22px 32px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--rule); transition: background .3s; }
.vg-cap:last-child { border-right: 0; }
.vg-cap:hover { background: var(--paper-3); }
.vg-cap .picto { width: 60px; height: 60px; margin-bottom: 8px; }
.vg-cap .picto .node { stroke-width: 2; }
.vg-cap > p:not(.mono-label) { color: var(--text-soft); font-size: .95rem; }
.vg-cap-n { color: var(--signal); }
.vg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vg-tags li { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--rule-strong); padding: 5px 8px; }
.vg-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--rule); }
.vg-apps > p { color: var(--signal); }
.vg-apps ul { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-apps li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); background: var(--ink); padding: 8px 12px; }

@media (max-width: 1080px) {
  .vg-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vg-cap { border-bottom: 1px solid var(--rule); }
  .vg-cap:nth-child(2n) { border-right: 0; }
}
@media (max-width: 900px) {
  .vg-intro, .vg-stage-grid { grid-template-columns: 1fr; }
  .vg-svg .svg-lbl { font-size: 14px; }
  .vg-svg .vg-alert .svg-lbl, .vg-svg .vg-alert-t .svg-lbl { font-size: 12.5px; letter-spacing: 0; }
  .vg-readout { font-size: 10px; }
}
@media (max-width: 560px) {
  .vg-caps { grid-template-columns: 1fr; }
  .vg-cap { border-right: 0; }
  .vg-legend { grid-template-columns: 1fr 1fr; }
  .vg-svg .vg-soft, .vg-svg .vg-blind { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--paper); padding-block: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-inner img { width: 130px; height: auto; }
.footer-inner p, .footer-inner a { color: rgba(239, 237, 230, .7); text-decoration: none; }
.footer-inner a:hover { color: var(--paper); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-run { animation: none; }
  .vg-ring, .vg-intr-pulse, .vg-rotor, .vg-lock-outer { animation: none; }
}
