/* =========================================================
   PERFORM — v2
   Editorial-technical. Purple kept dominant but shifted deeper;
   bone paper, mono rails, asymmetric layouts.
   ========================================================= */

:root {
  /* Purple family */
  --purple:        #6B2065;
  --purple-light:  #8B3B87;
  --purple-100:    #F3E8F2;
  --purple-50:     #FAF5FA;
  --purple-deep:   #3A0A3A;
  --purple-ink:    #1A041A;

  /* Accent */
  --accent:        #D4956A;
  --accent-soft:   #F0D8C4;

  /* Paper */
  --bone:          #F5F1EA;
  --bone-2:        #ECE6DC;
  --paper:         #FFFFFF;

  /* Text */
  --text:          #1A1419;
  --text-2:        #3E2F3C;
  --text-muted:    #7A6E78;
  --text-soft:     #A49AA2;
  --border:        #E2DBD3;
  --border-dark:   #2A0A2A;

  /* Radii & shadow */
  --r-sm: 2px;
  --r:    4px;
  --r-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(26,4,26,.06);
  --shadow:    0 10px 40px -20px rgba(58,10,58,.35);

  /* Type */
  --ff: 'Roboto','Helvetica Neue',Arial,sans-serif;
  --ff-mono:'Roboto Mono',ui-monospace,SFMono-Regular,Menlo,monospace;

  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

/* intensity tweak: dial purple presence */
body[data-intensity="soft"] { --purple: #7A357A; --purple-deep: #4E1C4E; }
body[data-intensity="mid"]  { --purple: #6B2065; --purple-deep: #3A0A3A; }
body[data-intensity="deep"] { --purple: #5A1254; --purple-deep: #2A0628; }

body[data-markers="off"] .hero-markers { display: none; }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--ff);
  font-weight: 700;
  color: var(--purple-ink);
  margin: 0 0 .4em;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 1.18rem; line-height: 1.3; }
h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); text-wrap: pretty; }
em { font-style: italic; color: var(--purple); }
strong { color: var(--purple-ink); }

.mono, .mono * { font-family: var(--ff-mono); }

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

section { padding-block: clamp(36px, 4.5vw, 64px); }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r);
  font-weight: 500;
  font-size: .93rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  font-family: var(--ff);
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost--light:hover { background: #fff; color: var(--purple-ink); border-color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn .arrow { transition: transform .2s; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 241, 234, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity .2s;
}
@media (max-width: 640px) {
  .brand-logo { height: 38px; }
}
.brand-mark:hover .brand-logo { opacity: .85; }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--purple); border-bottom-color: var(--accent); }

.nav-cta {
  background: var(--purple-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r);
  font-weight: 500;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover { background: var(--purple); color: #fff; }
.nav-cta .arrow { transition: transform .2s; }
.nav-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--purple-ink);
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* subtle engineering-paper grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(107,32,101,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,32,101,.04) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  /* warm accent glow top-right */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 92% 0%, rgba(212,149,106,.16), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(107,32,101,.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-chrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.hero-chrome-row {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(107,32,101,.55);
}
.hero-chrome-top { top: 14px; }
.hero-chrome-bottom { bottom: 14px; }
.mono-tick { padding: 0; }
.mono-tick--mid { opacity: .6; }

/* variant switcher — only the active stage is shown */
.hero-stage { display: none !important; }
body[data-hero="3d"]    .hero-stage--3d    { display: block !important; }
body[data-hero="type"]  .hero-stage--type  { display: flex  !important; }
body[data-hero="split"] .hero-stage--split { display: block !important; }

/* ---- Variant A: full-bleed 3D ---- */
.hero-stage--3d {
  position: relative;
  flex: 1;
  min-height: 72vh;
}
.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-3d-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(26,4,26,.85) 0%, rgba(26,4,26,.25) 55%, transparent 100%),
    radial-gradient(60% 80% at 80% 20%, rgba(212,149,106,.18), transparent 70%);
  pointer-events: none;
}
.hero-3d-copy {
  position: relative;
  z-index: 3;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(28px, 3.5vw, 52px);
  max-width: 640px;
}
.hero-3d-controls,
.viewer-controls {
  display: inline-flex;
  gap: 2px;
  background: rgba(255,255,255,.08);
  padding: 3px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-3d-controls {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  top: clamp(100px, 14vw, 180px);
}
.hero-3d-controls button,
.viewer-controls button {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.7);
  padding: 8px 14px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  cursor: pointer;
  border-radius: calc(var(--r) - 1px);
  transition: background .15s, color .15s;
}
.hero-3d-controls button:hover { color: #fff; }
.viewer-controls button:hover { color: var(--purple-ink); }
.hero-3d-controls button.active { background: var(--accent); color: var(--purple-ink); }
.viewer-controls button.active { background: var(--purple); color: #fff; }

/* Light-variant controls override */
.viewer-controls--light {
  background: rgba(107,32,101,.06);
  border-color: rgba(107,32,101,.14);
}
.viewer-controls--light button {
  color: var(--text-2);
}
.viewer-controls--light button:hover { color: var(--purple-ink); }
.viewer-controls--light button.active { background: var(--purple); color: #fff; }

.hero-3d-legend {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: 48px;
  display: flex;
  gap: 18px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
}
.hero-3d-legend i,
.viewer-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.hero-h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  line-height: 1.02;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: -.025em;
}
.hero-h1 .hl { color: var(--accent); font-style: italic; font-weight: 700; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  max-width: 52ch;
  margin: 0 0 32px;
}
.hero-sub--light { color: rgba(255,255,255,.78); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Variant B: Typographic (paper, light) ---- */
.hero-stage--type {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(28px, 3.5vw, 52px);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 520px at 92% -10%, rgba(212,149,106,.20), transparent 60%),
    radial-gradient(780px 620px at 8% 110%, rgba(107,32,101,.14), transparent 58%);
  overflow: hidden;
}
.hero-stage--type::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(107,32,101,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,32,101,.055) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: 0;
}
.hero-type-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .55;
}
.hero-type-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(26,4,26,.82) 0%, rgba(26,4,26,.45) 55%, rgba(26,4,26,.2) 100%),
    linear-gradient(180deg, transparent 50%, rgba(26,4,26,.7) 100%);
  pointer-events: none;
}
.hero-stage--type .container { width: 100%; position: relative; z-index: 2; }
.hero-type {
  font-family: var(--ff);
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: .92;
  letter-spacing: -.04em;
  margin: 0 0 40px;
  color: var(--purple-ink);
  font-weight: 700;
}
.hero-type-line {
  display: block;
}
.hero-type-line em {
  color: var(--purple);
  font-style: italic;
  font-weight: 700;
}
.hero-type-line--accent {
  color: var(--purple);
  margin-left: clamp(40px, 10vw, 180px);
}
.hero-type-line--accent em { color: var(--purple); }
.hero-type-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 58ch;
  margin: 0 0 32px;
}
.hero-type-sub strong { color: var(--purple-ink); }
.hero-type-annot {
  position: absolute;
  right: var(--pad-x);
  bottom: 0;
  width: 240px;
  color: rgba(107,32,101,.55);
  margin: 0;
  display: none;
}
@media (min-width: 1100px) { .hero-type-annot { display: block; } }

/* ---- Variant C: Split ---- */
.hero-stage--split {
  flex: 1;
  position: relative;
  z-index: 1;
  padding-top: clamp(36px, 4.5vw, 64px);
  padding-bottom: clamp(28px, 3.5vw, 52px);
  background: transparent;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: end;
}
.hero-split-headline { min-width: 0; }
.hero-split-headline .hero-split-h1 { margin-bottom: 0; }
.hero-split-copy {
  min-width: 0;
  padding-bottom: clamp(4px, 0.8vw, 14px);
  max-width: 52ch;
}
.hero-split-h1 {
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  color: var(--purple-ink);
  line-height: 1.0;
  margin: 0 0 32px;
  letter-spacing: -.03em;
  padding-bottom: .12em;
}
.hero-split-h1 .hl { color: var(--purple); font-style: italic; }

/* Tipography treatment — stacked, oversized headline.
   Matches hero-check.png: first two lines ink, last two italic purple
   with a slight indent cascade. */
.hero-split-h1--type {
  font-size: clamp(2.2rem, 5.6vw, 4.9rem);
  line-height: .97;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 4px 0 24px;
}
.hero-split-h1--type .hero-split-line {
  display: block;
}
.hero-split-h1--type .hero-split-line em {
  font-style: italic;
  font-weight: 700;
}
.hero-split-h1--type .hero-split-line--accent {
  color: var(--purple);
  margin-left: clamp(10px, 3.5vw, 64px);
}
@media (max-width: 900px) {
  .hero-split-h1--type .hero-split-line--accent { margin-left: 0; }
}

.hero-split-tag {
  font-family: var(--ff-mono);
  font-size: .82rem;
  color: var(--text-2);
  letter-spacing: .02em;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin: 0 0 24px;
  line-height: 1.6;
  max-width: 48ch;
}
.hero-split-tag span { display: inline; }
.hero-split-tag .mono {
  color: var(--purple);
  font-weight: 500;
  padding: 0 4px;
}

.hero-stage--split .eyebrow { color: var(--purple); }
.hero-stage--split .hero-sub { color: var(--text-2); }
.hero-stage--split .btn-ghost { color: var(--purple-ink); border-color: rgba(107,32,101,.2); }
.hero-stage--split .btn-ghost:hover { background: var(--purple-ink); color: #fff; border-color: var(--purple-ink); }

.hero-split-viewer {
  background: #FBF9F4;
  border: 1px solid rgba(107,32,101,.14);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(58, 10, 58, 0.25), 0 2px 0 rgba(107,32,101,.04);
  display: flex;
  flex-direction: column;
}
.viewer-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(107,32,101,.1);
  background: rgba(107,32,101,.03);
}
.viewer-label, .viewer-rev {
  font-family: var(--ff-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.viewer-rev { color: var(--purple); }
.hero-split-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background:
    radial-gradient(65% 85% at 50% 35%, #F8F3E6 0%, #ECE3CE 55%, #D9CBAE 100%);
  overflow: hidden;
}
.hero-split-canvas canvas { display: block; width: 100%; height: 100%; }
.viewer-controls--light {
  margin: 10px 14px 14px auto;
}

/* ---- 3D viewer HUD overlays (tech chrome over the canvas) ---- */
.viewer-hud {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  font-family: var(--ff-mono);
  color: var(--purple-ink);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 253, 246, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(107,32,101,.14);
  border-radius: 6px;
  padding: 8px 11px;
  line-height: 1.5;
  box-shadow: 0 6px 18px -10px rgba(58,10,58,.25);
}
.viewer-hud--tl { top: 14px; left: 14px; display: flex; flex-direction: column; gap: 3px; }
.viewer-hud--br { right: 14px; bottom: 14px; }
.viewer-hud .hud-k {
  color: var(--purple);
  font-weight: 600;
  letter-spacing: .1em;
  margin-right: 7px;
}
.viewer-hud .hud-v { color: var(--text-2); }
.viewer-hud > div { display: flex; align-items: baseline; gap: 2px; }
@media (max-width: 820px) {
  .viewer-hud { font-size: .55rem; padding: 6px 8px; }
  .viewer-hud--tl { top: 8px; left: 8px; }
  .viewer-hud--br { right: 8px; bottom: 8px; }
}

@media (max-width: 900px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(20px, 4vw, 36px);
  }
  .hero-split-copy { padding-bottom: 0; max-width: none; }
  .hero-split-viewer { order: -1; }
}

/* ---- Markers row (shared bottom of hero) ---- */
.hero-markers {
  border-top: 1px solid rgba(107,32,101,.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 20px;
  margin-top: auto;
  position: relative;
  z-index: 3;
}
.marker {
  padding-inline: 20px;
  padding-right: 24px;
  border-right: 1px solid rgba(107,32,101,.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.marker:first-child { padding-left: 0; }
.marker:last-child { border-right: 0; padding-right: 0; }
.marker-num {
  font-size: 1.15rem;
  color: var(--purple);
  letter-spacing: .02em;
  font-weight: 500;
}
.marker-label {
  font-size: .78rem;
  color: var(--text-2);
  line-height: 1.3;
}
@media (max-width: 900px) {
  .hero-markers { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .marker:nth-child(2) { border-right: 0; padding-right: 0; }
  .marker:nth-child(odd) { padding-left: 0; }
}

/* =========================================================
   CONVICCIÓN
   ========================================================= */
.conviction {
  background: var(--purple-deep);
  color: #fff;
  padding-block: clamp(40px, 5vw, 72px);
}
.conviction-body {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  color: #fff;
  max-width: 28ch;
  margin: 0 0 32px;
  font-weight: 400;
  letter-spacing: -.01em;
}
.conviction-body em { color: var(--accent); font-style: italic; }
.conviction-body strong { color: #fff; font-weight: 700; }
.conviction-body .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  color: rgba(255,255,255,.75);
}
.conviction-sign {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* =========================================================
   ENFOQUE
   ========================================================= */
/* (regla antigua de .enfoque-head removida — ahora vive full-bleed más abajo) */
.enfoque-model {
  /* Break out of the container to span full viewport width */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(28px, 3.5vw, 48px);
  width: 100vw;
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(107,32,101,.04), 0 24px 64px -28px rgba(58,10,58,.18);
}
.enfoque-canvas {
  width: 100%;
  /* Account for header height so the pinned viewer fits above the fold on any screen */
  height: min(calc(100vh - 78px), 880px);
  background:
    radial-gradient(65% 85% at 50% 35%, #F8F3E6 0%, #ECE3CE 55%, #D9CBAE 100%);
  position: relative;
  overflow: hidden;
}
.enfoque-canvas canvas { display: block; width: 100%; height: 100%; }
.enfoque-model .viewer-chrome {
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.enfoque-model .viewer-controls--light,
.enfoque-canvas .viewer-controls--inside {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
}
/* Controls live inside the WebGL canvas — float bottom-left, never overlap the legend below */
.enfoque-canvas .viewer-controls--inside {
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid rgba(107,32,101,.14);
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 2px;
  box-shadow: 0 2px 10px -4px rgba(58,10,58,.18);
}
.enfoque-canvas .viewer-controls--inside button {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all .18s ease;
}
.enfoque-canvas .viewer-controls--inside button:hover {
  color: var(--purple-ink);
  background: rgba(107,32,101,.07);
}
.enfoque-canvas .viewer-controls--inside button.active {
  background: var(--purple-ink);
  color: #fff;
}
.enfoque-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 24px;
  background: rgba(255,255,255,.55);
  border-top: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--text-2);
  letter-spacing: .04em;
}
.enfoque-legend span { display: inline-flex; align-items: center; gap: 8px; }
.enfoque-legend i {
  width: 14px; height: 14px; display: inline-block; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.enfoque-fig {
  padding: 14px 24px 18px;
  margin: 0;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.enfoque-fig .mono {
  color: var(--purple);
  font-size: .72rem;
  letter-spacing: .12em;
  margin-right: 6px;
}
.enfoque-sub {
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 4px;
}
.enfoque-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 58ch;
  margin: 0 0 20px;
  line-height: 1.55;
}
.lede em { color: var(--purple); font-style: italic; font-weight: 500; }
.dot-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.dot-list li {
  position: relative;
  padding-left: 26px;
  padding-block: 10px;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  font-size: .98rem;
}
.dot-list li:first-child { border-top: 1px solid var(--border); }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px; height: 2px;
  background: var(--accent);
}
.enfoque-side {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--r);
}
.cost-curve svg { width: 100%; height: auto; }
.cost-caption {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 16px 0 0;
  line-height: 1.5;
}
.cost-caption .mono {
  color: var(--purple);
  font-size: .72rem;
  letter-spacing: .12em;
  margin-right: 6px;
}

/* ---------------------------------------------------------
   Enfoque — col left (lista + gráfico de costo)
   --------------------------------------------------------- */
.enfoque-col-left {
  display: flex;
  flex-direction: column;
}
.cost-curve-block {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 22px 24px 20px;
  border-radius: var(--r);
  margin: clamp(28px, 3.5vw, 44px) 0 0;
}
.cost-curve-block .cost-curve svg { width: 100%; height: auto; display: block; }
.cost-curve-block .cost-caption { margin-top: 14px; }

/* ---------------------------------------------------------
   Mini dashboard (col derecha)
   --------------------------------------------------------- */
.mini-dash {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash-title strong { color: var(--purple); font-weight: 700; letter-spacing: .1em; }
.dash-rev { color: var(--text-soft); font-size: .68rem; }
.dash-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-kpi {
  background: var(--purple-50);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 76px;
}
.dash-kpi-label {
  font-family: var(--ff-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash-kpi-value {
  font-family: var(--ff);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.dash-kpi-value.accent { color: var(--accent); }
.dash-kpi-unit {
  font-family: var(--ff-mono);
  font-size: .64rem;
  color: var(--text-soft);
  letter-spacing: .03em;
}
.dash-chart { display: flex; flex-direction: column; gap: 6px; }
.dash-chart h4 {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
}
.dash-chart h4 .mono { color: var(--text-soft); font-weight: 400; }
.dash-chart svg { width: 100%; height: auto; display: block; }
.dash-foot {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.dash-foot .mono {
  color: var(--purple);
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  margin-right: 6px;
}

/* Responsivo Enfoque */
@media (max-width: 900px) {
  .enfoque-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 48px); }
  .mini-dash { padding: 18px; }
  .dash-kpi-value { font-size: 1.35rem; }
}
@media (max-width: 520px) {
  .dash-kpis { grid-template-columns: 1fr; }
}

/* =========================================================
   SEC HEAD (shared)
   ========================================================= */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sec-head h2 { margin: 0; }
.sec-head-note {
  margin: 0;
  color: var(--text-muted);
  max-width: 46ch;
  font-size: .98rem;
}
.sec-head--light { border-bottom-color: rgba(255,255,255,.12); }
.sec-head--light h2 { color: #fff; }
.sec-head-note--light { color: rgba(255,255,255,.65); }

/* Proyectos is now light, so override within that scope */
.proyectos .sec-head--light { border-bottom-color: var(--border); }
.proyectos .sec-head--light h2 { color: var(--purple-ink); }
.proyectos .sec-head-note--light { color: var(--text-2); }
.proyectos .sec-head--light .eyebrow { color: var(--purple); }

/* =========================================================
   SERVICIOS — editorial list, not card-grid
   ========================================================= */
.servicios { background: var(--bone); }

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.service {
  display: grid;
  grid-template-columns: 72px 1fr 120px;
  gap: clamp(16px, 3vw, 48px);
  padding-block: 40px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background .2s;
}
.service:hover { background: rgba(107,32,101,.03); }
.service-num {
  font-size: 1.2rem;
  color: var(--purple);
  letter-spacing: .02em;
  padding-top: 4px;
}
.service-body h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--purple-ink);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.service-body p {
  max-width: 62ch;
  color: var(--text-2);
  margin-bottom: 14px;
}
.service-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.service-tags li::before { content: "· "; color: var(--accent); }
.service-tech {
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--accent);
  text-align: right;
  padding-top: 8px;
}
@media (max-width: 760px) {
  .service { grid-template-columns: 48px 1fr; }
  .service-tech { display: none; }
}

/* =========================================================
   PROYECTOS
   ========================================================= */
.proyectos {
  background: var(--bone);
  color: var(--text);
}
.proyectos .eyebrow { color: var(--purple); }
.proyectos .sec-head--light { color: var(--purple-ink); }
.proyectos .sec-head--light h2 { color: var(--purple-ink); }
.proyectos .sec-head-note--light { color: var(--text-2); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-grid--mosaic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.project--horiz { flex-direction: row; }
.project--horiz .project-visual { flex: 1; min-height: 300px; }
.project--horiz .project-meta { flex: 1; }
.project--span { grid-column: 1 / -1; }
.project--span .project-visual { flex: 1.05; min-height: 340px; }
.project--narrow {
  grid-column: 1 / -1;
  max-width: calc(50% - 14px);
  margin-inline: auto;
}
.project {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.project:hover {
  transform: translateY(-2px);
  border-color: rgba(107,32,101,.25);
  box-shadow: 0 20px 40px -20px rgba(58,10,58,.2);
}
.project--wide { grid-column: span 2; }
.project--wide { flex-direction: row; }
.project--wide .project-visual { flex: 1.1; min-height: 320px; }
.project--wide .project-meta { flex: 1; }

.project-visual {
  position: relative;
  background: var(--bone);
  padding: 40px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-visual::after {
  content: none;
}
.project-visual--02 { background: var(--bone); }
.project-visual--03 { background: var(--bone); }
.project-diag { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.project-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--purple);
  z-index: 2;
}
.project-meta {
  padding: 28px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-sector-title {
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0;
  color: var(--purple-ink);
  letter-spacing: -.01em;
  font-weight: 600;
}
.project-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 8px;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: .88rem;
}
.project-kv span {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}
.project-kv strong {
  color: var(--purple-ink);
  font-weight: 500;
}
.project-kv strong.mono { color: var(--purple); font-weight: 500; }
.project-meta p {
  color: var(--text-2);
  font-size: .95rem;
  margin: 0;
}
.project-meta h3 { color: var(--purple-ink); }
.proyectos-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  font-size: .88rem;
}
.proyectos-foot .mono {
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.proyectos-foot a { color: var(--purple); font-weight: 500; }
.proyectos-foot a:hover { color: var(--purple-ink); }

@media (max-width: 1100px) {
  .project-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .project-grid--mosaic .project--horiz {
    flex-direction: column;
  }
  .project-grid--mosaic .project--horiz .project-visual,
  .project-grid--mosaic .project--span .project-visual {
    min-height: 240px;
  }
}
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-grid--3 { grid-template-columns: 1fr; }
  .project-grid--mosaic { grid-template-columns: 1fr; }
  .project--wide { grid-column: span 1; flex-direction: column; }
  .project--span { grid-column: 1; }
  .project--narrow { max-width: none; grid-column: 1; }
}

/* =========================================================
   TECNOLOGÍAS
   ========================================================= */
.tech { background: var(--bone-2); }
.tech-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--paper);
}
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 780px;
}
.tech-table th, .tech-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.tech-table thead th {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bone);
}
.tech-table tbody tr:hover { background: rgba(107,32,101,.03); }
.tech-table td:first-child,
.tech-table th:first-child { color: var(--purple); width: 50px; }
.tech-table td.mono { color: var(--purple); font-size: .85rem; letter-spacing: .04em; }
.tech-table tbody tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 500;
}
.badge-ok   { background: #E8F3EC; color: #2A6B50; }
.badge-info { background: #E8F0F6; color: #2E587A; }
.badge-warn { background: #FCF1E3; color: #8A5A28; }

/* =========================================================
   ALIANZA OAE
   ========================================================= */
.oae {
  background: #0B1628;
  color: #E5ECF5;
  position: relative;
  overflow: hidden;
}
.oae::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(184,214,52,.12), transparent);
  pointer-events: none;
}
.oae h2, .oae .eyebrow, .oae strong { color: #fff; }
.oae p { color: rgba(229,236,245,.75); }
.oae-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 40px;
}
.oae-mark {
  display: flex;
  align-items: center;
}
.oae-logo {
  display: block;
  width: clamp(220px, 26vw, 340px);
  height: auto;
}
.oae-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid #B8D634;
  border-radius: 999px;
  color: #B8D634;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.oae-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #B8D634;
  box-shadow: 0 0 12px rgba(184,214,52,.7);
}
.oae-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  color: #fff;
  margin: 0;
  letter-spacing: -.02em;
  font-weight: 700;
  max-width: 22ch;
}
.oae-title em { color: #B8D634; font-style: italic; }

.oae-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
}
.oae-lede {
  font-size: 1.08rem;
  max-width: 58ch;
}
.oae-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.oae-list li {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.oae-list .mono {
  font-size: .7rem;
  letter-spacing: .14em;
  color: #B8D634;
}
.oae-list strong {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
}
.oae-list em {
  font-style: normal;
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(229,236,245,.6);
  text-transform: uppercase;
}
@media (max-width: 800px) {
  .oae-top { grid-template-columns: 1fr; justify-items: start; }
  .oae-grid { grid-template-columns: 1fr; }
  .oae-logo { width: clamp(200px, 60vw, 280px); }
}

/* =========================================================
   INSIGHTS
   ========================================================= */
.insights { background: var(--bone); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 0;
  border-top: 2px solid var(--purple-ink);
  color: var(--text);
  transition: transform .2s;
}
.post:hover { transform: translateY(-2px); color: var(--purple); }
.post-tag {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
}
.post h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--purple-ink);
  margin: 0;
  text-wrap: balance;
}
.post p {
  color: var(--text-2);
  margin: 0;
  font-size: .95rem;
}
.post .read-more {
  margin-top: auto;
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.post .arrow { transition: transform .2s; display: inline-block; }
.post:hover .arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  background: var(--purple-deep);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact-h2 { color: #fff; }
.contact-lede { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 46ch; margin-bottom: 36px; }
.contact-kv {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  row-gap: 12px;
  font-size: .94rem;
}
.contact-kv dt {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}
.contact-kv dd { margin: 0; color: rgba(255,255,255,.85); }
.contact-kv dd a { color: #fff; border-bottom: 1px solid var(--accent); }
.contact-kv dd a:hover { color: var(--accent); }

.contact-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
}
.contact-form label {
  display: grid;
  gap: 6px;
}
.contact-form label > span {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  color: #fff;
  font-family: var(--ff);
  font-size: .95rem;
  transition: border-color .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: rgba(255,255,255,.09);
}
.contact-form textarea { resize: vertical; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-ok {
  font-family: var(--ff-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--accent);
  margin: 0;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--purple-ink);
  color: rgba(255,255,255,.7);
  padding-block: 48px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a,
.footer-grid ul li { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-grid ul a:hover { color: #fff; }
.brand-mark--footer { color: #fff; margin-bottom: 20px; }
.footer-claim { font-size: .88rem; color: rgba(255,255,255,.55); max-width: 38ch; line-height: 1.5; }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  align-self: end;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   TWEAKS PANEL
   ========================================================= */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.35);
  z-index: 100;
  font-size: .88rem;
  overflow: hidden;
}
.tweaks header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--purple-ink);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tweaks-close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.tweaks-close:hover { color: #fff; }
.tweaks-body { padding: 16px; display: grid; gap: 18px; }
.tweak label {
  display: block;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.seg {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.seg button {
  flex: 1;
  background: #fff;
  border: 0;
  padding: 9px 6px;
  font-size: .75rem;
  color: var(--text);
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background .15s, color .15s;
  font-family: var(--ff);
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--bone); }
.seg button.active {
  background: var(--purple);
  color: #fff;
}

/* =========================================================
   BLOG + POSTS + 404  (appended — not in v2.css canonical)
   ========================================================= */

/* ---- Blog index hero ---- */
.blog-hero {
  padding-block: clamp(36px, 4.5vw, 64px) clamp(20px, 2.5vw, 32px);
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--purple-ink);
  margin: 0 0 .4em;
}
.blog-hero .lede {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 58ch;
}
body > header + main > section.insights {
  padding-top: clamp(32px, 4vw, 64px);
}

/* ---- Article (post) page ---- */
.post-page { background: var(--bone); }
.post-article {
  padding-block: clamp(28px, 3.5vw, 48px) clamp(36px, 4.5vw, 64px);
}
.post-article .container {
  max-width: 720px;
}
.post-article .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--purple);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.post-article .back-link:hover { color: var(--accent); }
.post-meta {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.post-meta .dot { color: var(--text-soft); }
.post-article h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  color: var(--purple-ink);
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}
.post-article h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--purple-ink);
  margin-top: 2em;
  margin-bottom: .5em;
  letter-spacing: -.015em;
}
.post-article h3 {
  font-size: 1.1rem;
  color: var(--purple);
  margin-top: 1.6em;
  margin-bottom: .4em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.post-article p {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-2);
  margin: 0 0 1.1em;
}
.post-article p strong { color: var(--purple-ink); }
.post-article p em     { color: var(--purple); }
.post-article ul, .post-article ol {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 1.2em 1.3em;
  padding: 0;
}
.post-article li { margin-bottom: .5em; }
.post-article blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(212,149,106,.08);
  color: var(--purple-ink);
  font-size: 1.12rem;
  line-height: 1.5;
  font-style: italic;
}
.post-article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.post-article pre,
.post-article code {
  font-family: var(--ff-mono);
  font-size: .9rem;
  background: var(--bone-2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--purple-deep);
}
.post-article pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin: 1em 0;
}
.post-article img,
.post-article svg {
  max-width: 100%;
  margin: 28px 0;
  border-radius: var(--r);
}
.post-article figure {
  margin: 28px 0;
}
.post-article figcaption {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .02em;
  margin-top: 8px;
  text-align: center;
}
.post-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
}
.post-foot p { margin: 0; font-size: 1rem; }
.post-foot em { color: var(--purple); font-style: italic; font-weight: 500; }
.post-foot a {
  color: var(--purple);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}
.post-foot a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- 404 page ---- */
.err {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--paper);
}
.err h1 {
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: .9;
  color: var(--purple);
  margin: 0 0 .2em;
  letter-spacing: -.03em;
}
.err .lede {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 46ch;
  margin: 0 0 28px;
}
.err .hero-actions { margin-top: 20px; }

/* =========================================================
   CONVICCIÓN — botón equipo
   ========================================================= */
.conviction-team-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 14px 22px;
  background: transparent;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(184,214,52,0.45);
  border-radius: var(--r);
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.conviction-team-trigger:hover {
  background: rgba(184,214,52,0.10);
  border-color: rgba(184,214,52,0.85);
  transform: translateY(-1px);
}
.conviction-team-trigger .mono {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: #B8D634;
}
.conviction-team-trigger .arrow {
  transition: transform .2s;
}
.conviction-team-trigger:hover .arrow { transform: translateX(4px); }

/* =========================================================
   MODAL (overlay editorial)
   ========================================================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 40, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  background: var(--bone);
  color: var(--text);
  width: 100%;
  max-width: 1180px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--r);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.6);
  animation: modalIn .25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  z-index: 2;
}
.modal-close:hover {
  background: var(--purple-ink);
  color: #fff;
  transform: scale(1.05);
}
.modal-head {
  margin-top: -10px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  max-width: 70ch;
}
.modal-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--purple-ink);
  margin: 8px 0 16px;
  letter-spacing: -.02em;
}
.modal-lede {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* Team grid inside modal */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.team-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(20px, 2.2vw, 28px);
}
.team-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.team-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  font-weight: 600;
}
.team-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--purple-ink);
  line-height: 1.2;
}
.team-role {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 4px 0 0;
}
.team-bio {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 14px;
}
.team-bio:last-child { margin-bottom: 0; }
.team-bio strong { color: var(--purple-ink); font-weight: 500; }

@media (max-width: 1000px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   POSTS COMO BOTÓN (para abrir modal en lugar de navegar)
   ========================================================= */
.post.post--btn {
  background: #fff;
  border: 1px solid var(--border);
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px);
  gap: 12px;
  border-radius: var(--r);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post.post--btn:hover {
  transform: translateY(-2px);
  border-color: rgba(107,32,101,.3);
  box-shadow: 0 18px 40px -22px rgba(58,10,58,.22);
}

.insights-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: baseline;
  font-size: .9rem;
}
.insights-foot .mono {
  color: var(--text-muted);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.insights-foot a { color: var(--purple); font-weight: 500; }
.insights-foot a:hover { color: var(--purple-ink); }

/* =========================================================
   MODAL — variante artículo
   ========================================================= */
.modal-panel--post { max-width: 880px; }
.modal-panel--post .modal-content { margin-top: -10px; }
.modal-panel--post .post-article { padding: 0; background: transparent; }
.modal-panel--post .post-article .container { padding: 0; max-width: none; }

.post-article--inline { padding: 0; }
.post-article--inline h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--purple-ink);
  letter-spacing: -.02em;
  margin: 12px 0 18px;
}
.post-article--inline .post-meta {
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-article--inline .post-meta .dot { margin: 0 8px; }
.post-article--inline .post-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
}
.post-truncated {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  color: var(--text-muted);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 24px 0;
}

.modal-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
}
.modal-error {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-2);
}

/* =========================================================
   INSIGHTS — botón ver todos (Insights footer)
   ========================================================= */
.insights-foot {
  flex-wrap: wrap;
  justify-content: space-between;
}
.insights-more {
  background: transparent;
  border: 1px solid var(--purple);
  color: var(--purple);
  padding: 10px 18px;
  border-radius: var(--r);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, color .2s, transform .15s;
}
.insights-more:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-1px);
}
.insights-more .arrow { transition: transform .2s; }
.insights-more:hover .arrow { transform: translateX(3px); }
.insights-foot-sep { color: var(--text-muted); opacity: .5; }

/* =========================================================
   MODAL — listado de artículos (filas tipo lista)
   ========================================================= */
.modal-panel--articles { max-width: 920px; }

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .15s, padding-left .2s;
}
.article-row:first-child { border-top: 1px solid var(--border); }
.article-row:hover {
  background: rgba(107,32,101,.04);
  padding-left: 14px;
}
.article-row-tag {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
}
.article-row h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--purple-ink);
  margin: 0;
}
.article-row p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 70ch;
}

/* =========================================================
   ENFOQUE — header con metodología (PMI)
   ========================================================= */
/* Enfoque-head FULL-BLEED: 50/50 sin container */
.enfoque-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 0 0 clamp(20px, 2.5vw, 36px) 0;
  padding: 0;
  border: 0;
}
.enfoque-col {
  padding: clamp(20px, 2.6vw, 36px) clamp(24px, 4vw, 56px);
  min-width: 0;
}
.enfoque-col--text > * { margin-bottom: 0; }
.enfoque-col--text .eyebrow { margin-bottom: 18px; }
.enfoque-col--text h2 { margin-bottom: 18px; }
.enfoque-col--text .lede { max-width: none; margin: 0; }
.enfoque-col--text .lede + .lede { margin-top: 18px; }

.enfoque-col--method {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--border);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--accent::before { background: var(--accent); }

.enfoque-method-claim {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: none;
}
.enfoque-method-claim strong {
  color: var(--purple-ink);
  font-weight: 500;
}
.method-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .enfoque-head { grid-template-columns: 1fr; }
  .enfoque-col--method { border-left: 0; border-top: 1px solid var(--border); }
}

/* Team card — LinkedIn icon */
.team-card-head { gap: 14px; }
.team-name { flex: 1; min-width: 0; }
.team-linkedin {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.team-linkedin:hover {
  background: #0A66C2;
  color: #fff;
  border-color: #0A66C2;
  transform: translateY(-1px);
}
.team-linkedin[data-linkedin-pending] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
