:root {
  --bg: #FFFFFF;
  --fg: #0A0A0A;
  --muted: #707070;
  --rule: #E5E5E5;
  --hover: #F5F5F5;
  --accent: #D9252A;
  --gutter: 48px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* Aliases used by long-form diario styles (kept for token consistency) */
  --ink: #0A0A0A;
  --ink-2: #6B6B6B;
  --line: #ECECEC;
  --surface-2: #F5F5F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

*:focus-visible {
  outline: 2px solid var(--accent, #D9252A);
  outline-offset: 3px;
}
*:focus:not(:focus-visible) { outline: none; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ NAV ============ */
/* Brand is hoisted out of nav (see nav-en/-es partials) so its multi-color
   SVG isn't affected by the difference blend used for auto-contrast text. */
.brand-fixed {
  position: fixed;
  top: 24px;
  left: var(--gutter);
  z-index: 101;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-fixed svg { width: 28px; height: 28px; display: block; }

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px var(--gutter);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  mix-blend-mode: difference;
  color: #FFFFFF;
}

nav .brand {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}

nav .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav .nav-cta {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid currentColor;
  transition: opacity 0.3s var(--ease);
}

nav .nav-cta:hover { opacity: 0.7; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lang-toggle a {
  color: inherit;
  text-decoration: none;
  opacity: 0.5;
  padding: 6px 4px;
  transition: opacity 0.2s var(--ease);
}
.lang-toggle a:hover { opacity: 1; }
.lang-toggle a.active { opacity: 1; }
.lang-toggle .sep { opacity: 0.3; }

.menu-btn {
  background: none;
  border: none;
  padding: 12px 0 12px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn .lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn .lines span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ============ FULL-SCREEN MENU ============ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--fg);
  color: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 48px;
  clip-path: inset(0 0 100% 0);
  /* Close: snappier collapse (overridden by .open for the slower open animation). */
  transition: clip-path 0.35s var(--ease);
  pointer-events: none;
}

.menu-overlay.open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
  transition: clip-path 0.7s var(--ease);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-header .brand {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--bg);
  text-decoration: none;
}

.menu-close {
  background: none;
  border: none;
  padding: 12px 18px 12px 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
}

.menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 80px;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 32px;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--bg);
  text-decoration: none;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(40px);
  /* Close: opacity-only fade. Transform snaps invisibly behind the fade so
     items don't chase the panel as it clip-paths up. */
  transition: opacity 0.25s var(--ease), color 0.15s var(--ease);
}

.menu-overlay.open .menu-list a {
  opacity: 1;
  transform: translateY(0);
  /* Open: full opacity + transform animation, slower, with staggered delays. */
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.15s var(--ease);
}

.menu-overlay.open .menu-list a:nth-child(1) { transition-delay: 0.15s, 0.15s, 0s; }
.menu-overlay.open .menu-list a:nth-child(2) { transition-delay: 0.21s, 0.21s, 0s; }
.menu-overlay.open .menu-list a:nth-child(3) { transition-delay: 0.27s, 0.27s, 0s; }
.menu-overlay.open .menu-list a:nth-child(4) { transition-delay: 0.33s, 0.33s, 0s; }
.menu-overlay.open .menu-list a:nth-child(5) { transition-delay: 0.39s, 0.39s, 0s; }
.menu-overlay.open .menu-list a:nth-child(6) { transition-delay: 0.45s, 0.45s, 0s; }

.menu-list a .num {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.menu-list a:hover { color: var(--accent); }
.menu-list a:hover .num { color: var(--accent); }

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.menu-footer a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
}

.menu-footer a:hover { color: var(--accent); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  padding: 96px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.hero-wordmark {
  font-weight: 900;
  font-size: clamp(120px, 22vw, 360px);
  letter-spacing: -0.025em;
  line-height: 0.85;
  margin: 0;
}

.hero-wordmark span {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.5, 1.7, 0.4, 1);
  transform-origin: 50% 100%;
  animation: letter-wave 1.1s cubic-bezier(0.5, 1.6, 0.4, 1) backwards;
}

.hero-wordmark span:nth-child(1) { animation-delay: 0.3s; }
.hero-wordmark span:nth-child(2) { animation-delay: 0.42s; }
.hero-wordmark span:nth-child(3) { animation-delay: 0.54s; }
.hero-wordmark span:nth-child(4) { animation-delay: 0.66s; }

@keyframes letter-wave {
  0% { transform: translateY(0); }
  35% { transform: translateY(-0.2em); }
  65% { transform: translateY(0.04em); }
  100% { transform: translateY(0); }
}

.hero-wordmark span:nth-child(odd):hover {
  transform: translateY(-0.1em) rotate(-7deg);
}

.hero-wordmark span:nth-child(even):hover {
  transform: translateY(-0.1em) rotate(7deg);
}

/* ============ SLOT MACHINE ============ */
.slot {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.15em;
  vertical-align: middle;
  line-height: 1.15;
  color: var(--accent);
}

.slot-track {
  display: flex;
  flex-direction: column;
  animation: slot 6s cubic-bezier(0.5, 1.5, 0.4, 1) infinite;
}

.slot-item {
  height: 1.15em;
  line-height: 1.15;
  white-space: nowrap;
  display: block;
}

@keyframes slot {
  0%, 17% { transform: translateY(0); }
  25%, 42% { transform: translateY(-1.15em); }
  50%, 67% { transform: translateY(-2.3em); }
  75%, 92% { transform: translateY(-3.45em); }
  100% { transform: translateY(-4.6em); }
}

.hero-tagline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 56px;
  gap: 48px;
}

.hero-tagline .lead {
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 560px;
}

.hero-tagline .meta-right {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
  white-space: nowrap;
}

.hero-scroll {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============ PAGE HERO (subpages) ============ */
.page-hero {
  padding: 200px var(--gutter) 96px;
  border-bottom: 1px solid var(--rule);
}

.page-hero .container { padding: 0; }

.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.page-hero h1 {
  font-weight: 400;
  font-size: clamp(48px, 7vw, 120px);
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 1100px;
  margin-bottom: 32px;
}

.page-hero .lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  max-width: 720px;
  line-height: 1.55;
}

.page-hero .hero-checks {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.page-hero .hero-checks strong {
  color: var(--fg);
  font-weight: 500;
}

/* ============ SECTIONS ============ */
section {
  padding: 160px 0;
  border-top: 1px solid var(--rule);
}

section:first-of-type { border-top: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 80px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head .num { color: var(--fg); }

h2 {
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 1100px;
}

.nowrap { white-space: nowrap; }

/* ============ SHIFT ============ */
.shift .body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.shift h2 { margin-bottom: 0; }

.shift .right p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
}

.shift .stat {
  margin: 56px 0;
  padding: 32px 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--rule);
}

.shift .stat .num {
  font-weight: 400;
  font-size: 120px;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--accent);
}

.shift .stat .unit {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.shift .cite {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}
.shift .cite-cta {
  margin: 16px 0 0;
  font-size: 14px;
}
.shift .cite-cta a {
  color: var(--ink, #0A0A0A);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity .15s ease;
}
.shift .cite-cta a:hover { opacity: 0.6; }

/* ============ PRINCETON ============ */
.princeton .intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  margin-bottom: 80px;
}

.princeton .intro p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.bar-row {
  display: grid;
  grid-template-columns: 320px 1fr 120px;
  gap: 48px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.bar-row:first-of-type { border-top: 1px solid var(--fg); }

.bar-label {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.bar-label .en {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.bar-track {
  height: 36px;
  background: var(--hover);
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--fg);
  width: 0;
  transition: width 1.4s var(--ease);
}

.bar-value {
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.03em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.princeton-cite {
  margin-top: 48px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

/* ============ BUILD ============ */
.build .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--fg);
}

.build .grid.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.build .grid.grid-4 .item:nth-child(even) { border-right: none; }
.build .grid.grid-4 .item:nth-child(odd) { border-right: 1px solid var(--rule); }

.build-more {
  margin-top: 40px;
  font-size: 14px;
  text-align: right;
}
.build-more a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.build-more a:hover { color: #D9252A; }

.build .item {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 56px 40px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.build .item:last-child { border-right: none; }

.build .item .num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.build .item h3 {
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 24px;
  margin-bottom: 12px;
}

.build .item h3 .en {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.build .item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 16px;
}

/* ============ AISEO DEMO ============ */
.demo h2 { margin-bottom: 24px; }
.demo .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 64px;
}

.demo-widget {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--fg);
}

.demo-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-dot {
  width: 8px; height: 8px;
  background: var(--fg);
  border-radius: 50%;
  display: inline-block;
}

.demo-toggle {
  display: flex;
  border: 1px solid var(--fg);
}

.demo-toggle button {
  background: var(--bg);
  border: none;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.demo-toggle button.active { background: var(--fg); color: var(--bg); }
.demo-toggle button:hover:not(.active) { background: var(--hover); }

.demo-body {
  padding: 40px 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.demo-message .who {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.demo-message.user .text {
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.demo-message.ai .text {
  font-size: 17px;
  line-height: 1.65;
  min-height: 1.65em;
}

.demo-message.ai .text .cite {
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.demo-message.ai .text .stat {
  font-weight: 500;
  color: var(--accent);
}

.typewriter-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--fg);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.demo-sources, .demo-techniques {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.source-pill, .tech-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  color: var(--muted);
}

.tech-tag {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.demo-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ CRONOGRAMA — TIER GANTT ============ */
.process h2 { margin-bottom: 24px; }
.process h2 em { font-style: italic; color: var(--accent); }

.timeline-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.variant-toggle {
  display: inline-flex;
  border: 1px solid var(--fg);
  margin-bottom: 24px;
}

.variant-toggle button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  background: var(--bg);
  color: var(--fg);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  border-right: 1px solid var(--rule);
}

.variant-toggle button:last-child { border-right: none; }
.variant-toggle button:hover:not(.active) { background: var(--hover); }
.variant-toggle button.active { background: var(--fg); color: var(--bg); }
.variant-toggle button.express-btn { color: var(--accent); }
.variant-toggle button.express-btn.active { background: var(--accent); color: var(--bg); }

.express-callout {
  display: none;
  margin-bottom: 32px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--hover);
  font-size: 14px;
  color: var(--fg);
  max-width: 720px;
}

.express-callout.show { display: block; }

.express-callout strong { color: var(--accent); font-weight: 500; }

.timeline-legend {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  font-size: 12px;
  color: var(--muted);
}

.timeline-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.legend-swatch {
  width: 18px;
  height: 10px;
  display: inline-block;
}

.swatch-site { background: var(--fg); }
.swatch-geo { background: var(--accent); }
.swatch-cite {
  background: repeating-linear-gradient(45deg, var(--muted), var(--muted) 3px, transparent 3px, transparent 7px);
}

.gantt-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--fg);
}

.gantt-row.two-col { grid-template-columns: repeat(2, 1fr); }

.gantt {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.gantt:last-child { border-right: none; }

.gantt-tier {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.gantt-name {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}

.gantt-price {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.gantt-promise {
  font-size: 13px;
  padding: 14px 16px;
  background: var(--hover);
  border-left: 2px solid var(--accent);
  margin-bottom: 32px;
}

.gantt-promise .label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.gantt-promise .value {
  color: var(--fg);
  font-weight: 500;
}

.gantt-scale {
  position: relative;
  height: 18px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.gantt-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.gantt-scale span:nth-child(1) { left: 0%; transform: translateX(0); }
.gantt-scale span:nth-child(2) { left: 25%; }
.gantt-scale span:nth-child(3) { left: 50%; }
.gantt-scale span:nth-child(4) { left: 75%; }
.gantt-scale span:nth-child(5) { left: 100%; transform: translateX(-100%); }

.gantt-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.gantt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.gantt-bar-label {
  width: 110px;
  color: var(--fg);
  font-weight: 500;
  font-size: 12px;
  flex-shrink: 0;
}

.gantt-bar-track {
  flex: 1;
  height: 14px;
  position: relative;
  background: transparent;
}

.gantt-bar-fill {
  height: 100%;
  position: absolute;
  top: 0;
  transition: left 0.4s var(--ease), width 0.4s var(--ease);
}

.fill-site { background: var(--fg); }
.fill-geo { background: var(--accent); }
.fill-cite {
  background: repeating-linear-gradient(45deg, var(--muted), var(--muted) 3px, transparent 3px, transparent 7px);
}

.gantt-total {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
}

.gantt-total .stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.gantt-total .stat-value {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.gantt-total .right { text-align: right; }

.timeline-deeper {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.timeline-deeper p {
  font-size: 14px;
  color: var(--muted);
  max-width: 560px;
}

/* ============ TOOLS ============ */
.tools h2 { margin-bottom: 24px; }
.tools h2 em { font-style: italic; color: var(--accent); }
.tools .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 80px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--fg);
}

.tool-card {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.4s var(--ease);
}

.tool-card:nth-child(2n) { border-right: none; }
.tool-card:hover { background: var(--hover); }

.tool-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.tool-status {
  position: absolute;
  top: 48px;
  right: 40px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
}

.tool-status.soon {
  color: var(--muted);
  border-color: var(--rule);
}

.tool-card h3 {
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.tool-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 420px;
}

.tool-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* ============ BLOG ============ */
.blog h2 { margin-bottom: 24px; }
.blog .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--fg);
}

.blog-card {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 40px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease);
}

.blog-card:nth-child(2n) { border-right: none; }
.blog-card:hover { background: var(--hover); }

.blog-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.blog-card h3 {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.blog-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.blog-time {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.blog-foot {
  margin-top: 56px;
  text-align: center;
}

/* ============ PRICING ============ */
.pricing .price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--fg);
}

.pricing .price-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.pricing .tier {
  padding: 56px 56px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing .tier:last-child { border-right: none; }

.pricing .tier.featured::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.pricing .tier-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.pricing .tier.featured .tier-label {
  color: var(--accent);
}

.pricing .tier h3 {
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pricing .tier h3 .en {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.pricing .tier .price {
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 32px 0 4px;
}

.pricing .tier .price-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 4px;
}

.pricing .tier .price-unit {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.pricing .tier ul {
  list-style: none;
  flex: 1;
  margin: 24px 0;
}

.pricing .tier li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.pricing .tier li:last-child { border-bottom: 1px solid var(--rule); }

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 24px;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.4s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}

.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; z-index: 1; }

.btn-solid {
  background: var(--fg);
  color: var(--bg);
}

.btn-solid::before { background: var(--bg); transform: translateY(100%); }
.btn-solid:hover { color: var(--fg); }
.btn-solid:hover::before { transform: translateY(0); }

.pricing .tier .btn { margin-top: 24px; }

/* ============ FAQ ============ */
.faq h2 { margin-bottom: 80px; }

.faq-list { border-top: 1px solid var(--fg); }
.faq-item { border-bottom: 1px solid var(--rule); }

/* AI-only FAQ items — content stays in DOM (and JSON-LD) for crawlers + AI agents,
   hidden from human readers since these are disambiguation Qs about other XALAs. */
.faq-ai-only { display: none; }

.faq-q {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 24px;
  align-items: center;
  padding: 36px 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.faq-q .num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-q .question {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.faq-q .icon {
  width: 24px;
  height: 24px;
  position: relative;
  justify-self: end;
}

.faq-q .icon::before,
.faq-q .icon::after {
  content: '';
  position: absolute;
  background: var(--fg);
  transition: transform 0.4s var(--ease);
}

.faq-q .icon::before {
  left: 50%; top: 50%;
  width: 1px; height: 16px;
  transform: translate(-50%, -50%);
}

.faq-q .icon::after {
  left: 50%; top: 50%;
  width: 16px; height: 1px;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-q .icon::before { transform: translate(-50%, -50%) rotate(90deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a-inner {
  padding: 0 0 36px 84px;
  max-width: 880px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ============ ABOUT ============ */
.about .body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
}

.about h2 { font-size: clamp(36px, 4.5vw, 64px); }

.about p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.about .footnote {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
  line-height: 1.7;
}

/* ============ MARK (about page) ============ */
@keyframes mark-migrate {
  0%, 24.99% { fill: #e21d42; }
  25%, 100%  { fill: #231f20; }
}
.mark-svg .cardinal { animation: mark-migrate 2s infinite linear; }
.mark-svg .cardinal.right  { animation-delay: 0s; }
.mark-svg .cardinal.bottom { animation-delay: 0.5s; }
.mark-svg .cardinal.left   { animation-delay: 1s; }
.mark-svg .cardinal.top    { animation-delay: 1.5s; }
.mark-display {
  display: flex;
  justify-content: center;
  padding: 96px 0 32px;
}
.mark-display svg { width: clamp(220px, 30vw, 320px); height: auto; }

/* ============ NAV BRAND ICON ============ */
.brand svg { width: 28px; height: 28px; display: block; }

/* ============ CONTACT / CLOSING CTA ============ */
.contact {
  padding: 120px 0;
  text-align: center;
}

.contact h2 {
  margin: 0 auto 32px;
  font-size: clamp(48px, 7vw, 120px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.contact .sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

.contact .cta-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.contact-secondary {
  margin-top: 80px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.link-inline {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-inline:hover { opacity: 0.7; }

/* ============ CONTACT MAIN (form + map) ============ */
.contact-main {
  padding: 0 0 120px;
  border-top: 1px solid var(--rule);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  padding-top: 96px;
}

.contact-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ---- Form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form .field-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--fg);
  padding: 12px 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.contact-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.contact-form .form-submit {
  align-self: flex-start;
  margin-top: 16px;
}

.contact-form .form-submit:disabled {
  cursor: default;
  opacity: 0.7;
}

.contact-form .form-status {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}

.contact-form .form-status-success {
  color: var(--fg);
}

/* ---- Map column ---- */
.contact-map-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-map-circle {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  position: relative;
  margin-bottom: 40px;
}

.contact-map-circle .leaflet-container {
  background: #FFFFFF;
  font-family: inherit;
}

.contact-map-circle .leaflet-control-attribution {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.85);
  color: #888;
  padding: 2px 6px;
  border-radius: 0;
}

.contact-map-circle .leaflet-control-attribution a {
  color: #555;
  text-decoration: none;
}

.contact-meta-block {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-meta-block .meta-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  align-items: center;
}

.contact-meta-block .meta-row:last-child {
  border-bottom: none;
}

.contact-meta-block .meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-meta-block a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-meta-block a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .contact-main { padding-bottom: 80px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 80px;
    padding-top: 64px;
  }
  .contact-map-circle { max-width: 360px; margin-left: auto; margin-right: auto; }
  .contact-meta-block { max-width: 100%; }
}

/* ============ FICHA PARA IA (preview) ============ */
.preview-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent);
  color: #FFFFFF;
}

.ficha-preview {
  padding: 64px 0 96px;
  border-top: 1px solid var(--rule);
}

.ficha-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 80px;
}

.ficha-col {
  min-width: 0;
}

.ficha-helper {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 480px;
}

.ficha-helper-small {
  font-size: 13px;
  margin-top: 16px;
}

.ficha-vertical-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ficha-vertical-list li {
  padding: 14px 16px;
  border: 1px solid var(--rule);
  font-size: 15px;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ficha-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--fg);
  color: var(--bg);
}

.ficha-tag.tag-priority {
  background: var(--accent);
}

.ficha-sub {
  font-size: 13px;
  color: var(--muted);
}

.ficha-code {
  font-family: 'Inter', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 24px;
  border: 1px solid var(--fg);
  background: #FAFAFA;
  overflow-x: auto;
  white-space: pre;
  color: var(--fg);
}

.ficha-cta {
  border-top: 1px solid var(--rule);
  padding-top: 48px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.ficha-cta h3 {
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.ficha-cta p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.ficha-cta .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .ficha-preview { padding: 48px 0 64px; }
  .ficha-grid { grid-template-columns: 1fr; gap: 48px; }
  .ficha-code { font-size: 11px; padding: 16px; }
}

/* ============ FICHA tool (real, Medicina Estética MVP) ============ */
.ficha-tool { padding: 64px 0 96px; border-top: 1px solid var(--rule); }
.ficha-tool-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.ficha-vertical-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.ficha-vp-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.ficha-vp-btn.active { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.ficha-vp-btn:disabled { cursor: default; opacity: 0.55; }
.ficha-vp-btn:not(:disabled):hover { border-color: var(--fg); }
.ficha-vp-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid currentColor;
  opacity: 0.8;
}

.ficha-form { display: flex; flex-direction: column; gap: 24px; }
.ficha-form .contact-eyebrow { margin-top: 24px; }
.ficha-form .contact-eyebrow:first-of-type { margin-top: 0; }
.ficha-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ficha-form .field-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ficha-form input:not([type="checkbox"]):not([type="radio"]),
.ficha-form textarea,
.ficha-form select {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--fg);
  border-radius: 0;
  transition: border-color .15s ease;
  width: 100%;
}
.ficha-form input[type="checkbox"],
.ficha-form input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
}
.ficha-form textarea { resize: vertical; min-height: 64px; }
.ficha-form input:focus,
.ficha-form textarea:focus,
.ficha-form select:focus {
  outline: none;
  border-color: var(--fg);
}
.ficha-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.field-helper {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}
.ficha-form .field-helper { order: 3; }

.ficha-advanced {
  border: none;
  border-top: 1px solid var(--rule);
  padding: 0;
  margin: 8px 0 16px;
}
.ficha-advanced > summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  list-style: none;
  background: transparent;
}
.ficha-advanced > summary:hover { color: var(--fg); }
.ficha-advanced > summary::-webkit-details-marker { display: none; }
.ficha-advanced > summary::before {
  content: '+';
  display: inline-block;
  width: 16px;
  font-weight: 400;
  color: var(--muted);
}
.ficha-advanced[open] > summary::before { content: '−'; }
.ficha-advanced[open] > summary { color: var(--fg); }
.ficha-advanced > .field-helper { padding: 0 0 12px; }
.ficha-advanced > .field-row { padding-bottom: 16px; }

.ficha-procedures {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ficha-proc-cat {
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.ficha-proc-cat:last-of-type { border-bottom: none; }
.ficha-proc-cat > summary {
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ficha-proc-cat > summary:hover { color: var(--accent); }
.ficha-proc-cat > summary::-webkit-details-marker { display: none; }
.ficha-proc-cat > summary::after {
  content: '+';
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
}
.ficha-proc-cat[open] > summary::after { content: '−'; }
.ficha-proc-count {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-left: 8px;
  font-size: 12px;
}
.ficha-proc-list {
  padding: 4px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ficha-proc-group { margin: 0; padding: 0; }
.ficha-proc {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg);
  padding: 4px 0;
  cursor: pointer;
}
.ficha-proc input { margin-top: 3px; flex-shrink: 0; }

.ficha-preview-col { min-width: 0; }
.ficha-preview-sticky {
  position: sticky;
  top: 96px;
}

.ficha-tabs {
  display: inline-flex;
  gap: 0;
  margin: 16px 0 24px;
  padding: 4px;
  background: var(--hover);
  border-radius: 999px;
}
.ficha-tab {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.ficha-tab:hover { color: var(--fg); }
.ficha-tab.active {
  color: var(--bg);
  background: var(--fg);
}

.ficha-pane[hidden] { display: none; }
.ficha-pane-intro {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.ficha-pane-intro code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  background: var(--hover);
  padding: 1px 5px;
  text-transform: none;
  letter-spacing: 0;
}

.ficha-plain {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  padding: 28px 28px 24px;
  border: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: 0 1px 0 var(--rule), 0 12px 32px -16px rgba(10,10,10,0.08);
}
.ficha-plain-quote {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  letter-spacing: -0.01em;
}
.ficha-plain-list {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}
.ficha-plain-list li {
  margin: 0;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px dashed var(--rule);
}
.ficha-plain-list li:last-child { border-bottom: none; }
.ficha-plain-foot {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin: 16px 0 0;
  line-height: 1.5;
}

.ficha-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.ficha-output {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  line-height: 1.55;
  background: var(--hover);
  color: var(--fg);
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 0;
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
  white-space: pre;
}
.ficha-helper-bottom {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ficha-install-callout {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--fg);
  color: var(--bg);
}
.ficha-install-q {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: rgba(255,255,255,0.6);
}
.ficha-install-a {
  font-size: 15px;
  color: var(--bg);
  margin: 0 0 20px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.ficha-install-cta {
  font-size: 13px;
  background: var(--bg);
  color: var(--fg);
  border-color: var(--bg);
}
.ficha-install-cta:hover {
  background: transparent;
  color: var(--bg);
}

@media (max-width: 1100px) {
  .ficha-tool-grid { grid-template-columns: 1fr; gap: 48px; }
  .ficha-preview-sticky { position: static; }
}
@media (max-width: 700px) {
  .ficha-proc-list { grid-template-columns: 1fr; }
  .ficha-vp-btn { font-size: 11px; padding: 8px 10px; }
}

/* ============ FUENTES / SOURCES (bibliography) ============ */
.fuentes { padding: 96px 0; border-top: 1px solid var(--rule); }
.fuente {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  max-width: 880px;
}
.fuente:last-child { border-bottom: none; }
.fuente-head { margin-bottom: 16px; }
.fuente-head h2 {
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.fuente-meta {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fuente-finding {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 12px;
}
.fuente-applied {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  margin-bottom: 16px;
}
.fuente-link {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.fuente-link:hover { opacity: 0.7; }

@media (max-width: 900px) {
  .fuentes { padding: 64px 0; }
  .fuente { padding: 24px 0; }
}

/* ============ GLOSSARY ============ */
.glossary {
  padding: 64px 0 96px;
  border-top: 1px solid var(--rule);
}

.glossary-toolbar {
  position: sticky;
  top: 80px;
  background: var(--bg);
  padding-bottom: 24px;
  z-index: 50;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.glossary-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.glossary-search input {
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--fg);
  padding: 12px 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease);
}

.glossary-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.glossary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.g-pill {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.g-pill:hover { border-color: var(--fg); color: var(--fg); }

.g-pill.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.glossary-results {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.g-term {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 200px;
}

.g-term-body-wrap {
  margin: 0;
  margin-top: 8px;
}

.g-term:target {
  background: rgba(217, 37, 42, 0.03);
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}

.g-term-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.g-term-name {
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
}

.g-term-full {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.g-term-cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  color: var(--muted);
  margin-left: auto;
}

.g-cat-bot { color: var(--accent); border-color: var(--accent); }
.g-cat-concepto { color: var(--fg); border-color: var(--fg); }

.g-term-summary {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 760px;
  margin-bottom: 16px;
}

.g-term-detail {
  margin-top: 8px;
}

.g-term-detail summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.g-term-detail summary::-webkit-details-marker { display: none; }

.g-term-detail summary::after {
  content: '+';
  font-size: 16px;
  line-height: 1;
}

.g-term-detail[open] summary::after { content: '−'; }

.g-term-detail summary:hover { color: var(--fg); }

.g-term-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 760px;
  margin-top: 12px;
}

.g-term-why {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg);
  max-width: 760px;
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.g-term-why strong {
  color: var(--accent);
  font-weight: 500;
}

.g-term-related {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.g-rel-label {
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  margin-right: 6px;
}

.g-term-related a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.g-term-related a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.glossary-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .glossary { padding: 48px 0 64px; }
  .glossary-toolbar { top: 64px; }
  .g-pill { font-size: 10px; padding: 6px 10px; }
  .g-term-head { gap: 12px; }
  .g-term-cat { margin-left: 0; }
  .g-term-name { font-size: clamp(22px, 5vw, 28px); }
  .g-term-summary { font-size: 16px; }
}

/* ============ TOOL CHECKER (AI Crawler) ============ */
.tool-checker {
  padding: 64px 0 96px;
  border-top: 1px solid var(--rule);
}

.checker-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  max-width: 720px;
  margin: 0 auto 32px;
}

.checker-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checker-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.checker-input input {
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--fg);
  padding: 12px 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease);
}

.checker-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.checker-submit {
  height: 52px;
}

.checker-status {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  background: rgba(217, 37, 42, 0.04);
  color: var(--fg);
  font-size: 14px;
}

.checker-results {
  margin-top: 64px;
}

/* Verdict banner */
.verdict-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 56px;
  border: 1px solid var(--fg);
  margin-bottom: 64px;
}

.verdict-banner.verdict-critical {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}

.verdict-banner.verdict-warn {
  border-color: var(--fg);
  background: var(--fg);
  color: #FFFFFF;
}

.verdict-banner.verdict-ok {
  border-color: var(--fg);
  background: var(--bg);
  color: var(--fg);
}

.verdict-banner.verdict-info {
  border-color: var(--muted);
  background: #FAFAFA;
  color: var(--fg);
}

.verdict-num {
  font-weight: 900;
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.verdict-text .verdict-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.verdict-text h2 {
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.verdict-text p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 640px;
}

/* 5-dimension grid */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.dim-card {
  padding: 24px 20px;
  border: 1px solid var(--rule);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
}

.dim-card.dim-fail { border-color: var(--accent); }
.dim-card.dim-warn { border-color: var(--fg); }
.dim-card.dim-pass { border-color: var(--fg); }
.dim-card.dim-unknown { border-color: var(--muted); border-style: dashed; opacity: 0.8; }

.dim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dim-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.dim-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.dim-icon.ok  { background: var(--fg); color: var(--bg); }
.dim-icon.bad { background: var(--accent); color: #fff; }
.dim-icon.warn { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.dim-icon.unknown { background: transparent; color: var(--muted); border: 1px solid var(--muted); }

.dim-card h3 {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-top: 4px;
}

.dim-score {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dim-card.dim-fail .dim-score { color: var(--accent); }

.dim-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: auto;
}

/* Collapsible details */
.checker-detail {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.checker-detail summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checker-detail summary::-webkit-details-marker { display: none; }

.checker-detail summary::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  color: var(--fg);
}

.checker-detail[open] summary::after { content: '−'; }

.checker-detail summary:hover { color: var(--fg); }

/* Bot grid (now 3-col, no owner column) */
.bot-grid {
  margin-top: 16px;
}

.bot-grid-head,
.bot-row {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  font-size: 14px;
}

.bot-grid-head {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.bot-row .bot-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.bot-row .bot-name code {
  font-family: 'Inter', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.bot-row .bot-crit {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.bot-row .bot-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.bot-row .state-ok {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

.bot-row .state-bad {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.bot-row.blocked.critical {
  background: rgba(217, 37, 42, 0.04);
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}

/* robots.txt diff */
.robots-diff {
  margin-bottom: 64px;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.diff-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.diff-col pre {
  font-family: 'Inter', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  background: #FAFAFA;
  overflow-x: auto;
  white-space: pre;
  max-height: 360px;
  color: var(--fg);
}

.diff-col .diff-recommended {
  border-color: var(--fg);
  background: #FFFFFF;
}

.btn-copy {
  margin-top: 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.btn-copy:hover { opacity: 0.85; }

/* Tool CTA */
.checker-cta {
  padding: 48px 56px;
  border: 1px solid var(--fg);
  text-align: center;
}

.checker-cta h3 {
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.checker-cta p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.checker-cta .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tools-more (coming soon) section */
.tools-more {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}

.tools-more .tool-card-soon {
  cursor: default;
  opacity: 0.7;
}

.tools-more .tool-card-soon:hover {
  transform: none;
}

.tools-more .tool-card-soon code {
  font-family: 'Inter', monospace;
  background: var(--rule);
  padding: 1px 6px;
  font-size: 0.9em;
}

@media (max-width: 1100px) {
  .dim-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .tool-checker { padding: 48px 0 64px; }
  .checker-form { grid-template-columns: 1fr; }
  .checker-submit { width: 100%; }
  .verdict-banner { padding: 32px 28px; gap: 24px; grid-template-columns: 1fr; }
  .verdict-num { font-size: clamp(40px, 14vw, 64px); }
  .dim-grid { grid-template-columns: 1fr; gap: 12px; }
  .dim-card { min-height: 0; padding: 20px; }
  .bot-grid-head { display: none; }
  .bot-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .bot-row .bot-desc { font-size: 14px; }
  .diff-grid { grid-template-columns: 1fr; gap: 32px; }
  .checker-cta { padding: 32px 24px; }
  .tools-more { padding: 64px 0; }
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--rule);
  padding: 64px 0 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}

footer .brand-block .word-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
footer .brand-block .word-row .mark-svg {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  flex-shrink: 0;
}
footer .brand-block .word {
  font-weight: 900;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.025em;
  line-height: 0.9;
  margin-bottom: 0;
}

footer .brand-block .desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.5;
}

footer h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

footer ul { list-style: none; }
footer li { padding: 0; }

footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  padding: 12px 0;
  min-height: 44px;
  line-height: 20px;
}
footer a:hover { color: var(--fg); }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  section { padding: 80px 0; }
  .shift .body, .princeton .intro, .about .body { grid-template-columns: 1fr; gap: 40px; }
  .build .grid,
  .pricing .price-grid,
  .pricing .price-grid.two-col { grid-template-columns: 1fr; }
  .build .item, .pricing .tier { border-right: none; }
  .pricing .tier { padding: 40px 32px; }
  .variant-toggle { display: flex; flex-direction: column; width: 100%; }
  .variant-toggle button { border-right: none; border-bottom: 1px solid var(--rule); padding: 18px 22px; font-size: 13px; }
  .variant-toggle button:last-child { border-bottom: none; }
  .gantt-row,
  .gantt-row.two-col { grid-template-columns: 1fr; }
  .gantt { border-right: none; padding: 32px 24px; }
  .gantt-scale { font-size: 11px; letter-spacing: 0.04em; gap: 4px; }
  .gantt-scale span { white-space: nowrap; }
  .timeline-deeper { flex-direction: column; align-items: flex-start; }
  .tools-grid, .blog-grid { grid-template-columns: 1fr; }
  .tool-card, .blog-card { border-right: none; }
  .tool-card:nth-child(2n), .blog-card:nth-child(2n) { border-right: none; }
  .tool-card, .blog-card { padding: 36px 28px; }
  .bar-row { grid-template-columns: 1fr; gap: 16px; }
  .bar-value { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero { padding-top: max(96px, env(safe-area-inset-top) + 80px); padding-bottom: max(24px, env(safe-area-inset-bottom) + 12px); }
  .hero-content { padding: 32px 0 8px; }
  .hero-tagline { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-tagline .meta-right { display: none; }
  .demo-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .demo-toggle button { padding: 12px 20px; min-height: 44px; }
  .faq-q { grid-template-columns: 40px 1fr 24px; gap: 16px; padding: 24px 0; min-height: 56px; }
  .faq-q .question { font-size: 17px; }
  .faq-a-inner { padding: 0 0 24px 56px; font-size: 15px; }
  .menu-list a { gap: 16px; padding: 14px 0; }
  .menu-list a .num { font-size: 12px; }
  nav {
    padding: 16px var(--gutter);
    padding-top: max(16px, env(safe-area-inset-top));
    background: var(--bg);
    mix-blend-mode: normal;
    color: var(--fg);
    border-bottom: 1px solid var(--rule);
  }
  .brand-fixed { top: 16px; padding-top: max(16px, env(safe-area-inset-top)); z-index: 102; }
  nav .nav-cta { display: none; }
  .lang-toggle { color: var(--fg); }
  .menu-overlay { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(48px, env(safe-area-inset-bottom) + 24px); }
  .menu-btn, .menu-close { min-height: 44px; min-width: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .princeton .bar-row { padding: 20px 0; }
  .bar-label { font-size: 18px; }
  .bar-label .en { font-size: 13px; }
  .page-hero { padding: 120px var(--gutter) 64px; }
}

@media (max-width: 500px) {
  .stats { grid-template-columns: 1fr; }
  .stats .stat-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .stats .stat-cell:last-child { border-bottom: none; }
  .hero-wordmark { font-size: clamp(96px, 28vw, 140px); }
  .hero-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
  .hero-meta span:last-child { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   DIARIO / JOURNAL — long-form post pages
   ───────────────────────────────────────────────────────────── */
.diario-article {
  padding: 0 0 120px;
}
.diario-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--line, #ECECEC);
}
.diario-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2, #6B6B6B);
}
.diario-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  color: var(--ink-2, #6B6B6B);
  text-decoration: none;
  transition: color .15s ease;
}
.diario-back:hover { color: var(--ink, #0A0A0A); }
.diario-date { font-variant-numeric: tabular-nums; }
.diario-hero h1 {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 22ch;
}
.diario-byline {
  font-size: 14px;
  color: var(--ink-2, #6B6B6B);
  margin: 0;
  letter-spacing: 0.01em;
}
.diario-body {
  max-width: 720px;
  padding-top: 56px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink, #0A0A0A);
}
.diario-body p {
  margin: 0 0 24px;
}
.diario-lead {
  font-size: 22px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 32px !important;
  color: var(--ink, #0A0A0A);
}
.diario-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 56px 0 20px;
}
.diario-body ul,
.diario-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.diario-body li {
  margin-bottom: 12px;
  line-height: 1.65;
}
.diario-body a {
  color: var(--ink, #0A0A0A);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity .15s ease;
}
.diario-body a:hover { opacity: 0.6; }
.diario-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--surface-2, #F5F5F5);
  border-radius: 3px;
}
.diario-body strong { font-weight: 600; }
.diario-kicker {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
  margin-top: 56px !important;
  padding-top: 32px;
  border-top: 1px solid var(--line, #ECECEC);
  color: var(--ink, #0A0A0A);
}
.diario-quote {
  margin: 0 0 24px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--ink, #0A0A0A);
  background: transparent;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2, #3A3A3A);
  font-style: italic;
  font-weight: 400;
}
.diario-quote a { font-style: normal; }
.diario-foot {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line, #ECECEC);
}
.diario-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.diario-back-bottom,
.diario-share a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  color: var(--ink, #0A0A0A);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity .15s ease;
}
.diario-back-bottom:hover,
.diario-share a:hover { opacity: 0.6; }

@media (max-width: 768px) {
  .diario-hero { padding: 48px 0 32px; }
  .diario-body { padding-top: 40px; font-size: 17px; }
  .diario-lead { font-size: 19px; }
  .diario-kicker { font-size: 19px; margin-top: 40px !important; }
  .diario-body h2 { margin: 40px 0 16px; }
  .diario-foot-row { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ─────────────────────────────────────────────────────────────
   CRONOGRAMA-DETAIL / TIMELINE-DETAIL — namespaced page styles
   Applied via `<body class="cronograma-detail">` on
   /es/cronograma-completo and /en/timeline-detail.
   ───────────────────────────────────────────────────────────── */
.cronograma-detail {
  --bg: #FFFFFF;
  --fg: #0A0A0A;
  --accent: #D9252A;
  --muted: #707070;
  --rule: #E5E5E5;
  --soft-bg: #FAFAFA;
  --site-build: #0A0A0A;
  --geo-setup: #D9252A;
  --citation: #707070;
  --revision: #C7C7C7;
}
.cronograma-detail .cronograma-back-link {
  padding: 80px 32px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cronograma-detail .cronograma-back-link .container { padding: 0; }
.cronograma-detail .cronograma-back-link a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.cronograma-detail .cronograma-back-link a:hover { color: var(--fg); }
.cronograma-detail .hero.cronograma-hero { padding: 32px 0 48px; }
.cronograma-detail .cronograma-hero + section { padding-top: 48px; }
.cronograma-detail .cronograma-kicker {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.cronograma-detail .cronograma-kicker p {
  font-size: 18px;
  color: var(--muted);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}
.cronograma-detail .closing-cta {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.cronograma-detail .closing-cta h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cronograma-detail .closing-cta p { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.cronograma-detail .closing-cta a.cta {
  display: inline-block;
  padding: 16px 28px;
  background: var(--fg);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.cronograma-detail .closing-cta a.cta:hover { background: var(--accent); }

.cronograma-detail .hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--rule);
  min-height: auto;
  display: block;
}
.cronograma-detail .hero h1 {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.cronograma-detail .hero h1 .es { color: var(--fg); }
.cronograma-detail .hero h1 .slash { color: var(--rule); font-weight: 300; margin: 0 16px; }
.cronograma-detail .hero h1 .en { color: var(--fg); }
.cronograma-detail .hero .lede {
  margin-top: 32px;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg);
}
.cronograma-detail .hero .lede strong { color: var(--accent); font-weight: 500; }
.cronograma-detail .hero .sub {
  margin-top: 24px;
  max-width: 720px;
  font-size: 15px;
  color: var(--muted);
}

.cronograma-detail section { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.cronograma-detail .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}
.cronograma-detail .section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 720px;
}
.cronograma-detail .section-head .section-meta {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
  text-align: right;
}

.cronograma-detail .variant-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 40px;
}
.cronograma-detail .variant-toggle button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.cronograma-detail .variant-toggle button:hover { color: var(--fg); }
.cronograma-detail .variant-toggle button.active { background: var(--fg); color: #fff; }

.cronograma-detail .gantt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.cronograma-detail .gantt {
  border: 1px solid var(--rule);
  padding: 32px;
  background: var(--bg);
}
.cronograma-detail .gantt-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cronograma-detail .gantt-tier {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cronograma-detail .gantt-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
  margin-bottom: 4px;
}
.cronograma-detail .gantt-price {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.cronograma-detail .gantt-promise {
  font-size: 13px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--soft-bg);
  border-left: 2px solid var(--accent);
}
.cronograma-detail .gantt-promise .label { font-weight: 500; color: var(--fg); }
.cronograma-detail .gantt-promise .value { color: var(--muted); }
.cronograma-detail .gantt-scale {
  display: grid;
  margin: 8px 0 6px;
  gap: 2px;
  font-size: 10px;
  color: var(--muted);
}
.cronograma-detail .gantt-scale-row {
  display: flex;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.cronograma-detail .gantt-scale-row span { flex: 1; text-align: left; }
.cronograma-detail .gantt-bars { display: flex; flex-direction: column; gap: 10px; }
.cronograma-detail .gantt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.cronograma-detail .gantt-bar-label {
  width: 110px;
  color: var(--fg);
  font-weight: 500;
  flex-shrink: 0;
}
.cronograma-detail .gantt-bar-track {
  flex: 1;
  height: 14px;
  background: transparent;
  position: relative;
}
.cronograma-detail .gantt-bar-fill {
  height: 100%;
  position: absolute;
  top: 0;
  transition: left 320ms cubic-bezier(0.4, 0, 0.2, 1), width 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cronograma-detail .fill-site { background: var(--site-build); }
.cronograma-detail .fill-geo { background: var(--geo-setup); }
.cronograma-detail .fill-citation {
  background: repeating-linear-gradient(45deg, var(--muted), var(--muted) 3px, transparent 3px, transparent 6px);
}
.cronograma-detail .gantt-total {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.cronograma-detail .gantt-total .num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cronograma-detail .legend {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cronograma-detail .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.cronograma-detail .legend-swatch { width: 16px; height: 10px; }

.cronograma-detail .accordion { border-top: 1px solid var(--rule); margin-top: 24px; }
.cronograma-detail .acc-item { border-bottom: 1px solid var(--rule); }
.cronograma-detail .acc-trigger {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 80px 1fr 120px 24px;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: background 120ms ease;
}
.cronograma-detail .acc-trigger:hover { background: var(--soft-bg); padding-left: 16px; padding-right: 16px; }
.cronograma-detail .acc-week {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cronograma-detail .acc-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
.cronograma-detail .acc-hours { font-size: 12px; color: var(--muted); text-align: right; }
.cronograma-detail .acc-risk { font-size: 11px; text-align: right; font-weight: 500; }
.cronograma-detail .risk-low { color: var(--muted); }
.cronograma-detail .risk-med { color: var(--fg); }
.cronograma-detail .risk-high { color: var(--accent); }
.cronograma-detail .acc-chevron { color: var(--muted); transition: transform 200ms ease; }
.cronograma-detail .acc-item.open .acc-chevron { transform: rotate(45deg); }
.cronograma-detail .acc-body { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.cronograma-detail .acc-body-inner {
  padding: 0 16px 24px 96px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 820px;
}
.cronograma-detail .acc-body-inner ul { padding-left: 18px; margin-top: 8px; }
.cronograma-detail .acc-body-inner li { margin-bottom: 4px; }

.cronograma-detail .risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.cronograma-detail .risk-card { border: 1px solid var(--rule); padding: 40px; }
.cronograma-detail .risk-card.bad { border-left: 4px solid var(--accent); }
.cronograma-detail .risk-card.good { border-left: 4px solid var(--fg); }
.cronograma-detail .risk-card .tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cronograma-detail .risk-card.bad .tag { color: var(--accent); }
.cronograma-detail .risk-card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 24px;
  line-height: 1.1;
}
.cronograma-detail .risk-timeline { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cronograma-detail .risk-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  font-size: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.cronograma-detail .risk-step .day { font-weight: 600; color: var(--fg); font-size: 13px; }
.cronograma-detail .risk-step .what { color: var(--muted); }
.cronograma-detail .risk-card .net {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.cronograma-detail .risk-card .net .label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cronograma-detail .risk-card .net .value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cronograma-detail .risk-card.bad .net .value { color: var(--accent); }

.cronograma-detail .risk-math {
  margin-top: 56px;
  padding: 40px;
  background: var(--soft-bg);
  text-align: center;
}
.cronograma-detail .risk-math .big {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.cronograma-detail .risk-math .label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cronograma-detail table.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.cronograma-detail table.tier-table th,
.cronograma-detail table.tier-table td {
  text-align: left;
  padding: 24px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  vertical-align: top;
}
.cronograma-detail table.tier-table th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0;
}
.cronograma-detail table.tier-table td.tier-name {
  font-weight: 600;
  font-size: 16px;
  width: 18%;
}
.cronograma-detail table.tier-table td.public {
  color: var(--accent);
  font-weight: 500;
}
.cronograma-detail table.tier-table td.note { color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .cronograma-detail .gantt-row { grid-template-columns: 1fr; }
  .cronograma-detail .risk-grid { grid-template-columns: 1fr; }
  .cronograma-detail .acc-trigger { grid-template-columns: 60px 1fr 24px; }
  .cronograma-detail .acc-hours { display: none; }
  .cronograma-detail .acc-body-inner { padding-left: 76px; }
  .cronograma-detail .hero h1 .slash { display: block; margin: 8px 0; }
}

.cronograma-detail .risk-math-cite {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cronograma-detail .tier-table-refs {
  margin-top: 32px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  max-width: 720px;
}

.cronograma-detail .closing-cta-secondary {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.cronograma-detail .closing-cta-secondary a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.cronograma-detail .closing-cta-secondary a:hover { color: var(--fg); }

/* ─────────────────────────────────────────────────────────────
   DOSSIER — private client working page
   Built on diario tokens. Same chrome, same typography family.
   ───────────────────────────────────────────────────────────── */
.dossier-private-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2, #6B6B6B);
  padding: 6px 12px;
  border: 1px solid var(--line, #ECECEC);
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .dossier-private-tag { display: none; }
}
.dossier-edition {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.dossier-body {
  padding-top: 56px;
}

.dossier-section {
  padding: 48px 0;
  border-top: 1px solid var(--line, #ECECEC);
}
.dossier-section:first-child { border-top: none; padding-top: 0; }

.dossier-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.dossier-num {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  font-variant-numeric: tabular-nums;
}
.dossier-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2, #6B6B6B);
}

.dossier-cycle-meta {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--ink-2, #6B6B6B);
  margin: 0 0 20px;
  font-variant-numeric: tabular-nums;
  padding-left: 12px;
  border-left: 2px solid var(--accent, #D9252A);
}
.dossier-bet {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink, #0A0A0A);
  margin: 0 0 20px;
  max-width: 28ch;
}
.dossier-bet-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2, #6B6B6B);
  margin: 0;
  max-width: 60ch;
}

.dossier-progress {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dossier-progress li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line, #ECECEC);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink, #0A0A0A);
}
.dossier-progress li:last-child { border-bottom: 1px solid var(--line, #ECECEC); }
.dossier-progress-date {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
  letter-spacing: 0;
}
.dossier-progress li a {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 14px;
}
@media (max-width: 560px) {
  .dossier-progress li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Chart — citation trend sparkline */
.dossier-chart {
  margin: 0 0 40px;
  padding: 24px;
  border: 1px solid var(--line, #ECECEC);
  border-radius: 4px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF8 100%);
}
.dossier-chart-svg {
  display: block;
  width: 100%;
  height: 180px;
  margin-bottom: 16px;
}
.dossier-chart-axis {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--ink-2, #6B6B6B);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line, #ECECEC);
  margin-bottom: 12px;
}
.dossier-chart-axis-mid {
  color: var(--accent, #D9252A);
}
.dossier-chart-caption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2, #6B6B6B);
  margin: 0;
  letter-spacing: 0.005em;
  font-style: italic;
}

/* Citations list */
.dossier-citations {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.dossier-citations li {
  padding: 24px 0;
  border-top: 1px solid var(--line, #ECECEC);
}
.dossier-citations li:last-child { border-bottom: 1px solid var(--line, #ECECEC); }
.dossier-citation-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  letter-spacing: 0;
}
.dossier-citation-date { font-variant-numeric: tabular-nums; }
.dossier-citation-source {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  background: var(--surface-2, #F5F5F5);
  border-radius: 3px;
  font-size: 10px;
}
.dossier-citation-query {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink, #0A0A0A);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.dossier-citation-query::before { content: "\201C"; margin-right: 2px; color: var(--ink-2, #6B6B6B); }
.dossier-citation-query::after  { content: "\201D"; margin-left: 2px; color: var(--ink-2, #6B6B6B); }
.dossier-citation-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2, #6B6B6B);
  margin: 0;
}
.dossier-citations-foot {
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  margin: 16px 0 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  letter-spacing: 0;
}

/* Attribution stats */
.dossier-attribution {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line, #ECECEC);
  border-bottom: 1px solid var(--line, #ECECEC);
  margin-bottom: 32px;
}
@media (max-width: 560px) {
  .dossier-attribution { grid-template-columns: 1fr; gap: 20px; }
}
.dossier-attribution-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dossier-attribution-num {
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink, #0A0A0A);
  font-variant-numeric: tabular-nums;
}
.dossier-attribution-unit {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, #6B6B6B);
  max-width: 24ch;
}

/* Horizontal bar chart */
.dossier-bars {
  margin: 0;
}
.dossier-bars-row {
  display: grid;
  grid-template-columns: 40px 1fr 48px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line, #ECECEC);
}
.dossier-bars-row:last-of-type { border-bottom: 1px solid var(--line, #ECECEC); }
.dossier-bars-label {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  letter-spacing: 0;
}
.dossier-bars-track {
  display: block;
  height: 6px;
  background: var(--surface-2, #F5F5F5);
  border-radius: 999px;
  overflow: hidden;
}
.dossier-bars-fill {
  display: block;
  height: 100%;
  background: var(--ink, #0A0A0A);
  border-radius: 999px;
}
.dossier-bars-fill-accent { background: var(--accent, #D9252A); }
.dossier-bars-val {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink, #0A0A0A);
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.dossier-bars figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2, #6B6B6B);
  font-style: italic;
}

/* Loom frame */
.dossier-loom {
  position: relative;
  border: 1px solid var(--line, #ECECEC);
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #FAFAF8 0%, #F0F0EC 100%);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease;
}
.dossier-loom:hover { border-color: var(--ink, #0A0A0A); }
.dossier-loom-icon {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--ink, #0A0A0A);
  color: var(--ink, #0A0A0A);
  font-size: 13px;
  padding-left: 3px;
  transition: background .2s ease, color .2s ease;
}
.dossier-loom:hover .dossier-loom-icon {
  background: var(--ink, #0A0A0A);
  color: #FAFAF8;
}
.dossier-loom-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
}
.dossier-loom-caption-title {
  font-size: 15px;
  color: var(--ink, #0A0A0A);
  letter-spacing: -0.005em;
}
.dossier-loom-caption-meta {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.dossier-helper {
  font-size: 13px;
  color: var(--ink-2, #6B6B6B);
  margin: 0;
}

/* Next */
.dossier-next {
  display: flex;
  flex-direction: column;
}
.dossier-next-line {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line, #ECECEC);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.dossier-next-line:last-child { border-bottom: 1px solid var(--line, #ECECEC); }
.dossier-next-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2, #6B6B6B);
  padding-top: 4px;
  font-weight: 500;
}
.dossier-next-value { color: var(--ink, #0A0A0A); }
@media (max-width: 560px) {
  .dossier-next-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Archive */
.dossier-archive {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dossier-archive li {
  padding: 24px 0;
  border-top: 1px solid var(--line, #ECECEC);
}
.dossier-archive li:last-child { border-bottom: 1px solid var(--line, #ECECEC); }
.dossier-archive-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 16px;
}
.dossier-archive-cycle {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink, #0A0A0A);
}
.dossier-archive-dates {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  font-variant-numeric: tabular-nums;
}
.dossier-archive-bet {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink, #0A0A0A);
  margin: 0 0 12px;
  max-width: 60ch;
}
.dossier-archive-bet code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--surface-2, #F5F5F5);
  border-radius: 3px;
}
.dossier-archive-link {
  font-size: 13px;
  color: var(--ink-2, #6B6B6B);
  text-decoration: none;
  border-bottom: 1px solid var(--line, #ECECEC);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.dossier-archive-link:hover {
  color: var(--ink, #0A0A0A);
  border-bottom-color: var(--ink, #0A0A0A);
}

/* Foot under article */
.diario-foot { padding: 48px 0; border-top: 1px solid var(--line, #ECECEC); }
.diario-foot-link {
  color: var(--ink-2, #6B6B6B);
  text-decoration: none;
  font-size: 14px;
}
.diario-foot-link:hover { color: var(--ink, #0A0A0A); }

/* ─────────────────────────────────────────────────────────────
   STUDIO — internal command center
   Built on dossier tokens. Higher density. Same accent discipline.
   ───────────────────────────────────────────────────────────── */
.studio-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line, #ECECEC);
  border-bottom: 1px solid var(--line, #ECECEC);
}
@media (max-width: 720px) {
  .studio-scoreboard { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .studio-scoreboard { grid-template-columns: 1fr; gap: 16px; }
}
.studio-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.studio-stat-num {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink, #0A0A0A);
  font-variant-numeric: tabular-nums;
}
.studio-stat-unit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2, #6B6B6B);
  max-width: 26ch;
  letter-spacing: 0.005em;
}

.studio-board {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}
.studio-board thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2, #6B6B6B);
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line, #ECECEC);
}
.studio-board tbody td {
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line, #ECECEC);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink, #0A0A0A);
}
.studio-board tbody td:last-child { padding-right: 0; }
.studio-board tbody td a {
  color: var(--ink, #0A0A0A);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.studio-board tbody td a:hover { opacity: 0.6; }
.studio-board .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink-2, #6B6B6B);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}
.studio-board-sub {
  display: block;
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  margin-top: 2px;
  font-weight: 400;
}
@media (max-width: 720px) {
  .studio-board { font-size: 13px; }
  .studio-board thead th:nth-child(3),
  .studio-board tbody td:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .studio-board, .studio-board thead, .studio-board tbody, .studio-board tr, .studio-board th, .studio-board td {
    display: block;
    width: 100%;
  }
  .studio-board thead { display: none; }
  .studio-board tbody tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line, #ECECEC);
  }
  .studio-board tbody td {
    padding: 4px 0;
    border-bottom: none;
  }
  .studio-board tbody td:first-child { font-weight: 500; margin-bottom: 4px; }
  .studio-board tbody td:last-child { margin-top: 6px; }
}

.studio-pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 500;
  border: 1px solid var(--line, #ECECEC);
  color: var(--ink-2, #6B6B6B);
}
.studio-pill-green {
  color: var(--ink, #0A0A0A);
}
.studio-pill-amber {
  color: var(--ink, #0A0A0A);
  background: #FBF5E8;
  border-color: #EEDFB8;
}
.studio-pill-accent {
  color: #FAFAF8;
  background: var(--accent, #D9252A);
  border-color: var(--accent, #D9252A);
}

.studio-helper {
  font-size: 12px;
  color: var(--ink-2, #6B6B6B);
  margin: 16px 0 0;
  font-style: italic;
  letter-spacing: 0.005em;
}

/* Token bars */
.studio-tokens {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line, #ECECEC);
}
.studio-tokens-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.studio-tokens-label {
  font-size: 13px;
  color: var(--ink, #0A0A0A);
}
.studio-tokens-track {
  display: block;
  height: 6px;
  background: var(--surface-2, #F5F5F5);
  border-radius: 999px;
  overflow: hidden;
}
.studio-tokens-fill {
  display: block;
  height: 100%;
  background: var(--ink, #0A0A0A);
  border-radius: 999px;
}
.studio-tokens-val {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink, #0A0A0A);
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
@media (max-width: 560px) {
  .studio-tokens-row { grid-template-columns: 120px 1fr 50px; gap: 12px; }
}

/* Citation feed */
.studio-feed {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.studio-feed li {
  padding: 16px 0;
  border-top: 1px solid var(--line, #ECECEC);
}
.studio-feed li:last-child { border-bottom: 1px solid var(--line, #ECECEC); }
.studio-feed-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.studio-feed-date {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: var(--ink-2, #6B6B6B);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.studio-feed-client {
  color: var(--ink, #0A0A0A);
  font-weight: 500;
}
.studio-feed-q {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink, #0A0A0A);
  margin: 0;
  letter-spacing: -0.005em;
}
.studio-feed-q::before { content: "\201C"; color: var(--ink-2, #6B6B6B); }
.studio-feed-q::after  { content: "\201D"; color: var(--ink-2, #6B6B6B); }

/* Pipeline */
.studio-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .studio-pipeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .studio-pipeline { grid-template-columns: 1fr; }
}
.studio-pipeline-stage {
  border: 1px solid var(--line, #ECECEC);
  border-radius: 4px;
  padding: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF8 100%);
}
.studio-pipeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #ECECEC);
}
.studio-pipeline-stage-name {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2, #6B6B6B);
}
.studio-pipeline-count {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--ink, #0A0A0A);
  font-variant-numeric: tabular-nums;
}
.studio-pipeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.studio-pipeline-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #ECECEC);
  font-size: 13px;
  line-height: 1.5;
}
.studio-pipeline-list li:last-child { border-bottom: none; }
.studio-pipeline-list li strong {
  display: block;
  color: var(--ink, #0A0A0A);
  font-weight: 500;
  margin-bottom: 2px;
}
.studio-pipeline-list li span {
  display: block;
  color: var(--ink-2, #6B6B6B);
  font-size: 12px;
}
.studio-pipeline-empty li { color: var(--ink-2, #6B6B6B); }

/* Asks inbox */
.studio-asks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.studio-asks li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line, #ECECEC);
  font-size: 14px;
  line-height: 1.55;
}
.studio-asks li:last-child { border-bottom: 1px solid var(--line, #ECECEC); }
.studio-ask-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 8px;
  border: 1px solid var(--line, #ECECEC);
  border-radius: 3px;
  color: var(--ink-2, #6B6B6B);
  text-align: center;
  width: fit-content;
  white-space: nowrap;
}
.studio-ask-tag-amber {
  background: #FBF5E8;
  border-color: #EEDFB8;
  color: var(--ink, #0A0A0A);
}
.studio-ask-client {
  display: block;
  font-size: 13px;
  color: var(--ink-2, #6B6B6B);
  margin-bottom: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  letter-spacing: 0;
}
.studio-ask-text {
  grid-column: 2 / 3;
  margin: 0;
  color: var(--ink, #0A0A0A);
}
.studio-asks li > .studio-ask-client { grid-column: 2 / 3; }
.studio-ask-age {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--ink-2, #6B6B6B);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .studio-asks li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .studio-asks li > .studio-ask-client,
  .studio-asks li > .studio-ask-text { grid-column: 1; }
  .studio-ask-age { grid-column: 1; }
}

/* Risk signals */
.studio-risk {
  list-style: none;
  padding: 0;
  margin: 0;
}
.studio-risk li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line, #ECECEC);
}
.studio-risk li:last-child { border-bottom: 1px solid var(--line, #ECECEC); }
.studio-risk-flag {
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2, #6B6B6B);
  padding-top: 2px;
}
.studio-risk-flag-amber { color: #C99A3F; }
.studio-risk-flag-green { color: #4D8C5C; }
.studio-risk-title {
  font-size: 15px;
  color: var(--ink, #0A0A0A);
  margin: 0 0 4px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  font-weight: 500;
}
.studio-risk-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2, #6B6B6B);
  margin: 0;
}
