/* systemctl — landing cinemática
   Paleta corporativa: #7CB342 · #333333 · #666666 · #F5F5F5 · #FFFFFF */

/* Fuentes alojadas en el propio sitio (sin peticiones a terceros) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --green: #7CB342;
  --green-soft: rgba(124, 179, 66, .16);
  --green-line: rgba(124, 179, 66, .55);
  --amber: #E0A537;
  --anthracite: #333333;
  --ink: #1b1c1b;          /* antracita profunda para escenas cinemáticas */
  --ink-2: #242624;
  --gray: #666666;
  --cloud: #F5F5F5;
  --white: #FFFFFF;
  --text-on-dark: rgba(255, 255, 255, .92);
  --muted-on-dark: rgba(255, 255, 255, .64);
  --hairline-dark: rgba(255, 255, 255, .12);
  --hairline-light: rgba(51, 51, 51, .12);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: var(--anthracite); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; line-height: 1.4;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.display { font-size: clamp(40px, 6.4vw, 92px); font-weight: 700; }
.h2 { font-size: clamp(30px, 4.2vw, 58px); font-weight: 700; }
.h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted-on-dark); max-width: 58ch; }
.accent { color: var(--green); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .2s var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: var(--anthracite); }
.btn-primary:hover { background: #8cc152; }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--anthracite); color: var(--white); }
.btn-dark:hover { background: #222; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: 15px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--green); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(27, 28, 27, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--hairline-dark); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo img { display: block; height: 34px; width: auto; }
@media (max-width: 860px) { .logo img { height: 30px; } }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--muted-on-dark); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--white); }
.nav .btn { min-height: 42px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease-out), opacity .2s; }

/* ---------- Escenas cinemáticas ---------- */
.scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.scene-media { position: absolute; inset: 0; }
.scene-media canvas, .scene-media img.poster { width: 100%; height: 100%; object-fit: cover; }
.scene-media img.poster { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.scene.is-static .scene-media img.poster { opacity: 1; }
.scene.is-static .scene-media canvas { display: none; }
.scene-shade { position: absolute; inset: 0; pointer-events: none; }
.shade-left { background: linear-gradient(90deg, rgba(20,21,20,.9) 0%, rgba(20,21,20,.62) 38%, rgba(20,21,20,.08) 70%), linear-gradient(0deg, rgba(20,21,20,.75) 0%, rgba(20,21,20,0) 30%); }
.shade-bottom { background: linear-gradient(0deg, rgba(20,21,20,.92) 0%, rgba(20,21,20,.7) 30%, rgba(20,21,20,.1) 62%, rgba(20,21,20,.35) 100%); }
.overlay-bottom { align-items: flex-end; }
.overlay-bottom > .container { justify-content: flex-end; padding-bottom: clamp(48px, 9vh, 96px); }
.connected-copy { max-width: 760px; }
.connected-copy .h2 { max-width: 20ch; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 4px; }
.before-after p { display: grid; gap: 6px; color: var(--text-on-dark); font-size: 16.5px; border-top: 1px solid var(--hairline-dark); padding-top: 14px; }
.before-after span { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); }
.shade-center { background: radial-gradient(ellipse at 50% 45%, rgba(20,21,20,.25) 0%, rgba(20,21,20,.75) 85%), linear-gradient(0deg, rgba(20,21,20,.85) 0%, rgba(20,21,20,0) 40%); }
.scene-overlay { position: absolute; inset: 0; display: flex; align-items: center; padding-top: var(--nav-h); }
.scene-overlay > .container { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.scene-copy { max-width: 640px; display: grid; gap: 22px; }
.scene-copy .h2 { max-width: 15ch; }
.reveal { will-change: opacity, transform; }
.progress-rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 2px; height: 120px; background: var(--hairline-dark); border-radius: 2px; overflow: hidden; }
.progress-rail i { position: absolute; inset: 0; background: var(--green); transform-origin: top; transform: scaleY(0); }

/* Hero */
.hero .scene-copy { max-width: 720px; }
.hero .display { max-width: 13ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 6px; }
.spec-strip { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--hairline-dark); background: rgba(20,21,20,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.spec-strip ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); }
.spec-strip li { display: flex; align-items: center; gap: 10px; }
.spec-strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 86px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); display: flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--green), transparent); }

/* Nodo de sistema (lenguaje visual compartido) */
.node {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(27, 28, 27, .78); border: 1px solid var(--hairline-dark);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark);
  white-space: nowrap; transition: border-color .4s var(--ease-out), color .4s, background-color .4s, box-shadow .4s;
}
.node::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background-color .4s, box-shadow .4s; }
.node.is-on { border-color: var(--green-line); }
.node.is-on::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.node.is-ai { border-color: var(--green-line); color: var(--white); }
.node.is-ai::before { background: var(--green); }
.node.is-warn { border-color: rgba(224,165,55,.6); }
.node.is-warn::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(224,165,55,.18); }
.node.is-human::before { background: var(--white); }

/* Problema: chips desconectados */
.problem-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.problem-list li { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); color: var(--white); }
.problem-list li span.k { width: 34px; height: 1.5px; background: rgba(255,255,255,.35); flex: none; }
.frag-layer { position: absolute; inset: 0; pointer-events: none; }
.frag-layer svg { width: 100%; height: 100%; }
.frag-path { fill: none; stroke: rgba(255,255,255,.38); stroke-width: 1.25; stroke-dasharray: 5 7; }
.frag-dot { fill: rgba(255,255,255,.75); }
.frag-node { position: absolute; transform: translate(-50%, -50%); }

/* Flujo de automatización (overlay) */
.flow { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-46%); width: min(460px, 42vw); }
.flow-col { display: grid; justify-items: center; gap: 0; }
.flow-col .node { min-width: 170px; justify-content: center; }
.flow-link { width: 2px; height: 34px; background: var(--hairline-dark); position: relative; overflow: hidden; }
.flow-link i { position: absolute; inset: 0; background: var(--green); transform-origin: top; transform: scaleY(0); }
.flow-fan { position: relative; width: 100%; height: 60px; }
.flow-fan svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-fan path { fill: none; stroke: var(--hairline-dark); stroke-width: 1.5; }
.flow-fan path.lit { stroke: var(--green); }
.flow-row { display: flex; justify-content: space-between; width: 100%; gap: 10px; }
.flow-row .node { min-width: 0; flex: 1; justify-content: center; }
.flow-caption { margin-top: 18px; font-size: 13px; color: var(--muted-on-dark); text-align: center; }
.cap-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cap-pill { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--hairline-dark); font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--white); background: rgba(27,28,27,.5); }
.cap-pill.is-on { border-color: var(--green-line); background: rgba(124,179,66,.12); }

/* Secciones de contenido */
.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.section-dark { background: var(--ink); }
.section-ink2 { background: var(--ink-2); }
.section-light { background: var(--cloud); color: var(--anthracite); }
.section-white { background: var(--white); color: var(--anthracite); }
.section-light .lead, .section-white .lead { color: var(--gray); }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card {
  position: relative; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--radius);
  background: rgba(255,255,255,.03); border: 1px solid var(--hairline-dark);
  display: grid; gap: 14px; align-content: start;
}
.card p { color: var(--muted-on-dark); font-size: 16px; }
.card .num { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: .1em; }
.card-primary { border-color: var(--green-line); background: linear-gradient(180deg, rgba(124,179,66,.09), rgba(124,179,66,0) 70%); }
.card .card-nodes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card .card-nodes .node { font-size: 10.5px; padding: 6px 10px; }
.section-light .card, .section-white .card { background: var(--white); border-color: var(--hairline-light); }
.section-light .card p, .section-white .card p { color: var(--gray); }

.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hairline-dark); }
.outcomes > div { padding: 28px 28px 0 0; display: grid; gap: 10px; }
.outcomes > div + div { padding-left: 28px; border-left: 1px solid var(--hairline-dark); }
.outcomes h3 { font-size: 19px; font-weight: 600; }
.outcomes p { color: var(--muted-on-dark); font-size: 16px; }

/* Logística */
.logistics-scene .scene-overlay > .container { justify-content: flex-start; padding-top: clamp(24px, 6vh, 64px); }
.areas { position: relative; display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; align-items: center; height: 100%; padding-bottom: 6vh; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: area; }
.area-list li { counter-increment: area; }
.area-list button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 12px 0 12px 18px; border-left: 2px solid var(--hairline-dark);
  color: var(--muted-on-dark); display: grid; gap: 6px;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.area-list .t { font-family: var(--font-head); font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; }
.area-list .d { font-size: 14.5px; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .4s; color: var(--muted-on-dark); }
.area-list li.is-active button { color: var(--white); border-color: var(--green); }
.area-list li.is-active .d { max-height: 90px; opacity: 1; }
.area-viz { position: relative; justify-self: end; width: min(520px, 100%); min-height: 300px; }
.viz { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); pointer-events: none; }
.viz.is-active { opacity: 1; transform: none; }
.viz-panel { width: 100%; padding: 22px; border-radius: var(--radius); background: rgba(20,21,20,.72); border: 1px solid var(--hairline-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 14px; }
.viz-title { font-family: var(--font-head); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); }
.viz-row { display: flex; align-items: center; gap: 10px; }
.viz-row .line { flex: 1; height: 1.5px; background: var(--green-line); position: relative; overflow: hidden; }
.viz-row .line::after { content: ""; position: absolute; top: -1.5px; left: -20%; width: 20%; height: 4px; border-radius: 4px; background: var(--green); animation: packet 2.4s var(--ease-out) infinite; }
.viz-row .line.warn { background: rgba(224,165,55,.5); }
.viz-row .line.warn::after { background: var(--amber); }
.viz-row .line.idle::after { animation: none; display: none; }
@keyframes packet { from { left: -20%; } to { left: 100%; } }
.viz-stack { display: grid; gap: 10px; justify-items: center; }
.viz-stack .arrow-down { width: 1.5px; height: 18px; background: var(--green-line); }
.viz-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.viz-bars { display: grid; gap: 6px; }
.viz-bars i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); }
.viz-bars i.ok { background: rgba(124,179,66,.55); }
.viz-bars i.diff { background: rgba(224,165,55,.75); }
.viz-note { font-size: 13.5px; color: var(--muted-on-dark); }
.viz-note b { color: var(--white); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.badge-ok { background: rgba(124,179,66,.16); color: var(--green); }
.badge-warn { background: rgba(224,165,55,.16); color: var(--amber); }
.logistics-note { margin-top: 28px; font-size: 14px; color: var(--muted-on-dark); max-width: 60ch; }
.area-cards { display: none; }

/* Control humano */
.control-flow { position: absolute; right: var(--gutter); bottom: clamp(32px, 7vh, 72px); top: auto; width: min(380px, 38vw); display: grid; gap: 0; justify-items: stretch; }
.control-flow .node { justify-content: flex-start; }
.control-flow .flow-link { justify-self: center; }
.review-card {
  margin: 4px 0; padding: 16px 18px; border-radius: 12px;
  background: rgba(20,21,20,.86); border: 1px solid rgba(224,165,55,.55);
  display: grid; gap: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.review-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted-on-dark); }
.review-card .row strong { color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.review-card .skel { display: grid; gap: 6px; }
.review-card .skel i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); }
.review-card .skel i:nth-child(2) { width: 70%; }
.review-card .actions { display: flex; gap: 8px; }
.review-card .actions span { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; font-family: var(--font-head); border: 1px solid var(--hairline-dark); color: var(--muted-on-dark); transition: all .35s var(--ease-out); }
.review-card .actions span.approve.is-on { background: var(--green); border-color: var(--green); color: var(--anthracite); }
.review-card.is-approved { border-color: var(--green-line); }
.governance { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.governance .node { font-size: 11px; }

/* Flujo de ejemplo (diagrama) */
.workflow { position: relative; }
.workflow-pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 32px; }
.workflow .h2 { font-size: clamp(30px, 3.4vw, 48px); }
.workflow-grid { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.wf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.wf-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 12px 0; color: var(--muted-on-dark); transition: color .4s var(--ease-out); font-size: 16px; }
.wf-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 13px; font-weight: 600; border: 1px solid var(--hairline-dark); transition: all .4s var(--ease-out); }
.wf-steps li.is-done { color: var(--text-on-dark); }
.wf-steps li.is-done::before { border-color: var(--green-line); color: var(--green); }
.wf-steps li.is-active { color: var(--white); }
.wf-steps li.is-active::before { background: var(--green); border-color: var(--green); color: var(--anthracite); }
.wf-diagram { position: relative; width: 100%; aspect-ratio: 520 / 620; max-width: 540px; justify-self: end; }
.wf-diagram svg { width: 100%; height: 100%; overflow: visible; }
.wf-edge { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; }
.wf-edge-lit { fill: none; stroke: var(--green); stroke-width: 2; }
.wf-node rect { fill: #232523; stroke: rgba(255,255,255,.14); stroke-width: 1; transition: stroke .4s, fill .4s; }
.wf-node text { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; fill: rgba(255,255,255,.62); text-transform: uppercase; transition: fill .4s; }
.wf-node circle { fill: rgba(255,255,255,.25); transition: fill .4s; }
.wf-node.is-on rect { stroke: var(--green-line); fill: #26301f; }
.wf-node.is-on text { fill: #fff; }
.wf-node.is-on circle { fill: var(--green); }
.wf-node.is-warn rect { stroke: rgba(224,165,55,.7); }
.wf-node.is-warn circle { fill: var(--amber); }
.wf-packet { fill: var(--green); }
.wf-note { margin-top: 26px; font-size: 14px; color: var(--muted-on-dark); }
.tag-illustrative { display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hairline-dark); font-size: 12px; font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); }

/* GLOS */
.glos-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.glos-copy { display: grid; gap: 22px; }
.glos-copy p { color: var(--gray); font-size: 17px; max-width: 54ch; }
.glos-mock { position: relative; border-radius: 18px; background: var(--anthracite); padding: 16px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); color: var(--white); }
.glos-mock .bar { display: flex; gap: 6px; padding: 4px 4px 14px; }
.glos-mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.glos-mock .layout { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.glos-mock .side { border-radius: 10px; background: rgba(255,255,255,.05); display: grid; gap: 10px; padding: 14px 10px; align-content: start; justify-items: center; }
.glos-mock .side i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.1); }
.glos-mock .side i.on { background: var(--green); }
.glos-mock .main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mod { border-radius: 10px; background: rgba(255,255,255,.05); padding: 14px; display: grid; gap: 10px; align-content: start; min-height: 118px; }
.mod h4 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 8px; }
.mod h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.mod.warn h4::before { background: var(--amber); }
.mod .sk { display: grid; gap: 6px; }
.mod .sk i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); }
.mod .sk i.g { background: rgba(124,179,66,.5); }
.mod .sk i.a { background: rgba(224,165,55,.6); }
.mod .bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.mod .bars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.14); }
.mod .bars i.g { background: rgba(124,179,66,.6); }
.mod.wide { grid-column: span 2; min-height: 0; }
.mock-caption { margin-top: 14px; font-size: 13px; color: var(--gray); text-align: right; }

/* Metodología */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1.5px; background: var(--hairline-light); }
.steps .step-line { position: absolute; left: 0; top: 19px; height: 1.5px; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
.step { position: relative; padding-right: 28px; display: grid; gap: 14px; align-content: start; }
.step .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--hairline-light); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--anthracite); position: relative; z-index: 1; transition: all .4s var(--ease-out); }
.step.is-on .dot { background: var(--green); border-color: var(--green); }
.step h3 { font-size: 20px; font-weight: 600; color: var(--anthracite); }
.step p { color: var(--gray); font-size: 16px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--hairline-light); }
.faq-list details { border-bottom: 1px solid var(--hairline-light); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: clamp(17px, 1.4vw, 20px); color: var(--anthracite); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--anthracite); border-bottom: 2px solid var(--anthracite); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list .answer { padding: 0 44px 26px 0; color: var(--gray); font-size: 16.5px; }

/* Cierre */
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.final .scene-copy { max-width: 600px; }
.final .h2 { max-width: 16ch; font-size: clamp(30px, 3.4vw, 50px); }
.final .lead { font-size: 16.5px; }
.form-panel { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius); background: rgba(22, 23, 22, .82); border: 1px solid var(--hairline-dark); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form-panel .field textarea { min-height: 110px; }
.final-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.final-questions li { font-family: var(--font-head); font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; color: var(--white); }
.net-layer { position: absolute; inset: 0; pointer-events: none; }
.net-layer svg { width: 100%; height: 100%; }
.net-edge { fill: none; stroke: rgba(124,179,66,.55); stroke-width: 1.25; }
.net-node { position: absolute; transform: translate(-50%, -50%); }

.contact { padding: clamp(88px, 10vw, 140px) 0; background: var(--ink); border-top: 1px solid var(--hairline-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: 20px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-on-dark); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04); color: var(--white); font: inherit; font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: rgba(255,255,255,.06); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .privacy { font-size: 13px; color: var(--muted-on-dark); }
.form-status { font-size: 14px; color: var(--green); min-height: 1.4em; }

.footer { padding: 36px 0; background: #161716; border-top: 1px solid var(--hairline-dark); font-size: 14px; color: var(--muted-on-dark); }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Loader del primer frame */
.scene-loader { position: absolute; left: var(--gutter); bottom: 24px; height: 2px; width: 120px; background: var(--hairline-dark); overflow: hidden; border-radius: 2px; transition: opacity .5s; }
.scene-loader i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.scene.is-ready .scene-loader { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .flow, .control-flow { width: min(380px, 44vw); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .steps::before, .steps .step-line { display: none; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  body { font-size: 16.5px; }
  .nav-links, .nav .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open { background: rgba(27,28,27,.97); height: auto; padding-bottom: 20px; align-items: flex-start; }
  .nav.is-open .container { flex-wrap: wrap; padding-top: 10px; }
  .nav.is-open .nav-links { display: grid; gap: 4px; width: 100%; order: 3; padding-top: 12px; }
  .nav.is-open .nav-links a { display: block; padding: 12px 0; font-size: 19px; color: var(--white); }
  .nav.is-open .btn-nav { display: inline-flex; order: 4; margin-top: 10px; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .display { font-size: clamp(38px, 10.5vw, 56px); }
  .h2 { font-size: clamp(30px, 8.4vw, 42px); }
  .lead { font-size: 17px; }
  .shade-left { background: linear-gradient(0deg, rgba(20,21,20,.95) 0%, rgba(20,21,20,.78) 45%, rgba(20,21,20,.2) 80%); }
  .scene-overlay { align-items: flex-end; }
  .scene-overlay > .container { justify-content: flex-end; padding-bottom: 96px; }
  .hero .scene-overlay > .container { padding-bottom: 150px; }
  .scroll-hint, .progress-rail { display: none; }
  .spec-strip ul { gap: 6px 18px; font-size: 11px; padding: 14px 0; }

  /* overlays de flujo en móvil: arriba, compactos */
  .flow, .control-flow { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 16px); bottom: auto; width: auto; transform: none; }
  .flow-col .node { min-width: 0; }
  .flow .node, .control-flow .node { font-size: 10.5px; padding: 6px 10px; }
  .flow-link { height: 16px; }
  .flow-fan { height: 34px; }
  .flow-caption { display: none; }
  .control-flow .review-card { padding: 12px 14px; }
  .frag-layer { display: none; }
  .before-after { grid-template-columns: 1fr; gap: 14px; }
  .net-layer .net-node { font-size: 9.5px; padding: 5px 8px; }
  .control-flow > .node, .control-flow > .flow-link { display: none; }
  .control-flow .review-card { margin: 0; }

  .areas { grid-template-columns: 1fr; gap: 0; align-content: end; }
  .area-viz { display: none; }
  .area-list { display: none; }
  .area-mobile { display: block; }
  .area-cards { display: grid; gap: 12px; }
  .area-card { padding: 20px; border-radius: 12px; border: 1px solid var(--hairline-dark); background: rgba(255,255,255,.03); display: grid; gap: 8px; }
  .area-card h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
  .area-card h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
  .area-card p { font-size: 15px; color: var(--muted-on-dark); }

  .outcomes { grid-template-columns: 1fr; }
  .outcomes > div, .outcomes > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--hairline-dark); }
  .workflow-grid, .glos-grid, .faq-grid, .contact-grid, .final-grid { grid-template-columns: 1fr; }
  /* En móvil el cierre no se fija: texto y formulario uno debajo del otro */
  .final { height: auto; min-height: 100svh; }
  .final .scene-media { position: absolute; inset: 0; }
  .final .scene-overlay { position: relative; padding: calc(var(--nav-h) + 32px) 0 48px; }
  .final .scene-overlay > .container { height: auto; }
  .final .scene-shade { background: rgba(20,21,20,.78); }
  .final .reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .wf-diagram { max-width: 420px; justify-self: center; order: -1; }
  .workflow-pin { min-height: 0; padding: 40px 0; }
  .glos-mock .main { grid-template-columns: 1fr; }
  .mod.wide { grid-column: auto; }
  .glos-mock .layout { grid-template-columns: 1fr; }
  .glos-mock .side { display: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
}

/* Logística en escritorio usa escena; en móvil, tarjetas en sección normal */
.logistics-mobile { display: none; }
@media (max-width: 860px) {
  .logistics-mobile { display: block; }
}


/* Selector de idioma */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 6px; font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; }
.lang-switch a { padding: 8px 8px; text-decoration: none; color: var(--muted-on-dark); border-radius: 6px; transition: color .2s; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="true"] { color: var(--white); }
.lang-switch a + a { position: relative; }
.lang-switch a + a::before { content: ""; position: absolute; left: -1px; top: 50%; height: 12px; width: 1px; background: var(--hairline-dark); transform: translateY(-50%); }
@media (min-width: 1141px) { .lang-switch { margin-left: 0; } }

/* Transición al saltar entre secciones lejanas desde el menú */
.veil { position: fixed; inset: 0; z-index: 45; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .28s var(--ease-out); }
.veil.is-on { opacity: 1; }

.nav-links { gap: clamp(18px, 2vw, 30px); }
@media (max-width: 1140px) {
  .nav-links, .nav .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open { background: rgba(27,28,27,.97); height: auto; padding-bottom: 20px; align-items: flex-start; }
  .nav.is-open .container { flex-wrap: wrap; padding-top: 10px; }
  .nav.is-open .nav-links { display: grid; gap: 4px; width: 100%; order: 3; padding-top: 12px; }
  .nav.is-open .nav-links a { display: block; padding: 12px 0; font-size: 19px; color: var(--white); }
  .nav.is-open .btn-nav { display: inline-flex; order: 4; margin-top: 10px; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 860px) {
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
.reduced .scene { height: auto; min-height: 100vh; min-height: 100svh; }
.reduced .scene-overlay { position: relative; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
.reduced .scene-media { position: absolute; }
.reduced .reveal { opacity: 1 !important; transform: none !important; }
.reduced .viz { position: relative; opacity: 1; transform: none; margin-bottom: 12px; }
.reduced .area-viz { display: none; }
.reduced .area-list .d { max-height: none; opacity: 1; }
.reduced .area-list li button { color: var(--white); }
.reduced .flow, .reduced .control-flow { position: relative; right: auto; top: auto; bottom: auto; transform: none; margin-top: 32px; width: 100%; max-width: 460px; }
.reduced .hero .scene-overlay > .container { padding-bottom: 80px; }
