/* =====================================================================
   DLLR Power · Propuesta B · "Sala de control"
   Fondo casi negro, azul de marca como luz de instrumento,
   datos en monoespaciada como telemetría.
   ===================================================================== */

:root {
  /* Superficies */
  --bg: #07090C;
  --bg-2: #0A0D11;
  --panel: #0F1318;
  --panel-2: #141A21;
  --line: #1E252E;
  --line-2: #2B3440;
  /* Texto */
  --text: #E8ECF1;
  --text-2: #B9C1CC;
  --muted: #8A94A3;
  /* Señal */
  --blue: #0A6EBD;
  --blue-d: #085A9B;
  --lum: #3A9BE8;
  --lum-soft: rgba(58, 155, 232, .14);
  --amber: #F2A93B;
  --green: #3CCB7F;

  /* Tipografía */
  --f-d: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --f-b: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-m: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-h1: clamp(2.45rem, 1.35rem + 4.4vw, 5.25rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.3vw, 3.25rem);
  --fs-h3: clamp(1.2rem, 1.08rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-mono: .75rem;

  /* Espaciado y retícula */
  --gut: clamp(16px, 4vw, 64px);
  /* Contenedor fluido: 1360px hasta ~1510px de pantalla; después crece con el
     viewport (90vw) hasta 2040px, para que en monitores grandes no queden
     franjas vacías a los lados. */
  --max: clamp(1360px, 90vw, 2040px);
  --gap: clamp(16px, 2vw, 28px);
  --hd-h: 64px;
  --sec: clamp(64px, 7.5vw, 116px);

  --ease: cubic-bezier(.2, .7, .1, 1);
  --t: 180ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 24px); }
/* Pantallas grandes: la tipografía (en rem) acompaña al contenedor.
   16px hasta 1600px de ancho → ~18px a 1920 → 20px desde ~2240. */
@media (min-width: 1600px) { html { font-size: min(calc(100% + (100vw - 1600px) * .00625), 20px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--f-b);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-d); font-weight: 700; font-stretch: 82%; letter-spacing: -.012em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: .98; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; font-stretch: 88%; letter-spacing: -.005em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-m); font-size: var(--fs-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 60ch; }

:focus-visible { outline: 2px solid var(--lum); outline-offset: 3px; border-radius: 1px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 14px;
  background: var(--blue); color: #fff; font-weight: 600; transition: top var(--t);
}
.skip:focus { top: 12px; }

/* ---------- Botones y enlaces ---------- */
.btn {
  --b: var(--blue);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 12px 20px 12px 16px;
  background: var(--b); color: #fff; border: 1px solid var(--b); border-radius: 2px;
  font: 600 var(--fs-sm)/1.2 var(--f-b); letter-spacing: .005em; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn::before { /* indicador tipo LED */
  content: ""; width: 7px; height: 7px; flex: none; background: rgba(255,255,255,.55);
  transition: background var(--t), box-shadow var(--t);
}
.btn::after { /* barrido de línea */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lum);
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease); z-index: -1;
}
.btn:hover { background: var(--blue-d); }
.btn:hover::before { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost::before { background: var(--muted); }
.btn--ghost:hover { background: var(--panel-2); border-color: var(--lum); }
.btn--ghost:hover::before { background: var(--lum); box-shadow: 0 0 0 3px var(--lum-soft); }
.btn--sm { min-height: 40px; padding: 8px 14px 8px 12px; font-size: .875rem; gap: 10px; }
.btn--wa::before { display: none; }
.btn--wa svg { width: 18px; height: 18px; fill: currentColor; }
.btn--block { width: 100%; justify-content: center; }

.lnk {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--lum); font-weight: 500; border-bottom: 1px solid transparent;
}
.lnk__ar { width: 22px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform var(--t) var(--ease); }
.lnk:hover .lnk__ar { transform: translateX(4px); }
.lnk:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Marcas Referencial / Pendiente ---------- */
.ref {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font: 500 10.5px/1 var(--f-m); letter-spacing: .06em; color: var(--text);
  background: rgba(7, 9, 12, .78); border: 1px solid rgba(232, 236, 241, .28);
  padding: 5px 7px 4px; pointer-events: none;
}
.ref b { color: var(--amber); font-weight: 500; }
.pend {
  position: relative; cursor: help;
  text-decoration: underline dotted var(--amber); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.pend--tag {
  display: inline-block; font: 500 .72rem/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber); text-decoration: none; border: 1px dashed rgba(242,169,59,.55); padding: 4px 6px 3px;
}
.pend::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30;
  width: max-content; max-width: 240px; padding: 7px 9px; white-space: normal;
  background: #1A1408; color: #FBE3B8; border: 1px solid rgba(242,169,59,.5);
  font: 400 .75rem/1.35 var(--f-m); letter-spacing: 0; text-transform: none;
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity var(--t), transform var(--t);
}
.pend:hover::after, .pend:focus-visible::after { opacity: 1; transform: none; }
.refnote {
  display: flex; gap: 12px; align-items: flex-start;
  font: 400 .8125rem/1.5 var(--f-m); color: var(--text-2);
  border: 1px dashed rgba(242,169,59,.45); background: rgba(242,169,59,.04); padding: 12px 14px;
}
.refnote::before { content: "REF"; flex: none; color: var(--bg); background: var(--amber); font-weight: 500; padding: 2px 6px 1px; font-size: .7rem; letter-spacing: .08em; margin-top: 1px; }

/* ---------- Header ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hd-h);
  background: rgba(7, 9, 12, .96); border-bottom: 1px solid var(--line);
}
.hd__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; }
.brand img { width: 34px; height: auto; }
.brand__wm { font: 700 1.28rem/1 var(--f-d); font-stretch: 80%; letter-spacing: .005em; }
.brand__wm span { color: var(--muted); font-weight: 500; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; height: var(--hd-h); padding: 0 12px;
  font-size: .9375rem; color: var(--text-2); transition: color var(--t);
}
.nav a::before { /* barra de estado superior */
  content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 2px; background: var(--lum);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::before { transform: scaleX(.35); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::before { transform: scaleX(1); }
.hd__aux { display: flex; align-items: center; gap: 18px; }
.clock { font: 500 .75rem/1 var(--f-m); color: var(--muted); letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock b { color: var(--text-2); font-weight: 500; }
.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer;
  font: 500 .75rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase;
}
.menu-btn__ic { display: grid; grid-template-columns: 5px 5px; gap: 3px; }
.menu-btn__ic i { width: 5px; height: 5px; background: var(--text-2); transition: background var(--t), transform var(--t); }
.menu-btn[aria-expanded="true"] .menu-btn__ic i:nth-child(1),
.menu-btn[aria-expanded="true"] .menu-btn__ic i:nth-child(4) { background: var(--lum); }

@media (max-width: 1240px) { .clock { display: none; } }
@media (max-width: 1080px) {
  .nav, .hd__aux .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hd__aux { margin-left: auto; }
}

/* ---------- Menú mobile: consola ---------- */
.mnav {
  position: fixed; inset: var(--hd-h) 0 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mnav[hidden] { display: none; }
.mnav__scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--lum); opacity: 0; pointer-events: none; }
.mnav.is-open .mnav__scan { animation: scanDown 520ms var(--ease) both; }
@keyframes scanDown { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: .9; } 100% { opacity: 0; transform: translateY(70vh); } }
.mnav__hd { display: flex; justify-content: space-between; padding: 14px var(--gut); color: var(--muted); border-bottom: 1px solid var(--line); }
.mnav__list a {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
  padding: 18px var(--gut); border-bottom: 1px solid var(--line); min-height: 64px;
  font: 700 clamp(1.6rem, 7vw, 2.2rem)/1 var(--f-d); font-stretch: 80%;
}
.mnav.is-open .mnav__list a { animation: mIn 280ms var(--ease) backwards; }
.mnav.is-open .mnav__list li:nth-child(2) a { animation-delay: 30ms; }
.mnav.is-open .mnav__list li:nth-child(3) a { animation-delay: 60ms; }
.mnav.is-open .mnav__list li:nth-child(4) a { animation-delay: 90ms; }
.mnav.is-open .mnav__list li:nth-child(5) a { animation-delay: 120ms; }
@keyframes mIn { from { opacity: 0; transform: translateX(-12px); } }
.mnav__list .mono { color: var(--muted); }
.mnav__list a[aria-current="page"] { color: var(--lum); }
.mnav__list a[aria-current="page"] .mono { color: var(--lum); }
.mnav__list a::after { content: ""; width: 8px; height: 8px; border: 1px solid var(--line-2); }
.mnav__list a[aria-current="page"]::after { background: var(--lum); border-color: var(--lum); }
.mnav__ft { margin-top: auto; padding: 20px var(--gut) 96px; display: grid; gap: 12px; }
.mnav__meta { display: flex; justify-content: space-between; color: var(--muted); padding-top: 8px; }
body.menu-open { overflow: hidden; }

/* ---------- Transición de pantalla (NOC) ---------- */
.xfer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.xfer__p { position: absolute; inset: 0; background: var(--bg); transform: scaleX(0); transform-origin: left; }
.xfer__l { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--lum); opacity: 0; }
.xfer__h { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--lum); opacity: 0; transform: scaleX(0); transform-origin: left; }
html.xfer-in .xfer__p { transform: scaleX(1); transform-origin: right; }
html.xfer-in.xfer-go .xfer__p { transform: scaleX(0); transition: transform 240ms cubic-bezier(.7,0,.2,1); }
html.xfer-out .xfer__p { transform: scaleX(1); transition: transform 200ms cubic-bezier(.7,0,.2,1); }
html.xfer-out .xfer__h { opacity: 1; transform: scaleX(1); transition: transform 200ms cubic-bezier(.7,0,.2,1); }

/* ---------- Fotografía en duotono ---------- */
.ph { position: relative; margin: 0; overflow: hidden; background: #0B1520; isolation: isolate; }
.ph picture, .ph img { width: 100%; height: 100%; }
.ph img { object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.6); transition: filter 600ms var(--ease); }
.ph::before { /* tinte azul instrumento */
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--blue); mix-blend-mode: color;
  opacity: .62; transition: opacity 600ms var(--ease); pointer-events: none;
}
.ph::after { /* líneas de escaneo */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(7,9,12,.22) 0 1px, transparent 1px 3px);
  opacity: .55; transition: opacity 600ms var(--ease);
}
.ph:hover img, .ph.is-live img, a:focus-visible .ph img, .lit .ph img { filter: grayscale(0) contrast(1.02) brightness(.92); }
.ph:hover::before, .ph.is-live::before, a:focus-visible .ph::before, .lit .ph::before { opacity: 0; }
.ph:hover::after, .ph.is-live::after, .lit .ph::after { opacity: .18; }
.ph figcaption, .cap {
  font: 400 .75rem/1.45 var(--f-m); color: var(--muted); letter-spacing: .02em;
}
.figcap { margin-top: 10px; display: flex; justify-content: space-between; gap: 16px; }

/* Retícula de escáner sobre fotos */
.scan { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 220ms; }
[data-scan]:hover .scan { opacity: 1; }
.scan__x, .scan__y { position: absolute; background: rgba(58,155,232,.7); }
.scan__x { left: 0; right: 0; top: 0; height: 1px; }
.scan__y { top: 0; bottom: 0; left: 0; width: 1px; }
.scan__box { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid var(--lum); }
.scan__xy {
  position: absolute; left: 0; top: 0; margin: 28px 0 0 28px; white-space: nowrap;
  font: 500 10.5px/1 var(--f-m); color: var(--text); background: rgba(7,9,12,.8); padding: 4px 6px;
}
.hs { position: absolute; z-index: 3; pointer-events: none; transform: translate(-5px, -5px); }
.hs i { display: block; width: 10px; height: 10px; border: 1px solid var(--lum); background: rgba(7,9,12,.4); }
.hs b {
  position: absolute; left: 16px; top: -4px; white-space: nowrap;
  font: 500 10.5px/1 var(--f-m); letter-spacing: .04em; color: var(--text);
  background: rgba(7,9,12,.85); border-left: 2px solid var(--lum); padding: 5px 7px;
  opacity: 0; transform: translateX(-4px); transition: opacity 200ms, transform 200ms;
}
.hs.is-near i { background: var(--lum); }
.hs.is-near b, [data-scan].is-touch .hs b { opacity: 1; transform: none; }
.hs--l b { left: auto; right: 16px; border-left: 0; border-right: 2px solid var(--lum); }
@media (hover: none) { .scan { display: none; } }

/* ---------- Paneles ---------- */
.pnl { background: var(--panel); border: 1px solid var(--line); }
.pnl__hd {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font: 500 .72rem/1.2 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.pnl__hd b { color: var(--text-2); font-weight: 500; }
.pnl__id { color: var(--lum); }

/* ---------- Secciones ---------- */
main { display: block; padding-top: var(--hd-h); }
.sec { padding-block: var(--sec); position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }

/* ---------- Hero (Inicio) ---------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 0; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.hero__txt { grid-column: 1 / span 7; padding-bottom: 8px; }
.hero__txt h1 { max-width: 14ch; font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.5rem); }
.hero__txt .lead { margin-top: clamp(20px, 2.4vw, 32px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ph { grid-column: 8 / -1; }
.hero__ph .ph { aspect-ratio: 1 / 1; }
.hero__ph .figcap { margin-top: 8px; }
@media (max-width: 1000px) {
  .hero__txt, .hero__ph { grid-column: 1 / -1; }
  .hero__ph .ph { aspect-ratio: 16 / 10; }
}

/* Telemetría */
.tele { margin-top: clamp(28px, 4vw, 48px); }
.tele__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.15fr; }
.rd { padding: 16px 16px 12px; border-right: 1px solid var(--line); min-width: 0; }
.rd__l { display: block; font: 500 .72rem/1.2 var(--f-m); color: var(--muted); letter-spacing: .04em; }
.rd__v { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font-family: var(--f-m); font-variant-numeric: tabular-nums; }
.rd__v b { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -.02em; color: var(--text); }
.rd__v small { font-size: .8rem; color: var(--muted); }
.rd__sp { width: 100%; height: 22px; margin-top: 8px; overflow: visible; }
.rd__sp polyline { fill: none; stroke: var(--lum); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.rd__sp line { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.rd--st { border-right: 0; display: flex; flex-direction: column; justify-content: space-between; background: rgba(60,203,127,.035); }
.st { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font: 500 1.05rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.st__dot { position: relative; width: 9px; height: 9px; background: var(--green); flex: none; }
.st__dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--green); opacity: 0; }
html:not(.static) .st__dot::after { animation: beat 2.4s var(--ease) infinite; }
@keyframes beat { 0% { opacity: .9; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.rd__src { margin-top: 12px; color: var(--muted); font: 400 .7rem/1.35 var(--f-m); }
.tele__note { color: var(--amber); }
.tele.is-paused .st__dot::after { animation-play-state: paused; }
.dataline { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 18px 0 0; color: var(--muted); font: 400 .78rem/1.5 var(--f-m); }
.dataline li + li::before { content: "/"; margin: 0 10px; color: var(--line-2); }
@media (max-width: 900px) {
  .tele__grid { grid-template-columns: 1fr 1fr; }
  .rd { border-bottom: 1px solid var(--line); }
  .rd:nth-child(2n) { border-right: 0; }
  .rd--st { grid-column: 1 / -1; border-bottom: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  .rd--st .st { margin-top: 0; }
  .rd--st .rd__src { flex-basis: 100%; margin-top: 2px; }
}

/* ---------- Unifilar (Inicio) ---------- */
.uni__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.uni__intro { grid-column: 1 / span 5; }
.uni__sticky { position: sticky; top: calc(var(--hd-h) + 40px); }
.uni__intro p { color: var(--text-2); max-width: 46ch; margin-top: 24px; }
.uni__meter { margin-top: 36px; display: grid; gap: 10px; max-width: 360px; }
.uni__meter-row { display: flex; justify-content: space-between; color: var(--muted); }
.uni__meter-row b { color: var(--lum); font-weight: 500; }
.uni__bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.uni__bar i { position: absolute; inset: 0; background: var(--lum); transform: scaleX(var(--p, 0)); transform-origin: left; }
.uni__bus { grid-column: 7 / -1; position: relative; padding-left: 0; }
.uni__wire { position: absolute; left: 35px; top: 36px; bottom: 36px; width: 2px; background: var(--line-2); }
.uni__flow { position: absolute; inset: 0; background: var(--lum); transform: scaleY(var(--p, 0)); transform-origin: top; }
.uni__head { position: absolute; left: -5px; top: 0; width: 12px; height: 28px; transform: translateY(calc(var(--py, 0) * 1px - 28px));
  background: linear-gradient(to bottom, transparent, var(--lum)); opacity: var(--ho, 0); }
.uni__term { display: flex; align-items: center; gap: 14px; color: var(--muted); padding-left: 0; height: 36px; }
.uni__term i { width: 72px; display: flex; justify-content: center; }
.uni__term i::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--line-2); background: var(--bg); position: relative; z-index: 2; }
.uni__term.is-on i::before { border-color: var(--lum); background: var(--lum); }
.node { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px 0; }
.node + .node { border-top: 1px dashed var(--line); }
.node__sym { position: relative; z-index: 2; display: flex; justify-content: center; }
.node__sym svg { width: 56px; height: 56px; background: var(--bg); stroke: var(--line-2); fill: none; stroke-width: 1.5; transition: stroke 300ms; }
.node__sym svg .f { fill: var(--line-2); stroke: none; transition: fill 300ms; }
.node__id { color: var(--muted); display: flex; gap: 10px; align-items: center; transition: color 300ms; }
.node__id::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; transition: background 300ms; }
.node h3 { margin-top: 10px; color: var(--text-2); transition: color 300ms; }
.node h3 a { background: linear-gradient(var(--lum), var(--lum)) 0 100% / 0 1px no-repeat; transition: background-size 260ms var(--ease); }
.node h3 a:hover { background-size: 100% 1px; }
.node h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.node p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; transition: color 300ms; }
.node:hover .node__sym svg { stroke: var(--text-2); }
.node.is-on .node__sym svg { stroke: var(--lum); }
.node.is-on .node__sym svg .f { fill: var(--lum); }
.node.is-on .node__id { color: var(--lum); }
.node.is-on .node__id::before { background: var(--lum); }
.node.is-on h3 { color: var(--text); }
.node.is-on p { color: var(--text-2); }
@media (max-width: 900px) {
  .uni__intro, .uni__bus { grid-column: 1 / -1; }
  .uni__sticky { position: static; }
  .uni__meter { display: none; }
  .node { grid-template-columns: 56px 1fr; gap: 14px; }
  .uni__wire { left: 27px; }
  .node__sym svg { width: 46px; height: 46px; }
  .uni__term i { width: 56px; }
}

/* ---------- Encabezados de sección ---------- */
.shead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.shead h2 { grid-column: 1 / span 6; }
.shead p { grid-column: 8 / span 4; color: var(--text-2); margin: 0; }
.shead .lnk { grid-column: 8 / span 4; }
.shead__aside { grid-column: 8 / -1; }
.shead__aside p { color: var(--text-2); margin: 0 0 12px; }
@media (max-width: 900px) { .shead h2, .shead p, .shead .lnk, .shead__aside { grid-column: 1 / -1; } }

/* ---------- Obras destacadas ---------- */
.od { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.ob { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: border-color var(--t); }
.ob:hover { border-color: var(--line-2); }
.ob:hover .pnl__id { color: var(--text); }
.ob .ph { aspect-ratio: 16 / 10; }
.ob__b { padding: 18px 18px 20px; display: grid; gap: 10px; }
.ob__b h3 a::after { content: ""; position: absolute; inset: 0; z-index: 5; }
.ob__b h3 a:hover, .ob__b h3 a:focus-visible { color: var(--lum); }
.ob__b p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.ob__k { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.ob__k .mono { color: var(--muted); }
.ob__k b { font: 500 .95rem/1.2 var(--f-m); color: var(--lum); }
.od .ob--lg { grid-column: 1 / span 8; grid-row: span 2; }
.od .ob--lg .ph { aspect-ratio: auto; flex: 1; min-height: 360px; }
.od .ob--lg h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.od .ob:not(.ob--lg) { grid-column: 9 / -1; }
.od .ob:not(.ob--lg) .ph { aspect-ratio: 16 / 9; }
@media (max-width: 900px) {
  .od .ob--lg, .od .ob:not(.ob--lg) { grid-column: 1 / -1; grid-row: auto; }
  .od .ob--lg .ph { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
}

/* ---------- Secuencia (método) ---------- */
.metodo__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-bottom: clamp(40px, 6vw, 80px); }
.metodo__head h2 { grid-column: 1 / span 5; }
.metodo__head p { grid-column: 7 / span 5; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.55; margin: 0; }
.seq { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; counter-reset: s; }
.seq::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.seq__it { position: relative; padding: 28px 24px 0 0; }
.seq__it::before { content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 11px; background: var(--bg); border: 1px solid var(--lum); }
.seq__it:last-child::before { background: var(--lum); }
.seq__n { display: block; color: var(--lum); margin-bottom: 16px; }
.seq__it h3 { margin-bottom: 10px; }
.seq__it p { color: var(--muted); margin: 0; font-size: var(--fs-sm); max-width: 32ch; }
@media (max-width: 900px) {
  .metodo__head h2, .metodo__head p { grid-column: 1 / -1; }
  .seq { grid-template-columns: 1fr; padding-left: 28px; }
  .seq::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .seq__it { padding: 0 0 32px; }
  .seq__it::before { left: -28px; top: 4px; }
}

/* ---------- Lo que ofrecemos (antes «Lo que puede exigirnos») ---------- */
.exig { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.exig__ph { grid-column: 1 / span 4; position: sticky; top: calc(var(--hd-h) + 32px); }
.exig__ph .ph { aspect-ratio: 3 / 4; }
.exig__main { grid-column: 6 / -1; }
.exig__main h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.req { border-top: 1px solid var(--line-2); }
.req__row { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.req__row dt { font: 600 1.06rem/1.35 var(--f-b); }
.req__row dd { margin: 0; color: var(--text-2); }
.req__c { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.req__c::before { content: ""; width: 7px; height: 7px; background: var(--green); }
.req__row--pend .req__c::before { background: var(--amber); }
@media (max-width: 900px) {
  .exig__ph, .exig__main { grid-column: 1 / -1; }
  .exig__ph { position: static; }
  .exig__ph .ph { aspect-ratio: 16 / 10; }
  .req__row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Banda CTA ---------- */
.ctab { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.ctab__bg { position: absolute; inset: 0; }
.ctab__bg .ph { height: 100%; }
.ctab__bg .ph img { filter: grayscale(1) contrast(1.2) brightness(.32); }
.ctab__bg .ph:hover img { filter: grayscale(1) contrast(1.2) brightness(.32); }
.ctab__bg .ph:hover::before { opacity: .62; }
.ctab__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,12,.94) 0%, rgba(7,9,12,.8) 45%, rgba(7,9,12,.35) 100%); z-index: 1; }
.ctab__in { position: relative; z-index: 2; padding-block: clamp(80px, 10vw, 150px); }
.ctab h2 { max-width: 17ch; }
.ctab p { max-width: 52ch; color: var(--text-2); font-size: var(--fs-lead); margin: 24px 0 32px; }
.ctab__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.ctab__line { margin-top: 40px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.ctab__line a { color: var(--text); }

/* ---------- Footer ---------- */
.ft { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 7vw, 96px) 0 32px; font-size: var(--fs-sm); }
.ft__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--gap); }
.ft__brand p { color: var(--muted); max-width: 30ch; margin-top: 16px; }
.ft h2 { font: 500 .72rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-stretch: 100%; }
.ft li + li { margin-top: 6px; }
.ft a { display: inline-flex; min-height: 32px; align-items: center; color: var(--text-2); transition: color var(--t); }
.ft a:hover { color: var(--lum); }
.ft__c li { color: var(--text-2); }
.ft__c .mono { display: block; color: var(--muted); margin-bottom: 2px; }
.ft__c li + li { margin-top: 12px; }
.ft__bot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font: 400 .75rem/1.5 var(--f-m); }
.ft__bot p { margin: 0; }
.ft__proto { max-width: 62ch; color: var(--amber); opacity: .85; }
@media (max-width: 900px) {
  .ft__top { grid-template-columns: 1fr 1fr; }
  .ft__brand { grid-column: 1 / -1; }
  .ft { padding-bottom: 88px; }
}
@media (max-width: 520px) { .ft__top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 2px;
  font: 500 .8125rem/1 var(--f-m); letter-spacing: .04em;
  transition: border-color var(--t), background var(--t);
}
.wa svg { width: 22px; height: 22px; fill: #25D366; flex: none; }
.wa:hover { border-color: #25D366; background: #0E1A14; }
.wa__t small { display: block; color: var(--muted); font-size: .66rem; margin-top: 3px; letter-spacing: .06em; }
@media (max-width: 640px) { .wa { width: 52px; padding: 0; justify-content: center; } .wa__t { display: none; } }

/* ---------- Cabecera de página interior ---------- */
.phead { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.phead__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.phead h1 { grid-column: 1 / span 7; }
.phead .lead { grid-column: 8 / -1; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); color: var(--muted); }
.crumbs a { color: var(--text-2); min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--lum); }
.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
@media (max-width: 900px) { .phead h1, .phead .lead { grid-column: 1 / -1; } }

/* ---------- Servicios ---------- */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.svc__idx { grid-column: 1 / span 3; }
.svc__idx-in { position: sticky; top: calc(var(--hd-h) + 32px); padding-top: clamp(56px, 6vw, 96px); }
.svc__idx-t { color: var(--muted); margin-bottom: 18px; display: block; }
.idx { position: relative; }
.idx::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.idx a { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 14px; align-items: center; min-height: 44px; padding: 6px 0; color: var(--muted); font-size: .9375rem; transition: color var(--t); }
.idx a::before { content: ""; width: 13px; height: 13px; border: 1px solid var(--line-2); background: var(--bg); z-index: 1; transition: background var(--t), border-color var(--t); }
.idx a:hover { color: var(--text); }
.idx a.is-on { color: var(--text); }
.idx a.is-on::before { background: var(--lum); border-color: var(--lum); }
.idx a .mono { display: block; color: var(--muted); font-size: .68rem; }
.idx a.is-on .mono { color: var(--lum); }
.svc__main { grid-column: 4 / -1; }
.srv { padding-block: clamp(56px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.srv:last-child { border-bottom: 0; }
.srv__hd { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(24px, 3vw, 40px); }
.srv__id { color: var(--lum); flex: none; padding-top: 6px; }
.srv__hd h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); }
.srv__body { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.srv__lead { grid-column: 1 / span 4; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); margin: 0; }
.srv__media { grid-column: 5 / -1; }
.srv__media .ph { aspect-ratio: 16 / 10; }
.srv--alt .srv__lead { grid-column: 6 / -1; grid-row: 1; }
.srv--alt .srv__media { grid-column: 1 / span 5; grid-row: 1; }
.srv__spec { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr 1fr; border: 1px solid var(--line); background: var(--panel); margin-top: clamp(16px, 2vw, 24px); }
.srv__col { padding: 20px 20px 22px; min-width: 0; }
.srv__col + .srv__col { border-left: 1px solid var(--line); }
.srv__col h3 { font: 500 .72rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-stretch: 100%; }
.srv__col p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.ticks li { position: relative; padding: 7px 0 7px 20px; font-size: var(--fs-sm); color: var(--text-2); border-bottom: 1px dashed var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 1px; background: var(--lum); }
.docs li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: var(--fs-sm); color: var(--text-2); }
.docs li::before { content: ""; flex: none; width: 9px; height: 11px; border: 1px solid var(--muted); transform: translateY(1px); }
.srv__act { margin-top: 24px; }
@media (max-width: 1080px) {
  .svc__idx { display: none; }
  .svc__main { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .srv__lead, .srv__media, .srv--alt .srv__lead, .srv--alt .srv__media { grid-column: 1 / -1; grid-row: auto; }
  .srv__spec { grid-template-columns: 1fr; }
  .srv__col + .srv__col { border-left: 0; border-top: 1px solid var(--line); }
  .srv__hd { flex-direction: column; gap: 8px; }
}
/* Índice horizontal en tablet/mobile */
.svc__bar { display: none; position: sticky; top: var(--hd-h); z-index: 20; background: rgba(7,9,12,.97); border-bottom: 1px solid var(--line); }
.svc__bar ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.svc__bar ul::-webkit-scrollbar { display: none; }
.svc__bar a { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 48px; padding: 0 14px; color: var(--muted); font-size: .875rem; border-bottom: 2px solid transparent; }
.svc__bar a.is-on { color: var(--text); border-bottom-color: var(--lum); }
.svc__bar .mono { font-size: .66rem; }
@media (max-width: 1080px) { .svc__bar { display: block; } }

/* ---------- Nosotros ---------- */
.pano { position: relative; border-bottom: 1px solid var(--line); }
.pano .ph { aspect-ratio: 21 / 7; }
.pano__cap { position: absolute; left: var(--gut); bottom: 16px; z-index: 5; color: var(--text); background: rgba(7,9,12,.8); padding: 6px 8px; }
@media (max-width: 700px) { .pano .ph { aspect-ratio: 16 / 9; } }
.hist { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.hist h2 { grid-column: 1 / span 4; }
.hist__txt { grid-column: 6 / span 6; font-size: 1.125rem; color: var(--text-2); }
.hist__txt p:first-child { color: var(--text); font-size: var(--fs-lead); line-height: 1.5; }
.tl { grid-column: 6 / -1; margin-top: 24px; }
.tl__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px dashed rgba(242,169,59,.45); padding-top: 14px; }
.tl__track span { position: relative; color: var(--muted); font: 400 .72rem/1 var(--f-m); }
.tl__track span::before { content: ""; position: absolute; top: -19px; left: 0; width: 9px; height: 9px; border: 1px dashed var(--amber); background: var(--bg); }
.tl p { margin-top: 18px; }
@media (max-width: 900px) { .hist h2, .hist__txt, .tl { grid-column: 1 / -1; } }

.eng { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.eng__por { grid-column: 1 / span 4; position: relative; aspect-ratio: 4 / 5; background:
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(30,37,46,.7) 39px 40px),
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(30,37,46,.7) 39px 40px), var(--panel);
  border: 1px solid var(--line); display: grid; place-items: center; }
.eng__por::before, .eng__por::after { content: ""; position: absolute; width: 28px; height: 28px; border: 1px solid var(--lum); }
.eng__por::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.eng__por::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.eng__por svg { width: 44%; stroke: var(--line-2); fill: none; stroke-width: 1; }
.eng__por .mono { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: var(--amber); }
.eng__main { grid-column: 6 / -1; display: flex; flex-direction: column; }
.eng__main h2 { margin-bottom: 28px; }
.eng__main > .eng__name { font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.05 var(--f-d); font-stretch: 82%; }
.eng__main > .eng__role { color: var(--lum); margin: 10px 0 22px; font-size: .8rem; }
.eng__main > p { color: var(--text-2); max-width: 58ch; font-size: 1.125rem; }
.plate { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--panel); }
.plate div { padding: 14px 16px; min-width: 0; }
.plate div + div { border-left: 1px solid var(--line); }
.plate dt { color: var(--muted); margin-bottom: 8px; }
.plate dd { margin: 0; }
@media (max-width: 900px) {
  .eng__por { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .eng__por svg { width: 22%; }
  .eng__main { grid-column: 1 / -1; }
  .plate { grid-template-columns: 1fr; margin-top: 24px; }
  .plate div + div { border-left: 0; border-top: 1px solid var(--line); }
}

.mv { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.mv > div { padding: clamp(24px, 4vw, 52px); }
.mv > div + div { border-left: 1px solid var(--line); }
.mv h3 { font: 500 .75rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--lum); margin-bottom: 22px; font-stretch: 100%; }
.mv p { font: 500 clamp(1.25rem, 1.05rem + .8vw, 1.75rem)/1.3 var(--f-d); font-stretch: 90%; letter-spacing: -.005em; margin: 0; }
@media (max-width: 800px) { .mv { grid-template-columns: 1fr; } .mv > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.proc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.proc__h { grid-column: 1 / span 4; }
.proc__h > div { position: sticky; top: calc(var(--hd-h) + 40px); }
.proc ol { grid-column: 6 / -1; position: relative; }
.proc li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.proc li:last-child { border-bottom: 1px solid var(--line); }
.proc__n { font: 500 clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem)/1 var(--f-m); color: var(--line-2); letter-spacing: -.04em; transition: color 300ms; }
.proc li:hover .proc__n { color: var(--lum); }
.proc li h3 { margin-bottom: 8px; }
.proc li p { margin: 0; color: var(--text-2); max-width: 56ch; }
@media (max-width: 900px) { .proc__h, .proc ol { grid-column: 1 / -1; } .proc li { grid-template-columns: 52px 1fr; } }

.vals { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.vals li { padding: 28px 20px 30px 0; font: 700 clamp(1.25rem, 1rem + 1vw, 1.9rem)/1.1 var(--f-d); font-stretch: 80%; }
.vals li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.vals li::before { content: ""; display: block; width: 7px; height: 7px; background: var(--lum); margin-bottom: 18px; }
@media (max-width: 800px) {
  .vals { grid-template-columns: 1fr 1fr; }
  .vals li:nth-child(3) { padding-left: 0; border-left: 0; }
  .vals li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.ctas { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }

/* ---------- Portafolio ---------- */
.flt-bar { position: sticky; top: var(--hd-h); z-index: 20; background: rgba(7,9,12,.97); border-bottom: 1px solid var(--line); }
.flt { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.flt::-webkit-scrollbar { display: none; }
.flt button {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 52px; padding: 0 16px;
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer;
  font-size: .9375rem; transition: color var(--t), border-color var(--t);
}
.flt button .mono { color: var(--muted); font-size: .68rem; padding: 2px 5px; border: 1px solid var(--line-2); }
.flt button:hover { color: var(--text); }
.flt button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--lum); }
.flt button[aria-pressed="true"] .mono { color: var(--lum); border-color: var(--lum); }
.port__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.port__top .refnote { max-width: 720px; }
.port__count { color: var(--muted); padding-top: 12px; }
.port__count b { color: var(--text); font-weight: 500; }
.pg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pg .ob .ph { aspect-ratio: 4 / 3; }
.pg .ob.is-hidden { display: none; }
.pg .ob.is-in { animation: obIn 320ms var(--ease) both; }
@keyframes obIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 0; font-size: .875rem; border-top: 1px solid var(--line); padding-top: 12px; }
.kv dt { color: var(--muted); font: 400 .72rem/1.6 var(--f-m); letter-spacing: .03em; }
.kv dd { margin: 0; color: var(--text-2); }
.kv dd.key { font-family: var(--f-m); color: var(--lum); }
.ob__more { display: inline-flex; color: var(--lum); font-size: .875rem; margin-top: 4px; }
@media (max-width: 1080px) { .pg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pg { grid-template-columns: 1fr; } }

.arts { border-top: 1px solid var(--line-2); }
.art-row { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1.6fr) minmax(0, 1.4fr) 140px; gap: var(--gap); padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background var(--t); }
.art-row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--lum); transform: scaleY(0); transition: transform 220ms var(--ease); }
.art-row:hover::before, .art-row:focus-within::before { transform: scaleY(1); }
.art-row:hover { background: rgba(15,19,24,.6); }
.art-row .mono { color: var(--muted); padding-left: 14px; }
.art-row h3 a::after { content: ""; position: absolute; inset: 0; }
.art-row:hover h3 { color: var(--lum); }
.art-row p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.art-row__m { color: var(--muted); text-align: right; display: grid; gap: 4px; }
.art-row--nolink h3 { color: var(--text); }
@media (max-width: 900px) {
  .art-row { grid-template-columns: 1fr; gap: 8px; padding-left: 14px; }
  .art-row .mono { padding-left: 0; }
  .art-row__m { text-align: left; display: flex; gap: 12px; }
}

/* ---------- Ficha de obra ---------- */
.ohead { padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.ohead__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.ohead__t { grid-column: 1 / span 7; }
.ohead__t .refnote { margin-top: 28px; max-width: 560px; }
.ohead__t h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.5rem); max-width: 16ch; }
.ohead__ref { display: inline-flex; margin-bottom: 20px; }
.fic { grid-column: 9 / -1; }
.fic dl { margin: 0; }
.fic dl div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.fic dl div:last-child { border-bottom: 0; }
.fic dt { color: var(--muted); font: 400 .72rem/1.9 var(--f-m); letter-spacing: .03em; }
.fic dd { margin: 0; }
.fic dd .mono { font-size: .875rem; color: var(--lum); }
@media (max-width: 900px) { .ohead__t, .fic { grid-column: 1 / -1; } }
.ohero .ph { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .ohero .ph { aspect-ratio: 4 / 3; } }

.rsr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.rsr__b { grid-column: 1 / span 4; }
.rsr__b + .rsr__b { grid-column: auto / span 4; }
.rsr__b h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); display: flex; gap: 12px; align-items: baseline; margin-bottom: 18px; }
.rsr__b h2 .mono { color: var(--lum); }
.rsr__b p { color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .rsr__b, .rsr__b + .rsr__b { grid-column: 1 / -1; } }

/* Comparador antes / después (unifilar) */
.ab { margin-top: clamp(48px, 6vw, 88px); }
.ab__tabs { display: inline-flex; border: 1px solid var(--line-2); }
.ab__tabs button { min-height: 44px; padding: 0 18px; background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 .8125rem/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; }
.ab__tabs button + button { border-left: 1px solid var(--line-2); }
.ab__tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.ab__fig { margin: 18px 0 0; }
.ab__svg { width: 100%; height: auto; }
.ab__svg text { font-family: var(--f-m); font-size: 12px; fill: var(--text-2); letter-spacing: .02em; }
.ab__svg .t-m { fill: var(--muted); font-size: 10.5px; }
.ab__svg .w { stroke: var(--line-2); stroke-width: 2; fill: none; }
.ab__svg .w-on { stroke: var(--lum); stroke-width: 2; fill: none; }
.ab__svg .w-warn { stroke: var(--amber); stroke-width: 2; fill: none; stroke-dasharray: 5 4; }
.ab__svg .bx { fill: var(--panel); stroke: var(--line-2); stroke-width: 1.25; }
.ab__svg .bx-on { fill: var(--panel); stroke: var(--lum); stroke-width: 1.25; }
.ab__svg .bx-warn { fill: #1A1408; stroke: var(--amber); stroke-width: 1.25; }
.ab__svg .t-warn { fill: var(--amber); }
.ab__svg .t-on { fill: var(--lum); }
.ab__svg .flow { stroke: var(--lum); stroke-width: 2; fill: none; stroke-dasharray: 6 14; }
html:not(.static) .ab__svg .flow { animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.ab__panel[hidden] { display: none; }
.ab__panel { animation: abIn 260ms var(--ease); }
@keyframes abIn { from { opacity: 0; } to { opacity: 1; } }
.ab__cap { margin-top: 12px; color: var(--muted); }
.ab__scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--bg-2); padding: 12px; }
.ab__scroll svg { min-width: 760px; }

.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.gal > .gal__it:nth-child(1) { grid-column: 1 / span 7; }
.gal > .gal__it:nth-child(2) { grid-column: 8 / -1; }
.gal > .gal__it:nth-child(3) { grid-column: 1 / span 4; }
.gal > .gal__it:nth-child(4) { grid-column: 5 / -1; }
.gal .ph { aspect-ratio: 3 / 2; }
.gal > .gal__it:nth-child(2) .ph { aspect-ratio: auto; height: calc(100% - 30px); }
.gal > .gal__it:nth-child(3) .ph { aspect-ratio: 4 / 5; }
.gal > .gal__it:nth-child(4) .ph { aspect-ratio: auto; height: calc(100% - 30px); }
.gal__it { min-width: 0; }
@media (max-width: 800px) {
  .gal > .gal__it:nth-child(n) { grid-column: 1 / -1; }
  .gal > .gal__it:nth-child(n) .ph { aspect-ratio: 4 / 3; height: auto; }
}
.pnav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pnav a { display: grid; gap: 6px; padding: 28px 0; min-height: 44px; transition: color var(--t); }
.pnav a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.pnav .mono { color: var(--muted); }
.pnav b { font: 700 clamp(1.1rem, 1rem + .6vw, 1.5rem)/1.15 var(--f-d); font-stretch: 85%; }
.pnav a:hover b { color: var(--lum); }

/* ---------- Artículo ---------- */
.ahead { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); }
.ahead h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.2rem); max-width: 20ch; }
.ameta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--muted); }
.ameta span { display: inline-flex; gap: 8px; align-items: center; }
.ameta span::before { content: ""; width: 6px; height: 6px; background: var(--lum); }
.ahero .ph { aspect-ratio: 21 / 8; }
@media (max-width: 700px) { .ahero .ph { aspect-ratio: 16 / 10; } }
.read { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-block: clamp(48px, 6vw, 96px); }
.toc { grid-column: 1 / span 3; }
.toc__in { position: sticky; top: calc(var(--hd-h) + 32px); }
.toc__t { color: var(--muted); display: block; margin-bottom: 14px; }
.toc a { display: flex; gap: 10px; align-items: center; min-height: 40px; color: var(--muted); font-size: .9rem; border-left: 1px solid var(--line-2); padding-left: 14px; margin-left: 0; transition: color var(--t), border-color var(--t); }
.toc a:hover { color: var(--text); }
.toc a.is-on { color: var(--text); border-left-color: var(--lum); }
.toc__bar { height: 2px; background: var(--line); margin-top: 22px; position: relative; overflow: hidden; }
.toc__bar i { position: absolute; inset: 0; background: var(--lum); transform: scaleX(var(--p, 0)); transform-origin: left; }
.prose { grid-column: 4 / span 7; max-width: 68ch; font-size: 1.125rem; line-height: 1.7; color: #D3D9E1; }
.prose > p:first-child { font-size: 1.3rem; line-height: 1.55; color: var(--text); }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem); margin: 2.2em 0 .7em; font-stretch: 85%; color: var(--text); scroll-margin-top: calc(var(--hd-h) + 24px); }
.prose ol { counter-reset: q; margin: 0 0 1.4em; }
.prose ol li { counter-increment: q; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--line); }
.prose ol li:last-child { border-bottom: 1px solid var(--line); }
.prose ol li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 500 .85rem/1.4 var(--f-m); color: var(--lum); }
.prose strong { color: var(--text); font-weight: 600; }
@media (max-width: 1080px) { .toc { display: none; } .prose { grid-column: 1 / -1; margin-inline: auto; } }

/* Simulador de redundancia */
.sim { margin: 2.4em 0; }
.sim .pnl__hd { flex-wrap: wrap; }
.sim__ctl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sim__tabs { display: inline-flex; border: 1px solid var(--line-2); }
.sim__tabs button { min-height: 40px; min-width: 64px; padding: 0 14px; background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 .85rem/1 var(--f-m); }
.sim__tabs button + button { border-left: 1px solid var(--line-2); }
.sim__tabs button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.sim__fail { min-height: 40px; padding: 0 14px; background: none; border: 1px solid var(--line-2); color: var(--text-2); cursor: pointer; font: 500 .8rem/1 var(--f-m); letter-spacing: .03em; display: inline-flex; align-items: center; gap: 8px; }
.sim__fail::before { content: ""; width: 7px; height: 7px; background: var(--muted); }
.sim__fail[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.sim__fail[aria-pressed="true"]::before { background: var(--amber); }
.sim svg { width: 100%; height: auto; display: block; padding: 10px; }
.sim svg text { font-family: var(--f-m); font-size: 11px; fill: var(--text-2); }
.sim .s-w { stroke: var(--lum); stroke-width: 2; fill: none; transition: stroke 240ms, opacity 240ms; }
.sim .s-b { fill: var(--bg-2); stroke: var(--lum); stroke-width: 1.25; transition: stroke 240ms, fill 240ms; }
.sim .off .s-w { stroke: var(--line-2); stroke-dasharray: 4 4; }
.sim .off .s-b { stroke: var(--amber); fill: #1A1408; }
.sim .off text { fill: var(--amber); }
.sim .dead .s-w { stroke: var(--line-2); }
.sim .dead .s-b { stroke: var(--line-2); }
.sim .dead text { fill: var(--muted); }
.sim__out { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); font: 500 .85rem/1.4 var(--f-m); }
.sim__out::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--green); }
.sim__out.is-bad { color: var(--amber); }
.sim__out.is-bad::before { background: var(--amber); }
.sim__note { padding: 0 14px 12px; color: var(--muted); }

.acta { margin-top: 3em; padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.acta h2 { margin: 0 0 20px !important; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem) !important; }
.rel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.rel a { position: relative; display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); background: var(--panel); transition: border-color var(--t); }
.rel a:hover { border-color: var(--lum); }
.rel .mono { color: var(--muted); }
.rel b { font: 700 1.3rem/1.15 var(--f-d); font-stretch: 85%; }
.rel p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 800px) { .rel { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.ct { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding-block: clamp(40px, 5vw, 80px) var(--sec); }
.ct__form { grid-column: 1 / span 7; }
.ct__side { grid-column: 9 / -1; display: grid; gap: var(--gap); }
@media (max-width: 1000px) { .ct__form, .ct__side { grid-column: 1 / -1; } }
.frm { padding: clamp(18px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.fld { display: grid; gap: 8px; min-width: 0; }
.fld--full { grid-column: 1 / -1; }
.fld label, .fld legend { font-size: .9rem; font-weight: 500; color: var(--text); }
.fld .req-m { color: var(--lum); }
.fld input[type="text"], .fld input[type="email"], .fld input[type="tel"], .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 2px; transition: border-color var(--t), background var(--t);
}
.fld textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.fld input::placeholder, .fld textarea::placeholder { color: #69727F; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: #3A4554; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--lum); background: #0A1018; box-shadow: 0 0 0 3px var(--lum-soft); }
.fld.is-err input, .fld.is-err select, .fld.is-err textarea { border-color: var(--amber); }
.fld__err { display: none; color: var(--amber); font: 400 .78rem/1.4 var(--f-m); }
.fld.is-err .fld__err { display: flex; gap: 8px; }
.fld.is-err .fld__err::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--amber); font-size: .7rem; flex: none; }
.fld__hint { color: var(--muted); font: 400 .75rem/1.4 var(--f-m); }
fieldset.fld { border: 0; padding: 0; margin: 0; }
.urg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); margin-top: 8px; }
.urg label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; cursor: pointer; font-weight: 400; font-size: .9rem; color: var(--text-2); }
.urg label + label { border-left: 1px solid var(--line-2); }
.urg input { position: absolute; opacity: 0; pointer-events: none; }
.urg i { width: 12px; height: 12px; border: 1px solid var(--muted); flex: none; transition: background var(--t), border-color var(--t); }
.urg input:checked + i { background: var(--lum); border-color: var(--lum); }
.urg input:checked ~ span { color: var(--text); }
.urg label:has(input:checked) { background: var(--lum-soft); }
.urg label:has(input[value="falla"]:checked) { background: rgba(242,169,59,.1); }
.urg input[value="falla"]:checked + i { background: var(--amber); border-color: var(--amber); }
.urg input:focus-visible + i { outline: 2px solid var(--lum); outline-offset: 3px; }
.urg__alert { display: none; margin-top: 10px; color: var(--amber); font: 400 .8rem/1.4 var(--f-m); }
.urg__alert a { text-decoration: underline; text-underline-offset: 3px; }
.urg__alert.is-on { display: block; }
@media (max-width: 640px) {
  .frm { grid-template-columns: 1fr; }
  .urg { grid-template-columns: 1fr; }
  .urg label + label { border-left: 0; border-top: 1px solid var(--line-2); }
}
.file { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; border: 1px dashed var(--line-2); cursor: pointer; transition: border-color var(--t); }
.file:hover { border-color: var(--lum); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file input:focus-visible ~ .file__b { outline: 2px solid var(--lum); outline-offset: 2px; }
.file__b { flex: none; padding: 8px 12px; border: 1px solid var(--line-2); font: 500 .78rem/1 var(--f-m); }
.file__n { color: var(--muted); font: 400 .78rem/1.4 var(--f-m); min-width: 0; overflow-wrap: anywhere; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.frm__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.frm__foot .mono { color: var(--muted); }
.frm__sum { grid-column: 1 / -1; display: none; padding: 12px 14px; border: 1px solid var(--amber); color: var(--amber); font: 400 .82rem/1.45 var(--f-m); }
.frm__sum.is-on { display: block; }
.btn.is-busy { pointer-events: none; opacity: .8; }
.ok { padding: clamp(24px, 4vw, 44px); }
.ok[hidden] { display: none; }
.ok__st { display: inline-flex; gap: 10px; align-items: center; color: var(--green); margin-bottom: 20px; }
.ok__st::before { content: ""; width: 9px; height: 9px; background: var(--green); }
.ok h2 { margin-bottom: 18px; }
.ok p { color: var(--text-2); max-width: 52ch; font-size: 1.1rem; }
.cdata dl { margin: 0; }
.cdata dl > div { padding: 14px; border-bottom: 1px solid var(--line); }
.cdata dl > div:last-child { border-bottom: 0; }
.cdata dt { color: var(--muted); font: 500 .72rem/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.cdata dd { margin: 0; }
.cdata dd a:not(.btn) { color: var(--text); border-bottom: 1px solid var(--line-2); }
.cdata dd a:not(.btn):hover { color: var(--lum); border-color: var(--lum); }
.cdata .btn { margin-top: 12px; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg) brightness(.95); }
.map__pin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid var(--lum); pointer-events: none; }
.map__pin::before, .map__pin::after { content: ""; position: absolute; background: var(--lum); }
.map__pin::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.map__pin::after { top: 50%; left: -14px; right: -14px; height: 1px; }
.next ol { counter-reset: n; }
.next li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--text-2); }
.next li:last-child { border-bottom: 0; }
.next li::before { counter-increment: n; content: counter(n, decimal-leading-zero); font: 500 .8rem/1.6 var(--f-m); color: var(--lum); }
.next li b { color: var(--text); font-weight: 600; }

/* ---------- Reveal (solo el momento de arranque del hero) ---------- */
html.js:not(.static) .boot { opacity: 0; transform: translateY(10px); }
html.js:not(.static) .is-booted .boot { opacity: 1; transform: none; transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
html.js:not(.static) .is-booted .boot:nth-child(2) { transition-delay: 80ms; }
html.js:not(.static) .is-booted .boot:nth-child(3) { transition-delay: 160ms; }
html.js:not(.static) .is-booted .boot:nth-child(4) { transition-delay: 240ms; }

/* ---------- Modo estático / movimiento reducido ---------- */
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .st__dot::after { display: none; }
  html.js .boot { opacity: 1 !important; transform: none !important; }
}
@media print { .hd, .wa, .xfer { display: none; } body { background: #fff; color: #000; } }
.map { background:
  repeating-linear-gradient(0deg, transparent 0 31px, rgba(43,52,64,.5) 31px 32px),
  repeating-linear-gradient(90deg, transparent 0 31px, rgba(43,52,64,.5) 31px 32px), var(--panel-2); }
.ab__hint { display: none; }
@media (max-width: 800px) { .ab__hint { display: inline; } }
.sim__sv { overflow-x: auto; }
@media (max-width: 640px) { .sim__sv svg { width: 600px; max-width: none; } }
@media (hover: none) { .cap--fine { display: none; } }
.reftag { display: inline-block; font: 500 .66rem/1 var(--f-m); letter-spacing: .06em; color: var(--amber); border: 1px solid rgba(242,169,59,.5); padding: 3px 5px 2px; vertical-align: 2px; margin-left: 4px; }

/* Evita desplazamiento lateral por elementos decorativos que sobresalen */
html, body { overflow-x: clip; }
