/* Fuentes autoalojadas (OFL): Archivo, Instrument Sans, JetBrains Mono */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../fonts/Archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(../fonts/Archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/InstrumentSans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/InstrumentSans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* HIGH TRACK — sistema de diseño
   Marca: navy #201C59 + franja tricolor (#FDD200 / #263681 / #CC151A) del logo.
   Roles: amarillo = solo CTA primario · tricolor = solo marcador de marca · verde/rojo = solo estados de telemetría */
:root {
  --ink: #12103a;
  --brand: #201c59;
  --brand-2: #263681;
  --flag-y: #fdd200;
  --flag-b: #263681;
  --flag-r: #cc151a;
  --bg: #ffffff;
  --bg-2: #f3f4f8;
  --line: #e1e3ec;
  --muted: #565a74;
  --console: #0d0b2b;
  --console-2: #17143f;
  --console-line: #2a2660;
  --ok: #2bd47d;
  --warn: #ffb020;
  --alert: #ff4d4f;
  --radius: 6px;
  --wrap: 1200px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(18, 16, 58, .06), 0 12px 32px -12px rgba(18, 16, 58, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--flag-b); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--flag-y); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--bg-2); }
.section--ink { background: var(--brand); color: #fff; }

/* Tipografía */
.display { font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.035em; line-height: .98; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; font-stretch: 108%; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.section--ink .lead { color: #c9c8e6; }
.muted { color: var(--muted); }

/* Eyebrow con marcador tricolor (rol: identidad) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow::before {
  content: ""; width: 36px; height: 3px; flex: none;
  background: linear-gradient(90deg, var(--flag-y) 0 50%, var(--flag-b) 50% 75%, var(--flag-r) 75%);
}
.section--ink .eyebrow, .console-band .eyebrow { color: #b9b7ee; }
.tricolor { height: 4px; background: linear-gradient(90deg, var(--flag-y) 0 50%, var(--flag-b) 50% 75%, var(--flag-r) 75%); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--flag-y); color: var(--ink); }
.btn--primary:hover { background: #ffdf3d; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); }
.section--ink .btn--ghost, .console-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.section--ink .btn--ghost:hover { border-color: #fff; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--brand-2); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.section--ink .link-arrow { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; font-weight: 500; font-size: .95rem; text-decoration: none; border-radius: var(--radius); color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.header-cta { display: flex; gap: 8px; }
.header-cta .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .2s; }
@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .nav, .header-cta { display: none; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; inset: 72px 0 auto; background: #fff; padding: 12px 16px 8px; border-bottom: 1px solid var(--line); }
  .site-header.open .header-cta { display: flex; position: absolute; top: calc(72px + var(--nav-h, 330px)); left: 0; right: 0; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .site-header.open .nav a { padding: 14px 8px; font-size: 1.05rem; }
  .site-header.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Hero */
.hero { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end; }
.hero-meta { display: grid; gap: 18px; padding-bottom: 8px; }
.hero-meta li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.hero-meta svg { width: 20px; height: 20px; color: var(--brand-2); margin-top: 3px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Consola de telemetría (pieza firma) */
.console-band { position: relative; margin-top: clamp(32px, 4vw, 48px); }
.console-band::after { content: ""; position: absolute; inset: 55% 0 0; background: var(--brand); z-index: -1; }
.console {
  display: grid; grid-template-columns: 1fr 320px; min-height: 460px; overflow: hidden;
  background: var(--console); color: #e6e5ff; border-radius: 10px; border: 1px solid var(--console-line);
  box-shadow: 0 40px 80px -30px rgba(13, 11, 43, .55);
}
.console-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--console-line); font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9a97d6; }
.console-bar .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.console-bar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(43, 212, 125, .6); animation: pulse 2s infinite; }
.console-bar .clock { margin-left: auto; color: #e6e5ff; }
.console-map { position: relative; min-height: 380px; border-right: 1px solid var(--console-line); }
.console-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-grid line { stroke: #1d1a4c; stroke-width: 1; }
.map-street { fill: none; stroke: #262262; stroke-width: 7; stroke-linecap: round; }
.map-river { fill: none; stroke: #16305e; stroke-width: 22; stroke-linecap: round; opacity: .8; }
.map-route { fill: none; stroke-width: 2.5; stroke-dasharray: 6 7; animation: dash 30s linear infinite; }
.map-fence { fill: rgba(111, 140, 255, .07); stroke: rgba(111, 140, 255, .6); stroke-width: 1.5; stroke-dasharray: 4 4; }
.vehicle circle:first-child { animation: ping 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map-tag { position: absolute; padding: 6px 10px; background: rgba(23, 20, 63, .92); border: 1px solid var(--console-line); border-radius: 4px; font: 500 .7rem/1.35 var(--mono); color: #e6e5ff; pointer-events: none; }
.map-tag b { color: #fff; font-weight: 600; }
.map-tag .s-ok { color: var(--ok); } .map-tag .s-warn { color: var(--warn); } .map-tag .s-alert { color: var(--alert); }
.console-side { display: flex; flex-direction: column; font-family: var(--mono); font-size: .78rem; }
.units li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--console-line); }
.units .dot { width: 8px; height: 8px; border-radius: 50%; }
.units small { display: block; color: #8885c4; margin-top: 2px; font-size: .7rem; }
.units .spd { color: #fff; font-variant-numeric: tabular-nums; }
.feed { flex: 1; padding: 14px 18px; overflow: hidden; }
.feed .feed-h { font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8885c4; margin-bottom: 10px; }
.feed li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 6px 0; color: #c9c7f2; animation: feedIn .5s ease both; }
.feed time { color: #8885c4; }
@media (max-width: 900px) {
  .console { grid-template-columns: 1fr; }
  .console-map { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--console-line); }
  .feed { display: none; }
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(43, 212, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 212, 125, 0); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -600; } }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }

/* Franja de credenciales */
.proof { background: var(--brand); color: #fff; padding-block: 28px; }
.proof ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.proof li { font: 500 .78rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #d6d5f3; display: flex; align-items: center; gap: 10px; }
.proof svg { width: 18px; height: 18px; color: var(--flag-y); flex: none; }

/* Encabezado de sección */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--single { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

/* Índice de capacidades (lista, no tarjetas) */
.index { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; counter-reset: cap; }
.index li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--line); counter-increment: cap; }
.index li::before { content: counter(cap, decimal-leading-zero); grid-row: span 2; font: 500 .8rem/1.8 var(--mono); color: var(--brand-2); }
.index h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.index p { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .index { grid-template-columns: 1fr; } }

/* Segmentos con imagen (enlaces → tarjeta justificada) */
.segments { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.segment { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 28px; border-radius: 10px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.segment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.segment::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 11, 43, 0) 25%, rgba(13, 11, 43, .9) 100%); }
.segment:hover img { transform: scale(1.04); }
.segment .tag { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #d6d5f3; margin-bottom: 10px; }
.segment h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.segment p { color: #d6d5f3; font-size: .98rem; }
.segment--plain { background: var(--console-2); }
@media (max-width: 900px) { .segments { grid-template-columns: 1fr; } .segment { min-height: 340px; } }

/* Ecosistema (teaser en home) */
.eco { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.eco a { display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-decoration: none; transition: padding .25s ease; }
.eco a:hover { padding-left: 12px; }
.eco .chip { display: grid; place-items: center; width: 220px; height: 76px; padding: 10px 16px; background: #fff; border-radius: var(--radius); }
.eco .chip img { width: 100%; height: 100%; object-fit: contain; }
.eco h3 { font-size: 1.35rem; margin-bottom: 6px; }
.eco p { color: #c9c8e6; max-width: 62ch; }
.eco .go { font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
@media (max-width: 760px) { .eco a { grid-template-columns: 1fr; gap: 14px; } .eco .go { display: none; } }

/* Cifras */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.figures div { padding: 32px 24px 0 0; }
.figures div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figures strong { display: block; font: 800 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--display); font-stretch: 110%; letter-spacing: -.03em; color: var(--brand); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.figures span { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr 1fr; row-gap: 32px; } .figures div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Split genérico */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checks svg { width: 20px; height: 20px; color: var(--brand-2); margin-top: 3px; }
.section--ink .checks svg { color: var(--flag-y); }

/* Teléfonos */
.phones { display: flex; justify-content: center; gap: 18px; align-items: flex-end; }
.phones img { width: 31%; max-width: 220px; border-radius: 22px; box-shadow: var(--shadow); }
.phones img:nth-child(2) { transform: translateY(-28px); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; background: var(--ink); color: #fff; border-radius: var(--radius); text-decoration: none; }
.store small { display: block; font-size: .68rem; opacity: .75; line-height: 1; }
.store b { display: block; font-size: 1.02rem; line-height: 1.2; }
.store svg { width: 22px; height: 22px; }

/* CTA final */
.cta-band { background: var(--brand); color: #fff; padding-block: clamp(56px, 8vw, 96px); position: relative; }
.cta-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--flag-y) 0 50%, var(--flag-b) 50% 75%, var(--flag-r) 75%); }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band p { color: #c9c8e6; margin-top: 14px; max-width: 56ch; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Hero de páginas internas */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .display { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }
.crumbs { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }

/* Tabla de características */
.spec { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec th, .spec td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font: 500 .72rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec td:not(:first-child), .spec th:not(:first-child) { text-align: center; width: 15%; }
.spec .yes { color: var(--brand-2); font-weight: 700; }
.spec .no { color: #b3b5c6; }
.table-scroll { overflow-x: auto; }

/* Mosaico de enlaces (acceso) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.tile .tag { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.tile p { color: var(--muted); font-size: .97rem; flex: 1; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }

/* Formularios */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(38, 54, 129, .15); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--flag-r); }
.form-note { font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 24px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list dt { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-list dd { margin: 0; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--console); color: #b9b7e0; padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-grid img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-grid .ft { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { text-decoration: none; } .footer-grid a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--console-line); font-size: .85rem; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--console-line); border-radius: var(--radius); }
.social a:hover { border-color: #fff; }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
.wa-float svg { width: 28px; height: 28px; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .console-bar > span:nth-child(2), .map-tag { display: none; }
  .hero-meta { display: none; }
}

/* ===== Productos propios ===== */
.prod-nav { position: sticky; top: 72px; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.prod-nav ul { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; }
.prod-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; background: #fff; }
.prod-nav a:hover, .prod-nav a.active { border-color: var(--ink); }
.prod-nav i { width: 10px; height: 10px; border-radius: 50%; background: var(--p); }

.ecosys { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-top: 56px; }
.ecosys-core { padding: 28px; border-radius: 10px; background: var(--brand); color: #fff; text-align: center; min-width: 240px; }
.ecosys-core img { height: 34px; width: auto; margin: 0 auto 14px; }
.ecosys-core p { font: 500 .72rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #c9c8e6; }
.ecosys-col { display: grid; gap: 12px; }
.ecosys-col li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: .95rem; }
.ecosys-col li b { display: block; font-family: var(--display); font-size: 1.05rem; }
.ecosys-col li span { color: var(--muted); }
.ecosys-col--in li { text-align: right; }
.ecosys-col--out li { border-left: 3px solid var(--p); } /* el color identifica al producto */
@media (max-width: 900px) { .ecosys { grid-template-columns: 1fr; } .ecosys-col--in li { text-align: left; } }

.chapter { --p: #201c59; --p-ink: #201c59; padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.chapter--rutika { --p: #a6c34a; --p-ink: #1c2a4a; }
.chapter--pitszone { --p: #00a99d; --p-ink: #0b1f3a; }
.chapter--navialog { --p: #12b886; --p-ink: #0b1f4d; --p-grad: linear-gradient(120deg, #1e6bff, #00c48c); }
.chapter-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; margin-bottom: 48px; }
.chapter-head .brand-mark { height: 64px; width: auto; max-width: 260px; object-fit: contain; }
.chapter-head .kind { font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chapter-head .kind b { display: block; color: var(--p-ink); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p); }
@media (max-width: 700px) { .chapter-head { grid-template-columns: 1fr; } }
.chapter h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; font-stretch: 108%; color: var(--p-ink); max-width: 18ch; margin-bottom: 28px; }
.chapter .checks svg { color: var(--p); }
.chapter .btn--product { background: var(--p-ink); color: #fff; }
.chapter .btn--product:hover { filter: brightness(1.25); }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.who span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--muted); }
.media { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--p-ink); }
.media img { width: 100%; }
.media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; border-radius: 4px; background: rgba(13, 11, 43, .8); color: #fff; font: 500 .72rem/1 var(--mono); letter-spacing: .06em; }
.media-duo { position: relative; padding: 0 56px 64px 0; }
.media-duo .phone { position: absolute; right: 0; bottom: 0; width: 150px; border-radius: 18px; box-shadow: var(--shadow); border: 5px solid #0b1f3a; background: #0b1f3a; }
@media (max-width: 600px) { .media-duo { padding: 0; } .media-duo .phone { display: none; } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 2px solid var(--p); }
.pillars div { padding: 24px 24px 0 0; }
.pillars div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.pillars h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--p-ink); }
.pillars p { color: var(--muted); font-size: .97rem; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } .pillars div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Torre de control Navialog (mock código-nativo) */
.tower { background: #0b1f4d; color: #e8f1ff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-family: var(--mono); font-size: .8rem; }
.tower-bar { display: flex; justify-content: space-between; padding: 14px 18px; background: var(--p-grad); color: #fff; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.tower-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #1d3570; }
.tower-kpis div { padding: 16px 18px; }
.tower-kpis div + div { border-left: 1px solid #1d3570; }
.tower-kpis b { display: block; font: 800 1.6rem/1 var(--display); color: #fff; margin-bottom: 4px; }
.tower-kpis span { color: #8fa9d9; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.tower table { width: 100%; border-collapse: collapse; }
.tower th, .tower td { text-align: left; padding: 11px 18px; border-bottom: 1px solid #1d3570; }
.tower th { color: #8fa9d9; font-weight: 500; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .68rem; }
.pill--ok { background: rgba(0, 196, 140, .16); color: #3ee0a8; }
.pill--go { background: rgba(30, 107, 255, .2); color: #8fb4ff; }
.pill--wait { background: rgba(255, 176, 32, .16); color: #ffc65c; }
@media (max-width: 600px) { .tower th:nth-child(3), .tower td:nth-child(3) { display: none; } }

/* Módulos de la plataforma (pestañas) */
.section--ink .index li::before { color: #b9b7ee; }
.section--ink .index h3 { color: #fff; }
.modules { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.mod-list { display: grid; gap: 4px; position: sticky; top: 96px; }
.mod-list button { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--radius); background: none; font: inherit; color: var(--ink); cursor: pointer; }
.mod-list button b { font-family: var(--display); font-size: 1.05rem; }
.mod-list button span { color: var(--muted); font-size: .88rem; }
.mod-list button:hover { background: var(--bg-2); }
.mod-list button[aria-selected="true"] { background: var(--brand); color: #fff; }
.mod-list button[aria-selected="true"] span { color: #c9c8e6; }
.mod-panel { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mod-panel h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--brand); margin: 6px 0 12px; }
.mod-tag { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.mod-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.mod-cols h4 { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
.mod-cols .checks { margin-top: 16px; font-size: .98rem; }
.no-js .mod-panel[hidden] { display: block; margin-top: 16px; }
@media (max-width: 900px) {
  .modules { grid-template-columns: 1fr; gap: 16px; }
  .mod-list { position: static; display: flex; overflow-x: auto; padding-bottom: 4px; }
  .mod-list button { flex: none; border-color: var(--line); }
  .mod-list button span { display: none; }
  .mod-cols { grid-template-columns: 1fr; gap: 0; }
}
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tiles--4 .tile { padding: 22px; }
@media (max-width: 1060px) { .tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles--4 { grid-template-columns: 1fr; } }
.figures--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .figures--5 { grid-template-columns: repeat(3, 1fr); row-gap: 32px; } .figures--5 div:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .figures--5 { grid-template-columns: 1fr 1fr; } .figures--5 div:nth-child(4) { border-left: 1px solid var(--line); padding-left: 24px; } .figures--5 div:nth-child(odd) { border-left: 0; padding-left: 0; } }
.modules { scroll-margin-top: 96px; }
