/* index.html */

:root {
      --bg: #0b1020;
      --bg-deep: #070b16;
      --surface: #111a2e;
      --surface-strong: #17213a;
      --text: #edf2ff;
      --muted: #a9b4cc;
      --muted-strong: #cad5ec;
      --line: #223153;
      --line-bright: #31558f;
      --accent: #2f6bff;
      --accent-bright: #4c86ff;
      --accent-soft: rgba(47, 107, 255, 0.16);
      --maxw: 1160px;
    }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ============================================================
   BASE COMÚN (compartida por todas las páginas)
   Antes era el mismo bloque repetido bajo cada body.page-X.
   El prefijo body[class] conserva EXACTAMENTE la especificidad
   original (1 clase + 1 elemento), y al ir al principio del
   archivo el orden de cascada también se conserva: los bloques
   por página (home incluida) y la cola ganan los empates igual
   que antes.
   ============================================================ */
body[class] {
      margin: 0;
      font-family: Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
      background:
        radial-gradient(900px 420px at 78% 0%, rgba(47, 107, 255, 0.20), transparent 62%),
        radial-gradient(760px 520px at 18% 38%, rgba(47, 107, 255, 0.08), transparent 68%),
        radial-gradient(840px 620px at 84% 72%, rgba(47, 107, 255, 0.10), transparent 70%),
        linear-gradient(180deg, #070b16 0%, #0b1020 34%, #090e1c 68%, #070b16 100%);
      color: var(--text);
      line-height: 1.56;
    }
body[class] img { max-width: 100%; display: block; }
body[class] a { color: inherit; }
body[class] .container {
      width: min(92%, var(--maxw));
      margin: 0 auto;
    }
body[class] .topbar {
      position: sticky;
      top: 0;
      z-index: 30;
      background: rgba(7, 11, 22, 0.78);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
body[class] .topbar-inner {
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
body[class] .brand {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
    }
body[class] .brand img {
      width: 148px;
      height: auto;
    }
body[class] nav {
      display: flex;
      gap: 20px;
    }
body[class] nav a {
      color: var(--muted-strong);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 600;
      transition: color 0.3s ease;
    }
body[class] nav a:hover {
      color: var(--accent);
    }
body[class] section {
      position: relative;
      scroll-margin-top: 92px;
      padding: 102px 0;
      background: transparent;
    }
body[class] h1, body[class] h2, body[class] h3 {
      margin: 0;
      line-height: 1.04;
      letter-spacing: 0;
    }
body[class] h1 {
      max-width: 16ch;
      font-size: clamp(2.65rem, 5vw, 4.85rem);
      font-weight: 820;
      line-height: 1.02;
    }
body[class] h2 {
      max-width: 12ch;
      margin-bottom: 18px;
      font-size: clamp(2rem, 4vw, 3.3rem);
      font-weight: 780;
    }
body[class] h3 {
      margin-bottom: 12px;
      font-size: clamp(1.15rem, 1.8vw, 1.45rem);
      font-weight: 720;
    }
body[class] p { margin: 0; }
body[class] .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 22px;
      color: #9eb8ff;
      font-size: 0.82rem;
      font-weight: 760;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
body[class] .eyebrow::before {
      content: "";
      width: 38px;
      height: 2px;
      background: var(--accent-bright);
    }
body[class] .lead {
      max-width: 60ch;
      color: var(--muted);
      font-size: clamp(1.02rem, 1.45vw, 1.14rem);
    }
body[class] footer {
      padding: 36px 0 50px;
      text-align: center;
      color: var(--muted);
      font-size: .95rem;
      background: rgba(7, 11, 22, 0.34);
    }
body[class] .footer-brand {
      color: #dfe8ff;
      font-weight: 760;
      margin-bottom: 6px;
    }
body[class] .footer-byline {
      margin-top: 4px;
      color: var(--muted);
    }
body[class] .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
      margin: 10px 0;
    }
body[class] .footer-links a {
      color: var(--muted-strong);
      text-decoration: none;
      font-weight: 600;
      font-size: 0.9rem;
    }
body[class] .footer-links a:hover {
      color: var(--accent);
    }
body[class] .footer-version {
      margin-top: 10px;
      color: var(--muted);
      font-size: 0.72rem;
      opacity: 0.7;
    }
body[class] .prose {
      max-width: 70ch;
      display: grid;
      gap: 16px;
      margin-top: 18px;
    }
body[class] .prose p {
      color: var(--muted-strong);
      line-height: 1.6;
    }
body[class] .cta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px;
      margin-top: 26px;
    }


body.page-home::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
      background-size: 56px 56px;
      opacity: 0.42;
    }
body.page-home h1 span {
      display: block;
    }
body.page-home h1 .headline-secondary {
      margin-top: 8px;
      color: #9eb8ff;
    }
body.page-home .lead strong, body.page-home .muted strong, body.page-home li strong {
      color: var(--text);
      font-weight: 760;
    }
body.page-home .hero {
      min-height: calc(100svh - 74px);
      padding: clamp(34px, 5.8vh, 56px) 0;
      display: grid;
      align-items: center;
      overflow: visible;
    }
body.page-home .hero-grid {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
      gap: clamp(28px, 4vw, 52px);
      align-items: center;
    }
body.page-home .hero-copy {
      position: relative;
      z-index: 2;
    }
body.page-home .subtitle {
      margin: 18px 0 10px;
      max-width: 38ch;
      color: #dfe7fb;
      font-size: clamp(1.06rem, 1.7vw, 1.28rem);
      font-weight: 650;
      line-height: 1.28;
    }
body.page-home .hero .lead {
      max-width: 48ch;
      margin: 18px 0 20px;
      font-size: clamp(1rem, 1.14vw, 1.06rem);
    }
body.page-home .hero-summary {
      max-width: 50ch;
      margin-bottom: 24px;
      color: var(--muted-strong);
      font-size: clamp(1.05rem, 1.2vw, 1.1rem);
      font-weight: 600;
      line-height: 1.4;
      border-left: 4px solid var(--accent);
      padding-left: 16px;
    }
body.page-home .hero-thesis {
      max-width: 46ch;
      margin: 0 0 18px;
      padding-left: 16px;
      color: #e5ecff;
      border-left: 3px solid var(--accent-bright);
      font-size: clamp(1rem, 1.25vw, 1.12rem);
      font-weight: 680;
      line-height: 1.3;
    }
body.page-home .business-thesis {
      max-width: 48ch;
      margin: 0;
      color: #cdd8f2;
      font-size: clamp(0.98rem, 1.08vw, 1.04rem);
      font-weight: 520;
      line-height: 1.42;
    }
body.page-home .architecture-visual {
      position: relative;
      height: min(56vh, 440px);
      min-height: 360px;
      max-height: 440px;
      border: 1px solid rgba(76, 134, 255, 0.36);
      border-radius: 10px;
      overflow: hidden;
      background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(47, 107, 255, 0.14) 42%, rgba(7, 11, 22, 0.9)),
        #0d1428;
      box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34), 0 0 64px rgba(47, 107, 255, 0.12);
    }
body.page-home .architecture-visual::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
    }
body.page-home .system-map {
      position: absolute;
      inset: 46px 30px 28px;
    }
body.page-home .visual-caption {
      position: absolute;
      top: 24px;
      left: 24px;
      z-index: 2;
      color: #9eb8ff;
      font-size: 0.72rem;
      font-weight: 820;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
body.page-home .layer {
      position: absolute;
      left: 0;
      right: 0;
      min-height: 76px;
      border: 1px solid rgba(169, 180, 204, 0.28);
      background: linear-gradient(90deg, rgba(7, 11, 22, 0.84), rgba(17, 26, 46, 0.66));
      padding: 16px 18px;
      box-shadow: inset 4px 0 0 rgba(76, 134, 255, 0.76), 0 18px 42px rgba(0, 0, 0, 0.18);
    }
body.page-home .layer:nth-child(1) { top: 0; }
body.page-home .layer:nth-child(2) { top: 86px; left: 26px; }
body.page-home .layer:nth-child(3) { top: 172px; left: 52px; }
body.page-home .layer:nth-child(4) { top: 258px; left: 78px; }
body.page-home .layer span {
      display: block;
      color: var(--accent-bright);
      font-size: 0.72rem;
      font-weight: 820;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }
body.page-home .layer strong {
      display: block;
      margin-top: 6px;
      color: var(--text);
      font-size: 1.06rem;
    }
body.page-home .node {
      position: absolute;
      width: 12px;
      height: 12px;
      background: var(--accent-bright);
      box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.13);
    }
body.page-home .node.one { top: 62px; right: 50px; }
body.page-home .node.two { top: 148px; right: 84px; }
body.page-home .node.three { top: 234px; right: 118px; }
body.page-home .flow-line {
      position: absolute;
      right: 62px;
      top: 74px;
      width: 2px;
      height: 188px;
      background: linear-gradient(180deg, var(--accent-bright), rgba(76, 134, 255, 0.1));
    }
body.page-home .trust-statement {
      padding: 82px 0 88px;
      background: transparent;
      text-align: center;
    }
body.page-home .trust-statement .container {
      max-width: 980px;
    }
body.page-home .trust-statement h2 {
      max-width: none;
      margin: 0;
      font-size: clamp(2.5rem, 6vw, 5.4rem);
    }
body.page-home .trust-statement p {
      max-width: 58ch;
      margin: 22px auto 0;
      color: var(--muted);
      font-size: clamp(1.08rem, 1.6vw, 1.22rem);
    }
body.page-home .section-head {
      display: grid;
      grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
      gap: clamp(28px, 5vw, 72px);
      align-items: end;
      margin-bottom: 42px;
    }
body.page-home .section-head h2 { margin-bottom: 0; }
body.page-home .muted {
      color: var(--muted);
    }
body.page-home .two-col {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
      gap: 34px;
      align-items: start;
    }
body.page-home .evidence {
      display: grid;
      gap: 14px;
    }
body.page-home .evidence-row {
      display: grid;
      grid-template-columns: 130px 1fr;
      gap: 18px;
      padding: 18px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
body.page-home .evidence-row:last-child {
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
body.page-home .evidence-row span {
      color: #9eb8ff;
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
body.page-home .evidence-row p {
      color: #d6def2;
    }
body.page-home .highlight-panel {
      border: 1px solid rgba(76, 134, 255, 0.26);
      border-radius: 10px;
      background:
        linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(17, 26, 46, 0.58)),
        rgba(17, 26, 46, 0.82);
      padding: clamp(24px, 3vw, 34px);
    }
body.page-home .highlight-panel p {
      color: #dfe7fb;
      font-size: clamp(1.3rem, 2.3vw, 1.85rem);
      font-weight: 700;
      line-height: 1.18;
    }
body.page-home .stats-highlight {
      margin-top: 32px;
      padding: 20px 24px;
      border-left: 4px solid var(--accent);
      background: rgba(47, 107, 255, 0.08);
      border-radius: 0 8px 8px 0;
    }
body.page-home .stats-highlight p {
      color: var(--muted-strong);
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.4;
      margin: 0;
    }
body.page-home .approach-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 1px;
      border: 1px solid rgba(76, 134, 255, 0.24);
      background: rgba(76, 134, 255, 0.18);
    }
body.page-home .approach-cell {
      min-height: 250px;
      padding: clamp(24px, 3vw, 34px);
      background: rgba(7, 11, 22, 0.72);
    }
body.page-home .approach-cell h3 {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
    }
body.page-home .mark {
      display: inline-grid;
      place-items: center;
      width: 34px;
      height: 34px;
      color: #fff;
      background: rgba(47, 107, 255, 0.2);
      border: 1px solid rgba(76, 134, 255, 0.5);
      font-size: 0.82rem;
      font-weight: 800;
    }
body.page-home .approach-cell p {
      color: var(--muted);
    }
body.page-home .principle {
      margin-top: 1px;
      padding: clamp(24px, 3vw, 34px);
      border: 1px solid rgba(76, 134, 255, 0.24);
      background:
        linear-gradient(90deg, rgba(47, 107, 255, 0.22), rgba(47, 107, 255, 0.04)),
        rgba(17, 26, 46, 0.76);
    }
body.page-home .principle span {
      color: var(--accent-bright);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
body.page-home .principle p {
      max-width: 56ch;
      margin-top: 10px;
      color: #e5ecff;
      font-size: clamp(1.2rem, 2vw, 1.55rem);
      font-weight: 680;
      line-height: 1.28;
    }
body.page-home .pillars {
      position: relative;
      display: grid;
      grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
      gap: 34px;
      align-items: stretch;
      padding: clamp(22px, 3vw, 34px);
      border: 1px solid rgba(76, 134, 255, 0.28);
      background:
        linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(7, 11, 22, 0.72)),
        rgba(17, 26, 46, 0.72);
    }
body.page-home .alignment-core {
      display: grid;
      place-items: center;
      min-height: 390px;
      border: 1px solid rgba(76, 134, 255, 0.26);
      background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        rgba(7, 11, 22, 0.54);
      background-size: 34px 34px;
    }
body.page-home .alignment-core strong {
      display: grid;
      place-items: center;
      width: 118px;
      height: 118px;
      color: #fff;
      background: linear-gradient(180deg, rgba(76, 134, 255, 0.28), rgba(47, 107, 255, 0.16));
      border: 1px solid rgba(76, 134, 255, 0.58);
      box-shadow: 0 0 58px rgba(47, 107, 255, 0.25);
      font-size: 1.35rem;
      letter-spacing: 0.08em;
    }
body.page-home .alignment-rails {
      display: grid;
      gap: 12px;
    }
body.page-home .pillar {
      position: relative;
      display: grid;
      grid-template-columns: 92px minmax(0, 1fr);
      gap: 22px;
      align-items: center;
      min-height: 88px;
      padding: 18px 22px;
      border: 1px solid rgba(169, 180, 204, 0.18);
      background: rgba(7, 11, 22, 0.62);
      overflow: hidden;
      transition: border-color .2s ease, transform .2s ease, background .2s ease;
    }
body.page-home .pillar:hover {
      border-color: rgba(76, 134, 255, 0.52);
      background: rgba(17, 26, 46, 0.92);
      transform: translateX(3px);
    }
body.page-home .pillar::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: var(--accent-bright);
    }
body.page-home .pillar-code {
      color: var(--accent-bright);
      font-size: 0.78rem;
      font-weight: 820;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
body.page-home .kicker {
      display: inline-block;
      margin-bottom: 10px;
      color: #9eb8ff;
      font-size: .76rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .12em;
    }
body.page-home .pillar p {
      color: var(--muted);
    }
body.page-home .example {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
      gap: 28px;
      align-items: stretch;
    }
body.page-home .scenario, body.page-home .intervention {
      padding: clamp(24px, 3vw, 34px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(7, 11, 22, 0.58);
    }
body.page-home .intervention {
      border-color: rgba(76, 134, 255, 0.32);
      background: rgba(17, 26, 46, 0.78);
    }
body.page-home .contrast-list {
      display: grid;
      gap: 12px;
      margin-top: 24px;
    }
body.page-home .contrast-line {
      display: grid;
      grid-template-columns: 128px 1fr;
      gap: 16px;
      align-items: baseline;
      padding: 13px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
body.page-home .contrast-line span {
      color: var(--accent-bright);
      font-size: 0.75rem;
      font-weight: 820;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
body.page-home .contrast-line strong {
      color: var(--text);
      font-size: 1.16rem;
      line-height: 1.2;
    }
body.page-home .steps {
      display: grid;
      gap: 1px;
      margin-top: 22px;
      background: rgba(76, 134, 255, 0.18);
      border: 1px solid rgba(76, 134, 255, 0.18);
    }
body.page-home .step {
      display: grid;
      grid-template-columns: 58px 1fr;
      align-items: center;
      gap: 18px;
      min-height: 70px;
      padding: 14px;
      background: rgba(7, 11, 22, 0.68);
    }
body.page-home .step span {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      color: var(--accent-bright);
      border: 1px solid rgba(76, 134, 255, 0.45);
      font-weight: 800;
    }
body.page-home .value-list {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      margin-top: 34px;
      border: 1px solid rgba(76, 134, 255, 0.22);
      background: rgba(76, 134, 255, 0.18);
    }
body.page-home .value-item {
      min-height: 160px;
      padding: 24px;
      background: rgba(7, 11, 22, 0.76);
    }
body.page-home .value-item span {
      display: block;
      margin-bottom: 22px;
      color: var(--accent-bright);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
body.page-home .value-item strong {
      color: var(--text);
      font-size: 1.08rem;
      line-height: 1.25;
    }
body.page-home .closing-statement {
      margin-top: 44px;
      padding-top: 34px;
      border-top: 1px solid rgba(76, 134, 255, 0.32);
    }
body.page-home .closing-statement p {
      max-width: 16ch;
      color: #fff;
      font-size: clamp(2.4rem, 5.4vw, 5.2rem);
      font-weight: 820;
      line-height: 1.02;
    }
body.page-home .closing-statement span {
      display: block;
      max-width: 54ch;
      margin-top: 18px;
      color: var(--muted);
      font-size: clamp(1.02rem, 1.4vw, 1.16rem);
    }
body.page-home .faq-list {
      display: grid;
      gap: 16px;
      max-width: 800px;
    }
body.page-home .faq-item {
      border: 1px solid rgba(76, 134, 255, 0.24);
      border-radius: 8px;
      background: rgba(17, 26, 46, 0.6);
      overflow: hidden;
    }
body.page-home .faq-item summary {
      padding: 20px 24px;
      cursor: pointer;
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--text);
      list-style: none;
      position: relative;
    }
body.page-home .faq-item summary::marker, body.page-home .faq-item summary::-webkit-details-marker {
      display: none;
    }
body.page-home .faq-item summary::after {
      content: '+';
      position: absolute;
      right: 24px;
      top: 20px;
      font-size: 1.5rem;
      color: var(--accent);
      transition: transform 0.3s ease;
    }
body.page-home .faq-item[open] summary::after {
      content: '−';
    }
body.page-home .faq-item p {
      padding: 0 24px 20px;
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
    }
body.page-home .entity-definition {
      max-width: 900px;
    }
body.page-home .definition-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }
body.page-home .definition-item {
      padding: 20px;
      border: 1px solid rgba(76, 134, 255, 0.24);
      border-radius: 8px;
      background: rgba(17, 26, 46, 0.6);
    }
body.page-home .definition-item h3 {
      margin: 0 0 8px 0;
      color: var(--accent-bright);
      font-size: 1rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
body.page-home .definition-item p {
      margin: 0;
      color: var(--text);
      font-weight: 600;
    }
body.page-home .contact {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 28px;
      align-items: center;
      border: 1px solid rgba(76, 134, 255, 0.3);
      padding: clamp(26px, 4vw, 42px);
      background:
        linear-gradient(100deg, rgba(47, 107, 255, 0.18), rgba(47, 107, 255, 0.04)),
        rgba(17, 26, 46, 0.86);
    }
body.page-home .contact h2 {
      max-width: none;
      margin-bottom: 10px;
    }
body.page-home .contact a {
      display: inline-flex;
      align-items: center;
      min-height: 48px;
      color: #fff;
      text-decoration: none;
      font-weight: 760;
      background: rgba(47, 107, 255, 0.22);
      border: 1px solid rgba(76, 134, 255, 0.48);
      padding: 12px 16px;
    }
body.page-home [data-reveal] {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity .55s ease, transform .55s ease;
      transition-delay: var(--delay, 0ms);
    }
body.page-home [data-reveal].visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 1040px) {
body.page-home .hero {
        min-height: auto;
        padding-top: 76px;
      }
body.page-home .hero-grid, body.page-home .section-head, body.page-home .two-col, body.page-home .example, body.page-home .contact {
        grid-template-columns: 1fr;
      }
body.page-home .architecture-visual { min-height: 430px; }
body.page-home .pillars {
        grid-template-columns: 1fr;
      }
body.page-home .value-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 1041px) and (max-height: 780px) {
body.page-home .topbar-inner { min-height: 66px; }
body.page-home .brand img { width: 136px; }
body.page-home .hero {
        min-height: calc(100svh - 66px);
        padding: 28px 0 34px;
      }
body.page-home h1 {
        font-size: clamp(2.4rem, 4.55vw, 4.25rem);
        max-width: 17ch;
      }
body.page-home .subtitle {
        margin-top: 14px;
        font-size: clamp(1rem, 1.45vw, 1.16rem);
      }
body.page-home .hero-thesis {
        margin-bottom: 14px;
        font-size: 1rem;
      }
body.page-home .hero .lead {
        margin-bottom: 18px;
        font-size: 0.98rem;
      }
body.page-home .architecture-visual {
        height: min(54vh, 380px);
        min-height: 310px;
        max-height: 380px;
      }
body.page-home .system-map {
        inset: 40px 26px 24px;
      }
body.page-home .layer {
        min-height: 68px;
        padding: 13px 16px;
      }
body.page-home .layer:nth-child(2) { top: 76px; left: 24px; }
body.page-home .layer:nth-child(3) { top: 152px; left: 48px; }
body.page-home .layer:nth-child(4) { top: 228px; left: 72px; }
body.page-home .node.one { top: 56px; right: 46px; }
body.page-home .node.two { top: 132px; right: 78px; }
body.page-home .node.three { top: 208px; right: 110px; }
body.page-home .flow-line {
        top: 68px;
        height: 164px;
      }
    }

    @media (max-width: 760px) {
body.page-home .value-list {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 680px) {
body.page-home .topbar-inner { min-height: 66px; }
body.page-home .brand img { width: 128px; }
body.page-home section { padding: 74px 0; }
body.page-home .hero { padding: 64px 0; }
body.page-home h1 { font-size: clamp(2.45rem, 10.8vw, 3.35rem); }
body.page-home .approach-grid {
        grid-template-columns: 1fr;
      }
body.page-home .architecture-visual { min-height: 360px; }
body.page-home .system-map { inset: 44px 22px 22px; }
body.page-home .layer { min-height: 68px; padding: 14px; }
body.page-home .layer:nth-child(2) { top: 88px; left: 18px; }
body.page-home .layer:nth-child(3) { top: 176px; left: 36px; }
body.page-home .layer:nth-child(4) { top: 264px; left: 54px; }
body.page-home .node, body.page-home .flow-line { display: none; }
body.page-home .evidence-row {
        grid-template-columns: 1fr;
        gap: 8px;
      }
body.page-home .pillar {
        grid-template-columns: 1fr;
        gap: 10px;
      }
body.page-home .alignment-core {
        min-height: 220px;
      }
body.page-home .contrast-line {
        grid-template-columns: 1fr;
        gap: 6px;
      }
body.page-home .closing-statement p {
        max-width: 12ch;
      }
    }

/* --- home rewrite: secciones nuevas (author, principle, model, result,
       research, consulting, certification, closing, footer ampliado).
       Reusa .btn/.btn-secondary/.btn-ghost del sistema de componentes. --- */
body.page-home .hero h1 {
      max-width: 24ch;
      font-size: clamp(2.2rem, 4.2vw, 4rem);
    }
body.page-home .hero .lead {
      max-width: 56ch;
    }
body.page-home .prose-section h2 {
      max-width: 30ch;
    }
body.page-home .citation {
      max-width: 70ch;
      margin-top: 18px;
      color: var(--muted);
      font-style: italic;
      font-size: 0.88rem;
      line-height: 1.55;
    }
body.page-home .model-pillars-head {
      margin-top: 72px;
      margin-bottom: 20px;
    }
body.page-home .definition-head {
      margin-top: 56px;
    }
/* --- layout fix: secciones de solo prosa en una columna centrada de
       ancho de lectura; el applied model con cabecera apilada a ancho
       completo; el closing centrado tipo cierre. --- */
/* columna centrada de ancho de lectura; la usan home y certification */
body[class] .container-narrow {
      max-width: 72ch;
    }
body.page-home .example-head {
      margin-bottom: 42px;
    }
body.page-home #closing .closing-statement {
      text-align: center;
    }
body.page-home #closing .closing-headline {
      margin-left: auto;
      margin-right: auto;
    }
body.page-home #closing .closing-statement span {
      margin-left: auto;
      margin-right: auto;
    }
body.page-home #closing .cta-row {
      justify-content: center;
    }
body.page-home .closing-statement .closing-headline {
      max-width: 30ch;
      font-size: clamp(1.9rem, 3.4vw, 3.2rem);
    }

/* específico de certification/ (secciones de la página reescrita) */
body.page-certification .cert-section {
      margin-top: 64px;
    }
body.page-certification .levels-list {
      display: grid;
      gap: 18px;
      margin-top: 24px;
    }
body.page-certification .levels-list .card p {
      color: var(--muted);
      line-height: 1.6;
    }

/* específico de about/ y certification/ (entity-definition, textura, reveal) */
body.page-about::before,
body.page-certification::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
      background-size: 56px 56px;
      opacity: 0.42;
    }

body.page-about .entity-definition,
body.page-certification .entity-definition {
      max-width: 900px;
    }

body.page-about .definition-grid,
body.page-certification .definition-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }

body.page-about .definition-item,
body.page-certification .definition-item {
      padding: 20px;
      border: 1px solid rgba(76, 134, 255, 0.24);
      border-radius: 8px;
      background: rgba(17, 26, 46, 0.6);
    }

body.page-about .definition-item h3,
body.page-certification .definition-item h3 {
      margin: 0 0 8px 0;
      color: var(--accent-bright);
      font-size: 1rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

body.page-about .definition-item p,
body.page-certification .definition-item p {
      margin: 0;
      color: var(--text);
      font-weight: 600;
    }

body.page-about [data-reveal],
body.page-certification [data-reveal] {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity .55s ease, transform .55s ease;
      transition-delay: var(--delay, 0ms);
    }

body.page-about [data-reveal].visible,
body.page-certification [data-reveal].visible {
      opacity: 1;
      transform: translateY(0);
    }


    @media (max-width: 1040px) {
body.page-about .definition-grid,
body.page-certification .definition-grid {
        grid-template-columns: 1fr;
      }
    }

/* específico de services/ */
body.page-services::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
      background-size: 56px 56px;
      opacity: 0.42;
    }

body.page-services .services-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
    }
body.page-services .services-closing {
      margin-top: 44px;
    }

body.page-services .service-card {
      padding: 32px;
      border: 1px solid rgba(76, 134, 255, 0.24);
      border-radius: 12px;
      background: rgba(17, 26, 46, 0.6);
      transition: transform 0.3s ease, border-color 0.3s ease;
    }

body.page-services .service-card:hover {
      transform: translateY(-4px);
      border-color: var(--accent);
    }

body.page-services .service-card h3 {
      color: var(--accent-bright);
      margin-bottom: 16px;
    }

body.page-services .service-card p {
      color: var(--muted);
      line-height: 1.5;
    }


    @media (max-width: 1040px) {
body.page-services .services-grid {
        grid-template-columns: 1fr;
      }
    }

/* específico de contact/ */
body.page-contact::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
      background-size: 56px 56px;
      opacity: 0.42;
    }

body.page-contact nav {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

body.page-contact .contact-panel {
      display: grid;
      gap: 28px;
      max-width: 780px;
      margin: 0 auto;
    }

body.page-contact .contact-copy {
      padding: 28px;
      border: 1px solid rgba(76, 134, 255, 0.24);
      border-radius: 14px;
      background: rgba(17, 26, 46, 0.6);
    }

body.page-contact .contact-copy p {
      color: var(--muted);
      line-height: 1.75;
    }


    @media (max-width: 860px) {
body.page-contact .contact-panel {
        display: block;
      }
    }

/* =========================================================
   MAHG SAFE ENHANCEMENTS
   Consolidated into the main site.css.
   This block intentionally does NOT override hero, architecture-visual,
   system-map, layer, node, flow-line, or data-reveal behavior.
   ========================================================= */

:root {
  --color-bg: var(--bg);
  --color-bg-deep: var(--bg-deep);
  --color-surface: var(--surface);
  --color-surface-strong: var(--surface-strong);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-primary: var(--accent);
  --color-primary-bright: var(--accent-bright);
  --color-border: var(--line);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.28);
}

/* Compact navbar */
body.page-home .topbar-inner,
body.page-about .topbar-inner,
body.page-certification .topbar-inner,
body.page-services .topbar-inner,
body.page-contact .topbar-inner {
  min-height: 58px;
}

body.page-home .brand img,
body.page-about .brand img,
body.page-certification .brand img,
body.page-services .brand img,
body.page-contact .brand img {
  width: 126px;
}

body.page-home nav,
body.page-about nav,
body.page-certification nav,
body.page-services nav,
body.page-contact nav {
  gap: 16px;
}

body.page-home nav a,
body.page-about nav a,
body.page-certification nav a,
body.page-services nav a,
body.page-contact nav a {
  font-size: 0.84rem;
}

/* Reusable component system */
.btn,
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(76, 134, 255, 0.48);
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(47, 107, 255, 0.18);
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost,
a.btn-ghost,
button.btn-ghost {
  background: transparent;
  color: var(--accent-bright);
  border-color: rgba(76, 134, 255, 0.34);
}

.card,
.panel,
.kpi-card {
  border: 1px solid rgba(76, 134, 255, 0.24);
  border-radius: var(--radius-md);
  background: rgba(17, 26, 46, 0.68);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 24px;
}

.panel {
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.14), rgba(7, 11, 22, 0.62)),
    rgba(17, 26, 46, 0.72);
}

.kpi-card {
  padding: 22px;
}

.kpi-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-bright);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(76, 134, 255, 0.34);
  background: rgba(47, 107, 255, 0.10);
  color: var(--muted-strong);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Light mode: activate by adding class="theme-light" to body */
body.theme-light {
  --bg: #f6f8ff;
  --bg-deep: #eaf0ff;
  --surface: #ffffff;
  --surface-strong: #eef3ff;
  --text: #101827;
  --muted: #4a5875;
  --muted-strong: #27344f;
  --line: #d7e0f5;
  --line-bright: #9cb5ee;
  --accent-soft: rgba(47, 107, 255, 0.10);
  background:
    radial-gradient(900px 420px at 78% 0%, rgba(47, 107, 255, 0.14), transparent 62%),
    radial-gradient(760px 520px at 18% 38%, rgba(47, 107, 255, 0.08), transparent 68%),
    radial-gradient(840px 620px at 84% 72%, rgba(47, 107, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #f8fbff 0%, #eef3ff 48%, #f8fbff 100%) !important;
  color: var(--text);
}

body.theme-light::before {
  background-image:
    linear-gradient(rgba(16, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 39, 0.045) 1px, transparent 1px) !important;
  opacity: .52;
}

body.theme-light .topbar {
  background: rgba(248, 251, 255, 0.82) !important;
  border-bottom-color: rgba(16, 24, 39, 0.10) !important;
}

body.theme-light .architecture-visual,
body.theme-light .highlight-panel,
body.theme-light .approach-cell,
body.theme-light .principle,
body.theme-light .pillar,
body.theme-light .scenario,
body.theme-light .intervention,
body.theme-light .value-item,
body.theme-light .faq-item,
body.theme-light .definition-item,
body.theme-light .service-card,
body.theme-light .contact-copy,
body.theme-light .contact-form,
body.theme-light .message-card,
body.theme-light .card,
body.theme-light .panel,
body.theme-light .kpi-card {
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(47, 107, 255, 0.20) !important;
  box-shadow: 0 22px 60px rgba(47, 72, 130, 0.10);
}

body.theme-light .layer,
body.theme-light .step {
  background: rgba(255, 255, 255, 0.74) !important;
}

body.theme-light .subtitle,
body.theme-light .hero-summary,
body.theme-light .business-thesis,
body.theme-light .layer strong,
body.theme-light .contrast-line strong,
body.theme-light .definition-item p,
body.theme-light .value-item strong,
body.theme-light .pillar strong,
body.theme-light .contact h2 {
  color: var(--text) !important;
}

body.theme-light .lead,
body.theme-light .muted,
body.theme-light .evidence-row p,
body.theme-light .approach-cell p,
body.theme-light .pillar p,
body.theme-light .faq-item p,
body.theme-light footer {
  color: var(--muted) !important;
}

body.theme-light .headline-secondary,
body.theme-light .eyebrow,
body.theme-light .visual-caption,
body.theme-light .layer span,
body.theme-light .pillar-code,
body.theme-light .definition-item h3,
body.theme-light .service-card h3 {
  color: var(--accent) !important;
}

/* Minimal contact dialog */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-trigger {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(76, 134, 255, 0.42);
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.76);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.contact-trigger:hover,
.contact-trigger:focus-visible {
  border-color: var(--accent-bright);
  color: #fff;
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .contact-trigger {
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }

  .contact-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(47, 107, 255, 0.22);
  }
}

.contact-dialog {
  width: min(430px, calc(100vw - 32px));
  max-height: min(700px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(76, 134, 255, 0.30);
  border-radius: 8px;
  background: rgba(11, 16, 32, 0.96);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.50);
}

.contact-dialog::backdrop {
  background: rgba(7, 11, 22, 0.58);
  backdrop-filter: blur(4px);
}

.contact-dialog .contact-form {
  display: block;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-dialog__header h2 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.contact-close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-close:hover,
.contact-close:focus-visible {
  border-color: rgba(76, 134, 255, 0.42);
  outline: none;
}

.contact-field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(76, 134, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  font-weight: 500;
  resize: vertical;
}

.contact-field textarea {
  min-height: 132px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--accent-bright);
  outline: 2px solid rgba(76, 134, 255, 0.28);
  outline-offset: 2px;
}

.contact-submit,
.contact-open-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(76, 134, 255, 0.52);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  padding: 12px 16px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.contact-submit {
  width: 100%;
  margin-top: 18px;
}

.contact-open-button {
  margin-top: 18px;
}

.contact-submit[disabled] {
  opacity: 0.64;
  cursor: wait;
}

.contact-submit[aria-busy="true"] span::after {
  content: "...";
  display: inline-block;
  width: 0.85em;
  margin-left: 0.15em;
  text-align: left;
  animation: contact-loading-dots 1s ease-in-out infinite;
}

@keyframes contact-loading-dots {
  50% {
    opacity: 0.35;
  }
}

.contact-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-status.is-success {
  color: #6ee7b7;
}

.contact-status.is-error {
  color: #fca5a5;
}

.contact-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-honeypot {
  display: none;
}

.contact-toast {
  position: fixed;
  right: 20px;
  bottom: 82px;
  z-index: 61;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(76, 134, 255, 0.34);
  border-radius: 6px;
  background: rgba(11, 16, 32, 0.96);
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

body.theme-light .contact-trigger,
body.theme-light .contact-dialog,
body.theme-light .contact-toast {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: rgba(47, 107, 255, 0.24);
}

body.theme-light .contact-dialog .contact-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.theme-light .contact-field input,
body.theme-light .contact-field textarea {
  background: rgba(47, 107, 255, 0.04);
  color: var(--text);
}

body.theme-light .contact-dialog::backdrop {
  background: rgba(16, 24, 39, 0.28);
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.page-home .topbar-inner,
  body.page-about .topbar-inner,
  body.page-certification .topbar-inner,
  body.page-services .topbar-inner,
  body.page-contact .topbar-inner {
    min-height: 58px;
  }

  body.page-home .brand img,
  body.page-about .brand img,
  body.page-certification .brand img,
  body.page-services .brand img,
  body.page-contact .brand img {
    width: 118px;
  }
}
