/* InsurgentLab · web (revisión)
   Paleta esmeralda + coral: el esmeralda da estructura; el coral dirige la atención;
   el naranja es un gesto de apoyo. Coral y naranja no se usan como color de lectura. */

:root {
  --emerald: #004438;
  --emerald-deep: #003329;
  --emerald-2: #3D8070;
  --emerald-tint: #DCE8E4;
  --coral: #FF4666;
  --lab-orange: #FF8533;
  --graphite: #35414B;
  --white: #F7F5F1;
  --paper: #FFFFFF;
  --stone: #E7E3DC;
  --sage: #7F998C;
  --muted: #5E6870;
  --dim: #BCCFC9;
  --rule-dark: rgba(247, 245, 241, 0.18);
  --rule: #D8D3CA;

  --font-display: "Aptos Display", "Segoe UI Variable Display", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, Arial, sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--white); color: var(--emerald); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; color: var(--emerald); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--emerald); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8em 1.4em; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 1.5px solid transparent; border-radius: 4px; transition: background-color .2s ease, color .2s ease; }
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-ghost { border-color: var(--emerald); color: var(--emerald); }
.btn-ghost:hover { background: var(--emerald); color: var(--white); }
.btn-light { background: var(--white); color: var(--emerald); }
.btn-light:hover { background: var(--paper); }
.btn-ghost-light { border-color: var(--white); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--emerald); }
.btn-small { min-height: 42px; padding: 0.6em 1.1em; font-size: 0.95rem; white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 241, 0.96); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 176px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { white-space: nowrap; font-size: 0.95rem; text-decoration: none; color: var(--graphite); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav ul a:hover { color: var(--emerald); border-bottom-color: var(--emerald); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px; background: none; border: 0; color: var(--emerald); font: 600 0.95rem var(--font-body); cursor: pointer; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--emerald); position: relative; transition: transform .2s ease, background-color .2s ease; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .brand img { width: 156px; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 24px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.1rem; color: var(--emerald); border-bottom: 1px solid var(--rule); }
  .site-nav .btn { align-self: flex-start; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
}

/* hero: texto ≈ 45 %, esquema ≈ 55 % */
.hero { padding: clamp(32px, 4vw, 60px) 0 clamp(56px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: clamp(32px, 3.5vw, 48px); align-items: center; }
.hero .cta-row { gap: 10px; }
.hero .cta-row .btn { padding-left: 1.1em; padding-right: 1.1em; font-size: 0.95rem; }
.hero h1 { max-width: 15ch; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--graphite); max-width: 34em; margin: 1.5rem 0 2.1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* esquema del hero: tres dimensiones que convergen en la ejecución comercial,
   sobre una capa transversal de tecnología */
.schema {
  --tag: 26px;
  --row-pad: clamp(12px, 1.3vw, 18px);
  margin: 0; display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(36px, 4.4vw, 60px) clamp(118px, 12vw, 148px);
  grid-template-areas: "logic logic ." "dims links node" "xf xf xf";
  align-items: center;
}
.schema-dims { grid-area: dims; list-style: none; margin: 0; padding: 0; position: relative; align-self: stretch; display: flex; flex-direction: column; border-top: 1px solid var(--emerald); }
/* eje común: une las tres dimensiones con la capa transversal */
.schema-dims::before { content: ""; position: absolute; left: calc(var(--tag) / 2); top: calc(var(--row-pad) + 10px); bottom: calc(100% / 3 - var(--row-pad) - 10px); border-left: 1px dashed var(--sage); }
.schema-dims > li { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: var(--row-pad) 10px var(--row-pad) calc(var(--tag) + 20px); border-bottom: 1px solid var(--rule); }
.schema-dims > li:last-child { border-bottom-color: var(--emerald); }
.schema-dims > li::after { content: ""; position: absolute; right: -3.5px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--emerald); }
.sd-tag { position: absolute; left: 0; top: calc(var(--row-pad) - 3px); display: grid; place-items: center; width: var(--tag); height: var(--tag); border: 1px solid var(--emerald); background: var(--white); font: 700 0.75rem var(--font-display); color: var(--emerald); }
.sd-main { font: 600 clamp(1rem, 1.35vw, 1.15rem)/1.2 var(--font-display); letter-spacing: 0.07em; text-transform: uppercase; color: var(--emerald); }
/* misma lógica en A, B y C: modelo → rutinas → herramientas */
.sd-chain { list-style: none; position: relative; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.sd-chain::before { content: ""; position: absolute; left: 3px; top: 0.6em; bottom: 0.6em; border-left: 1px solid var(--rule); }
.sd-chain li { position: relative; padding-left: 18px; font-size: 0.9rem; line-height: 1.35; color: var(--graphite); }
.sd-chain li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--emerald); background: var(--white); box-sizing: border-box; }
.sd-chain li:last-child { color: var(--emerald); font-weight: 600; }
.sd-chain li:last-child::before { background: var(--emerald); }
/* principio transversal: el cliente en el centro y las áreas de la empresa coordinadas a su alrededor.
   Pieza secundaria: tipografía pequeña, sin caja, separada por un filete */
.xfn { grid-area: xf; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; align-items: center; }
.xfn-title { margin: 0 0 4px; font: 600 0.95rem/1.3 var(--font-display); color: var(--emerald); }
.xfn-text { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--graphite); }
.xfn-orbit { width: 100%; height: auto; overflow: visible; }
.xo-outer { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
.xo-inner { fill: none; stroke: var(--sage); stroke-width: 1; }
.xo-spoke { fill: none; stroke: var(--rule); stroke-width: 1; }
.xo-area { fill: var(--white); stroke: var(--emerald); stroke-width: 1.25; }
.xo-sales { fill: var(--emerald); }
.xo-sup { fill: var(--sage); }
.xo-client { fill: var(--white); stroke: var(--emerald); stroke-width: 1.5; }
.xo-client-t { font: 700 9.5px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; fill: var(--emerald); text-anchor: middle; }
.xo-l, .xo-s { paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; text-anchor: middle; }
.xo-l { font: 600 11.5px var(--font-body); fill: var(--emerald); }
.xo-l-sales { font-weight: 700; font-size: 12px; }
.xo-s { font: 400 10.5px var(--font-body); fill: var(--muted); }

/* leyenda común sobre los tres ámbitos */
.schema-logic { grid-area: logic; margin: 0 0 12px; padding-left: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: 0.78rem; color: var(--muted); }
.schema-logic b { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald); }
.logic-lead { flex-basis: 100%; margin-bottom: 2px; }
.schema-logic b + b::before { content: "→"; margin: 0 8px; font-weight: 400; color: var(--sage); }

.schema-links { grid-area: links; align-self: stretch; width: 100%; height: 100%; overflow: visible; }
.schema-links path { fill: none; stroke: var(--emerald); stroke-width: 1; vector-effect: non-scaling-stroke; }

.schema-node { grid-area: node; margin: 0; }
.node-core { position: relative; display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 1; width: 100%; border: 1.5px solid var(--coral); border-radius: 50%; text-align: center; }
.node-core::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--stone); border-radius: 50%; }
.node-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.node-text { font: 700 clamp(0.72rem, 0.9vw, 0.82rem)/1.35 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald); }


/* generic section */
.section { padding: var(--section) 0; }
.section-title { margin-bottom: 1rem; }
.section-intro { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-intro p { color: var(--graphite); font-size: 1.12rem; }

/* situations */
.situations { background: var(--paper); }
.situation-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 80px); }
.situation-grid li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-content: start; column-gap: 20px; padding: 1.8rem 0; border-top: 1px solid var(--rule); }
.sit-icon { grid-row: span 2; width: 48px; height: 48px; fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sit-icon .accent { stroke: var(--coral); stroke-width: 2.5; }
.situation-grid h3 { margin-bottom: 0.4rem; }
.situation-grid p { color: var(--graphite); font-size: 1rem; }
.situations-note { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); color: var(--graphite); }

/* areas: visual ≈ 42 %, texto ≈ 58 %, alternando lado */
.area { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.area + .area { border-top: 1px solid var(--rule); }
.area-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.area-flip .area-art { order: 2; }
.area-art img { width: 100%; max-width: 460px; margin: 0 auto; }
.area-letter { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 1rem; border-radius: 6px; background: var(--emerald); color: var(--white); font: 700 1rem var(--font-display); }
.area-text h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 0.9rem; }
.area-lead { margin-bottom: 1.3rem; color: var(--graphite); font-size: 1.1rem; line-height: 1.55; }
/* modelo, rutinas y herramientas: tres filas cortas, misma lógica que el hero */
.area-mrh { position: relative; margin: 0; }
.area-mrh::before { content: ""; position: absolute; left: 4px; top: 1.1rem; bottom: 1.1rem; border-left: 1px solid var(--rule); }
.area-mrh div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.area-mrh div:last-child { border-bottom: 1px solid var(--rule); }
.area-mrh dt { position: relative; padding-left: 20px; font: 600 0.78rem/1.6 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald); }
.area-mrh dt::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 9px; height: 9px; border: 1px solid var(--emerald); border-radius: 50%; background: var(--white); box-sizing: border-box; }
.area-mrh div:last-child dt::before { background: var(--emerald); }
.area-mrh dd { margin: 0; color: var(--graphite); font-size: 0.98rem; line-height: 1.45; }
.area-out { margin-top: 1.2rem; padding: 0.9rem 1.1rem; background: var(--emerald-tint); border-radius: 6px; color: var(--emerald); font-size: 0.95rem; }
.area-out span { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.area-out ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.area-out li { position: relative; padding-left: 12px; }
.area-out li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); }

/* cuando la tecnología permite cambiar el modelo: tres columnas enlazadas con A, B y C */
.ai { background: var(--stone); }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.ai-col { display: flex; flex-direction: column; padding-top: 1.1rem; border-top: 2px solid var(--emerald); }
.ai-from { display: flex; align-items: center; gap: 8px; margin: 0 0 1rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.ai-from span { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--emerald); font: 700 0.7rem var(--font-display); color: var(--emerald); }
.ai-col h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); min-height: 2.5em; margin-bottom: 0.6rem; }
.ai-col > p:not(.ai-from) { flex: 1; color: var(--graphite); font-size: 1rem; }
.ai-viz { width: 100%; height: auto; margin: 1.2rem 0 1rem; padding-top: 14px; border-top: 1px solid var(--rule); overflow: visible; }
.ai-eg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; line-height: 1.4; color: var(--graphite); }
.ai-eg li { position: relative; padding-left: 16px; }
.ai-eg li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; border-top: 1px solid var(--emerald); }
.v-rank circle { fill: none; stroke: var(--sage); stroke-width: 1.25; }
.v-bar { fill: var(--white); }
.v-bar-top { fill: var(--emerald); }
.v-line { fill: none; stroke: var(--sage); stroke-width: 1.25; }
.v-act { fill: var(--coral); }
.v-t { font: 600 10px var(--font-body); fill: var(--graphite); text-anchor: middle; }
.v-data circle { fill: var(--white); stroke: var(--sage); stroke-width: 1; }
.v-signal circle { fill: var(--emerald); }
.v-dec, .v-step { fill: var(--white); stroke: var(--emerald); stroke-width: 1.5; }
.v-dec-in { fill: var(--coral); }
.v-loop { fill: none; stroke: var(--lab-orange); stroke-width: 1.25; stroke-dasharray: 3 3; }
.v-loop-head { fill: none; stroke: var(--lab-orange); stroke-width: 1.25; }
.v-t-ch { text-anchor: end; font-weight: 400; }
.v-ai { fill: var(--emerald); }
.v-ai-t { font: 700 9px var(--font-display); fill: var(--white); text-anchor: middle; }
.v-arc { fill: none; stroke: var(--emerald); stroke-width: 1; stroke-dasharray: 3 3; }
/* cierre estratégico de la sección: secundario, sin caja */
.ai-close { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: baseline; margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--rule); }
.ai-close h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); }
.ai-close p { margin: 0; color: var(--graphite); font-size: 1.05rem; }

/* del dato a la decisión (bloque oscuro, compacto) */
.decide { background: var(--emerald); color: var(--white); padding: clamp(56px, 7vw, 92px) 0; }
.decide h2, .decide h3 { color: var(--white); }
.decide .section-intro { margin-bottom: clamp(24px, 3.5vw, 40px); }
.decide .section-intro p { color: var(--dim); }
.decide-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cycle { margin: 0; }
.cycle svg { width: 100%; max-width: 330px; margin: 0 auto; }
.cy-arc { fill: none; stroke: var(--dim); stroke-width: 2; }
.cy-head { fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cy-node circle { fill: #0E5A49; stroke: var(--dim); stroke-width: 1.5; }
.cy-node text { fill: var(--white); font: 600 12.5px var(--font-body); text-anchor: middle; }
.cy-key circle { stroke: var(--coral); stroke-width: 4; }
.cy-center { fill: var(--dim); font: 500 17px var(--font-display); text-anchor: middle; }

.log-wrap > p { color: var(--dim); }
.log-wrap h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.6rem; }
.log { margin: 1.1rem 0 0.8rem; background: var(--white); color: var(--emerald); border-radius: 6px; overflow: hidden; font-size: 0.95rem; }
.log-row { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 0.8fr) 92px; gap: 12px; padding: 0.75rem 1.1rem; border-top: 1px solid var(--rule); align-items: center; }
.log-head { border-top: 0; background: var(--stone); font-size: 0.8rem; font-weight: 700; color: var(--graphite); }
.state { display: inline-block; padding: 0.15em 0.6em; border-radius: 3px; font-size: 0.82rem; font-weight: 700; }
.state-done { background: var(--emerald); color: var(--white); }
.state-open { border: 1.5px solid var(--emerald-2); color: var(--emerald); }
.log-note { font-size: 0.95rem; }
.decide .example { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-dark); font-size: 0.95rem; color: var(--dim); }
.decide .example strong { color: var(--white); }

/* método: del documento a la adopción */
.method { background: var(--paper); }
.track-phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-bottom: 0.9rem; font-size: 0.85rem; font-weight: 700; }
.phase-doc { grid-column: 1; color: var(--muted); }
.phase-adopt { grid-column: 2 / 6; color: var(--emerald); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; }
/* primer tramo discontinuo (documento); el resto continuo (adopción) */
.track::before { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg, transparent 0 19%, var(--emerald-2) 19%), repeating-linear-gradient(90deg, var(--sage) 0 6px, transparent 6px 12px); }
.track li { position: relative; padding-top: 2.2rem; }
.track-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--emerald); }
.track-doc .track-dot { border-color: var(--sage); }
.track-dot-end { background: var(--coral); border-color: var(--coral); }
.track h3 { margin-bottom: 0.4rem; }
.track p { color: var(--graphite); font-size: 0.98rem; }

/* how */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 1.6rem 3.4rem; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -0.1rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--emerald); color: var(--white); font: 700 0.95rem var(--font-display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.08rem; top: 2.3rem; bottom: 0.2rem; width: 2px; background: var(--rule); }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--graphite); font-size: 1rem; }
.start-small { background: var(--paper); border-radius: 8px; padding: clamp(22px, 3vw, 34px); }
.start-small h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.start-small p { color: var(--graphite); }
.grow { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; position: relative; text-align: center; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.grow::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; background: var(--rule); }
.grow svg { position: relative; width: 64px; height: 64px; margin: 0 auto 0.6rem; }
.g-ring { fill: var(--paper); stroke: var(--emerald); stroke-width: 2; }
.g-hot { fill: var(--coral); }
.g-dot { fill: var(--sage); }
.g-check { fill: none; stroke: var(--emerald); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.g-fill { fill: var(--emerald); }
.g-w { fill: var(--white); }

/* who */
.who { background: var(--paper); }
.who-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); }
.who-lead { font: 600 clamp(1.25rem, 2vw, 1.5rem)/1.3 var(--font-display); color: var(--emerald); }
.who-body p:not(.who-lead) { color: var(--graphite); font-size: 1.08rem; }

/* contact */
.contact { background: var(--emerald); color: var(--white); }
.contact-inner { max-width: 52rem; }
.contact h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); }
.contact-lead { margin-top: 1.3rem; color: var(--dim); font-size: 1.18rem; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 2rem; }
.contact-soon { margin: 0; color: var(--dim); font-size: 0.98rem; }

/* footer */
.site-footer { background: var(--emerald); color: var(--dim); border-top: 1px solid var(--rule-dark); padding: 40px 0 48px; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-inner img { width: 156px; }
.footer-inner p { margin: 0; }
.footer-legal { flex-basis: 100%; font-size: 0.85rem; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .schema { max-width: 640px; }
  .area, .area-flip, .decide-grid, .how-grid, .who-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; row-gap: 44px; }
  .ai-col h3 { min-height: 0; }
  .ai-viz { max-width: 380px; }
  .ai-close { grid-template-columns: 1fr; gap: 10px; margin-top: 52px; }
  .area-mrh div { grid-template-columns: 1fr; gap: 2px; }
  .area-mrh dd { padding-left: 20px; }
  .area-flip .area-art { order: 0; }
  .area-art img { max-width: 380px; }
  .situation-grid { grid-template-columns: 1fr; }
  .cycle svg { max-width: 300px; }
  .track-phases { display: none; }
  .track { grid-template-columns: 1fr; gap: 0; }
  .track::before { top: 10px; bottom: 10px; left: 9px; right: auto; width: 2px; height: auto; background: var(--emerald-2); }
  .track li { padding: 0 0 1.4rem 2.6rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cta-row .btn { width: 100%; }
  .brand img { width: 140px; }
  .lead { margin: 1.1rem 0 1.6rem; }
  /* esquema en móvil: secuencia vertical A → B → C → ejecución, y la capa debajo */
  .schema { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logic" "dims" "node" "xf"; }
  .xfn { grid-template-columns: 1fr; gap: 14px; }
  .xfn-orbit { max-width: 320px; margin: 0 auto; }
  .schema-links, .schema-dims > li::after { display: none; }
  .schema-dims::before { border-left: 1px solid var(--emerald); bottom: -40px; }
  .schema { --row-pad: 16px; }
  .schema-dims > li { padding-right: 0; padding-left: calc(var(--tag) + 18px); }
  .schema-node { padding: 26px 0 0; }
  .node-core { display: flex; justify-content: flex-start; gap: 0; aspect-ratio: auto; border: 0; border-radius: 0; text-align: left; padding-left: calc(var(--tag) + 18px); }
  .node-core::before { inset: auto; left: calc(var(--tag) / 2 - 9px); top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1.5px solid var(--coral); background: var(--white); }
  .node-dot { position: absolute; left: calc(var(--tag) / 2 - 3px); top: 50%; width: 6px; height: 6px; margin-top: -3px; z-index: 1; }
  .node-text { font-size: 0.95rem; color: var(--emerald); }
  .node-text br { display: none; }
  .grow { font-size: 0.8rem; }
  .grow svg { width: 52px; height: 52px; }
  .grow::before { top: 25px; }
  /* registro de acciones: cada acción es una ficha con todos sus datos */
  .log { background: transparent; }
  .log-head { display: none; }
  .log-row { grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 12px; background: var(--white); border-radius: 6px; border-top: 0; padding: 1rem; }
  .log-row > span::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
  .log-row > span:first-child { grid-column: 1 / -1; font-weight: 600; }
}

/* enlace al diagnóstico comercial tras las situaciones */
.sit-cta { margin: 1.6rem 0 0; }
.sit-cta a { display: inline-flex; gap: 8px; font-weight: 600; font-size: 1.05rem; color: var(--emerald); text-decoration: none; border-bottom: 1.5px solid var(--emerald); padding-bottom: 2px; }
.sit-cta a:hover { color: var(--emerald-deep); }

/* acceso al diagnóstico desde la cabecera:
   ≥1240 px botón secundario outline «Haz tu diagnóstico»; 1100–1239 px enlace «Haz tu diagnóstico» (el del Atlas se oculta para no competir);
   menú (≤1099 px): «Haz tu diagnóstico» y, después, «Diagnóstico comercial» (Atlas).
   Estado activo: punto coral en el botón; subrayado en el enlace; punto coral también en el menú móvil. */
.btn-nav-dx { border-color: var(--emerald); color: var(--emerald); background: transparent; }
.btn-nav-dx:hover { background: var(--emerald-tint); }
.site-nav .nav-dx { display: none; }
.site-nav .nav-dx a[aria-current="page"] { color: var(--emerald); border-bottom-color: var(--emerald); }
.btn-nav-dx[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--coral); vertical-align: middle; }
@media (max-width: 1239px) {
  .site-nav .btn-nav-dx { display: none; }
  .site-nav .nav-dx { display: list-item; list-style: none; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  .site-nav .nav-atlas { display: none; }
  .brand img { width: 148px; }
  .site-nav, .site-nav ul { gap: 14px; }
}
@media (min-width: 1240px) {
  .site-nav { gap: 16px; }
  .site-nav ul { gap: 22px; margin-right: 8px; }
}
@media (max-width: 1099px) {
  .site-nav .nav-dx a[aria-current="page"] { font-weight: 700; }
  .site-nav .nav-dx a[aria-current="page"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-radius: 50%; background: var(--coral); vertical-align: middle; }
}

/* «Qué hacemos» en móvil: el mismo contenido, unos 10-15 % más compacto */
@media (max-width: 640px) {
  .area { gap: 18px; padding: 22px 0; }
  .area-art img { max-width: 320px; }
  .area-letter { width: 32px; height: 32px; margin-bottom: 0.7rem; }
  .area-text h3 { margin-bottom: 0.6rem; }
  .area-lead { margin-bottom: 0.9rem; font-size: 1.04rem; line-height: 1.5; }
  .area-mrh div { padding: 0.42rem 0; }
  .area-mrh dd { font-size: 0.95rem; line-height: 1.42; }
  .area-out { margin-top: 0.9rem; padding: 0.7rem 0.95rem; }
  .area-out span { margin-bottom: 0.2rem; }
  .area-out ul { gap: 2px 14px; }
}
