/* =============================================================
   SIA · Soluciones Industriales Avanzadas — hoja de estilos única
   Arquetipo: retícula técnica (plano CAD) sobre identidad SIA
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --indigo: #16164D;
  --orange: #E76D09;
  --orange-2: #F5760E;
  --night: #0E0D2E;
  --steel: #034174;
  --slate: #424B6E;
  --soft: #F5F5F8;
  --white: #FFFFFF;

  --text: #23264A;
  --muted: #4A5175;
  --line: rgba(22, 22, 77, .14);
  --line-strong: rgba(22, 22, 77, .32);
  --on-dark: #ECECF5;
  --on-dark-muted: #A9ABCB;
  --line-dark: rgba(255, 255, 255, .12);
  --ph-bg: #23255A;

  --display: "IBM Plex Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
  --r: 3px;
  --sec: clamp(80px, 10vw, 148px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Retículas CAD (SVG, sin degradados) */
  --g-min-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M24 .5H.5V24' fill='none' stroke='%2316164D' stroke-opacity='.06'/%3E%3C/svg%3E");
  --g-maj-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M120 .5H.5V120' fill='none' stroke='%2316164D' stroke-opacity='.11'/%3E%3C/svg%3E");
  --g-min-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M24 .5H.5V24' fill='none' stroke='%23FFFFFF' stroke-opacity='.045'/%3E%3C/svg%3E");
  --g-maj-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M120 .5H.5V120' fill='none' stroke='%23FFFFFF' stroke-opacity='.09'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .38s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: var(--orange); color: var(--indigo); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 1000;
  padding: 10px 16px; background: var(--orange); color: var(--indigo);
  font-weight: 600; border-radius: var(--r);
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.cad { background-color: var(--soft); background-image: var(--g-maj-l), var(--g-min-l); background-size: 120px 120px, 24px 24px; }
.cad-dark { background-color: var(--night); background-image: var(--g-maj-d), var(--g-min-d); background-size: 120px 120px, 24px 24px; color: var(--on-dark); }
.bg-white { background: var(--white); }
.bg-indigo { background: var(--indigo); color: var(--on-dark); }
.section { padding-block: var(--sec); position: relative; }
.section + .section.cad { border-top: 1px solid var(--line); }
.mono { font-family: var(--mono); }
.pending {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  border: 1px dashed var(--orange); color: var(--steel); padding: 6px 10px; border-radius: 2px; background: rgba(231, 109, 9, .06);
}
.cad-dark .pending, .bg-indigo .pending { color: var(--on-dark); }

/* =============================================================
   4. Tipografía
   ============================================================= */
.h1, .h2, .h3, .h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }
.h1 { font-size: clamp(2.45rem, 1rem + 4.4vw, 5.25rem); line-height: .93; }
.h2 { font-size: clamp(2rem, 1.15rem + 3vw, 3.7rem); line-height: .98; color: var(--indigo); }
.h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); line-height: 1.08; color: var(--steel); }
.h4 { font-size: 1.05rem; line-height: 1.15; color: var(--indigo); }
.cad-dark .h2, .bg-indigo .h2, .cad-dark .h3, .bg-indigo .h3 { color: var(--white); }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.75; color: var(--muted); max-width: 64ch; }
.cad-dark .lead, .bg-indigo .lead { color: var(--on-dark-muted); }
.eyebrow, .tag {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--orange-2); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); flex: none; }
.tag { color: var(--muted); }
.cad-dark .tag { color: var(--on-dark-muted); }
.accent { color: var(--orange-2); }

/* =============================================================
   5. Componentes
   ============================================================= */
/* --- Botones con marcas de esquina CAD --- */
.btn {
  --bc: var(--orange);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 10px 24px; border-radius: 2px; text-align: center; line-height: 1.2;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .07em; text-transform: uppercase;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
  isolation: isolate;
}
.btn .ico { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn::before, .btn::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--bc);
  opacity: 0; transition: opacity .3s, transform .35s var(--ease-out); pointer-events: none;
}
.btn::before { top: -6px; left: -6px; border-top-width: 1.5px; border-left-width: 1.5px; transform: translate(4px, 4px); }
.btn::after { bottom: -6px; right: -6px; border-bottom-width: 1.5px; border-right-width: 1.5px; transform: translate(-4px, -4px); }
.btn:hover::before, .btn:hover::after, .btn:focus-visible::before, .btn:focus-visible::after { opacity: 1; transform: none; }
.btn--primary { background: var(--orange); color: var(--indigo); }
.btn--primary:hover { background: var(--orange-2); }
.btn--ghost { border: 1.5px solid currentColor; color: var(--white); --bc: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--indigo); }
.btn--ink { background: var(--indigo); color: var(--white); --bc: var(--indigo); }
.btn--ink:hover { background: var(--steel); }
.btn--line { border: 1.5px solid var(--indigo); color: var(--indigo); --bc: var(--indigo); }
.btn--line:hover { background: var(--indigo); color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel);
}
.link-arrow .ico { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(5px); }
.cad-dark .link-arrow { color: var(--orange-2); }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

/* --- Cabecera de sección: banda índigo con chevron --- */
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 980px; }
.band {
  position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 14px;
  padding: 9px 44px 9px 0; background: var(--indigo); color: var(--white);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  clip-path: polygon(-100vw 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, -100vw 100%);
}
.band::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 100vw; background: var(--indigo); }
.band-n { color: var(--orange-2); }
.cad-dark .band, .bg-indigo .band { background: var(--orange); color: var(--indigo); }
.cad-dark .band::before, .bg-indigo .band::before { background: var(--orange); }
.cad-dark .band-n, .bg-indigo .band-n { color: var(--indigo); }
.bar { display: block; width: 72px; height: 4px; background: var(--orange); transform-origin: left; }
html.js .sec-head[data-reveal] .bar { transform: scaleX(0); transition: transform 1s var(--ease-out) .25s; }
html.js .sec-head.is-in .bar { transform: scaleX(1); }

/* --- Espacios reservados para imagen --- */
.ph {
  position: relative; overflow: hidden; aspect-ratio: var(--ratio, 16 / 10);
  background-color: var(--ph-bg);
  background-image: var(--g-maj-d), var(--g-min-d);
  background-size: 120px 120px, 24px 24px;
  color: var(--on-dark); border-radius: 2px;
  display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px;
}
.ph::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='%23FFFFFF' stroke-opacity='.08' vector-effect='non-scaling-stroke' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ph::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M1 22V1h21' fill='none' stroke='%23F5760E' stroke-width='1.5'/%3E%3C/svg%3E") left top no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M0 1h21v21' fill='none' stroke='%23F5760E' stroke-width='1.5'/%3E%3C/svg%3E") right top no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M1 0v21h21' fill='none' stroke='%23F5760E' stroke-width='1.5'/%3E%3C/svg%3E") left bottom no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M0 21h21V0' fill='none' stroke='%23F5760E' stroke-width='1.5'/%3E%3C/svg%3E") right bottom no-repeat;
}
.ph > * { position: relative; z-index: 1; }
.ph .ico { width: 30px; height: 30px; color: var(--orange-2); }
.ph-kind { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-2); }
.ph-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); letter-spacing: .04em; max-width: 30ch; line-height: 1.15; }
.ph-size { font-family: var(--mono); font-size: 11px; color: var(--on-dark-muted); letter-spacing: .08em; }
.ph--round { border-radius: 50%; aspect-ratio: 1; padding: 18%; }
.ph--round::after { display: none; }
/* Velo duotono índigo para las fotos reales cuando se incorporen */
.duo { position: relative; overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: transform 1.2s var(--ease-out), filter .6s; }
.duo::after { content: ""; position: absolute; inset: 0; background: var(--slate); mix-blend-mode: multiply; opacity: .3; pointer-events: none; transition: opacity .5s var(--ease-out); }
.duo:hover::after { opacity: .08; }
.duo:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.04); }
.ph-img { margin: 0; aspect-ratio: var(--ratio, 16 / 10); border-radius: 2px; background: var(--ph-bg); }
.ph-img.is-round { border-radius: 50%; aspect-ratio: 1; }
.gear-frame__in .ph-img { height: 100%; }
.proj-card .ph-img { border-radius: 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .34; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: var(--g-maj-d), var(--g-min-d); background-size: 120px 120px, 24px 24px; }

/* --- Marco circular con borde de engranaje --- */
.gear-frame { position: relative; aspect-ratio: 1; width: 100%; }
.gear-frame__ring { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.6s var(--ease-out); }
.gear-frame__ring .gr-body { fill: var(--indigo); fill-rule: evenodd; }
.gear-frame__ring .gr-tick { fill: none; stroke: var(--orange); stroke-width: 3; }
.gear-frame:hover .gear-frame__ring { transform: rotate(30deg); }
.gear-frame__in { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; }
.gear-frame__in .ph { height: 100%; }
.cad-dark .gear-frame__ring .gr-body { fill: var(--orange); }

/* --- Polígonos facetados --- */
.facets { position: absolute; pointer-events: none; }
.facets .f-i { fill: var(--indigo); }
.facets .f-o { fill: var(--orange); }
.facets .f-n { fill: var(--night); }
.facets .f-s { fill: var(--slate); }
.facets .f-l { fill: none; stroke: var(--orange); stroke-width: 1.2; }

/* --- Chips de disciplina --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--indigo); background: var(--white);
}
.cad-dark .chip { color: var(--on-dark); border-color: var(--line-dark); background: transparent; }

/* =============================================================
   6. Cabecera, menú y pie
   ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--white); view-transition-name: site-header;
  transition: height .45s var(--ease-out), background-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s;
}
.site-header.is-compact {
  --header-h: 66px;
  background: var(--white); color: var(--indigo); box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 48px; height: 48px; overflow: visible; }
.brand-mark .bm-gear, .brand-mark .bm-gear-c { fill: currentColor; }
.brand-mark .bm-trace { fill: none; stroke: currentColor; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .bm-arrow, .brand-mark .bm-node { fill: #F2760D; }
.brand-mark .bm-dot { fill: #F0F0F5; }
.brand-mark .bm-dot-o { fill: #FFF6E5; }
.brand-mark .bm-arrow { transition: transform .6s var(--ease-out); transform-box: fill-box; transform-origin: 0 100%; }
.brand:hover .brand-mark .bm-arrow { transform: translate(3%, -3%); }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--sans); font-weight: 800; font-size: 30px; letter-spacing: -.01em; line-height: .9; }
.brand-a { color: #E76D09; }
.brand-text small { font-family: var(--sans); font-weight: 500; font-size: 8.4px; letter-spacing: .07em; text-transform: uppercase; margin-top: 4px; line-height: 1.25; }

.nav { margin-left: auto; display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  position: relative;
}
.nav-link::after, .nav-trigger::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-trigger:hover::after, .nav-trigger.is-current::after, .has-mega.is-open .nav-trigger::after { transform: scaleX(1); }
.nav-trigger .ico { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.has-mega.is-open .nav-trigger .ico { transform: rotate(180deg); }
.header-cta { display: none; white-space: nowrap; }

.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: min(820px, 90vw);
  transform: translate(-42%, 8px); opacity: 0; visibility: hidden;
  background: var(--white); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--orange);
  box-shadow: 0 30px 60px -30px rgba(14, 13, 46, .45);
  display: grid; grid-template-columns: 1fr 1fr 230px; transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega.is-open .mega, html:not(.js) .has-mega:hover .mega, html:not(.js) .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: translate(-42%, 0); transition-delay: 0s;
}
.mega-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s; }
.mega-item:hover, .mega-item:focus-visible { background: var(--soft); }
.mega-item .mi-ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--indigo); color: var(--orange-2); border-radius: 2px; transition: background-color .25s, color .25s; }
.mega-item:hover .mi-ico { background: var(--orange); color: var(--indigo); }
.mega-item b { display: block; font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); line-height: 1.15; }
.mega-item span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.mega-aside { grid-row: 1 / span 2; grid-column: 3; background: var(--indigo); color: var(--on-dark); padding: 24px; display: grid; align-content: space-between; gap: 18px; }
.mega-aside p { font-size: 13.5px; line-height: 1.6; color: var(--on-dark-muted); }
.mega-aside .tag { color: var(--orange-2); }

.menu-toggle { margin-left: auto; width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
html:not(.js) .menu-toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background-color: var(--night);
  background-image: var(--g-maj-d), var(--g-min-d); background-size: 120px 120px, 24px 24px;
  color: var(--white); padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  overflow-y: auto; display: none;
}
.mobile-menu.is-open { display: block; animation: mm-in .45s var(--ease-out); }
@keyframes mm-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
body.menu-open .site-header { background: var(--night); color: var(--white); box-shadow: none; }
.mm-list > li { border-bottom: 1px solid var(--line-dark); }
.mm-list > li > a, .mm-list summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; list-style: none; }
.mm-list summary::-webkit-details-marker { display: none; }
.mm-list summary .ico { transition: transform .3s; }
.mm-list details[open] summary .ico { transform: rotate(180deg); }
.mm-sub { padding: 0 0 16px; display: grid; gap: 4px; }
.mm-sub a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.mm-sub a b { font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .04em; display: block; }
.mm-sub a small { color: var(--on-dark-muted); font-size: 12.5px; line-height: 1.4; display: block; }
.mm-sub .ico { color: var(--orange-2); }
.mm-foot { margin-top: 28px; display: grid; gap: 12px; }
.mm-foot .btn { width: 100%; }

.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* --- Migas de pan --- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--orange-2); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); }

/* --- Botón flotante WhatsApp --- */
.wa-float {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 80;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 4px;
  background: var(--orange); color: var(--indigo); box-shadow: 0 14px 30px -12px rgba(14, 13, 46, .6);
  transition: transform .35s var(--ease-out), background-color .3s;
}
.wa-float .ico { width: 30px; height: 30px; stroke-width: 1.7; }
.wa-float:hover { transform: translateY(-3px); background: var(--orange-2); }
.wa-float::before { content: ""; position: absolute; inset: -1px; border: 2px solid var(--orange); border-radius: 4px; animation: wa-ring 2.8s var(--ease-out) infinite; }
.wa-float .wa-tip {
  position: absolute; right: calc(100% + 12px); white-space: nowrap; background: var(--indigo); color: var(--white);
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 2px;
  opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease-out); pointer-events: none;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }

/* --- Asistente técnico con IA --- */
.ai-launch {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: calc(clamp(16px, 2.4vw, 32px) + 70px); z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px 0 14px; border-radius: 4px;
  background: var(--indigo); color: var(--white); border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .07em; text-transform: uppercase;
  box-shadow: 0 14px 30px -12px rgba(14, 13, 46, .6); transition: transform .35s var(--ease-out), background-color .3s;
}
.ai-launch .ico { width: 24px; height: 24px; color: var(--orange-2); }
.ai-launch:hover { transform: translateY(-3px); background: var(--steel); }
html:not(.js) .ai-launch { display: none; }
.ai-panel {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 120;
  width: min(420px, calc(100vw - 32px)); height: min(660px, calc(100svh - 110px));
  display: grid; grid-template-rows: auto 1fr auto auto auto; background: var(--soft); color: var(--text);
  border: 1px solid var(--line-strong); border-top: 3px solid var(--orange); border-radius: 4px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(14, 13, 46, .55); animation: ai-in .4s var(--ease-out);
}
.ai-panel[hidden] { display: none; }
@keyframes ai-in { from { opacity: 0; transform: translateY(14px); } }
.ai-head { display: grid; grid-template-columns: 40px 1fr 40px; gap: 12px; align-items: center; padding: 14px 14px 14px 16px; background: var(--indigo); color: var(--white); }
.ai-mark { width: 40px; height: 40px; }
.ai-mark .bm-gear, .ai-mark .bm-gear-c { fill: currentColor; }
.ai-mark .bm-trace { fill: none; stroke: currentColor; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.ai-mark .bm-arrow, .ai-mark .bm-node { fill: #F2760D; }
.ai-mark .bm-dot { fill: #F0F0F5; }
.ai-mark .bm-dot-o { fill: #FFF6E5; }
.ai-head b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.ai-head small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); margin-top: 3px; }
.ai-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 2px; color: var(--white); }
.ai-close:hover { background: rgba(255, 255, 255, .1); }
.ai-log { overflow-y: auto; padding: 18px 16px; display: grid; gap: 12px; align-content: start; overscroll-behavior: contain; background-color: var(--soft); background-image: var(--g-min-l); background-size: 24px 24px; }
.ai-msg { max-width: 92%; padding: 12px 14px; border-radius: 4px; font-size: 14.5px; line-height: 1.6; }
.ai-msg > * + * { margin-top: 8px; }
.ai-bot { justify-self: start; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--orange); }
.ai-user { justify-self: end; background: var(--indigo); color: var(--white); white-space: pre-wrap; }
.ai-msg ul, .ai-msg ol { padding-left: 20px; }
.ai-msg ul { list-style: square; }
.ai-msg ol { list-style: decimal; }
.ai-msg li + li { margin-top: 4px; }
.ai-msg li::marker { color: var(--orange); }
.ai-msg strong { color: var(--indigo); font-weight: 600; }
.ai-msg code { font-family: var(--mono); font-size: 13px; background: var(--soft); border: 1px solid var(--line); padding: 1px 5px; border-radius: 2px; }
.ai-msg h4 { font-family: var(--display); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--steel); }
.ai-err { justify-self: start; font-size: 13.5px; color: var(--muted); border: 1px dashed var(--orange); background: rgba(231, 109, 9, .05); padding: 10px 12px; border-radius: 4px; }
.ai-err a { color: var(--steel); font-weight: 600; text-decoration: underline; }
.ai-typing { justify-self: start; display: inline-flex; gap: 6px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.ai-typing span { width: 7px; height: 7px; background: var(--orange); animation: ai-dot 1s ease-in-out infinite; }
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ai-sugs { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; background: var(--soft); scrollbar-width: thin; }
.ai-sugs[hidden] { display: none; }
.ai-sug { flex: none; max-width: 240px; text-align: left; font-size: 12.5px; line-height: 1.35; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--white); color: var(--indigo); transition: border-color .25s, background-color .25s; }
.ai-sug:hover { border-color: var(--orange); background: rgba(231, 109, 9, .06); }
.ai-form { display: grid; grid-template-columns: 1fr 48px; gap: 8px; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); }
.ai-form textarea { resize: none; min-height: 48px; max-height: 140px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--soft); font-size: 14.5px; line-height: 1.45; }
.ai-form textarea:focus { outline: none; border-color: var(--indigo); background: var(--white); box-shadow: 0 0 0 3px rgba(231, 109, 9, .35); }
.ai-send { width: 48px; height: 48px; align-self: end; display: grid; place-items: center; background: var(--orange); color: var(--indigo); border-radius: 2px; transition: background-color .25s; }
.ai-send:hover { background: var(--orange-2); }
.ai-send:disabled { opacity: .5; cursor: wait; }
.ai-note { padding: 0 16px 12px; background: var(--white); font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.ai-note a { color: var(--steel); font-weight: 600; text-decoration: underline; }
body.ai-open .wa-float, body.ai-open .ai-launch { visibility: hidden; }
@media (max-width: 539px) {
  .ai-launch span { display: none; }
  .ai-launch { width: 58px; min-height: 58px; padding: 0; justify-content: center; }
  .ai-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; border-top: 3px solid var(--orange); }
  body.ai-open { overflow: hidden; }
}

/* --- Pie de página --- */
.site-footer { position: relative; padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer-top { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand p { color: var(--on-dark-muted); font-size: 14.5px; max-width: 42ch; margin-top: 18px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: var(--on-dark); display: inline-flex; align-items: center; gap: 10px; }
.footer-col a:hover { color: var(--orange-2); }
.footer-col .ico { width: 18px; height: 18px; color: var(--orange-2); }
.footer-word { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 11.6vw, 10.4rem); line-height: .8; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); margin: 40px 0 -0.08em; user-select: none; white-space: nowrap; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; color: var(--on-dark-muted); font-family: var(--mono); letter-spacing: .04em; position: relative; z-index: 1; background: var(--night); }
.footer-cota { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--on-dark-muted); letter-spacing: .1em; margin-top: 8px; }
.footer-cota::before, .footer-cota::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }

/* =============================================================
   7. Secciones
   ============================================================= */
/* --- Hero general (oscuro) --- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); display: flex; flex-direction: column; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; flex: 1; padding-bottom: 48px; }
.hero-copy { display: grid; gap: 26px; }
.hero .h1 { color: var(--white); }
.ln { display: block; overflow: hidden; padding-bottom: .04em; }
.ln > span { display: block; }
html.js .ln > span { animation: ln-up 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes ln-up { from { transform: translateY(105%); } to { transform: none; } }
html.js .hero-fade { animation: fade-up 1s var(--ease-out) both; animation-delay: var(--dl, .5s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-sub { color: var(--on-dark-muted); font-size: clamp(1rem, .95rem + .3vw, 1.14rem); line-height: 1.75; max-width: 60ch; }
.hero-visual { position: relative; width: 100%; max-width: 620px; justify-self: center; }
.hero-facets { right: 0; bottom: 0; width: min(560px, 70vw); z-index: 1; opacity: .9; }

/* Visor de coordenadas y cruz de cursor */
.readout { position: absolute; left: 0; bottom: -6px; display: flex; gap: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--on-dark-muted); }
.readout b { color: var(--orange-2); font-weight: 500; }
.xh { position: absolute; z-index: 1; pointer-events: none; background: rgba(245, 118, 14, .35); opacity: 0; transition: opacity .4s; }
.xh-x { left: 0; right: 0; top: 0; height: 1px; transform: translateY(var(--cy, 50%)); }
.xh-y { top: 0; bottom: 0; left: 0; width: 1px; transform: translateX(var(--cx, 50%)); }
[data-coords-zone].is-tracking .xh { opacity: 1; }

/* Engranaje técnico del hero */
.hero-gear { width: 100%; height: auto; overflow: visible; }
.hero-gear .cl { fill: none; stroke: var(--orange-2); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 22 5 3 5; }
.hero-gear .ln-main { fill: none; stroke: var(--on-dark); stroke-width: 1.6; }
.hero-gear .ln-thin { fill: none; stroke: var(--on-dark-muted); stroke-width: 1; }
.hero-gear .ln-acc { fill: none; stroke: var(--orange); stroke-width: 2.4; }
.hero-gear .fill-acc { fill: var(--orange); }
.hero-gear .dim { fill: none; stroke: var(--on-dark-muted); stroke-width: 1; }
.hero-gear text { font-family: var(--mono); font-size: 13px; fill: var(--on-dark-muted); letter-spacing: .06em; }
.hero-gear text.t-acc { fill: var(--orange-2); }
.spin-slow { transform-origin: 320px 320px; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

/* Franja de capacidades */
.cap-strip { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-dark); }
.cap-strip li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--white); }
.cap-strip li span { font-family: var(--mono); font-size: 11px; color: var(--orange-2); letter-spacing: .1em; }
.cap-strip li::before { content: ""; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); flex: none; }

/* Trazado progresivo de líneas */
html.js [data-draw] { stroke-dasharray: var(--len, none); stroke-dashoffset: var(--len, 0); transition: stroke-dashoffset 2.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .is-drawn [data-draw] { stroke-dashoffset: 0; }

/* --- Revelados --- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.js [data-reveal="cut"] { opacity: 1; transform: none; }
html.js [data-reveal="cut"] > * { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path 1.3s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.js [data-reveal="cut"] > :nth-child(2) { transition-delay: .35s; }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal="cut"].is-in > * { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

/* --- Por qué SIA --- */
.why-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-card { position: relative; background: var(--white); padding: clamp(28px, 3vw, 44px); display: grid; gap: 18px; align-content: start; overflow: hidden; }
.why-card .why-n { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1.2px var(--line-strong); transition: -webkit-text-stroke-color .4s; }
.why-card .ico { width: 40px; height: 40px; color: var(--orange); }
.why-card p { color: var(--muted); font-size: 15px; }
.why-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.why-card:hover::after { transform: scaleX(1); }
.why-card:hover .why-n { -webkit-text-stroke-color: var(--orange); }
.why-head { display: flex; justify-content: space-between; align-items: flex-start; }

/* --- Bloques de líneas de servicio --- */
.lines-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.line-card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 26px; min-height: 440px; padding: clamp(26px, 3vw, 48px);
  background: var(--white); color: var(--text); overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out);
}
.line-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--indigo); clip-path: polygon(0 100%, 0 100%, 0 100%); transition: clip-path .7s var(--ease-out); }
.line-card:hover::before, .line-card:focus-visible::before { clip-path: polygon(0 100%, 0 -60%, 160% 100%); }
.line-card:hover, .line-card:focus-visible { color: var(--on-dark); }
.line-card:hover .h3, .line-card:focus-visible .h3 { color: var(--white); }
.line-card:hover .link-arrow, .line-card:focus-visible .link-arrow { color: var(--orange-2); }
.line-card:hover .lc-list li, .line-card:focus-visible .lc-list li { color: var(--on-dark); border-color: var(--line-dark); }
.lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lc-idx { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--orange); }
.lc-motif { width: 120px; height: 120px; flex: none; color: var(--indigo); transition: color .45s; }
.line-card:hover .lc-motif, .line-card:focus-visible .lc-motif { color: var(--white); }
.lc-motif * { fill: none; stroke: currentColor; stroke-width: 1.4; }
.lc-motif .m-acc { stroke: var(--orange); stroke-width: 2; }
.lc-motif .m-dash { stroke-dasharray: 4 4; }
.lc-body { display: grid; gap: 14px; align-content: end; }
.lc-body .h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1; transition: color .45s; }
.lc-body p { max-width: 50ch; font-size: 15px; }
.lc-list { display: grid; gap: 0; }
.lc-list li { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); transition: color .45s, border-color .45s; }
/* micro-animaciones de motivo */
.m-spark { transform-origin: 60px 88px; transition: transform .6s var(--ease-out); }
.line-card:hover .m-spark { transform: scale(1.25); animation: flicker .25s steps(2) infinite; }
@keyframes flicker { 50% { opacity: .55; } }
.m-gear { transform-origin: 60px 60px; }
.line-card:hover .m-gear { animation: spin 6s linear infinite; }
.m-pulse { stroke-dasharray: 8 100; stroke-dashoffset: 108; }
.line-card:hover .m-pulse { animation: pulse-run 1.4s linear infinite; }
@keyframes pulse-run { to { stroke-dashoffset: 0; } }
.m-wire { stroke-dasharray: 300; stroke-dashoffset: 0; }
.line-card:hover .m-wire { animation: redraw 1.6s var(--ease-out); }
@keyframes redraw { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }

/* --- Metodología / vista explosionada --- */
.xpl { display: grid; gap: 32px; }
.xpl-stage { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; background: var(--white); border: 1px solid var(--line); height: 46vh; min-height: 280px; padding: 14px; display: grid; grid-template-rows: auto 1fr auto; }
.xpl-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.xpl-meta b { color: var(--orange); font-weight: 500; }
.xpl-svg { width: 100%; height: 100%; min-height: 0; }
.xpl-svg .cl { fill: none; stroke: var(--orange); stroke-width: 1; stroke-dasharray: 22 5 3 5; opacity: .7; }
.xpl-svg .xp { will-change: transform; }
.xpl-svg .xp path, .xpl-svg .xp circle { fill: var(--white); stroke: var(--indigo); stroke-width: 1.6; transition: stroke .5s, fill .5s; }
.xpl-svg .xp .hid { fill: none; stroke-dasharray: 6 4; stroke-width: 1; }
.xpl-svg .xp .ln { fill: none; stroke-width: 1; }
.xpl-svg .balloon { transition: opacity .3s; }
.xpl-svg .balloon circle { fill: var(--white); stroke: var(--indigo); stroke-width: 1.4; }
.xpl-svg .balloon path { fill: none; stroke: var(--indigo); stroke-width: 1; }
.xpl-svg .balloon text { font-family: var(--mono); font-size: 13px; fill: var(--indigo); text-anchor: middle; }
.xpl-svg .scan { fill: var(--orange); opacity: 0; transition: opacity .4s; }
.xpl-svg .stamp { opacity: 0; transition: opacity .5s, transform .6s var(--ease-out); transform: translateY(-8px); }
.xpl-svg .stamp rect { fill: var(--orange); }
.xpl-svg .stamp path { fill: none; stroke: var(--indigo); stroke-width: 3; }
.xpl-svg .stamp text { font-family: var(--display); font-weight: 700; font-size: 17px; fill: var(--indigo); letter-spacing: .12em; }
.xpl.s0 .scan { opacity: .85; animation: scan 2.6s var(--ease-soft) infinite alternate; }
@keyframes scan { from { transform: translateX(40px); } to { transform: translateX(680px); } }
.xpl.s2 .xp path, .xpl.s2 .xp circle { stroke: var(--orange); }
.xpl.s2 .xp .hid { stroke: var(--orange); }
.xpl.s3 .stamp { opacity: 1; transform: none; }
.xpl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.xpl-legend span b { color: var(--orange); font-weight: 500; margin-right: 4px; }
.xpl-steps { display: grid; }
.xpl-step { min-height: 62vh; display: grid; align-content: center; gap: 14px; padding: 24px 0 24px 28px; border-left: 1px solid var(--line); position: relative; }
.xpl-step::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease-out); }
.xpl-step.is-active::before { transform: scaleY(1); }
.xpl-step .step-n { font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 2rem + 4vw, 6rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.4px var(--line-strong); transition: -webkit-text-stroke-color .5s, color .5s; }
.xpl-step.is-active .step-n { color: var(--indigo); -webkit-text-stroke-color: var(--indigo); }
.xpl-step p { color: var(--muted); max-width: 52ch; }
html:not(.js) .xpl-stage { position: relative; top: 0; }

/* --- Proyecto destacado --- */
.feature { display: grid; gap: 40px; align-items: center; }
.feature-media { position: relative; }
.feature-media .gear-frame { position: absolute; width: 38%; right: -4%; bottom: -12%; }
.feature-copy { display: grid; gap: 22px; }
.feature-copy p { color: var(--muted); }
.spec-table { display: grid; border-top: 1px solid var(--line); }
.spec-table div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec-table dd { color: var(--indigo); font-weight: 500; }
.cad-dark .spec-table, .cad-dark .spec-table div { border-color: var(--line-dark); }
.cad-dark .spec-table dd { color: var(--white); }
.cad-dark .spec-table dt { color: var(--on-dark-muted); }

/* --- Testimonios --- */
.quotes { display: grid; gap: 20px; }
.quote { position: relative; background: var(--white); border: 1px solid var(--line); padding: 40px 32px 32px; display: grid; gap: 24px; align-content: space-between; }
.quote::before { content: "["; position: absolute; top: 4px; left: 22px; font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--orange); }
.quote blockquote p { font-size: 15.5px; line-height: 1.75; color: var(--text); }
.quote figcaption { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote figcaption b { font-family: var(--display); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--steel); }
.quote figcaption span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* --- Sectores --- */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.sector { background: var(--night); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 14px; align-content: start; min-height: 190px; transition: background-color .35s; position: relative; }
.sector:hover { background: var(--indigo); }
.sector .ico { width: 38px; height: 38px; color: var(--orange-2); transition: transform .5s var(--ease-out); }
.sector:hover .ico { transform: translateY(-4px); }
.sector h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); text-transform: uppercase; letter-spacing: .03em; color: var(--white); line-height: 1.1; }
.sector p { font-size: 13.5px; color: var(--on-dark-muted); line-height: 1.6; }
.sector .s-idx { position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: 11px; color: var(--on-dark-muted); }

/* --- Llamado final --- */
.cta { position: relative; overflow: hidden; background: var(--indigo); color: var(--on-dark); padding-block: clamp(72px, 9vw, 128px); }
.cta .container { position: relative; z-index: 2; display: grid; gap: 28px; }
.cta .h2 { color: var(--white); max-width: 18ch; }
.cta p { color: var(--on-dark-muted); max-width: 60ch; }
.cta-facets { right: -40px; top: 0; height: 100%; width: auto; opacity: 1; }

/* --- Hero de páginas internas --- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) 0 clamp(56px, 7vw, 96px); }
.page-hero .container { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; }
.page-hero-copy { display: grid; gap: 22px; }
.page-hero .h1 { color: var(--white); font-size: clamp(2.3rem, 1.1rem + 4.4vw, 5.2rem); }
.page-hero .hero-sub { max-width: 58ch; }
.s-visual { position: relative; width: 100%; max-width: 600px; justify-self: center; }
.s-visual .ph, .s-visual > .ph-img { width: 78%; margin-left: auto; }
.s-visual .motif { position: absolute; left: 0; bottom: -8%; width: 74%; }
.s-visual .motif--full { position: relative; inset: auto; width: 100%; }

/* motivo Fabricación: chispas y corte */
.motif-fab { position: relative; aspect-ratio: 4 / 3; }
.motif-fab svg, .motif-fab canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.motif-fab .kerf { fill: none; stroke: var(--night); stroke-width: 3.5; }
.motif-fab .kerf-hot { fill: none; stroke: var(--orange-2); stroke-width: 2.2; }
.motif-fab .plate-edge { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.motif-fab .fab-label { font-family: var(--mono); font-size: 11px; fill: var(--on-dark-muted); letter-spacing: .1em; }
/* motivo Diseño: wireframe CAD */
.wire { width: 100%; height: auto; overflow: visible; }
.wire .w-edge { fill: none; stroke: var(--on-dark); stroke-width: 1.4; }
.wire .w-hid { fill: none; stroke: var(--on-dark-muted); stroke-width: 1; stroke-dasharray: 5 4; }
.wire .w-dim { fill: none; stroke: var(--orange-2); stroke-width: 1; }
.wire .w-acc { fill: none; stroke: var(--orange); stroke-width: 2; }
.wire .w-ax-x { stroke: var(--orange); }
.wire text { font-family: var(--mono); font-size: 12px; fill: var(--orange-2); letter-spacing: .06em; }
.wire text.t-mut { fill: var(--on-dark-muted); }
.wire .w-node { fill: var(--orange); }
/* motivo Mantenimiento: engranajes */
.gears { width: 100%; height: auto; overflow: visible; }
.gears .g-body { fill: rgba(255, 255, 255, .03); stroke: var(--on-dark); stroke-width: 1.4; }
.gears .g-acc { fill: var(--orange); stroke: none; }
.gears .g-acc-line { fill: none; stroke: var(--orange); stroke-width: 1.6; }
.gears .g-thin { fill: none; stroke: var(--on-dark-muted); stroke-width: 1; }
.gears .g-cl { fill: none; stroke: var(--orange-2); stroke-width: 1; stroke-dasharray: 14 4 3 4; opacity: .6; }
.gears text { font-family: var(--mono); font-size: 12px; fill: var(--on-dark-muted); letter-spacing: .08em; }
.gears .rot-cw { animation: spin var(--t, 20s) linear infinite; }
.gears .rot-ccw { animation: spin-rev var(--t, 20s) linear infinite; }
/* motivo Automatización: circuito y escalera PLC */
.circuit { width: 100%; height: auto; overflow: visible; }
.circuit .c-trace { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.6; }
.circuit .c-pulse { fill: none; stroke: var(--orange-2); stroke-width: 2.4; stroke-dasharray: 7 100; stroke-dashoffset: 107; animation: pulse-run var(--t, 2.4s) linear infinite; animation-delay: var(--dl, 0s); }
.circuit .c-node { fill: var(--night); stroke: var(--orange); stroke-width: 1.6; }
.circuit .c-chip { fill: var(--indigo); stroke: var(--on-dark); stroke-width: 1.4; }
.circuit .c-pin { fill: none; stroke: var(--on-dark-muted); stroke-width: 1.4; }
.circuit text { font-family: var(--mono); font-size: 12px; fill: var(--on-dark); letter-spacing: .1em; }
.circuit .c-led { fill: var(--slate); transition: fill .3s; }
.circuit .c-led.on { fill: var(--orange-2); }
.ladder { width: 100%; height: auto; background: var(--night); border: 1px solid var(--line-dark); }
.ladder .rail { stroke: var(--on-dark-muted); stroke-width: 2; }
.ladder .w { fill: none; stroke: var(--on-dark-muted); stroke-width: 1.6; transition: stroke .25s; }
.ladder .w.on { stroke: var(--orange-2); }
.ladder .el { fill: none; stroke: var(--on-dark); stroke-width: 1.8; transition: stroke .25s, fill .25s; }
.ladder .el.on { stroke: var(--orange-2); }
.ladder rect.el.on { fill: rgba(245, 118, 14, .15); }
.ladder text { font-family: var(--mono); font-size: 10.5px; fill: var(--on-dark-muted); letter-spacing: .06em; }
.ladder text.t-on { fill: var(--orange-2); }
.ladder-wrap { position: absolute; left: 0; bottom: -20%; width: 62%; }
.hero-circuit { position: absolute; z-index: 1; right: -4%; top: 8%; width: min(860px, 72vw); opacity: .32; pointer-events: none; }

/* --- Retos --- */
.challenges { display: grid; gap: 20px; }
.challenge { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 16px; position: relative; transition: border-color .35s, transform .45s var(--ease-out); }
.challenge:hover { border-color: var(--indigo); transform: translateY(-3px); }
.challenge .ch-idx { font-family: var(--mono); font-size: 12px; color: var(--orange); letter-spacing: .14em; }
.challenge h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.2; color: var(--indigo); text-transform: none; }
.challenge .ch-ans { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); font-size: 15px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.challenge .ch-ans .ico { width: 20px; height: 20px; color: var(--orange); margin-top: 3px; }

/* --- Alcance (bloques alternos) --- */
.scope { display: grid; gap: clamp(56px, 7vw, 110px); }
.scope-row { display: grid; gap: 32px; align-items: center; }
.scope-copy { display: grid; gap: 16px; }
.scope-copy .sc-idx { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--orange); display: flex; align-items: center; gap: 12px; }
.scope-copy .sc-idx::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--orange); }
.scope-copy p { color: var(--muted); }
.specs { display: grid; gap: 0; margin-top: 6px; border-top: 1px solid var(--line); }
.specs li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text); }
.specs li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; background: var(--orange); }
.scope-media { position: relative; }
.scope-media .dimline { position: absolute; left: 0; right: 0; bottom: -26px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.scope-media .dimline::before, .scope-media .dimline::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* --- Pasos de metodología (chevrons) --- */
.steps { display: grid; gap: 12px; counter-reset: st; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.step .st-n { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: .9; color: var(--orange); }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; color: var(--indigo); line-height: 1.15; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.cad-dark .step { background: rgba(255, 255, 255, .03); border-color: var(--line-dark); }
.cad-dark .step h3 { color: var(--white); }
.cad-dark .step p { color: var(--on-dark-muted); }

/* --- Integración entre líneas --- */
.integ { display: grid; gap: 40px; align-items: center; }
.integ-copy { display: grid; gap: 18px; }
.integ-copy .integ-quote { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.08; text-transform: uppercase; color: var(--white); }
.integ-map { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.integ-node { position: relative; display: grid; gap: 10px; padding: 22px 20px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .02); color: var(--on-dark); transition: border-color .3s, background-color .3s; min-height: 140px; align-content: space-between; }
.integ-node .ico { width: 30px; height: 30px; color: var(--orange-2); }
.integ-node b { font-family: var(--display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.integ-node small, .integ-node b { display: block; }
.integ-node small { margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--on-dark-muted); text-transform: uppercase; }
a.integ-node:hover { border-color: var(--orange); background: rgba(231, 109, 9, .08); }
.integ-node[aria-current] { background: var(--orange); color: var(--indigo); border-color: var(--orange); }
.integ-node[aria-current] .ico, .integ-node[aria-current] small { color: var(--indigo); }
.integ-hub { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--night); border: 1px solid var(--orange); z-index: 2; }
.integ-hub svg { width: 44px; height: 44px; }

/* --- Preguntas frecuentes --- */
.faq { max-width: 920px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: grid; grid-template-columns: 54px 1fr 32px; gap: 12px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-n { font-family: var(--mono); font-size: 12px; color: var(--orange); letter-spacing: .1em; }
.faq summary .q-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem); color: var(--indigo); line-height: 1.25; }
.faq summary .q-i { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 2px; transition: background-color .3s, transform .4s var(--ease-out); }
.faq summary .q-i .ico { width: 16px; height: 16px; }
.faq summary:hover .q-t { color: var(--steel); }
.faq details[open] summary .q-i { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); color: var(--indigo); }
.faq .faq-a { padding: 0 44px 26px 66px; color: var(--muted); }
.faq details[open] .faq-a { animation: fade-up .5s var(--ease-out); }

/* --- Proyectos --- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 2px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--indigo); background: var(--white); transition: background-color .25s, color .25s, border-color .25s; }
.filter:hover { border-color: var(--indigo); }
.filter[aria-pressed="true"] { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.proj-grid { display: grid; gap: 20px; }
.proj-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .45s var(--ease-out), opacity .4s; }
.proj-card:hover { border-color: var(--indigo); transform: translateY(-3px); }
.proj-card[hidden] { display: none; }
.proj-card .ph { border-radius: 0; }
.proj-body { padding: 24px; display: grid; gap: 12px; align-content: start; }
.proj-body .tag { color: var(--orange); }
.proj-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; color: var(--steel); line-height: 1.1; }
.proj-body p { color: var(--muted); font-size: 14.5px; }
.proj-card--soon .ph { background-color: #2B2E63; }
.soon { justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo); background: var(--orange); padding: 4px 9px; border-radius: 2px; }
.case { display: grid; gap: 48px; }
.case-head { display: grid; gap: 22px; }
.case-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-cell { background: var(--white); padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 12px; align-content: start; }
.case-cell .tag { color: var(--orange); }
.case-cell p { color: var(--muted); font-size: 15px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery .g-main { grid-column: 1 / -1; }

/* --- Nosotros --- */
.about { display: grid; gap: 48px; align-items: center; }
.about-copy { display: grid; gap: 20px; }
.about-copy p { color: var(--muted); }
.mv { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.mv-cell { background: var(--night); padding: clamp(28px, 3.4vw, 56px); display: grid; gap: 18px; align-content: start; position: relative; overflow: hidden; }
.mv-cell .tag { color: var(--orange-2); }
.mv-cell p { color: var(--on-dark); font-size: clamp(1rem, .95rem + .35vw, 1.2rem); line-height: 1.7; }
.mv-cell .mv-big { position: absolute; right: -10px; bottom: -30px; font-family: var(--display); font-weight: 700; font-size: 160px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); pointer-events: none; }
.disc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.disc { background: var(--white); padding: 24px; display: grid; gap: 12px; }
.disc .ico { width: 34px; height: 34px; color: var(--orange); }
.disc b { font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; color: var(--steel); letter-spacing: .03em; }

/* --- Contacto --- */
.contact { display: grid; gap: 40px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 22px; position: relative; }
.form::before { content: ""; position: absolute; top: -1px; left: -1px; width: 120px; height: 3px; background: var(--orange); }
.form-grid { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); font-weight: 500; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--soft);
  font-size: 15px; color: var(--text); transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2316164D' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: var(--white); box-shadow: 0 0 0 3px rgba(231, 109, 9, .35); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #B3261E; }
.field-err { font-size: 13px; color: #B3261E; min-height: 0; }
.field-hint { font-size: 12.5px; color: var(--muted); }
.file-drop { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 2px; background: var(--soft); transition: border-color .25s, background-color .25s; }
.file-drop:hover, .file-drop.is-over { border-color: var(--orange); background: rgba(231, 109, 9, .05); }
.file-drop .ico { width: 36px; height: 36px; color: var(--orange); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop b { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--indigo); display: block; }
.file-drop small { color: var(--muted); font-size: 12.5px; }
.file-list { font-family: var(--mono); font-size: 12px; color: var(--steel); display: grid; gap: 4px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--orange); background: var(--soft); font-size: 14.5px; }
.form-status.is-visible { display: grid; gap: 12px; }
.form-status b { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--indigo); font-size: 17px; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
.contact-aside { display: grid; gap: 20px; }
.c-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 22px; background: var(--white); border: 1px solid var(--line); transition: border-color .3s; }
a.c-card:hover { border-color: var(--orange); }
.c-card .c-ico { width: 48px; height: 48px; display: grid; place-items: center; background: var(--indigo); color: var(--orange-2); border-radius: 2px; }
.c-card .tag { display: block; margin-bottom: 4px; }
.c-card b { font-family: var(--display); font-size: 1.15rem; letter-spacing: .03em; color: var(--indigo); word-break: break-word; }
.c-card p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.geo { position: relative; overflow: hidden; padding: 26px; display: grid; gap: 10px; min-height: 220px; align-content: end; }
.geo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo .geo-ring { fill: none; stroke: var(--orange); stroke-width: 1.2; }
.geo .geo-cl { stroke: var(--on-dark-muted); stroke-width: 1; stroke-dasharray: 14 4 3 4; }
.geo .geo-pulse { fill: none; stroke: var(--orange-2); stroke-width: 1.4; transform-origin: center; transform-box: fill-box; animation: geo-pulse 3s var(--ease-out) infinite; }
@keyframes geo-pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.geo > div { position: relative; z-index: 1; }
.geo b { font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; color: var(--white); letter-spacing: .04em; }

/* --- 404 --- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.nf .h1 { color: var(--white); }
.nf p { color: var(--on-dark-muted); margin: 20px auto 32px; max-width: 46ch; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .cap-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
  .disc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .challenges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery .g-main { grid-column: span 2; grid-row: span 2; }
  .gallery .g-main .ph-img { height: 100%; aspect-ratio: auto; }
  .mv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .cap-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0; }
  .cap-strip li { padding: 22px 18px; border-bottom: 0; border-left: 1px solid var(--line-dark); font-size: 14px; }
  .cap-strip li:first-child { border-left: 0; padding-left: 0; }
  .xpl { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .xpl-stage { height: calc(100vh - var(--header-h) - 48px); top: calc(var(--header-h) + 24px); padding: 22px; }
  .xpl-steps { order: 2; }
  .xpl-step { min-height: 80vh; padding-left: 40px; }
  .feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta .container { grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; }
  .page-hero .container { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .scope-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
  .scope-row:nth-child(even) .scope-media { order: 2; }
  .steps { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 0; }
  .step { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); padding: 30px 38px 30px 42px; border: 0; margin-right: -12px; min-height: 250px; }
  .step:first-child { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); padding-left: 28px; }
  .step:nth-child(odd) { background: var(--white); }
  .step:nth-child(even) { background: #EBEBF2; }
  .cad-dark .step:nth-child(odd) { background: var(--indigo); }
  .cad-dark .step:nth-child(even) { background: #1E1E5C; }
  .integ { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; }
  .proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proj-card--feature { grid-column: span 2; grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
  .proj-card--feature .ph { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; }
  .contact { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .disc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .nav-list { gap: 8px; }
  .lines-grid .line-card { min-height: 500px; }
}
@media (max-width: 959px) {
  .hero { min-height: auto; }
  .hero-visual { max-width: 460px; }
  .s-visual { max-width: 480px; }
  .xpl-stage { margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
  .feature-media .gear-frame { width: 34%; right: 0; bottom: -10%; }
  .ladder-wrap { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
  .faq .faq-a { padding: 0 0 22px 66px; }
}
@media (max-width: 539px) {
  .brand-text small { display: none; }
  .faq summary { grid-template-columns: 38px 1fr 32px; }
  .faq .faq-a { padding: 0 0 22px 50px; }
  .spec-table div { grid-template-columns: 1fr; gap: 2px; }
  .actions .btn { width: 100%; }
  .readout { font-size: 10.5px; gap: 10px; }
}

/* =============================================================
   9. Movimiento reducido (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin-slow, .gears .rot-cw, .gears .rot-ccw, .circuit .c-pulse, .wa-float::before, .geo .geo-pulse, .xpl.s0 .scan,
  .line-card:hover .m-spark, .line-card:hover .m-gear, .line-card:hover .m-pulse { animation: none; }
  .circuit .c-pulse { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .5; }
  .ai-typing span { animation-duration: 2.4s; }
  .ai-panel { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01s; }
}
