/* IPSEC Colombia. Hoja de estilos única, sin dependencias. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("../fonts/martian-mono-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/martian-mono-latin-standard-normal.woff2") format("woff2");
}

:root {
  --bg: #0A1430;
  --bg-raised: #0E1C40;
  --console: #060E26;
  --console-bar: #0C1838;
  --line: #1E3263;
  --line-strong: #34508A;
  --text: #E8EEFA;
  --text-2: #C2CEE4;
  --text-3: #97A9CA;
  --brand: #3660C7;
  --brand-hover: #2A4FAE;
  --brand-light: #8DB0F5;
  --alert: #FF7A86;
  --paper: #F1F4FA;
  --paper-line: #CCD6E8;
  --ink: #0B1630;
  --ink-2: #3B4A68;
  --radius: 8px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 116px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html.no-scroll, html.no-scroll body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-light); text-underline-offset: 3px; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 2px; }
.paper :focus-visible, .brand-film :focus-visible { outline-color: var(--brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
strong, b { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* iPhone de lado: el texto no queda bajo la isla o la muesca (el sitio usa viewport-fit=cover) */
@supports (padding: max(0px)) {
  .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}
/* Toques en celular: respuesta inmediata (sin la espera del doble toque) y un resaltado en los azules del sitio */
a, button, summary, label, select { -webkit-tap-highlight-color: rgba(141, 176, 245, .22); touch-action: manipulation; }
.narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Tipografía */
.h1 { font-size: clamp(1.9rem, 2.9vw, 2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.hero .h1 { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.12; }
.h2 { font-size: clamp(1.45rem, 2.1vw, 2rem); font-weight: 600; line-height: 1.22; }
.h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.lead { font-size: clamp(1.02rem, 1.2vw, 1.125rem); line-height: 1.7; color: var(--text-2); max-width: 38em; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); margin-bottom: 14px; }
.paper .eyebrow { color: var(--brand); }
.muted { color: var(--text-3); }
.paper .muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px; border-radius: 6px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn.btn-primary, .paper .btn.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn.btn-primary:hover, .paper .btn.btn-primary:hover { background: var(--brand-hover); color: #FFFFFF; }
.btn.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn.btn-ghost:hover { border-color: var(--brand-light); color: #FFFFFF; }
.paper .btn.btn-ghost { border-color: var(--ink); color: var(--ink); }
.paper .btn.btn-ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Encabezado */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 48, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; flex: 0 0 auto; }
.brand img { height: 72px; width: auto; }
/* Al bajar por la página, el logo del encabezado se reduce al isotipo: así no se repite completo junto al del pie
   (pedido de César, 16 nov 2026). Se recorta con clip-path para que el menú no se mueva. */
.site-header .brand img { -webkit-clip-path: polygon(0 0, 100% 0, 100% 77%, 100% 77%, 100% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 100% 77%, 100% 77%, 100% 100%, 0 100%); transition: clip-path .35s ease, -webkit-clip-path .35s ease; }
.is-scrolled .site-header .brand img { -webkit-clip-path: polygon(0 0, 24.8% 0, 24.8% 77%, 18% 77%, 18% 100%, 0 100%); clip-path: polygon(0 0, 24.8% 0, 24.8% 77%, 18% 77%, 18% 100%, 0 100%); }
@media (prefers-reduced-motion: reduce) { .site-header .brand img { transition: none; } }
.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-list > li { position: static; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--bg-raised); color: #FFFFFF; }
.nav-link[aria-current="page"], .nav-trigger.is-current { color: #FFFFFF; box-shadow: inset 0 -2px 0 var(--brand-light); border-radius: 0; }
.nav-trigger svg { width: 11px; height: 11px; flex: none; transition: transform .15s ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand-light); color: #FFFFFF; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* Menús desplegables */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-raised); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0, 0, 0, .35); }
.mega-inner { display: grid; gap: 8px 28px; padding-top: 28px; padding-bottom: 24px; }
.mega-svc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-sol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-col h3 { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 4px 12px 10px; }
.mega-col h3 a { color: var(--text-3); text-decoration: none; }
.mega-col h3 a:hover { color: #FFFFFF; }
.mega-col ul { list-style: none; display: grid; gap: 2px; }
.mega a.mega-item { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--text); }
.mega a.mega-item:hover { background: rgba(141, 176, 245, .1); }
.mega-item strong { display: block; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.mega-item span { display: block; font-size: .85rem; color: var(--text-3); line-height: 1.45; margin-top: 2px; }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 14px 12px 0; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; font-size: .875rem; font-weight: 600; }

/* Menú móvil */
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mobile-nav .wrap { padding-top: 8px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 4px; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav .m-link { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 8px 4px; font-weight: 600; font-size: 1.02rem; color: var(--text); text-decoration: none; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 13px; height: 13px; transition: transform .15s ease; }
.mobile-nav details[open] > summary svg { transform: rotate(180deg); }
.mobile-nav .m-link { border-bottom: 1px solid var(--line); }
.mobile-nav details ul { list-style: none; padding: 0 0 12px; display: grid; }
.mobile-nav details a { display: block; padding: 10px 4px 10px 12px; color: var(--text-2); text-decoration: none; border-left: 2px solid var(--line); font-size: .95rem; }
.mobile-nav details a:hover { color: #FFFFFF; border-left-color: var(--brand-light); }
.mobile-nav details a[aria-current="page"], .mega a[aria-current="page"] { color: #FFFFFF; }
.mobile-nav details a[aria-current="page"] { border-left-color: var(--brand-light); font-weight: 600; }
.mobile-nav details a.m-all { margin-top: 10px; border-left: 0; padding-left: 4px; color: var(--brand-light); font-weight: 600; }
/* Soluciones en el celular: un renglón por fabricante */
.mobile-nav details a.m-all-top { margin: 0 0 6px; }
.mobile-nav .m-sub { border-bottom: 0; }
.mobile-nav .m-sub summary, .mobile-nav details a.m-vendor { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 8px 4px 8px 12px; font-size: .98rem; font-weight: 600; color: var(--text); border-left: 2px solid var(--line); }
.mobile-nav .m-sub summary svg { width: 11px; height: 11px; }
.mobile-nav details a.m-vendor[aria-current="page"] { border-left-color: var(--brand-light); }
.mobile-nav .m-sub ul { padding: 0 0 8px 14px; }
.mobile-nav .m-group { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 14px 4px 4px 12px; font-weight: 600; }
.mobile-nav .m-actions { display: grid; gap: 12px; padding-top: 20px; }

/* Secciones */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: clamp(44px, 5.5vw, 72px) 0; }
.section.top-compact { padding-top: clamp(40px, 4.5vw, 60px); }
.raised { background: var(--bg-raised); }
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper a:not(.btn) { color: var(--brand); }
.paper a:not(.btn):hover { color: var(--ink); }
.rule-top { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 64px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > div { flex: 1 1 480px; max-width: 640px; }
.section-head > p { flex: 1 1 360px; max-width: 34em; color: var(--text-2); }
.paper .section-head > p { color: var(--ink-2); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 1264px) { .hero .hero-copy .btn-row { flex-wrap: nowrap; } }
.hero-copy { display: grid; gap: 22px; align-content: start; }
.hero-copy .eyebrow { margin-bottom: -8px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; }
.hero-facts dt { font-size: .875rem; color: var(--text-3); }
.hero-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 1.04rem; line-height: 1.5; }
.hero-facts dd .sub { display: block; font-weight: 400; font-size: .9rem; color: var(--text-3); margin-top: 5px; line-height: 1.45; }
.page-hero { padding: clamp(24px, 3vw, 36px) 0 clamp(48px, 6vw, 80px); }
.page-hero .hero-grid { align-items: start; }
.page-hero.solo .hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero.solo .lead { max-width: 46em; }
.hero-note { max-width: 40em; padding: 2px 0 2px 16px; border-left: 2px solid var(--brand-light); color: var(--text-2); font-size: .95rem; line-height: 1.6; }

/* Ruta de navegación */
.crumbs { margin-bottom: clamp(18px, 2.5vw, 28px); font-size: .85rem; color: var(--text-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.crumbs li { display: inline-flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--text-3); }
.crumbs [aria-current] { color: var(--text-2); }

/* Consolas */
.console {
  background: var(--console); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  font-family: var(--mono); font-stretch: 87.5%; font-size: .76rem; line-height: 1.75; color: var(--text-2);
}
/* Marco copiado del iTerm2 de César (captura del 3 nov), con los colores del sitio. Botones de ventana en azules:
   César no distingue bien el ámbar junto al verde. Pestañas falsas: no se tocan ni hacen nada. */
.console-bar { background: var(--console-bar); border-bottom: 1px solid var(--line); color: var(--text-3); font-size: .72rem; line-height: 1.2; user-select: none; -webkit-user-select: none; }
.win-title { display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 12px; }
.win-btns { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.win-btns i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.win-btns i:first-child { background: #4A68A8; }
.win-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--text); font-weight: 600; }
.win-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-folder { width: 15px; height: 12px; flex: none; fill: var(--brand-light); }
.win-key { margin-left: auto; flex: none; color: var(--text-3); }
.tabs { list-style: none; display: flex; align-items: center; gap: 0; height: 32px; margin: 0; padding: 0 4px 4px 6px; }
.tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0; min-width: 0; height: 24px; padding: 0 10px; color: var(--text-3); white-space: nowrap; }
.tab + .tab::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 1px; background: var(--line); }
.tab.is-active { background: rgba(141, 176, 245, .12); border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text); font-weight: 600; }
.tab.is-active + .tab::before { display: none; }
.tab-ico { width: 13px; height: 11px; flex: none; fill: var(--brand-light); stroke: var(--console); }
.tab:not(.is-active) .tab-ico { opacity: .7; }
.tab-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tab-key { flex: none; color: var(--text-3); font-weight: 400; }
.tab-add { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 6px; border-radius: 50%; background: rgba(141, 176, 245, .12); color: var(--text-2); font-size: .95rem; line-height: 1; }
.console-body { padding: 14px 16px 16px; }
.console pre, .console code { font-family: inherit; font-size: inherit; margin: 0; }
.console pre { white-space: pre; overflow-x: auto; }
.console table { border-collapse: collapse; width: 100%; }
.console th, .console td { text-align: left; padding: 6px 12px 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
.console thead th { border-top: 0; color: var(--text-3); font-weight: 500; }
.console .t-scroll { overflow-x: auto; }
.c-prompt { color: var(--brand-light); }
.c-cmd { color: #FFFFFF; font-weight: 600; }
.c-out { color: var(--text-2); }
.c-note { color: var(--brand-light); }
.c-warn { color: var(--alert); font-weight: 600; }
.c-dim { color: var(--text-3); }
.c-bar { color: var(--brand-light); letter-spacing: -0.04em; }
.c-crit { background: var(--alert); color: #0A1430; font-weight: 700; padding: 0 5px; border-radius: 2px; }
.c-ok { color: var(--brand-light); font-weight: 600; }
.c-off { color: var(--line-strong); }
.c-num { color: #FFFFFF; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-head { color: #FFFFFF; font-weight: 700; letter-spacing: .04em; }
.c-key { color: var(--brand-light); }
.c-host { color: #B9CEFF; }
/* Prompt de dos líneas al estilo Kali, en los azules del sitio (sin verde) */
.c-frame { color: #5B84E0; }
.c-user { color: var(--brand-light); font-weight: 700; }
.c-path { color: #FFFFFF; font-weight: 600; }
.c-sym { color: var(--brand-light); font-weight: 700; }
.term-line.p-top { margin-top: 2px; }
.term-line.c-frame, .c-frame, .c-user, .c-path { font-family: Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", ui-monospace, var(--mono); font-stretch: normal; }
/* Barra de estado inferior, como la de tmux */
/* Barra de estado de iTerm2: fecha y hora, tráfico de red con su gráfica y el equipo, separados por líneas finas */
.console-status { display: flex; align-items: center; min-height: 26px; padding: 0 4px; background: var(--console-bar); border-top: 1px solid var(--line); color: var(--text-2); font-size: .7rem; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; }
.console-status .sb { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 12px; border-right: 1px solid var(--line); }
.console-status .sb-time { color: var(--brand-light); }
.console-status .sb-net { flex: 1 1 auto; min-width: 0; }
.console-status .sb-host { border-right: 0; color: var(--text-3); }
.console-nota { margin: 8px 2px 0; font-size: .75rem; color: var(--text-3); text-align: right; }
.sb-ico { width: 12px; height: 12px; flex: none; stroke: currentColor; }
.sb-net .sb-ico { stroke: var(--text-3); }
.sb-graph { flex: 1 1 auto; min-width: 40px; max-width: 150px; height: 12px; fill: none; stroke: var(--brand-light); stroke-width: 1.1; vector-effect: non-scaling-stroke; }

.term-screen { overflow: hidden; padding: 14px 16px 12px; }
.term[data-loop] .term-screen { height: var(--term-h, 400px); }
/* Con JavaScript, el resultado completo no se ve: solo el prompt con el cursor (is-armed) hasta que arranca */
.js .term:not(.is-live):not(.is-armed) .term-inner { visibility: hidden; }
.term-inner { overflow: visible; }
.term-line { white-space: pre-wrap; word-break: break-word; min-height: 1.75em; }
.term-line.pre { white-space: pre; overflow: hidden; text-overflow: clip; }
.term-caret { display: inline-block; width: .6em; height: 1.05em; vertical-align: -.18em; background: var(--brand-light); margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) { .term-caret { animation: blink 1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }

/* Fabricantes */
.vendor-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vendor-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding-top: 22px; padding-bottom: 22px; }
.vendor-strip p { font-size: .875rem; color: var(--text-3); }
.vendor-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 40px; }
.vendor-strip a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.vendor-strip a:hover { color: #FFFFFF; }

/* Servicios agrupados */
.svc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.svc-group { border-top: 2px solid var(--brand); padding-top: 20px; }
.svc-group h2, .svc-group h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.svc-group ul { list-style: none; display: grid; }
.svc-group a { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.svc-group a strong { font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.svc-group a strong svg { width: 16px; height: 16px; color: var(--brand-light); flex: 0 0 auto; transition: transform .15s ease; }
.svc-group a span { font-size: .875rem; color: var(--text-3); }
.svc-group a:hover strong { color: #FFFFFF; }
.svc-group a:hover strong svg { transform: translateX(3px); }

/* Certificaciones */
.certs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.certs li { border: 1px solid var(--line-strong); border-radius: 4px; padding: 7px 12px; font-weight: 600; font-size: .85rem; color: var(--text); background: rgba(255, 255, 255, .02); }
.cred-band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 32px 64px; align-items: center; }

/* Listas con regla */
.ruled { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0 48px; border-top: 2px solid currentColor; }
.ruled > div, .ruled > li { list-style: none; padding: 20px 0; border-bottom: 1px solid var(--line); }
.paper .ruled > div, .paper .ruled > li { border-bottom-color: var(--paper-line); }
.ruled h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.ruled h3 a { text-decoration: none; }
.ruled h3 a:hover { text-decoration: underline; }
.ruled p { color: var(--text-2); font-size: .95rem; }
.paper .ruled p { color: var(--ink-2); }

.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 36px; }
/* Con exactamente cuatro elementos, dos por dos: así no queda uno solo en la última fila */
@media (min-width: 720px) { .ruled:has(> :nth-child(4):last-child), .cols-3:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.col-card { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-strong); padding-top: 20px; }
.col-card h3 { font-size: 1.05rem; font-weight: 600; }
.col-card p { color: var(--text-2); font-size: .95rem; }
.col-card .more { margin-top: auto; font-weight: 600; font-size: .9rem; }
.link-card { text-decoration: none; color: inherit; }
.link-card:hover h3 { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.related-title { font-size: 1.3rem; margin-bottom: 26px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split.center { align-items: center; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.steps li::before { content: "0" counter(paso); font-family: var(--mono); font-size: .8rem; color: var(--brand-light); }
.steps h3 { font-size: 1.02rem; font-weight: 600; }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.steps p { color: var(--text-2); font-size: .95rem; }

/* Definiciones */
.deflist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px 36px; margin: 0; }
.deflist dt { font-weight: 600; }
.deflist dd { margin: 2px 0 0; color: var(--text-3); font-size: .95rem; }
.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--text-3); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; }

/* Tablas estilo IPSEC */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 6px; }
table.grid { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .92rem; line-height: 1.55; background: #FFFFFF; color: var(--ink); }
table.grid th, table.grid td { border: 1px solid var(--paper-line); padding: 13px 16px; text-align: left; vertical-align: top; }
table.grid thead th { background: var(--brand); color: #FFFFFF; font-weight: 600; border-color: var(--brand); }
table.grid tbody th { font-weight: 600; background: #F7F9FD; }
/* Celular: la columna que nombra cada fila queda fija al deslizar, y una nota avisa que la tabla se desliza */
.table-hint { display: none; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .85rem; color: var(--text-3); }
.paper .table-hint { color: var(--ink-2); }
.table-hint svg { width: 14px; height: 14px; flex: none; }
.table-hint.on { display: flex; }
@media (max-width: 720px) {
  /* Bordes separados: con bordes colapsados, el texto que se desliza se asoma junto a la columna fija */
  table.grid { border-collapse: separate; border-spacing: 0; }
  table.grid th, table.grid td { border-width: 0 1px 1px 0; }
  table.grid tr > :first-child { border-left-width: 1px; }
  table.grid thead th { border-top-width: 1px; }
  table.grid th:first-child { position: sticky; left: 0; z-index: 1; width: 118px; min-width: 118px; max-width: 118px; box-shadow: 6px 0 8px -6px rgba(10, 20, 48, .25); }
  table.grid th, table.grid td { padding: 11px 12px; }
}

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--brand-light); transition: transform .15s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 60em; }

/* Banda de llamado */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 56px; }
.cta-band .copy { flex: 1 1 480px; display: grid; gap: 10px; }

/* Artículos */
.with-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.toc { position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 24px); font-size: .875rem; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc-cel { display: none; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.toc-cel summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 600; cursor: pointer; list-style: none; }
.toc-cel summary::-webkit-details-marker { display: none; }
.toc-cel summary svg { width: 13px; height: 13px; transition: transform .15s ease; }
.toc-cel[open] summary svg { transform: rotate(180deg); }
.toc-cel ol { margin: 0; padding: 0 0 16px 18px; display: grid; gap: 8px; font-size: .92rem; }
.toc-cel a { color: inherit; text-decoration: none; }
.paper .toc-cel { border-top-color: var(--paper-line); border-bottom-color: var(--paper-line); }
.toc ol { padding-left: 18px; display: grid; gap: 8px; color: var(--text-3); }
.toc a { color: var(--text-3); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: #FFFFFF; }
.prose { max-width: 70ch; display: grid; gap: 18px; color: #D7E0F0; font-size: 1.02rem; line-height: 1.8; }
.prose h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); color: #FFFFFF; margin-top: 18px; }
.prose h3 { font-size: 1.08rem; color: #FFFFFF; margin-top: 6px; }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.answer { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.answer strong { display: block; color: #FFFFFF; margin-bottom: 4px; }
.prose table.grid { min-width: 540px; font-size: .9rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--text-3); font-size: .9rem; }
.aside-cta { background: var(--paper); color: var(--ink); border-radius: 8px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.aside-cta p { color: var(--ink-2); }
.article-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 36px; }
.article-item { display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.article-item .cat { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); font-weight: 600; }
.article-item h2, .article-item h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.article-item h2 a, .article-item h3 a { color: var(--text); text-decoration: none; }
.article-item h2 a:hover, .article-item h3 a:hover { color: #FFFFFF; text-decoration: underline; }
.article-item p { color: var(--text-3); font-size: .95rem; }

/* Formularios */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--ink-2); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #FFFFFF; border: 1px solid #93A4C3; border-radius: 6px; -webkit-appearance: none; appearance: none;
}
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B1630' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form [aria-invalid="true"] { border-color: #C62835; box-shadow: 0 0 0 1px #C62835; }
.error { color: #B3202D; font-size: .85rem; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.form-status { grid-column: 1 / -1; border-radius: 8px; padding: 18px 20px; }
.form-status.ok, .form-status.pending { background: #E3EBFB; border: 1px solid var(--brand); }
.form-status.ok strong, .form-status.pending strong { display: block; margin-bottom: 4px; }
/* Campo trampa contra bots: fuera de la vista, sin display:none (algunos bots lo detectan) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-points { display: grid; gap: 18px; margin: 0; }
.contact-points dt { font-size: .85rem; color: var(--ink-2); }
.contact-points dd { margin: 2px 0 0; font-weight: 600; }
/* Contacto con el formulario oculto: aviso con el correo y el teléfono */
.form-off { display: grid; gap: 12px; justify-items: start; padding: clamp(24px, 3vw, 36px); background: #FFFFFF; border: 1px solid var(--paper-line); border-top: 3px solid var(--brand); border-radius: 10px; }
.form-off-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #E3EBFB; color: var(--brand); margin-bottom: 4px; }
.form-off-ico svg { width: 26px; height: 26px; }
.form-off h2 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 650; line-height: 1.3; }
.form-off p { margin: 0; color: var(--ink-2); line-height: 1.65; max-width: 40em; }
.form-off a { font-weight: 600; }
/* Llegada con ?tema=: la solicitud arriba y el aviso del formulario como nota */
.form-tema { display: grid; gap: 12px; justify-items: start; padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--paper-line); width: 100%; }
.form-tema .eyebrow { margin: 0; }
.form-tema .btn { margin-top: 4px; }
.form-off.con-tema .form-off-ico { display: none; }
.form-off.con-tema .form-off-titulo { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.form-off.con-tema > p { font-size: .92rem; }

/* Búsqueda */
.search-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(4, 9, 24, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 10vh var(--gutter) 24px; }
.search-box { width: 100%; max-width: 660px; background: var(--console); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-stretch: 87.5%; font-size: .85rem; }
.search-field span { color: var(--brand-light); }
.search-field:focus-within { box-shadow: inset 0 -2px 0 var(--brand-light); }
.search-field input { flex: 1 1 auto; min-width: 0; min-height: 40px; background: transparent; border: 0; color: #FFFFFF; font: inherit; font-size: .95rem; outline: none; }
.search-field input::placeholder { color: var(--text-3); }
.search-results { list-style: none; max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.search-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--text); font-size: .95rem; }
.search-results a:hover, .search-results a.is-active { background: rgba(141, 176, 245, .12); }
.search-results small { color: var(--text-3); font-size: .8rem; }
.search-empty { padding: 18px 16px; color: var(--text-3); }
.search-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .8rem; }
kbd { font-family: var(--mono); font-size: .7rem; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 calc(32px + env(safe-area-inset-bottom, 0px)); background: #08112B; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 320px; font-size: .9rem; }
.footer-brand img { height: 64px; width: auto; }
/* Un renglón de aire entre los párrafos bajo el logo (pedido de César, 6 nov 2026) */
.footer-brand p + p { margin-top: 10px; }
/* Aviso de privacidad en la franja legal (César, 18 nov 2026) */
.legal-priv { display: block; margin-top: 0; }
.footer-legal p + p { margin-top: 1.5em; }
.legal-priv svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-legal .legal-priv a { color: var(--text-2); white-space: nowrap; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: var(--text-3); }

/* Entregables */
.del-list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.del-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.del-name { font-weight: 600; }

/* Barras */
.bars { display: grid; gap: 12px; font-family: var(--font); font-size: .85rem; }
.bar-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 48px; gap: 12px; align-items: center; }
.bar-track { height: 10px; background: var(--console-bar); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand-light); }
.bar-fill.alert { background: var(--alert); }
.bar-row .num { text-align: right; color: #FFFFFF; font-weight: 600; font-variant-numeric: tabular-nums; }

.redacted { display: inline-block; width: 11em; height: 1em; background: #2B4870; vertical-align: -.12em; border-radius: 2px; }

/* Animación de marca */
.brand-film { background: #FFFFFF; color: var(--ink); color-scheme: light; }
.brand-film .wrap { display: grid; justify-items: center; gap: 12px; }
.brand-film video { width: 100%; max-width: 720px; height: auto; aspect-ratio: 960 / 408; background: #FFFFFF; }

.notfound { min-height: 44vh; display: grid; align-content: center; gap: 22px; }

/* Responsivo */
@media (max-width: 1100px) {
  .main-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .brand img { height: 62px; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .cred-band { grid-template-columns: minmax(0, 1fr); }
  .svc-groups { grid-template-columns: minmax(0, 1fr); }
  .steps.five { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
  .with-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  /* Celular y tableta: primero el resumen; el índice queda plegado debajo (revisión del 19 nov 2026) */
  .with-toc > .toc { display: none; }
  .toc-cel { display: block; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 88px; }
  html.is-bajando { --header-h: 62px; }
  .header-row { transition: min-height .2s ease; }
  .brand img { transition: height .2s ease; }
  html.is-bajando .brand img { height: 40px; }
  .win-key, .tab-key, .tab:not(.is-active) .tab-ico, .console-status .sb-host { display: none; }
  .tab { padding: 0 6px; }
  .tab.is-active { flex-grow: 1.6; }
  .console-status .sb { padding: 0 8px; gap: 4px; }
  .sb-graph { min-width: 24px; }
  .brand img { height: 52px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  /* Pie en celular: enlaces más altos para tocarlos sin errores */
  .footer-grid ul { gap: 0; }
  .footer-grid a { display: inline-block; padding: 7px 0; }
  .facts div { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .console { font-size: .68rem; font-stretch: 75%; }
  .term-screen { padding: 12px 12px 10px; }
  .term[data-loop] .term-screen { height: var(--term-h-m, 340px); }
  .console pre, .term-line.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .bar-row { grid-template-columns: 100px minmax(0, 1fr) 40px; }
  .del-row { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
}

@media print {
  .site-header, .search-overlay, .site-footer { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
}

/* Contacto: acceso directo a respuesta a incidentes */
.contact-alert { margin: 0; }
.contact-alert a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #A61B29; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.contact-alert a:hover { color: #7F1320; }
.contact-alert svg { width: 15px; height: 15px; flex: none; }

/* Marquesina de fabricantes */
.vendor-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0 28px; overflow: hidden; }
.vendor-strip .label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 18px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee ul { list-style: none; display: flex; align-items: center; gap: 0; padding: 0; margin: 0; flex: 0 0 auto; }
.marquee li { position: relative; flex: 0 0 auto; padding: 0 34px; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: #FFFFFF; white-space: nowrap; }
.marquee li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line-strong); }
.marquee a { color: #FFFFFF; text-decoration: none; }
.marquee a:hover { color: var(--brand-light); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee ul { flex-wrap: wrap; row-gap: 12px; }
  .marquee ul[aria-hidden] { display: none; }
}

/* Secciones claras: variantes */
.paper .svc-group h2, .paper .svc-group h3 { color: var(--ink-2); }
.paper .svc-group a { color: var(--ink); border-bottom-color: var(--paper-line); }
.paper .svc-group a span { color: var(--ink-2); }
.paper .svc-group a strong svg { color: var(--brand); }
.paper .svc-group a:hover strong { color: var(--brand); }
.paper .steps li { border-top-color: var(--paper-line); }
.paper .steps li::before { color: var(--brand); }
.paper .steps p, .paper .deflist dd, .paper .col-card p { color: var(--ink-2); }
.paper .col-card { border-top-color: var(--paper-line); }
.paper .link-card:hover h3 { color: var(--brand); }
.paper .lead { color: var(--ink-2); }

/* Cifras de la empresa */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--brand); }
.stats div { padding: 22px 22px 6px 0; }
.stats div + div { padding-left: 22px; border-left: 1px solid var(--paper-line); }
.stats dt { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.1; color: var(--brand); letter-spacing: -0.02em; }
.stats dd { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }

/* Tarjetas de soluciones */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); background: #FFFFFF; border: 1px solid var(--paper-line); border-radius: 10px; padding: clamp(24px, 3.5vw, 40px); margin-bottom: 28px; }
.feature .tag { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.feature h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.25; margin-bottom: 14px; }
.feature p { color: var(--ink-2); }
.feature p + p { margin-top: 12px; }
.feature .btn-row { margin-top: 22px; }
.ticks { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.ticks li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--paper-line); position: relative; color: var(--ink); font-size: .95rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 10px; height: 2px; background: var(--brand); }
.ticks li strong { color: var(--ink); }
.sol-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sol-card { background: #FFFFFF; border: 1px solid var(--paper-line); border-radius: 10px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.sol-card .tag { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.sol-card h3 { font-size: 1.12rem; line-height: 1.3; }
.sol-card p { color: var(--ink-2); font-size: .95rem; }
.sol-card ul { list-style: none; display: grid; gap: 6px; font-size: .9rem; color: var(--ink); }
.sol-card ul li { padding-left: 18px; position: relative; }
.sol-card ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--brand); }
.sol-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; }
.sol-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.sol-cards.four .sol-card { padding: 22px 22px 20px; }
@media (max-width: 1100px) { .sol-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Nosotros en el inicio: título, las cifras a todo el ancho y debajo el texto (más ancho) con las certificaciones */
.about-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px 64px; align-items: center; }
.about-head, .about-band > .stats { grid-column: 1 / -1; }
.about-head .h2 { margin-top: 0; }
.about-band > .stats { margin-top: -8px; }
.about-band .stats dd { max-width: 24em; }
@media (max-width: 960px) { .about-band { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
/* Cifras de Nosotros sobre fondo oscuro */
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raised .stats { border-top-color: var(--brand-light); }
.raised .stats div + div { border-left-color: var(--line); }
.raised .stats dt { color: var(--brand-light); }
.raised .stats dd { color: var(--text-3); }
/* Artículos sobre fondo claro */
.paper .article-item { border-top-color: var(--paper-line); }
.paper .article-item .cat { color: var(--brand); }
.paper .article-item h2 a, .paper .article-item h3 a { color: var(--ink); }
.paper .article-item h2 a:hover, .paper .article-item h3 a:hover { color: var(--brand); }
.paper .article-item p { color: var(--ink-2); }
@media (max-width: 960px) {
  .feature, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .sol-cards { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 28px 36px; }
.benefit { border-left: 2px solid var(--brand-light); padding: 4px 0 4px 20px; display: grid; gap: 8px; align-content: start; }
.benefit h3 { font-size: 1.05rem; font-weight: 600; }
.benefit p { color: var(--text-2); font-size: .95rem; }
.paper .benefit { border-left-color: var(--brand); }
.paper .benefit p { color: var(--ink-2); }

/* Variantes claras de entregables y preguntas */
.paper .del-list { border-top-color: var(--paper-line); }
.paper .del-row { border-bottom-color: var(--paper-line); }
.paper .faq { border-top-color: var(--paper-line); }
.paper .faq details { border-bottom-color: var(--paper-line); }
.paper .faq summary svg { color: var(--brand); }
.paper .faq details p { color: var(--ink-2); }
.paper .ruled { border-top-color: var(--ink); }
.paper .table-wrap { box-shadow: 0 0 0 1px var(--paper-line); }
.paper .deflist dt { color: var(--ink); }

/* Encabezado: acceso a incidentes */
.incident-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 4px; font-weight: 600; font-size: .8rem; line-height: 1.25; color: var(--text-2); text-decoration: none; max-width: 172px; }
.incident-link svg { width: 15px; height: 15px; color: var(--alert); flex: none; }
.incident-link:hover { color: #FFFFFF; }
.mobile-nav .m-alert { display: inline-flex; justify-content: center; align-items: center; gap: 8px; color: var(--text-2); font-size: .92rem; font-weight: 600; text-decoration: none; padding: 6px 0; }
.mobile-nav .m-alert svg { width: 15px; height: 15px; color: var(--alert); }
@media (max-width: 1280px) { .incident-link span { display: none; } .incident-link { padding: 0 10px; } }


/* Consolas: separación entre comandos, arte ASCII y alertas */
.term-line.term-gap { min-height: .8em; height: .8em; }
.term-line.c-art { color: var(--brand-light); white-space: pre; line-height: 1.25; min-height: 0; }
.c-alarm { display: inline-block; background: rgba(255, 122, 134, .16); border: 1px solid rgba(255, 122, 134, .55); color: #FFC2C8; font-weight: 700; padding: 1px 8px; border-radius: 3px; }
.c-good { display: inline-block; background: rgba(141, 176, 245, .14); border: 1px solid rgba(141, 176, 245, .5); color: #DCE7FF; font-weight: 700; padding: 1px 8px; border-radius: 3px; }

/* Fabricantes: encabezado del banner */
.vendor-strip .vendor-title { font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.vendor-strip .vendor-sub { font-size: .9rem; color: var(--text-3); margin-bottom: 20px; max-width: 60em; }
.paper .vendor-strip, .vendor-strip.light { background: var(--paper); border-color: var(--paper-line); }
.vendor-strip.light .vendor-title { color: var(--ink); }
.vendor-strip.light .vendor-sub { color: var(--ink-2); }
.vendor-strip.light .marquee li, .vendor-strip.light .marquee a { color: var(--ink); }
.vendor-strip.light .marquee li::after { background: var(--paper-line); }

/* WhatsApp: solo en incidentes y contacto */
.wa { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px 10px 12px; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.wa:hover { background: var(--paper); color: var(--ink); }
.wa svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .wa span { display: none; } .wa { padding: 11px; } }
@media print { .wa { display: none !important; } }

/* Datos del inicio a todo el ancho, debajo del texto y la consola */
.hero-grid > .hero-facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; margin-top: 4px; padding-top: 26px; }
.term-line.c-art { font-family: Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", ui-monospace, monospace; font-stretch: normal; line-height: 1.02; letter-spacing: 0; }
@media (max-width: 640px) { .hero-grid > .hero-facts { grid-template-columns: minmax(0, 1fr); } .term-line.c-art { font-size: .9em; } }


/* Datos protegidos (NIT, dirección): se muestran tras la primera interacción */
.reveal { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: .08em; border-bottom: 1px dotted currentColor; }
.reveal:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }

/* Inicio en celular: tarjetas y cifras en una columna */
@media (max-width: 640px) {
  .sol-cards.four { grid-template-columns: minmax(0, 1fr); }
  .stats.three { grid-template-columns: minmax(0, 1fr); }
  .stats.three div, .stats.three div + div { padding: 14px 0 4px; border-left: 0; }
  .stats.three div + div { border-top: 1px solid var(--line); }
}

/* Propuesta: menos espacio vertical en el inicio (solo en las secciones que siguen al hero) */
.hero { padding: clamp(32px, 4.5vw, 56px) 0 clamp(40px, 5vw, 64px); }
.hero ~ .section { padding: clamp(44px, 5.5vw, 72px) 0; }
.hero ~ .section.top-compact { padding-top: clamp(32px, 3.5vw, 48px); }
.hero ~ .section-tight { padding: clamp(36px, 4.5vw, 56px) 0; }
.hero ~ .section .section-head { margin-bottom: clamp(24px, 3vw, 36px); }

/* Propuesta: fondo animado del hero (globo de puntos con ataques bloqueados, casi del color del fondo) */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-globe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
/* El mismo globo detrás de varias secciones seguidas (Servicios) */
.globe-zone { position: relative; overflow: hidden; }
.globe-zone > section { position: relative; z-index: 1; }
/* Soluciones y Nosotros: fondo animado del encabezado (capas de protección y mapa desde Medellín), casi del color del fondo */
.page-hero[data-fx] { position: relative; overflow: hidden; }
.page-hero[data-fx] > .wrap { position: relative; z-index: 1; }
.fx-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
/* Inicio en celular: las tarjetas de redes, correo e infraestructura muestran solo el título y el enlace */
@media (max-width: 640px) { .sol-cards.four .sol-card p:not(.tag) { display: none; } }

/* Cierre del inicio: "Cómo trabajamos" como flujo de cinco pasos. Una luz recorre la línea cada 9 s y enciende
   cada paso al pasar (solo transform y opacity); con movimiento reducido queda quieto. */
.flow-wrap { flex: 1 1 100%; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.paper .flow-wrap { border-bottom-color: var(--paper-line); }
.flow-wrap .eyebrow { margin-bottom: 18px; }
.flow { position: relative; --flow-c: var(--brand-light); --flow-line: var(--line-strong); --flow-bg: var(--bg); }
.paper .flow { --flow-c: var(--brand); --flow-line: var(--paper-line); --flow-bg: var(--paper); }
.raised .flow { --flow-bg: var(--bg-raised); }
.flow ol { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; position: relative; }
.flow li { display: grid; justify-items: center; text-align: center; gap: 6px; }
.flow-n { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; border: 1.5px solid var(--flow-c); background: var(--flow-bg); color: var(--flow-c); font-family: var(--mono); font-size: .8rem; font-weight: 600; }
.flow-n::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 4px var(--flow-c); opacity: 0; }
.flow-t { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.paper .flow-t { color: var(--ink); }
.flow-d { font-size: .875rem; line-height: 1.45; color: var(--text-3); max-width: 15em; }
.paper .flow-d { color: var(--ink-2); }
/* La línea va del centro del primer paso al centro del último: cinco columnas con 20 px de separación,
   así que cada centro queda a 10 % menos 8 px del borde */
.flow-track { position: absolute; top: 20px; left: calc(10% - 8px); right: calc(10% - 8px); height: 2px; background: var(--flow-line); overflow: hidden; }
.flow-pulse { position: absolute; inset: 0; }
.flow-pulse::before { content: ""; position: absolute; left: -90px; top: 0; width: 90px; height: 2px; background: linear-gradient(90deg, transparent, var(--flow-c)); }
@media (prefers-reduced-motion: no-preference) {
  .flow-pulse { animation: flow-run 9s linear infinite; }
  .flow-n::after { animation: flow-on 9s ease-out infinite; animation-delay: calc(var(--i) * 1.8s); }
}
/* La cabeza del pulso llega a cada paso cada 1,8 s (al último, en el 80 %) y el anillo se enciende en ese instante */
@keyframes flow-run { from { transform: translateX(0); } 80% { transform: translateX(100%); } 88%, to { transform: translateX(calc(100% + 90px)); } }
@keyframes flow-on { 0% { opacity: 0; transform: scale(.9); } 1% { opacity: .24; transform: scale(1); } 14%, 100% { opacity: 0; transform: scale(1.12); } }
@media (max-width: 960px) {
  .flow ol { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .flow li { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; align-items: center; }
  .flow-n { grid-row: span 2; margin-bottom: 0; }
  .flow-d { max-width: none; }
  .flow-track { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; }
  .flow-pulse { display: none; }
}

/* Enlace "Ver ..." al lado del título de una sección, alineado a la derecha (Soluciones y Artículos del inicio).
   Los enlaces que cierran un párrafo ("Conocer ...") se quedan a la izquierda, con su texto. */
.section-head > .head-link { flex: 0 0 auto; margin-left: auto; text-align: right; align-self: flex-end; }

/* Texto largo (artículos y páginas legales) sobre fondo claro, por la alternancia automática de fondos */
.paper .prose { color: var(--ink-2); }
.paper .prose h2, .paper .prose h3, .paper .prose strong { color: var(--ink); }
.paper .answer { background: #FFFFFF; border-color: var(--paper-line); }
.paper .answer strong { color: var(--brand); }
.paper .aside-cta { background: #FFFFFF; border: 1px solid var(--paper-line); }
.paper .toc { border-top-color: var(--paper-line); }
.paper .toc ol, .paper .toc a { color: var(--ink-2); }
.paper .toc a:hover, .paper .toc a.is-active { color: var(--brand); }

/* Legibilidad: interlineado de títulos que suelen ocupar dos líneas */
.prose h3 { line-height: 1.35; }
.benefit h3, .col-card h3 { line-height: 1.3; }

/* 404: fondo de radar que busca la página perdida (casi del color del fondo) */
.radar-zone { position: relative; overflow: hidden; }
.radar-zone > .wrap { position: relative; z-index: 1; }
.radar-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* 404: "Quizás buscaba", cuatro accesos en una fila (dos en tableta, uno en celular) */
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cols-4 { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Nosotros: línea de tiempo. La línea se va llenando con el desplazamiento y cada hito aparece al llegar a él
   (solo transform y opacity). Sin JavaScript o con movimiento reducido se ve completa y quieta. */
.tl { position: relative; --tl-c: var(--brand-light); --tl-line: var(--line-strong); --tl-card: var(--bg-raised); --tl-border: var(--line); --tl-text: var(--text-2); --tl-bg: var(--bg); --tl-glow: rgba(141, 176, 245, .16); }
.paper .tl { --tl-c: var(--brand); --tl-line: var(--paper-line); --tl-card: #FFFFFF; --tl-border: var(--paper-line); --tl-text: var(--ink-2); --tl-bg: var(--paper); --tl-glow: rgba(54, 96, 199, .14); }
.tl-rail { position: absolute; top: 8px; bottom: 8px; left: 50%; width: 2px; margin-left: -1px; background: var(--tl-line); overflow: hidden; }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--tl-c) 0%, var(--tl-c) 85%, transparent 100%); transform-origin: top center; }
.tl-anim .tl-fill { transform: scaleY(0); will-change: transform; }
.tl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; position: relative; }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: start; }
.tl-dot { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; width: 18px; height: 18px; margin-top: 24px; border-radius: 50%; border: 2px solid var(--tl-c); background: var(--tl-bg); }
.tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--tl-c); }
.tl-card { grid-column: 1; grid-row: 1; position: relative; padding: 22px 24px; border: 1px solid var(--tl-border); border-radius: 10px; background: var(--tl-card); text-align: right; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; text-align: left; }
/* Conector entre la tarjeta y la línea */
.tl-card::before { content: ""; position: absolute; top: 32px; right: -37px; width: 36px; height: 2px; background: var(--tl-c); }
.tl-item:nth-child(even) .tl-card::before { right: auto; left: -37px; }
.tl-label { font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-c); }
.tl-label.is-year { font-family: var(--font); font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1; letter-spacing: -0.02em; text-transform: none; }
.tl-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 8px 0 8px; }
.paper .tl-card h3 { color: var(--ink); }
.tl-card > p:not(.tl-label) { color: var(--tl-text); font-size: .95rem; }
.tl-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 14px 0 0; padding: 0; }
.tl-item:nth-child(even) .tl-tags { justify-content: flex-start; }
/* Marcas (21 nov 2026): más tenues que el párrafo; las que entran en ese hito llevan el borde de color */
.tl { --tl-tag: var(--text-3); --tl-tag-line: rgba(141, 176, 245, .18); --tl-tag-new: rgba(141, 176, 245, .5); }
.paper .tl { --tl-tag: #66748F; --tl-tag-line: #DDE4F0; --tl-tag-new: rgba(54, 96, 199, .42); }
.tl-tags li { padding: 2px 9px; border: 1px solid var(--tl-tag-line); border-radius: 999px; font-size: .76rem; font-weight: 500; letter-spacing: .01em; color: var(--tl-tag); }
.tl-tags li.es-nueva { border-color: var(--tl-tag-new); }
/* Hoy: la marca más grande, con un halo que respira */
.tl-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; margin-top: 16px; font-weight: 600; font-size: .92rem; }
.tl-item:nth-child(even) .tl-links { justify-content: flex-start; }
@media (max-width: 760px) { .tl-links { justify-content: flex-start; } }
.tl-item.is-now .tl-dot { width: 24px; height: 24px; margin-top: 21px; }
.tl-item.is-now .tl-card { border-color: var(--tl-c); box-shadow: 0 0 0 4px var(--tl-glow); }
.tl-item.is-now .tl-dot::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--tl-c); opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .tl-item.is-now.is-in .tl-dot::before { animation: tl-halo 2.6s ease-out infinite; }
  .tl-anim .tl-card { transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .tl-anim .tl-dot { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .5s ease; }
  .tl-anim .tl-item:not(.is-in) .tl-card { opacity: 0; transform: translateY(28px); }
  .tl-anim .tl-item:nth-child(odd):not(.is-in) .tl-card { transform: translate(-18px, 28px); }
  .tl-anim .tl-item:nth-child(even):not(.is-in) .tl-card { transform: translate(18px, 28px); }
  .tl-anim .tl-item:not(.is-in) .tl-dot { transform: scale(.4); opacity: .4; }
  /* Primero aparece la tarjeta con su texto; después, una a una y despacio, las marcas */
  .tl-anim .tl-tags li { transition: opacity .7s ease, transform .7s ease; transition-delay: calc(.95s + var(--k, 0) * .07s); }
  .tl-anim .tl-item:not(.is-in) .tl-tags li { opacity: 0; transform: translateY(4px); transition-delay: 0s; }
}
@keyframes tl-halo { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
/* Escritorio: las tarjetas se escalonan a lado y lado de la línea, sin dejar huecos */
@media (min-width: 761px) { .tl ol { gap: 0; } .tl-item + .tl-item { margin-top: -56px; } }
/* Celular y tableta: la línea a la izquierda y todas las tarjetas a la derecha */
@media (max-width: 760px) {
  .tl-rail { left: 12px; }
  .tl ol { gap: 24px; }
  .tl-item { grid-template-columns: 24px minmax(0, 1fr); column-gap: 20px; }
  .tl-dot { grid-column: 1; }
  .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; text-align: left; padding: 18px 18px; }
  .tl-card::before, .tl-item:nth-child(even) .tl-card::before { right: auto; left: -21px; width: 20px; }
  .tl-tags, .tl-item:nth-child(even) .tl-tags { justify-content: flex-start; }
  .tl-anim .tl-item:nth-child(odd):not(.is-in) .tl-card, .tl-anim .tl-item:nth-child(even):not(.is-in) .tl-card { transform: translate(14px, 20px); }
}

/* Orquestación de ciberseguridad: diagrama en lugar de consola (es un servicio de gestión, no de comandos).
   Los informes fluyen hacia una sola vista y salen como un plan de trabajo; con movimiento reducido queda quieto. */
.orq-visual { max-width: 560px; margin-left: auto; }
.orq-visual svg { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.orq-base { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.orq-flow { fill: none; stroke: var(--brand-light); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 11; opacity: .9; }
.orq-src rect { fill: var(--bg-raised); stroke: var(--line-strong); stroke-width: 1.2; }
.orq-src text { fill: var(--text-2); font-size: 12.5px; font-weight: 600; text-anchor: middle; }
.orq-core { fill: var(--console); stroke: var(--brand-light); stroke-width: 2; }
.orq-ring { fill: none; stroke: var(--brand-light); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.orq-core-t { fill: #FFFFFF; font-size: 13px; font-weight: 600; text-anchor: middle; }
.orq-plan { fill: var(--bg-raised); stroke: var(--line-strong); stroke-width: 1.2; }
.orq-plan-t { fill: var(--text); font-size: 12px; font-weight: 600; text-anchor: middle; }
.orq-task circle { fill: none; stroke: var(--brand-light); stroke-width: 1.5; }
.orq-task rect { fill: var(--line-strong); }
.orq-chk { fill: none; stroke: var(--brand-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .orq-flow { animation: orq-dash 1.8s linear infinite; animation-delay: calc(var(--i, 0) * -0.3s); }
  .orq-ring { animation: orq-ring 3s ease-out infinite; }
  .orq-src rect { animation: orq-src 7.2s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
  .orq-chk { opacity: 0; animation: orq-chk 6s ease infinite; animation-delay: calc(1s + var(--i) * 1.4s); }
}
@keyframes orq-dash { to { stroke-dashoffset: -28; } }
@keyframes orq-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes orq-src { 0%, 30%, 100% { stroke: var(--line-strong); } 10%, 18% { stroke: var(--brand-light); } }
@keyframes orq-chk { 0%, 8% { opacity: 0; } 14%, 80% { opacity: 1; } 90%, 100% { opacity: 0; } }
@media (max-width: 960px) { .orq-visual { margin: 8px auto 0; } }

/* Inicio en el celular: las tres consolas en un panel con pestañas; en escritorio cada una en su sección */
.term-tablist { display: none; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.term-tablist button { flex: 1 1 0; min-width: 0; white-space: nowrap; min-height: 40px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.term-tablist button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.term-tablist button:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
@media (min-width: 761px) { .term-panel.solo-cel { display: none !important; } }
@media (max-width: 760px) {
  .term-tablist { display: flex; }
  .solo-escritorio { display: none; }
}

/* Contacto (20 nov 2026): dos canales por correo, datos en una fila y la nota del formulario discreta */
.contacto { display: grid; gap: clamp(28px, 3.5vw, 40px); }
.canales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.canal { display: grid; gap: 10px; align-content: start; justify-items: start; padding: clamp(24px, 3vw, 34px); background: #FFFFFF; border: 1px solid var(--paper-line); border-radius: 14px; }
.canal .eyebrow { margin: 0; }
.canal h2 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 650; }
.canal p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.canal .canal-correo { font-weight: 600; color: var(--ink); }
.canal .btn { margin-top: 8px; }
.contact-meta { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 12px clamp(28px, 4vw, 56px); margin: 0; padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--paper-line); }
.contact-meta dt { font-size: .85rem; color: var(--ink-2); }
.contact-meta dd { margin: 2px 0 0; font-weight: 600; }
.form-nota { margin: 0; max-width: 46em; font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.contacto .form-tema { padding: clamp(24px, 3vw, 34px); background: #FFFFFF; border: 1px solid var(--paper-line); border-top: 3px solid var(--brand); border-radius: 14px; margin: 0; }
@media (max-width: 960px) { .canales { grid-template-columns: minmax(0, 1fr); } .contact-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .contact-meta { grid-template-columns: minmax(0, 1fr); } }

/* Cierre del inicio (21 nov 2026): "un atacante" en rojo, con un subrayado fino que se dibuja una sola vez al
   aparecer la sección. Sobre fondo claro, un rojo más oscuro que el de alertas para cumplir el contraste. */
.marca-alerta { color: var(--alert); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px; padding-bottom: 3px; white-space: nowrap; position: relative; clip-path: inset(0); }
.paper .marca-alerta { color: #C8323F; }
.sub-anim .marca-alerta { background-size: 0 2px; transition: background-size .9s cubic-bezier(.2, .7, .2, 1) .25s; }
.sub-anim .marca-alerta.is-in { background-size: 100% 2px; }
/* Opción 2 (21 nov 2026): el subrayado se vuelve a dibujar cada vez que la sección entra en pantalla y, ya dibujado,
   un destello lo recorre cada 6 s, como un barrido de escaneo */
.sub-anim .marca-alerta::after { content: ""; position: absolute; left: 0; bottom: 0; width: 45%; height: 2px; background: linear-gradient(90deg, transparent, #FF9AA4, transparent); opacity: 0; pointer-events: none; }
.sub-anim .marca-alerta.is-in::after { animation: barrido-alerta 6s ease-in-out 1.3s infinite; }
@keyframes barrido-alerta { 0% { transform: translateX(-100%); opacity: 0; } 4% { opacity: 1; } 28% { transform: translateX(225%); opacity: 1; } 32%, 100% { transform: translateX(225%); opacity: 0; } }

/* Hero del inicio centrado y sin consola (César, 24 nov 2026, a partir de flare.io): título más grande, una
   frase resaltada en el azul claro de la marca. Sin velo: el aura del horizonte pasa entre el título y el párrafo */
.hero-centro { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.hero-centro .hero-copy { position: relative; max-width: 940px; justify-items: center; gap: 26px; padding: clamp(28px, 5.5vw, 84px) 0 clamp(20px, 3.5vw, 48px); }
.hero-centro .h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.hero-resalte { color: var(--brand-light); }
.hero-centro .lead { max-width: 40em; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--text-2); }
.hero-centro .btn-row { justify-content: center; }
.hero-centro > .hero-facts { justify-self: stretch; text-align: left; }
/* Cierre del inicio con la consola del diagnóstico a la derecha */
.cta-consola .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cta-consola .cta-texto { display: grid; gap: 26px; align-content: center; }
.cta-consola .copy { flex: none; }
@media (max-width: 960px) { .cta-consola .wrap { grid-template-columns: minmax(0, 1fr); } }
/* Consolas: cambio de agente IPSEC según la tarea */
.c-agent { color: #B9CEFF; font-style: italic; }
.paper .console-nota { color: var(--ink-2); }
/* Velo suave detrás de la fila de datos, para leerla sobre el horizonte */
.hero-centro > .hero-facts { position: relative; }
.hero-centro > .hero-facts::before { content: ""; position: absolute; inset: -8px -6% -24px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 58% 75% at 50% 50%, rgba(10, 20, 48, .82), rgba(10, 20, 48, .55) 60%, rgba(10, 20, 48, 0) 100%); }

/* Cifras con fuente en el encabezado (César, 24 nov 2026): fila a todo el ancho, tras una línea como la de
   Trayectoria, Equipo y Especialistas del inicio; número y texto en la misma línea. */
.hero-grid > .hero-cifras { grid-column: 1 / -1; margin-top: clamp(18px, 2.5vw, 30px); padding-top: 20px; border-top: 1px solid var(--line); }
.hero-cifras-fila { display: flex; flex-wrap: wrap; gap: 10px clamp(28px, 4vw, 56px); }
.hero-cifra { flex: 1 1 320px; margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text-2); }
.hero-cifra strong { font-size: 1.3rem; font-weight: 600; color: var(--brand-light); margin-right: 4px; }
.hero-cifras-fuente { margin: 8px 0 0; font-size: .78rem; color: var(--text-3); }
.hero-cifras-fuente a { color: inherit; }

/* Pie: Servicios y Soluciones plegables en celular (revisor, 25 nov 2026). En escritorio siempre abiertos. */
.fcol summary { list-style: none; }
.fcol summary::-webkit-details-marker { display: none; }
.fcol summary h2 { margin-bottom: 14px; }
@media (max-width: 640px) {
  .fcol { border-top: 1px solid var(--line); }
  .fcol summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; }
  .fcol summary h2 { margin: 0; }
  .fcol summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s ease; }
  .fcol details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .fcol details[open] ul { padding-bottom: 12px; }
  .footer-grid > nav:last-child { border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 640px) {
  /* Sin el espacio de la cuadrícula entre las secciones plegables */
  .footer-grid { gap: 0; }
  .footer-brand { margin-bottom: 28px; }
}

/* Aviso de privacidad del pie escrito como en una terminal (César, 26 nov 2026). La parte por escribir ocupa su
   lugar en transparente, así la línea no salta; el cursor no suma ancho. Con movimiento reducido queda quieto. */
.tipeo { font-family: Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", ui-monospace, monospace; font-size: .8rem; letter-spacing: -0.01em; }
.tipeo .t-on { color: var(--text-2); }
.tipeo .t-off { color: transparent; }
.tipeo .t-cur { display: inline-block; width: .55em; height: 1.05em; margin-right: -.55em; vertical-align: -.18em; background: var(--brand-light); animation: blink 1s steps(1) infinite; }
.footer-legal > p:first-child { flex: 1 1 100%; }
/* Línea legal (César, 26 nov 2026): © a la izquierda y "Protección de datos" a la derecha; debajo, el aviso
   de privacidad que se escribe como en una terminal */
.footer-legal > .legal-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-legal .legal-top a { color: var(--text-2); white-space: nowrap; }
/* Pegado a la línea del ©, como estaba antes: anula el espacio de la fila del pie (gap de 8px) */
.footer-legal > .legal-priv { flex: 1 1 100%; margin-top: -8px; }

/* Entregables a todo el ancho (26 nov 2026), con el mismo lenguaje que "Metodología" (.steps): línea superior,
   rótulo pequeño en monoespaciada y texto. Sin recuadro: los recuadros con borde se reservan para lo que se puede
   pulsar (tarjetas de soluciones, servicios relacionados). */
.del-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.del-cards li { display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.paper .del-cards li { border-top-color: var(--paper-line); }
.del-cards .del-fmt { font-family: var(--mono); font-size: .8rem; color: var(--brand-light); }
.paper .del-cards .del-fmt { color: var(--brand); }
.del-cards h3 { font-size: 1.02rem; font-weight: 600; }
.del-cards p { margin: 0; color: var(--text-2); font-size: .95rem; }
.paper .del-cards p { color: var(--ink-2); }
@media (max-width: 640px) { .del-cards { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Tablas de dos columnas de texto: en celular, cada fila se apila (sin deslizar de lado) */
@media (max-width: 640px) {
  .table-wrap.apila { overflow: visible; }
  .table-wrap.apila table, .table-wrap.apila tbody, .table-wrap.apila tr, .table-wrap.apila th, .table-wrap.apila td { display: block; width: auto; min-width: 0; }
  .table-wrap.apila thead { display: none; }
  .table-wrap.apila tr { padding: 14px 16px; border-bottom: 1px solid var(--paper-line); }
  .table-wrap.apila tr:last-child { border-bottom: 0; }
  .table-wrap.apila th, .table-wrap.apila td { padding: 0; border: 0; background: none; position: static; box-shadow: none; }
  .table-wrap.apila th { margin-bottom: 4px; }
}
/* Cuatro entregables: cuatro columnas en pantallas anchas; en las medianas, dos por dos (no tres y uno) */
@media (min-width: 641px) and (max-width: 1180px) { .del-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1181px) { .del-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
