/* ==========================================================================
   ROSTAN Consultores A&B — Design System
   Tokens · Base · Components · Sections · Utilities
   Mobile-first. Breakpoints: 640 (tablet) · 960 (laptop) · 1280 (desktop)
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #0B1F3A;
  --navy-800: #10294A;
  --navy-700: #16305A;
  --navy-600: #1F3F73;
  --gold-600: #A17E22;
  --gold-500: #B8922E;
  --gold-400: #D9BC6A;
  --gold-200: #EFE3BF;

  /* Surfaces (light) */
  --bg: #F5F6F9;
  --bg-elev: #FFFFFF;
  --bg-sunken: #EDF0F5;
  --ink: #12213A;
  --ink-2: #3D4B63;
  --ink-3: #6B7890;
  --line: #C7D1DF;
  --line-soft: #DEE4EE;
  --blueprint: rgba(22, 48, 90, 0.10);
  --blueprint-strong: rgba(22, 48, 90, 0.22);

  /* Inverse surfaces (navy blocks stay navy in both themes) */
  --inv-bg: var(--navy-900);
  --inv-bg-2: var(--navy-800);
  --inv-ink: #F3F5F9;
  --inv-ink-2: #C3CBD9;
  --inv-line: rgba(255, 255, 255, 0.16);
  --inv-blueprint: rgba(217, 188, 106, 0.16);

  --accent: var(--gold-500);
  --accent-ink: var(--gold-600);
  --focus: #2F6FE4;

  /* Type */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --t-xs: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --t-sm: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --t-base: clamp(1.02rem, 0.98rem + 0.22vw, 1.14rem);
  --t-md: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --t-lg: clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --t-xl: clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
  --t-2xl: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);

  /* Spacing */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1.25rem, 0.8rem + 3vw, 3rem);
  --container: 1240px;
  --measure: 62ch;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.06), 0 12px 32px -12px rgba(11, 31, 58, 0.18);
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1628;
    --bg-elev: #10213A;
    --bg-sunken: #0D1B30;
    --ink: #EEF2F8;
    --ink-2: #C0CADA;
    --ink-3: #8A97AE;
    --line: #2A3D5C;
    --line-soft: #1E2F4A;
    --blueprint: rgba(217, 188, 106, 0.10);
    --blueprint-strong: rgba(217, 188, 106, 0.22);
    --accent: var(--gold-400);
    --accent-ink: var(--gold-400);
    --inv-bg: #071120;
    --inv-bg-2: #0B1A2F;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0A1628;
  --bg-elev: #10213A;
  --bg-sunken: #0D1B30;
  --ink: #EEF2F8;
  --ink-2: #C0CADA;
  --ink-3: #8A97AE;
  --line: #2A3D5C;
  --line-soft: #1E2F4A;
  --blueprint: rgba(217, 188, 106, 0.10);
  --blueprint-strong: rgba(217, 188, 106, 0.22);
  --accent: var(--gold-400);
  --accent-ink: var(--gold-400);
  --inv-bg: #071120;
  --inv-bg-2: #0B1A2F;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: var(--nav-h);
}
html { scroll-padding-top: calc(var(--nav-h) + 12px); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--t-xl); font-weight: 800; }
h3 { font-size: var(--t-md); font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 200; padding: 0.6rem 1rem; background: var(--navy-900); color: #fff; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 0.75rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.lede { font-size: var(--t-md); color: var(--ink-2); line-height: 1.5; }
.mono { font-family: var(--font-mono); }

/* Eyebrow: sheet-index labels used across the site (structure = info) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.section-head h2 { max-width: 22ch; }
.section-head .lede { max-width: var(--measure); }

/* ---------- 3. Blueprint grid ground ------------------------------------ */
.blueprint {
  position: relative;
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px),
    linear-gradient(var(--blueprint-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-strong) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-position: -1px -1px;
}
.inverse { background: var(--inv-bg); color: var(--inv-ink); }
.inverse .eyebrow { color: var(--gold-400); }
.inverse .lede { color: var(--inv-ink-2); }
.inverse.blueprint {
  background-image:
    linear-gradient(var(--inv-blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--inv-blueprint) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* Parallax layer for full-bleed navy blocks (transform driven by JS, off under reduced motion) */
.parallax-layer { position: absolute; inset: -12% 0; pointer-events: none; z-index: 0; will-change: transform; }
.inverse > .container { position: relative; z-index: 1; }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-900); --btn-ink: #fff; --btn-line: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-ink); border: 1.5px solid var(--btn-line);
  border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm);
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(11, 31, 58, 0.5); }
.btn:active { transform: translateY(0); }
.btn-gold { --btn-bg: var(--gold-500); --btn-ink: var(--navy-900); --btn-line: var(--gold-500); }
.btn-gold:hover { --btn-bg: var(--gold-400); }
.btn-ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line); }
.btn-ghost:hover { --btn-line: var(--ink); }
.inverse .btn-ghost { --btn-ink: var(--inv-ink); --btn-line: rgba(255,255,255,0.35); }
.inverse .btn-ghost:hover { --btn-line: #fff; }
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 5. Navigation ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px -18px rgba(11, 31, 58, 0.35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 4px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.12em; font-size: 1.05rem; color: var(--ink); }
.brand-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--accent-ink); text-transform: uppercase; }
.nav-links { display: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform 200ms ease, background 200ms ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform 200ms ease, top 200ms ease; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--line-soft); padding: var(--s-4) 0 var(--s-5); }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { display: grid; gap: 0.25rem; }
.mobile-menu a { display: block; padding: 0.7rem 0.5rem; text-decoration: none; font-family: var(--font-display); font-weight: 600; border-radius: var(--radius); }
.mobile-menu a:hover { background: var(--bg-sunken); }
.mobile-menu .btn { width: 100%; margin-top: var(--s-4); }

@media (min-width: 960px) {
  .nav-toggle, .mobile-menu { display: none !important; }
  .nav-links { display: flex; gap: clamp(0.8rem, 1.5vw, 1.6rem); }
  .nav-links a {
    position: relative; text-decoration: none; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); padding: 0.4rem 0;
  }
  .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease; }
  .nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
  .nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
  .nav-cta { display: inline-flex; min-height: 42px; padding: 0.5rem 1.1rem; }
}

/* Breadcrumbs (internal pages) */
.breadcrumbs { padding: var(--s-4) 0 0; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.06em; color: var(--ink-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 var(--section); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero h1 { margin-top: var(--s-4); max-width: 14ch; }
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent-ink); letter-spacing: 0; }
.hero .lede { margin-top: var(--s-5); max-width: 52ch; }
.hero .btn-row { margin-top: var(--s-6); }
.tagline { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.tagline span + span::before { content: "•"; color: var(--accent); margin-right: 1rem; }

/* The "sheet": a technical drawing card that carries the thesis */
.sheet {
  position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sheet-head b { color: var(--ink); font-weight: 600; }
.sheet-body { padding: 1rem; }
.sheet-body svg { width: 100%; height: auto; }
.sheet-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }
.sheet-foot > div { padding: 0.8rem 1rem; border-right: 1px solid var(--line-soft); }
.sheet-foot > div:last-child { border-right: 0; }
.sheet-foot .k { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sheet-foot .v { font-family: var(--font-display); font-weight: 800; font-size: var(--t-lg); color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 0.15rem; }
.sheet-foot .v small { font-size: 0.55em; font-weight: 600; color: var(--accent-ink); margin-left: 0.15rem; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); }
}

/* Trust strip under hero */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-elev); }
.trust-row { display: grid; gap: var(--s-4); padding: var(--s-5) 0; }
.trust-row > div { display: flex; gap: 0.8rem; align-items: flex-start; }
.trust-row svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.trust-row b { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); }
.trust-row span { font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 640px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 7. Sections -------------------------------------------------- */
.section { padding: var(--section) 0; }
.section + .section.section-tight { padding-top: 0; }

/* Problem: symptoms list + comparison table */
.symptoms { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.symptom { background: var(--bg-elev); padding: var(--s-5); display: grid; gap: 0.5rem; transition: background 160ms ease; }
.symptom:hover { background: var(--bg-sunken); }
.symptom .idx { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--accent-ink); letter-spacing: 0.1em; }
.symptom h3 { font-size: var(--t-base); }
.symptom p { font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 640px) { .symptoms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .symptoms { grid-template-columns: repeat(3, 1fr); } }

.compare-wrap { margin-top: var(--s-7); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--t-sm); }
.compare caption { text-align: left; padding: var(--s-4) var(--s-5); font-family: var(--font-display); font-weight: 700; font-size: var(--t-base); border-bottom: 1px solid var(--line-soft); }
.compare th, .compare td { padding: 0.9rem var(--s-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare thead th { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.compare tbody th { font-family: var(--font-display); font-weight: 700; color: var(--ink); width: 18%; }
.compare .old { color: var(--ink-3); }
.compare .new { color: var(--ink); font-weight: 600; }
.compare .new::before, .compare .old::before { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.6rem; content: ""; vertical-align: middle; }
.compare .new::before { background: var(--accent); }
.compare .old::before { background: var(--line); }

/* Philosophy: asymmetric quote + principles */
.philo { display: grid; gap: var(--s-7); }
.quote-block { position: relative; padding: var(--s-6); border-left: 3px solid var(--accent); }
.quote-block .mark { font-family: var(--font-serif); font-size: 5rem; line-height: 0.6; color: var(--accent); margin-bottom: 1rem; }
.quote-block blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 500; font-style: italic; line-height: 1.2; }
.quote-block p { margin-top: var(--s-5); color: var(--inv-ink-2); max-width: 40ch; }
.principles { display: grid; gap: var(--s-5); }
.principle { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.principle .n { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold-400); font-variant-numeric: tabular-nums; }
.principle h3 { color: var(--inv-ink); }
.principle p { margin-top: 0.35rem; color: var(--inv-ink-2); font-size: var(--t-sm); }
@media (min-width: 960px) { .philo { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Dual engine */
.engine { display: grid; gap: var(--s-5); align-items: stretch; }
.engine-side { border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); padding: var(--s-5); display: grid; gap: var(--s-4); align-content: start; }
.engine-side[data-side="control"] { border-color: var(--gold-400); }
.engine-side .tag { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.6rem; border-radius: 3px; background: var(--navy-900); color: #fff; width: max-content; }
.engine-side[data-side="control"] .tag { background: var(--gold-500); color: var(--navy-900); }
.engine-side h3 { font-size: var(--t-lg); }
.engine-side ul { display: grid; gap: 0.6rem; }
.engine-side li { display: grid; grid-template-columns: 36px 1fr; gap: 0.8rem; align-items: start; padding: 0.8rem; border: 1px solid var(--line-soft); border-radius: var(--radius); transition: border-color 160ms ease, transform 160ms ease; }
.engine-side li:hover { border-color: var(--accent); transform: translateX(3px); }
.engine-side li svg { width: 36px; height: 36px; color: var(--accent-ink); }
.engine-side li b { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); }
.engine-side li span { font-size: var(--t-sm); color: var(--ink-2); }
.engine-core { display: grid; place-items: center; text-align: center; padding: var(--s-5); }
.engine-core .ring { position: relative; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; box-shadow: 0 0 0 10px var(--bg), 0 0 0 12px var(--gold-400); }
.engine-core .ring::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; border: 1px dashed var(--gold-500); opacity: 0.7; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .engine-core .ring::before { animation: none; } }
.engine-core .ring p { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.25; padding: 0 1.4rem; }
.engine-core small { display: block; margin-top: var(--s-6); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 960px) { .engine { grid-template-columns: 1fr auto 1fr; } .engine-core { padding-inline: var(--s-4); } }

/* AUDIMP */
.pillars { display: grid; gap: var(--s-5); }
.pillar { position: relative; background: var(--bg-elev); border: 1.5px solid var(--navy-900); padding: var(--s-6) var(--s-5) var(--s-5); }
.pillar::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-400); pointer-events: none; }
.pillar .tab { position: absolute; top: -1px; left: 24px; padding: 0.35rem 0.9rem; background: var(--gold-500); color: var(--navy-900); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.pillar h3 { margin-top: var(--s-3); }
.pillar p { margin-top: 0.6rem; color: var(--ink-2); font-size: var(--t-sm); }
:root[data-theme="dark"] .pillar, .inverse .pillar { border-color: var(--gold-400); }
@media (min-width: 960px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pillar { border-color: var(--gold-400); } }

/* Progressive disclosure (technical topics) */
.disclosure { margin-top: var(--s-7); display: grid; gap: 0.75rem; }
.disclosure details { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.disclosure summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem var(--s-5); font-family: var(--font-display); font-weight: 700; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .code { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.12em; color: var(--accent-ink); min-width: 4.5rem; }
.disclosure summary .chev { width: 20px; height: 20px; color: var(--ink-3); transition: transform 200ms ease; }
.disclosure details[open] summary .chev { transform: rotate(180deg); }
.disclosure summary:hover { background: var(--bg-sunken); }
.disclosure .body { padding: 0 var(--s-5) var(--s-5); display: grid; gap: var(--s-4); color: var(--ink-2); font-size: var(--t-sm); }
.disclosure .body p { max-width: var(--measure); }

/* Yield waterfall chart */
.yield { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--s-4); background: var(--bg-sunken); }
.yield svg { width: 100%; height: auto; }
.yield .lbl { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); }
.yield .val { font-family: var(--font-display); font-weight: 700; font-size: 13px; fill: var(--ink); }
.yield .bar { fill: var(--navy-700); }
.yield .bar.final { fill: var(--gold-500); }
.yield .loss { fill: url(#hatch); stroke: var(--gold-500); stroke-width: 1; }
.yield .axis { stroke: var(--line); }
.yield .step { stroke: var(--gold-500); stroke-dasharray: 3 3; fill: none; }
.yield .bar, .yield .loss { transform-origin: bottom; transform: scaleY(0.001); transition: transform 900ms cubic-bezier(.2,.8,.2,1); }
.yield.is-visible .bar, .yield.is-visible .loss { transform: scaleY(1); }
.yield.is-visible .bar:nth-child(2) { transition-delay: 100ms; }
@media (prefers-reduced-motion: reduce) { .yield .bar, .yield .loss { transform: none; transition: none; } }

/* Amarre de ingresos */
.tie { margin-top: var(--s-7); display: grid; gap: var(--s-4); align-items: center; }
.tie .in { background: var(--navy-900); color: #fff; padding: var(--s-5); border: 2px solid var(--gold-500); }
.tie .in .k { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); }
.tie .in p { margin-top: 0.4rem; font-family: var(--font-display); font-weight: 600; }
.tie .out { display: grid; place-items: center; text-align: center; }
.tie .coin { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--gold-400), var(--gold-500) 60%, var(--gold-600)); color: var(--navy-900); font-family: var(--font-display); font-weight: 800; box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--gold-400); }
.tie .note { grid-column: 1 / -1; background: var(--bg-elev); border: 1px solid var(--line); padding: var(--s-4) var(--s-5); font-size: var(--t-sm); color: var(--ink-2); max-width: 70ch; justify-self: center; text-align: center; }
@media (min-width: 960px) { .tie { grid-template-columns: 1fr auto 1fr; } }

/* Bento services */
.bento { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
.cell { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); display: grid; gap: 0.6rem; align-content: start; min-height: 150px; transition: border-color 160ms ease, transform 200ms ease, box-shadow 200ms ease; }
.cell:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.cell .cat { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.cell[data-cat="control"] .cat { color: var(--accent-ink); }
.cell h3 { font-size: var(--t-base); }
.cell p { font-size: var(--t-sm); color: var(--ink-2); }
.cell svg { width: 28px; height: 28px; color: var(--accent-ink); }
.cell-feature { grid-column: span 2; background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.cell-feature .cat { color: var(--gold-400); }
.cell-feature p { color: var(--inv-ink-2); }
.cell-feature h3 { font-size: var(--t-lg); max-width: 18ch; }
.cell-feature .btn { margin-top: var(--s-3); justify-self: start; }
.cell-photo { grid-column: span 2; min-height: 220px; padding: 0; overflow: hidden; }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .cell-feature { grid-column: span 2; grid-row: span 2; }
  .cell-photo { grid-column: span 2; }
}

/* Photo slots — swap for real operation photography (see README) */
.photo { position: relative; display: block; width: 100%; height: 100%; min-height: 220px; background: var(--navy-800); color: var(--inv-ink); overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .placeholder { position: absolute; inset: 0; background-image: linear-gradient(var(--inv-blueprint) 1px, transparent 1px), linear-gradient(90deg, var(--inv-blueprint) 1px, transparent 1px); background-size: 32px 32px; }
.photo .placeholder::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 30%, rgba(217,188,106,0.18), transparent 55%); }
.photo figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); display: flex; gap: 0.6rem; align-items: center; }
.photo figcaption::before { content: ""; width: 20px; height: 1px; background: currentColor; }

/* Process (real sequence: numbered) */
.process { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--inv-line); }
.step:last-child { border-bottom: 1px solid var(--inv-line); }
.step .n { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.step h3 { color: var(--inv-ink); }
.step p { margin-top: 0.35rem; color: var(--inv-ink-2); font-size: var(--t-sm); max-width: 52ch; }
.step .dur { margin-top: 0.6rem; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); }
.process-grid { display: grid; gap: var(--s-7); align-items: start; }
.process-aside { display: grid; gap: var(--s-4); }
.kpi-card { border: 1px solid var(--inv-line); border-radius: var(--radius-lg); padding: var(--s-5); background: var(--inv-bg-2); }
.kpi-card .k { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); }
.kpi-card ul { margin-top: var(--s-3); display: grid; gap: 0.5rem; font-size: var(--t-sm); color: var(--inv-ink-2); }
.kpi-card li { display: flex; gap: 0.6rem; align-items: baseline; }
.kpi-card li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: var(--gold-400); transform: translateY(-2px); }
@media (min-width: 960px) { .process-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Business models */
.models { display: grid; gap: var(--s-5); }
.model { position: relative; background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-3); align-content: start; border: 1px solid var(--navy-900); transition: transform 200ms ease, box-shadow 200ms ease; overflow: hidden; }
.model::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px dashed rgba(217,188,106,0.4); }
.model:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.model svg { width: 44px; height: 44px; color: var(--gold-400); }
.model .fit { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); }
.model h3 { font-size: var(--t-lg); color: var(--gold-400); }
.model p { color: var(--inv-ink-2); font-size: var(--t-sm); }
.model ul { margin-top: 0.4rem; display: grid; gap: 0.35rem; font-size: var(--t-sm); color: var(--inv-ink); }
.model li { display: flex; gap: 0.6rem; }
.model li::before { content: "—"; color: var(--gold-400); }
.model .btn { margin-top: var(--s-3); justify-self: start; }
.model-featured { border-color: var(--gold-400); }
.model-featured .fit::after { content: "  · Recomendado para empezar"; color: var(--inv-ink-2); }
@media (min-width: 960px) { .models { grid-template-columns: repeat(3, 1fr); } }

/* Team */
.team { display: grid; gap: var(--s-6); }
.person { display: grid; gap: var(--s-4); grid-template-columns: 96px 1fr; align-items: start; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold-400); }
.person h3 { font-size: var(--t-md); }
.person .role { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin-top: 0.2rem; }
.person p { margin-top: 0.7rem; font-size: var(--t-sm); color: var(--ink-2); max-width: 52ch; }
.person .chips { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; padding: 0.25rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--bg-elev); }
.person .link { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.8rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
@media (min-width: 640px) { .person { grid-template-columns: 128px 1fr; } .person img { width: 128px; height: 128px; } }
@media (min-width: 960px) { .team { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.team-note { margin-top: var(--s-7); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); display: grid; gap: var(--s-3); }
.team-note .logos { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); color: var(--ink-2); }

/* Results (editable placeholders) */
.cases { display: grid; gap: var(--s-4); }
.case { background: var(--bg-elev); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: var(--s-5); display: grid; gap: 0.6rem; }
.case .ctx { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.case .num { font-family: var(--font-display); font-weight: 800; font-size: var(--t-xl); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.case .num small { font-size: 0.45em; color: var(--accent-ink); font-weight: 700; }
.case h3 { font-size: var(--t-base); }
.case p { font-size: var(--t-sm); color: var(--ink-2); }
.case .edit { margin-top: 0.2rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-3); }
@media (min-width: 640px) { .cases { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 0.5rem; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--font-display); font-weight: 700; font-size: var(--t-base); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 200ms ease; }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq summary:hover { color: var(--accent-ink); }
.faq .a { padding: 0 0 1.2rem; color: var(--ink-2); font-size: var(--t-sm); max-width: var(--measure); }

/* Final CTA + contact form */
.cta-grid { display: grid; gap: var(--s-7); align-items: start; }
.cta-grid h2 { font-size: var(--t-2xl); max-width: 12ch; }
.cta-grid h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--gold-400); }
.contact-list { margin-top: var(--s-6); display: grid; gap: 0.8rem; }
.contact-list a { display: flex; gap: 0.8rem; align-items: center; text-decoration: none; color: var(--inv-ink); font-weight: 600; }
.contact-list a:hover { color: var(--gold-400); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-400); }
.form { background: var(--bg-elev); color: var(--ink); border-radius: var(--radius-lg); padding: var(--s-6); display: grid; gap: var(--s-4); box-shadow: var(--shadow); }
.form h3 { font-size: var(--t-md); }
.form .hint { font-size: var(--t-sm); color: var(--ink-2); }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--t-sm); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field .help { font-size: var(--t-xs); color: var(--ink-3); }
.form-row { display: grid; gap: var(--s-4); }
.form .btn { width: 100%; }
.form .legal { font-size: var(--t-xs); color: var(--ink-3); }
.form-status { display: none; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--gold-200); color: var(--navy-900); font-size: var(--t-sm); font-weight: 600; }
.form-status.is-visible { display: block; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--inv-ink-2); padding: var(--s-4) 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-brand { display: grid; gap: var(--s-3); }
.footer-brand .logo-tile { width: 128px; padding: 0.6rem; background: #fff; border-radius: var(--radius); }
.footer-brand p { font-size: var(--t-sm); max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 0.8rem; }
.footer-col ul { display: grid; gap: 0.45rem; font-size: var(--t-sm); }
.footer-col a { text-decoration: none; color: var(--inv-ink-2); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: var(--s-6); padding-top: 0; border-top: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.06em; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- 8. Scroll reveal (from a visible resting state) ------------- */
.reveal { transform: translateY(14px); transition: transform 700ms cubic-bezier(.2,.8,.2,1), opacity 700ms ease; opacity: 0.999; }
.reveal.is-visible { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition: none; } }

/* Counter */
[data-count] { font-variant-numeric: tabular-nums; }

/* Internal page: article layout */
.article { display: grid; gap: var(--s-7); }
.article-body { max-width: var(--measure); display: grid; gap: var(--s-4); }
.article-body h2 { font-size: var(--t-lg); margin-top: var(--s-4); }
.article-body h3 { margin-top: var(--s-3); }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body ul { display: grid; gap: 0.4rem; padding-left: 1.2rem; list-style: square; }
.article-body ul li::marker { color: var(--accent); }
.article-grid { display: grid; gap: var(--s-7); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 1rem); border-left: 2px solid var(--line-soft); padding-left: 1rem; display: grid; gap: 0.5rem; font-size: var(--t-sm); }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent-ink); }
.toc .k { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.2rem; }
@media (min-width: 960px) { .article-grid { grid-template-columns: 1fr 240px; } }
.callout { border: 1px solid var(--gold-400); background: var(--bg-elev); padding: var(--s-5); border-radius: var(--radius); display: grid; gap: 0.5rem; }
.callout .k { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }

/* ==========================================================================
   v10.1.26 — Contenido web definido por el cliente (sin referencias a marcas)
   ========================================================================== */

/* Hero con fotografía */
.hero-photo { position: relative; isolation: isolate; color: #fff; padding: clamp(4rem, 3rem + 6vw, 8rem) 0 clamp(4rem, 3rem + 5vw, 7rem); min-height: min(88vh, 760px); display: flex; align-items: center; background: var(--navy-900); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7,17,32,0.92) 0%, rgba(7,17,32,0.80) 38%, rgba(7,17,32,0.35) 70%, rgba(7,17,32,0.10) 100%),
  linear-gradient(0deg, rgba(7,17,32,0.55) 0%, transparent 35%); }
.hero-photo .hero-copy { position: relative; }
.hero-photo .eyebrow { color: var(--gold-400); }
.hero-photo h1 { max-width: 13ch; color: #fff; }
.hero-photo h1 em { color: var(--gold-400); }
.hero-photo .lede { color: #E6EAF2; max-width: 50ch; }
.hero-note { margin-top: var(--s-4); max-width: 50ch; color: #C3CBD9; font-size: var(--t-sm); }
.hero-photo .btn-ghost { --btn-ink: #fff; --btn-line: rgba(255,255,255,0.45); }
.hero-photo .btn-ghost:hover { --btn-line: #fff; }
.hero-photo .tagline { color: #E6EAF2; }
@media (max-width: 959px) { .hero-shade { background: linear-gradient(0deg, rgba(7,17,32,0.94) 0%, rgba(7,17,32,0.82) 55%, rgba(7,17,32,0.55) 100%); } .hero-img { object-position: 70% center; } }

/* ¿Dónde aportamos valor? */
.valor { display: grid; gap: var(--s-5); padding: var(--s-6) 0; align-items: center; }
.valor-title { font-size: var(--t-lg); max-width: 20ch; margin-top: var(--s-3); }
.valor-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.valor-list li { font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
@media (min-width: 960px) { .valor { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); } }

/* Quiénes somos */
.about { display: grid; gap: var(--s-7); align-items: center; }
.about-text { margin-top: var(--s-5); display: grid; gap: var(--s-4); max-width: var(--measure); }
.about-text > p:not(.lede) { color: var(--ink-2); }
.stat-card { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: var(--s-7) var(--s-6); border: 1.5px solid var(--gold-500); position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; border: 1px dashed rgba(217,188,106,0.45); }
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 3rem + 5vw, 6.5rem); line-height: 1; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.stat-card .unit { margin-top: 0.4rem; font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.14em; text-transform: uppercase; }
.stat-card p { margin-top: var(--s-3); color: var(--inv-ink-2); max-width: 28ch; }
@media (min-width: 960px) { .about { grid-template-columns: 1.4fr 0.6fr; gap: var(--s-8); } }

/* Servicios (9 tarjetas + cierre) */
.services { display: grid; gap: var(--s-4); }
.services .cell { min-height: 0; }
.services .cell svg { width: 32px; height: 32px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services { grid-template-columns: repeat(3, 1fr); } }
.services-more { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; padding: var(--s-5) var(--s-6); border: 1px dashed var(--gold-500); border-radius: var(--radius-lg); background: var(--bg-elev); }
.services-more p { font-family: var(--font-display); font-weight: 600; max-width: 52ch; }

/* Áreas (lista numerada sobre navy) */
.areas { display: grid; gap: 0; border-top: 1px solid var(--inv-line); }
.areas li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-3); align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--inv-line); color: var(--inv-ink); font-family: var(--font-display); font-weight: 600; font-size: var(--t-base); }
.areas li span { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.12em; color: var(--gold-400); }
@media (min-width: 960px) { .areas { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }

/* Temas clave */
.topics { display: grid; gap: var(--s-5); }
.topic { position: relative; background: var(--bg-elev); border: 1.5px solid var(--navy-900); padding: var(--s-6) var(--s-5) var(--s-5); }
.topic::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-400); pointer-events: none; }
.topic .idx { position: absolute; top: -1px; left: 24px; padding: 0.3rem 0.8rem; background: var(--gold-500); color: var(--navy-900); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.14em; }
.topic h3 { margin-top: var(--s-3); }
.topic .q { margin-top: 0.8rem; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: var(--t-md); line-height: 1.3; color: var(--ink-2); }
:root[data-theme="dark"] .topic { border-color: var(--gold-400); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topic { border-color: var(--gold-400); } }
@media (min-width: 760px) { .topics { grid-template-columns: repeat(2, 1fr); } }

/* Proceso en dos columnas */
.process.two-col { border-top: 0; }
.process.two-col .step:last-child { border-bottom: 1px solid var(--inv-line); }
@media (min-width: 960px) { .process.two-col { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } .process.two-col .step:nth-last-child(2) { border-bottom: 1px solid var(--inv-line); } }

/* ¿Para quién? */
.for-whom { display: grid; gap: var(--s-6); align-items: start; }
.for-whom p + p { margin-top: var(--s-4); color: var(--ink-2); }
@media (min-width: 960px) { .for-whom { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* Enfoque */
.approach { max-width: 900px; text-align: center; display: grid; justify-items: center; gap: var(--s-5); }
.approach h2 { font-size: var(--t-2xl); max-width: 16ch; }
.approach-text { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.3; max-width: 36ch; color: var(--inv-ink); }
.approach-sign { color: var(--inv-ink-2); font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.06em; }
.approach-sign b { color: var(--gold-400); }

/* Cierre */
.closing { background: var(--gold-500); color: var(--navy-900); text-align: center; padding: var(--s-7) 0; }
.closing-tag { font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.closing-line { margin-top: var(--s-3); font-family: var(--font-display); font-weight: 800; font-size: var(--t-xl); line-height: 1.1; }
/* .closing-keys { margin-top: var(--s-4); font-size: var(--t-sm); font-weight: 600; opacity: 0.85; } */
.closing-keys { margin-top: var(--s-4); font-size: var(--t-sm); font-weight: 400; opacity: 0.9; }
.closing-keys b { font-weight: 800; font-size: 1.15em; }

/* Clientes + contacto (sección blanca antes del pie de página) */
.clients-section { background: #fff; color: var(--ink); padding: var(--s-7) 0; }
.footer-simple { display: grid; gap: var(--s-6); align-items: center; justify-items: center; }
.footer-simple .logo-tile { width: min(360px, 70%); }
.footer-main { width: 100%; display: grid; gap: var(--s-5); justify-items: center; text-align: center; align-content: start; }
.clients-title { font-family: var(--font-display); font-weight: 600; color: var(--navy-900); font-size: var(--t-md); line-height: 1.25; max-width: 34ch; margin-top: calc(-1 * var(--s-3)); }
.clients-grid { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-4); }
.clients-grid li { display: flex; align-items: center; justify-content: center; height: 96px; }
.clients-grid img { max-width: 90%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.clients-grid li.is-key { height: 128px; }          /* SAFI: cliente clave, se muestra más grande */
.clients-grid li.is-key img { max-width: 100%; }  /* SAFI a ancho completo de la celda */
.clients-grid li.is-last { grid-column: 1 / -1; }  /* 9.º logo (ICMAC): solo en la última fila, centrado */
.clients-grid li.is-last img { max-width: 50%; }
@media (min-width: 560px) {
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .clients-grid li.is-last { grid-column: 2 / 4; }  /* centrado horizontalmente entre las 4 columnas */
  .clients-grid li.is-last img { max-width: calc(50% - var(--s-2)); }  /* ≈ ancho de una columna */
}
@media (min-width: 960px) {
  .footer-simple { grid-template-columns: 360px 1fr; gap: var(--s-7); }
  .footer-simple .logo-tile { width: 100%; }
}
.footer-links { margin-top: 0.4rem; font-size: var(--t-sm); color: var(--navy-900); }
.footer-links a { color: var(--navy-900); }
.footer-links a:hover { color: var(--gold-600); }
.footer-bottom { margin-top: 0; }

/* Equipo centrado: nombre alineado al centro de la foto */
.team .person { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s-4); }
.team .person img { width: 128px; height: 128px; }
.team .person h3 { font-size: var(--t-lg); }
.team .person .role { margin-top: 0.3rem; }

/* LinkedIn de la empresa */
.company-li { margin: var(--s-7) auto 0; display: flex; width: max-content; max-width: 100%; align-items: center; gap: var(--s-4); padding: 0.8rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); text-decoration: none; transition: border-color 160ms ease, transform 160ms ease; }
.company-li:hover { border-color: var(--accent); transform: translateY(-2px); }
.company-li img { width: 48px; height: 48px; border-radius: 4px; }
.company-li span { display: grid; line-height: 1.2; }
.company-li small { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.06em; }
.company-li svg { width: 24px; height: 24px; color: var(--accent-ink); }
a.logo-tile { display: block; }

/* ==========================================================================
   Escritorio: secciones compactas para verse completas en una pantalla
   (solo aplica en pantallas de 960px o más; móvil y tablet no cambian)
   Para revertir: borra este bloque completo.
   ========================================================================== */
@media (min-width: 960px) {
  /* Menos espacio arriba y abajo en estas 3 secciones */
  /*#servicios, #temas, #contacto { padding-top: 3rem; padding-bottom: 3rem; } */
  #quienes-somos, #servicios, #areas, #temas, #metodo, #contacto { padding-top: 3rem; padding-bottom: 3rem; }

  /* Servicios y Temas: título a la izquierda, texto introductorio a la derecha */
  #servicios .section-head, #temas .section-head {
    grid-template-columns: 1fr 1fr; align-items: end;
    gap: var(--s-5) var(--s-7); margin-bottom: var(--s-5);
  }
  #servicios .section-head .eyebrow, #temas .section-head .eyebrow { grid-column: 1 / -1; }
  #servicios .section-head h2, #temas .section-head h2 { max-width: none; font-size: var(--t-lg); }

  /* Servicios: las 9 cajas más compactas */
  #servicios .services { gap: var(--s-3); }
  #servicios .cell { padding: var(--s-4); gap: 0.35rem; }
  #servicios .cell svg { width: 26px; height: 26px; }
  #servicios .cell p { font-size: 0.84rem; line-height: 1.4; }
  #servicios .services-more { margin-top: var(--s-4); padding: var(--s-3) var(--s-5); }

  /* Temas clave: las 4 cajas en una sola fila */
  .topics { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .topic { padding: var(--s-5) var(--s-4) var(--s-4); }
  .topic .q { font-size: 1.05rem; }

  /* Solicita información: más comprimido */
  #contacto .cta-grid { align-items: center; }
  #contacto .cta-grid h2 { font-size: var(--t-xl); }
  #contacto .form { padding: var(--s-5); gap: var(--s-3); }
  #contacto .field input, #contacto .field select { min-height: 40px; }
  #contacto .field textarea { min-height: 64px; }
  #contacto .form-row { gap: var(--s-3); }
}