/* Prismo · prismochile.com
   Tokens from the Prismo design system (tokens.json).
   Sections use two tones that swap with the theme:
     .tone-base   dark in dark mode, paper in light mode
     .tone-invert paper in dark mode, dark in light mode
     .tone-plum   brand plum in both
   The theme lives on <html data-theme="dark|light"> (set by theme.js). */

@font-face { font-family: "Prismo Sans"; src: url("/assets/fonts/PrismoSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/assets/fonts/lexend-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/assets/fonts/lexend-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --brand-slate: #2d3845; --brand-plum: #5a3357; --brand-plum-deep: #4d3050;
  --brand-amber: #f7aa2e; --brand-coral: #ea6553; --brand-paper: #f7f6f6;
  --noche: #161b21;
  --font-brand: "Prismo Sans", "Lexend", system-ui, sans-serif;
  --font-display: "Lexend", "Avenir Next", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 8px;
  --header-h: 76px;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Tone tokens ---------------------------------------------------------------- */
:root, .tone-base {
  --bg: #161b21; --bg-rgb: 22, 27, 33; --raised: #1f262e; --sunken: #11151a;
  --fg: #eef0f2; --muted: #a6afb9; --line: #2f3842; --line-strong: #6b7480;
  --accent: #c99bc4; --on-accent: #161b21; --accent-soft: #33222f;
  --error: #f48a7c; --success: #8fd1a8;
  --node-plum: #b77fb1; --node-slate: #eef0f2;
  --ch-ink: #eef0f2; --ch-muted: #a6afb9; --ch-grid: #2a323b; --ch-zero: #6b7480;
  --ch-s1: #c99bc4; --ch-s2: #a6afb9; --ch-ref: #f48a7c; --ch-range: rgba(201, 155, 196, .34); --ch-out: #6b7480;
  --tip-bg: #1f262e; --tip-fg: #eef0f2; --tip-line: #3a4450;
  --logo-dark: block; --logo-light: none;
  --field-alpha: .55;
  color-scheme: dark;
}
.tone-invert, :root[data-theme="light"], :root[data-theme="light"] .tone-base {
  --bg: #f7f6f6; --bg-rgb: 247, 246, 246; --raised: #ffffff; --sunken: #efecea;
  --fg: #2d3845; --muted: #5c6672; --line: #dcd7d4; --line-strong: #8b8f96;
  --accent: #5a3357; --on-accent: #ffffff; --accent-soft: #f0e7ef;
  --error: #b23b2c; --success: #1b6e45;
  --node-plum: #5a3357; --node-slate: #2d3845;
  --ch-ink: #2d3845; --ch-muted: #5c6672; --ch-grid: #e6e1de; --ch-zero: #8b8f96;
  --ch-s1: #5a3357; --ch-s2: #2d3845; --ch-ref: #b23b2c; --ch-range: rgba(90, 51, 87, .3); --ch-out: #8b8f96;
  --tip-bg: #ffffff; --tip-fg: #2d3845; --tip-line: #dcd7d4;
  --logo-dark: none; --logo-light: block;
  --field-alpha: .7;
  color-scheme: light;
}
:root[data-theme="light"] .tone-invert {
  --bg: #161b21; --bg-rgb: 22, 27, 33; --raised: #1f262e; --sunken: #11151a;
  --fg: #eef0f2; --muted: #a6afb9; --line: #2f3842; --line-strong: #6b7480;
  --accent: #c99bc4; --on-accent: #161b21; --accent-soft: #33222f;
  --error: #f48a7c; --success: #8fd1a8;
  --node-plum: #b77fb1; --node-slate: #eef0f2;
  --ch-ink: #eef0f2; --ch-muted: #a6afb9; --ch-grid: #2a323b; --ch-zero: #6b7480;
  --ch-s1: #c99bc4; --ch-s2: #a6afb9; --ch-ref: #f48a7c; --ch-range: rgba(201, 155, 196, .34); --ch-out: #6b7480;
  --tip-bg: #1f262e; --tip-fg: #eef0f2; --tip-line: #3a4450;
  --logo-dark: block; --logo-light: none;
  color-scheme: dark;
}
.tone-plum {
  --bg: #5a3357; --fg: #ffffff; --muted: #eadbe8; --line: rgba(255, 255, 255, .28); --line-strong: rgba(255, 255, 255, .6);
  --accent: #ffffff; --on-accent: #5a3357;
  --logo-dark: block; --logo-light: none;
  color-scheme: dark;
}
.tone-base, .tone-invert, .tone-plum { background: var(--bg); color: var(--fg); }
.logo-dark { display: var(--logo-dark); }
.logo-light { display: var(--logo-light); }

/* Base ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Justified running text, with Spanish hyphenation (html lang="es-CL"). */
main p { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 3 3; }
main p.figure, main .hero-sub, main .kpi p, main .field-hint, main .field-error, main .form-status,
main .download-meta, main .breadcrumb, main .page-meta, main .feature-meta, main .resource-kind,
main .cal-date, main .demo p, main .contact-alt, main .section-foot p, main .card-kicker, main .tile-note,
main .fact-text, main .resource-desc, main .pain-answer, main .free-note, main .ind-band-text p, main .hero-eyebrow {
  text-align: start; -webkit-hyphens: manual; hyphens: manual;
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 120; background: var(--fg); color: var(--bg); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: var(--space-4); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type -------------------------------------------------------------------------- */
.display { font-family: var(--font-brand); font-weight: 700; font-size: clamp(3rem, 1.2rem + 6.2vw, 7.25rem); line-height: .96; letter-spacing: -0.015em; }
.title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(2.125rem, 1.2rem + 3.2vw, 4rem); line-height: 1.04; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 38em; }
.source { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.figure { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem); line-height: 1; letter-spacing: -0.01em; color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow-num { font-family: var(--font-display); font-weight: 500; font-size: .875rem; color: var(--muted); }

/* Buttons ----------------------------------------------------------------------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border: 1px solid transparent; border-radius: var(--radius-sm); font-family: var(--font-sans); font-weight: 500; font-size: .9375rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .35s var(--ease-out); }
.btn:hover::before { transform: translateY(0); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary::before { background: var(--fg); }
.btn-primary:hover { color: var(--bg); border-color: var(--fg); }
.btn-secondary, .btn-outline { background: transparent; border-color: var(--line-strong); color: var(--fg); }
.btn-secondary::before, .btn-outline::before { background: var(--fg); }
.btn-secondary:hover, .btn-outline:hover { color: var(--bg); border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); padding-inline: var(--space-4); }
.btn-ghost::before { background: var(--accent-soft); }
.btn-light { background: #ffffff; border-color: #ffffff; color: var(--brand-plum); }
.btn-light::before { background: var(--brand-slate); }
.btn-light:hover { color: #ffffff; border-color: var(--brand-slate); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.link-button:hover { text-decoration-thickness: 2px; }

/* Header ------------------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--fg); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), transform .35s var(--ease-out); }
/* Blur on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background-color .25s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { background: rgba(var(--bg-rgb), .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 152px; height: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.site-nav a:not(.btn) { position: relative; color: var(--fg); text-decoration: none; font-weight: 500; font-size: .9375rem; padding-block: var(--space-2); }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta .btn { min-height: 42px; padding-inline: var(--space-4); }
.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.theme-toggle:hover { border-color: var(--fg); background: var(--accent-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: var(--logo-dark); }
.theme-toggle .icon-moon { display: var(--logo-light); }
html:not([data-theme]) .theme-toggle { display: none; }
.brand img.logo-light, .brand img.logo-dark { width: 152px; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .header-inner { gap: var(--space-2); }
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); border: 0; background: none; color: var(--fg); cursor: pointer; font-weight: 500; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s var(--ease), opacity .2s; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); border-top: 1px solid var(--line); padding: var(--space-8) var(--gutter); visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility 0s linear .2s; overflow-y: auto; }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn) { display: block; padding: var(--space-4) 0; font-family: var(--font-display); font-size: 1.5rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  .nav-cta { border-bottom: 0 !important; padding-top: var(--space-8); }
  .nav-cta .btn { width: 100%; min-height: 48px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Intro ---------------------------------------------------------------------------- */
.intro { position: fixed; inset: 0; z-index: 100; animation: intro-fallback .4s var(--ease) 2.5s forwards; }
.intro-bg { position: absolute; inset: 0; background: var(--bg); will-change: opacity; }
html:not([data-theme]) .intro { display: none; }
.intro.is-live { animation: none; }
.intro.is-flying { pointer-events: none; }
.intro.is-done { opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-logo { position: absolute; left: 0; top: 0; max-width: none; opacity: 0; transform-origin: 0 0; will-change: transform, opacity; backface-visibility: hidden; }
@keyframes intro-fallback { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* Hero ------------------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px)); padding-bottom: clamp(48px, 6vw, 88px); }
.hero-field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--field-alpha); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8) clamp(32px, 5vw, 80px); align-items: end; }
.hero-copy { display: grid; gap: var(--space-6); }
.hero-inner:has(.hero-photo) { align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: var(--space-3); justify-self: start; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.hero-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--brand-coral); }
.hero-title { font-size: clamp(3rem, 1rem + 5.4vw, 7rem); }
.hero-title .line { display: block; }
@media (min-width: 900px) { .hero-title .line { white-space: nowrap; } }
.hero-sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2rem); line-height: 1.25; color: var(--fg); }
.hero-lead { max-width: 34em; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.branch { position: relative; z-index: 1; display: flex; align-items: center; color: var(--fg); margin-top: clamp(40px, 5vw, 72px); }
.branch-line { flex: 1; height: 3px; background: currentColor; border-radius: 2px 0 0 2px; opacity: .9; transform-origin: left; }
.branch-end { flex: none; width: 132px; height: 64px; margin-left: -1px; overflow: visible; }
.branch-stroke { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; opacity: .9; }
.branch-coral { fill: var(--brand-coral); } .branch-amber { fill: var(--brand-amber); } .branch-plum { fill: var(--node-plum); }
.branch-end circle { transform-box: fill-box; transform-origin: center; }
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .branch-end { width: 104px; height: 50px; }
}

/* Live panel (hero) and KPI tiles ----------------------------------------------------- */
.panel { background: rgba(var(--bg-rgb), .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2vw, 26px); display: grid; gap: var(--space-4); box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.panel-title { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.panel-date { font-size: .8125rem; color: var(--muted); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.panel-grid .kpi { background: var(--raised); }
.panel .kpi-value { font-size: clamp(1.25rem, .95rem + .8vw, 1.75rem); }
@media (min-width: 640px) and (max-width: 1023px) { .hero .panel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); font-size: .875rem; }
.panel-foot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--fg); font-weight: 500; }
.live-dot { display: inline-flex; align-items: center; gap: var(--space-2); font-size: .8125rem; color: var(--muted); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-amber); box-shadow: 0 0 0 0 rgba(247, 170, 46, .6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(247, 170, 46, .55); } 70% { box-shadow: 0 0 0 10px rgba(247, 170, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(247, 170, 46, 0); } }

.kpi { position: relative; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); min-width: 0; }
.kpi-label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.kpi-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); line-height: 1.1; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-date { font-size: .75rem; color: var(--muted); }
.kpi-delta { font-size: .8125rem; color: var(--fg); }
.kpi-desc { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.spark { width: 100%; height: auto; overflow: visible; }
.spark-line { fill: none; stroke: var(--ch-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--ch-s1); opacity: .1; }
.spark-dot { fill: var(--ch-s1); stroke: var(--raised); stroke-width: 2; }
.spark-zero { stroke: var(--ch-zero); stroke-width: 1; }
.spark-bar { fill: var(--ch-s1); transform-box: fill-box; transform-origin: center bottom; }
.spark-bar.is-neg { fill: var(--ch-ref); transform-origin: center top; }
.spark-range { fill: var(--ch-range); }
.kpi-link { color: inherit; text-decoration: none; }
.kpi-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kpi-link:focus-visible { outline: none; }
.kpi-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -3px; }
.kpi:hover .kpi-link { color: var(--accent); }
.kpi-label { margin: 0; font-family: var(--font-sans); }

/* Marquee band ------------------------------------------------------------------------ */
.marquee { overflow: hidden; padding-block: clamp(20px, 3vw, 36px); border-block: 1px solid var(--line); user-select: none; }
.marquee-track { display: flex; width: max-content; gap: clamp(24px, 3vw, 48px); align-items: center; will-change: transform; }
.marquee-item { display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); font-family: var(--font-brand); font-weight: 700; font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5.5rem); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; color: var(--fg); }
.marquee-item:nth-child(even) { color: var(--muted); }
.marquee-node { flex: none; width: clamp(14px, 1.6vw, 22px); height: clamp(14px, 1.6vw, 22px); border-radius: 50%; }
.marquee-node.n1 { background: var(--brand-coral); } .marquee-node.n2 { background: var(--brand-amber); } .marquee-node.n3 { background: var(--node-plum); }

/* Sections -------------------------------------------------------------------------------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 136px); }
.section-tight-top { padding-top: clamp(24px, 4vw, 56px); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(40px, 5vw, 72px); max-width: 44rem; }
.section-head-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6) clamp(32px, 5vw, 80px); align-items: end; max-width: none; }
.section-head-row > div { display: grid; gap: var(--space-4); }
.section-head-aside { display: grid; gap: var(--space-3); justify-items: start; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-8); margin-top: clamp(32px, 4vw, 56px); }
.section-foot p { color: var(--muted); max-width: 40em; }
@media (max-width: 899px) { .section-head-row { grid-template-columns: 1fr; align-items: start; } }

/* Services (3 columns on desktop) ----------------------------------------------------------- */
.services-wrap { position: relative; }
.services-rule, .steps-rule { position: relative; height: 26px; margin-bottom: 22px; }
.services-rule::before, .services-rule::after, .steps-rule::before, .steps-rule::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; border-radius: 2px; }
.services-rule::before, .steps-rule::before { background: var(--line-strong); opacity: .6; }
.services-rule::after, .steps-rule::after { background: var(--fg); transform: scaleX(var(--progress, 1)); transform-origin: left; }
.services { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.service { display: grid; gap: var(--space-4); align-content: start; position: relative; }
.service-node, .step-node { position: absolute; top: -48px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--node); box-shadow: 0 0 0 6px var(--bg); }
.service-art { aspect-ratio: 16 / 10; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); overflow: hidden; margin-bottom: var(--space-2); transition: border-color .3s var(--ease); }
.service:hover .service-art { border-color: var(--line-strong); }
.service-art svg { width: 100%; height: 100%; }
.service-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.15rem + .7vw, 1.75rem); line-height: 1.2; }
.service p { color: var(--muted); line-height: 1.65; }
.service .deliverable { color: var(--fg); font-size: .9375rem; }
.service-more { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; color: var(--fg); font-weight: 500; text-decoration: none; }
.service-more::after { content: "→"; transition: transform .25s var(--ease); }
.service-more:hover::after { transform: translateX(4px); }
.deliverable span { display: block; margin-bottom: var(--space-1); font-family: var(--font-display); font-weight: 500; color: var(--fg); font-size: .875rem; }
.node-coral { --node: var(--brand-coral); } .node-amber { --node: var(--brand-amber); } .node-plum { --node: var(--node-plum); } .node-slate { --node: var(--node-slate); }
@media (max-width: 899px) {
  .services-wrap { padding-left: 44px; }
  .services-wrap .services-rule { position: absolute; left: 11px; top: 13px; bottom: 0; width: 3px; height: auto; margin: 0; }
  .services-wrap .services-rule::before, .services-wrap .services-rule::after { top: 0; bottom: 0; left: 0; right: auto; width: 3px; height: auto; }
  .services-wrap .services-rule::after { transform: scaleY(var(--progress, 1)); transform-origin: top; }
  .services { grid-template-columns: 1fr; gap: var(--space-12); }
  .service-node { top: 0; left: -44px; }
}

/* Service illustrations */
.art-bg { fill: var(--raised); }
.art-card { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.art-grid { stroke: var(--line); stroke-width: 1; }
.art-ink { fill: var(--fg); }
.art-muted { fill: var(--line-strong); }
.art-line { fill: none; stroke: var(--ch-s1); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.art-coral { fill: var(--brand-coral); } .art-amber { fill: var(--brand-amber); } .art-plum { fill: var(--node-plum); }
.art-dot { transition: transform .8s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.art-bar { transform-box: fill-box; transform-origin: bottom; }
.art-pulse { fill: var(--fg); opacity: 0; }
.service.is-live .art-pulse { opacity: 1; }
.art-scan { fill: var(--ch-s1); opacity: 0; }

/* Process (horizontal on desktop) ------------------------------------------------------------- */
.steps-wrap { position: relative; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) clamp(24px, 3vw, 48px); }
.step { position: relative; display: grid; gap: var(--space-3); align-content: start; }
.step::before { content: ""; position: absolute; left: 0; top: -48px; width: 26px; height: 26px; border-radius: 50%; background: var(--node); box-shadow: 0 0 0 6px var(--bg); }
.step-num { font-family: var(--font-brand); font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 1; color: var(--line-strong); transition: color .4s var(--ease); }
.step:hover .step-num { color: var(--node); }
.step-title { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.3; }
.step p { color: var(--muted); line-height: 1.65; }
@media (max-width: 759px) {
  .steps-wrap { padding-left: 44px; }
  .steps-wrap .steps-rule { position: absolute; left: 11px; top: 13px; bottom: 13px; width: 3px; height: auto; margin: 0; }
  .steps-wrap .steps-rule::before, .steps-wrap .steps-rule::after { top: 0; bottom: 0; left: 0; right: auto; width: 3px; height: auto; }
  .steps-wrap .steps-rule::after { transform: scaleY(var(--progress, 1)); transform-origin: top; }
  .steps { grid-template-columns: 1fr; }
  .step::before { left: -44px; top: 0; }
}

/* Indicators section ----------------------------------------------------------------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.kpi-grid .kpi { background: var(--bg); padding: clamp(18px, 2vw, 28px); gap: var(--space-3); transition: background-color .25s var(--ease); }
.kpi-grid .kpi:hover { background: var(--raised); }
.kpi-grid .kpi-value { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.375rem); }
.kpi-sources { margin-top: var(--space-4); }
.kpi-sources .source { max-width: 72em; }
.kpi-source { font-size: .75rem; color: var(--muted); }
.kpi-source a { color: var(--muted); }
@media (max-width: 1099px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) {
  .kpi-grid .kpi { padding: 14px; gap: var(--space-2); }
  .kpi-grid .kpi-value { font-size: 1.25rem; }
  .kpi-grid .kpi-desc { display: none; }
  .kpi-grid .kpi-delta { font-size: .75rem; }
}
@media (max-width: 339px) { .kpi-grid { grid-template-columns: 1fr; } }
.charts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); margin-top: clamp(48px, 5vw, 80px); }
.chart-card { display: grid; gap: var(--space-3); align-content: start; min-width: 0; }
.chart-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.chart-card > p { color: var(--muted); max-width: 36em; }
@media (max-width: 899px) { .charts-row { grid-template-columns: 1fr; } }
.calendar { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8) clamp(32px, 5vw, 80px); align-items: start; }
.calendar h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.calendar-intro { display: grid; gap: var(--space-3); }
.calendar-intro p { color: var(--muted); }
.cal-list { list-style: none; display: grid; border-top: 1px solid var(--line); margin-bottom: var(--space-3); }
.cal-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: var(--space-2) var(--space-6); align-items: baseline; padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.cal-date { font-family: var(--font-display); font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.cal-what { color: var(--fg); }
.cal-who { font-size: .875rem; color: var(--muted); }
@media (max-width: 899px) { .calendar { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .cal-item { grid-template-columns: 1fr; gap: 2px; } }

/* Charts ------------------------------------------------------------------------------------- */
.chart { margin: 0; display: grid; gap: var(--space-3); min-width: 0; }
.chart-svg { width: 100%; max-width: 580px; height: auto; overflow: visible; font-family: var(--font-sans); }
.ch-grid { stroke: var(--ch-grid); stroke-width: 1; }
.ch-zero { stroke: var(--ch-zero); stroke-width: 1; }
.ch-tick { font-size: 13px; fill: var(--ch-muted); font-variant-numeric: tabular-nums; }
.ch-cat { font-size: 14px; fill: var(--ch-ink); }
.ch-legend { font-size: 13px; fill: var(--ch-ink); }
.ch-label, .ch-value { font-size: 13px; font-weight: 600; fill: var(--ch-ink); font-variant-numeric: tabular-nums; }
.ch-value { font-weight: 500; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { fill: var(--ch-s1); opacity: .08; }
.ch-key { stroke-width: 2; stroke-linecap: round; }
.ch-s1 { stroke: var(--ch-s1); } .ch-s1-fill { fill: var(--ch-s1); }
.ch-s2 { stroke: var(--ch-s2); } .ch-s2-fill { fill: var(--ch-s2); }
.ch-dot { stroke: var(--bg); stroke-width: 2; }
.ch-range { fill: var(--ch-range); }
.ch-ref { stroke: var(--ch-ref); stroke-width: 1; }
.ch-ref-label { font-size: 12px; fill: var(--ch-ref); font-weight: 500; }
.ch-hit { fill: transparent; }
.ch-cross { stroke: var(--ch-zero); stroke-width: 1; opacity: 0; }
.ch-col:hover .ch-cross, .ch-col.is-active .ch-cross { opacity: 1; }
.ch-col:hover .ch-bar, .ch-col.is-active .ch-bar { opacity: .8; }
.ch-bar { transform-box: fill-box; transform-origin: center bottom; }
.ch-bar.ch-neg { transform-origin: center top; }
.ch-hbar { transform-box: fill-box; transform-origin: left center; }
.chart-data summary { cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--accent); width: max-content; padding-block: 4px; }
.chart-data table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: .875rem; margin-top: var(--space-3); font-variant-numeric: tabular-nums; }
.chart-data th, .chart-data td { text-align: left; padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: 1px solid var(--line); }
.chart-data thead th { font-weight: 600; }
.chart-data tbody th { font-weight: 400; }
.chart-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--tip-bg); color: var(--tip-fg); border: 1px solid var(--tip-line); border-radius: var(--radius-md); box-shadow: 0 4px 16px rgba(0, 0, 0, .18); padding: var(--space-2) var(--space-3); font-size: .8125rem; line-height: 1.45; max-width: 260px; }
.chart-tip[hidden] { display: none; }
.chart-tip strong { display: block; font-weight: 600; font-size: .875rem; }
.chart-tip span { display: block; }

/* Demos (dashboards) ---------------------------------------------------------------------------- */
.demo-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .22); }
.demo-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); background: var(--sunken); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.demo-dots span:nth-child(1) { background: var(--brand-coral); } .demo-dots span:nth-child(2) { background: var(--brand-amber); } .demo-dots span:nth-child(3) { background: var(--node-plum); }
.demo-tabs { display: flex; gap: var(--space-1); margin-left: var(--space-4); overflow-x: auto; }
.demo-tab { border: 0; background: transparent; color: var(--muted); font-weight: 500; font-size: .875rem; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); cursor: pointer; white-space: nowrap; }
.demo-tab[aria-selected="true"] { background: var(--raised); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.demo-badge { margin-left: auto; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.demo { padding: clamp(16px, 2.4vw, 32px); display: grid; gap: clamp(16px, 2vw, 24px); }
.demo[hidden] { display: none; }
.demo-fallback { color: var(--muted); padding-block: var(--space-12); text-align: center; }
.demo-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); }
.demo-title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.demo-sub { font-size: .875rem; color: var(--muted); }
.demo-controls { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-md); overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--fg); font-size: .8125rem; font-weight: 500; padding: 8px 12px; cursor: pointer; min-height: 36px; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.demo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.demo-kpis .kpi { background: var(--bg); }
.demo-kpis .kpi-value { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); }
.delta-up { color: var(--success); } .delta-down { color: var(--error); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(16px, 2vw, 24px); }
.demo-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); display: grid; gap: var(--space-3); align-content: start; background: var(--bg); min-width: 0; }
.demo-card h4 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.demo-card svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.demo-table { width: 100%; border-collapse: collapse; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.demo-table th, .demo-table td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); }
.demo-table th { font-weight: 600; color: var(--muted); }
.demo-table th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 32px; }
.demo-table th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-table .num { text-align: right; padding-right: 0; padding-left: 8px; }
.alert { display: inline-flex; align-items: center; gap: var(--space-2); font-size: .8125rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); }
.alert.is-warn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-coral); }
.alert.is-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.demo-stack { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; min-width: 0; }
.demo-insight { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); font-size: .9375rem; line-height: 1.55; color: var(--fg); text-align: start !important; hyphens: manual !important; }
.demo-note, .demo-legend { font-size: .8125rem; color: var(--muted); text-align: start !important; }
.demo-legend { display: flex; align-items: center; gap: var(--space-2); }
.demo-legend .mix-key:not(:first-child) { margin-left: var(--space-3); }
.mix { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; }
.mix-seg { flex: 1 1 0; min-width: 4px; transition: opacity .3s var(--ease), flex-grow .6s var(--ease-out); }
.mix-0 { background: var(--ch-s1); } .mix-1 { background: var(--brand-amber); } .mix-2 { background: var(--brand-coral); }
.key-out { background: var(--ch-out); }
.mix-seg.is-dim { opacity: .3; }
.mix-legend { list-style: none; display: grid; gap: var(--space-2); font-size: .875rem; }
.mix-legend li { display: flex; align-items: center; gap: var(--space-2); }
.mix-legend strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.mix-key { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.ch-out-fill { fill: var(--ch-out); }
.ch-bad-fill { fill: var(--ch-ref); }
.ch-warn-fill { fill: var(--brand-amber); }
.ch-hbar.is-dim, .ch-bar.is-dim { opacity: .3; }
.ch-ref-dash { stroke-dasharray: 5 4; }
.ch-col[data-pick] { cursor: pointer; }
.days { display: inline-block; min-width: 2.6em; padding: 1px 8px; border-radius: 999px; text-align: center; font-weight: 600; }
.days.is-ok { background: var(--accent-soft); color: var(--fg); }
.days.is-due { background: rgba(247, 170, 46, .22); color: var(--fg); }
.days.is-late { background: rgba(234, 101, 83, .24); color: var(--fg); }
@media (max-width: 999px) { .demo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .demo-badge { display: none; } .demo-tabs { margin-left: 0; } }

/* Demos page */
.demo-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-6) clamp(32px, 5vw, 80px); align-items: start; margin-bottom: clamp(28px, 4vw, 48px); }
.demo-intro .eyebrow-num { margin-bottom: var(--space-2); }
.demo-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.demo-facts dt { font-family: var(--font-display); font-weight: 500; font-size: .9375rem; margin-bottom: var(--space-2); }
.demo-facts dd { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; text-align: justify; hyphens: auto; }
.demo-name { margin-left: var(--space-3); font-weight: 500; font-size: .875rem; }
.demo-jump { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.demo-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 500; font-size: .9375rem; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.demo-jump a:hover { background: var(--accent-soft); border-color: var(--fg); }
.chart-wide .chart-svg { max-width: 720px; }
@media (max-width: 999px) { .demo-intro { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .demo-facts { grid-template-columns: 1fr; gap: var(--space-4); } }

/* Resources -------------------------------------------------------------------------------------- */
.resource-cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.resource-card { display: grid; grid-template-columns: clamp(96px, 11vw, 140px) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: center; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--fg); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.resource-card:hover { background: var(--raised); border-color: var(--line-strong); }
.resource-card[hidden], .course[hidden] { display: none; }
.resource-card-wide { max-width: 880px; }
.resource-cover { display: block; aspect-ratio: 210 / 297; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.resource-cover img { width: 100%; height: 100%; object-fit: cover; }
.resource-card:hover .resource-cover { transform: translateY(-6px) rotate(-2deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.resource-body { display: grid; gap: var(--space-2); align-content: center; justify-items: start; }
.resource-kind, .card-kicker { font-size: .8125rem; color: var(--muted); }
.resource-name { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.25; }
.resource-desc { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.resource-body .btn { margin-top: var(--space-2); min-height: 42px; padding-inline: var(--space-4); }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.resource-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: clamp(24px, 3vw, 40px); }
.resource-filters button { min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--fg); font-weight: 500; font-size: .9375rem; cursor: pointer; }
.resource-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.free-note { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: .9375rem; }
.free-note::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-amber); }
@media (max-width: 899px) { .resource-cards { grid-template-columns: 1fr; } }

/* Download dialog */
.dl-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid #2f3842; border-radius: var(--radius-lg); background: #1f262e; color: #eef0f2; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); color-scheme: dark;
  --bg: #161b21; --raised: #1f262e; --fg: #eef0f2; --muted: #a6afb9; --line: #2f3842; --line-strong: #6b7480; --accent: #c99bc4; --on-accent: #161b21; --accent-soft: #33222f; --error: #f48a7c; --success: #8fd1a8; }
.dl-dialog::backdrop { background: rgba(10, 12, 16, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dl-head { position: relative; padding: var(--space-8) var(--space-8) 0; }
.dl-kicker { font-size: .8125rem; color: var(--accent); font-weight: 500; }
.dl-title { margin-top: var(--space-2); padding-right: var(--space-8); font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.25; }
.dl-close { position: absolute; top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.dl-close:hover { background: var(--accent-soft); }
.dl-form, .dl-done { display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-8) var(--space-8); }
.dl-form[hidden], .dl-done[hidden] { display: none; }
.dl-lead { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.dl-dialog .field input[type="text"], .dl-dialog .field input[type="email"] { min-height: 46px; }
.dl-done-title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--success); }
.dl-done { justify-items: start; }
.dl-done:focus { outline: none; }
.dl-toast { position: fixed; z-index: 90; left: 50%; bottom: var(--space-6); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: var(--space-3) var(--space-6); border-radius: 999px; background: #1f262e; color: #eef0f2; border: 1px solid #3a4450; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: .9375rem; }
.dl-toast[hidden] { display: none; }

/* Photos */
.photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--raised); box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: var(--space-3); bottom: var(--space-3); padding: 4px 10px; border-radius: 999px; background: rgba(22, 27, 33, .72); color: #eef0f2; font-size: .75rem; }
.hero-photo { aspect-ratio: 3 / 2; align-self: center; }

/* Facts strip */
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.facts li { background: var(--bg); padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); display: grid; gap: var(--space-2); align-content: start; }
.fact-value { font-family: var(--font-brand); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.05; color: var(--fg); }
.fact-text { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
@media (max-width: 899px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; } }

/* Problems we solve */
.pains { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.pain { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-4); padding: clamp(20px, 2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); transition: transform .4s var(--ease-out), border-color .3s var(--ease); }
.pain:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pain-quote { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.35; color: var(--fg); text-align: start !important; hyphens: manual !important; }
.pain-quote::before { content: "“"; display: block; font-family: var(--font-brand); font-size: 2.5rem; line-height: .8; color: var(--node, var(--accent)); }
.pain-answer { color: var(--muted); line-height: 1.6; }
.pain-tag { font-size: .8125rem; font-weight: 500; color: var(--fg); display: inline-flex; align-items: center; gap: var(--space-2); }
.pain-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--node, var(--accent)); }
@media (max-width: 1099px) { .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .pains { grid-template-columns: 1fr; } }

/* Case + what you receive */
.case-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case { display: grid; gap: var(--space-4); align-content: start; }
.case-label { display: inline-flex; align-self: start; justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); font-size: .8125rem; font-weight: 500; }
.case h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.2; }
.case dl { margin: var(--space-2) 0 0; display: grid; gap: var(--space-4); }
.case dt { font-family: var(--font-display); font-weight: 500; font-size: .9375rem; margin-bottom: var(--space-1); }
.case dd { margin: 0; color: var(--muted); line-height: 1.65; text-align: justify; hyphens: auto; }
.receive { display: grid; gap: var(--space-6); }
.receive-photo { aspect-ratio: 3 / 2; }
.receive-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.receive-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.receive-list li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--node, var(--accent)); }
.receive-list strong { font-weight: 600; }
.receive-list span { color: var(--muted); }
@media (max-width: 999px) { .case-grid { grid-template-columns: 1fr; } }

/* Indicators band (home) */
.ind-band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8) clamp(32px, 5vw, 64px); align-items: center; }
.ind-band-text { display: grid; gap: var(--space-3); justify-items: start; }
.ind-band-text h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.2; }
.ind-band-text p { color: var(--muted); }
.ind-band .panel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ind-band .kpi-value { font-size: clamp(1.25rem, 1rem + .6vw, 1.625rem); }
@media (max-width: 999px) { .ind-band { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .ind-band .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8) clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 56px; padding-block: var(--space-4); cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--font-sans); font-size: 1.25rem; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-5, 20px); color: var(--muted); line-height: 1.7; max-width: 48em; }
@media (max-width: 899px) { .faq-grid { grid-template-columns: 1fr; } }

/* Servicios page */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8) clamp(32px, 5vw, 96px); align-items: start; }
.svc-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: var(--space-6); }
.svc-art .service-art { margin: 0; }
.svc-links { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.svc-main { display: grid; gap: var(--space-4); min-width: 0; }
.svc-main .lead { margin-bottom: var(--space-4); }
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); margin-bottom: var(--space-4); }
.svc-h { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.3; margin: var(--space-2) 0 var(--space-3); }
.svc-cols .receive-list li { grid-template-columns: 20px minmax(0, 1fr); }
.svc-steps { list-style: none; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-4); border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.svc-steps li::before { content: "0" counter(s); font-family: var(--font-brand); font-weight: 700; color: var(--fg); }
.svc-res { margin-top: var(--space-4); color: var(--muted); }
.pains-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.pain-tag { text-decoration: none; min-height: 32px; }
a.pain-tag:hover { color: var(--accent); }
@media (max-width: 999px) { .svc { grid-template-columns: 1fr; } .svc-side { position: static; } }
@media (max-width: 599px) { .svc-cols, .pains-2 { grid-template-columns: 1fr; } }

/* Route to grow with data (home) */
.route { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: r; border-top: 1px solid var(--line); }
.route-step { position: relative; display: grid; gap: var(--space-3); align-content: start; padding: clamp(24px, 2.6vw, 36px) clamp(16px, 2vw, 28px) clamp(24px, 2.6vw, 36px) 0; }
.route-step + .route-step { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.route-step::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 3px; background: var(--node); transform-origin: left; }
.motion .route-step::before { transform: scaleX(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 160ms + 200ms); }
.motion .route-step.is-in::before { transform: none; }
.route-num { font-family: var(--font-brand); font-weight: 700; font-size: clamp(2.5rem, 1.8rem + 2vw, 3.75rem); line-height: 1; color: var(--node); }
.route-name { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.route-q { font-family: var(--font-display); font-weight: 500; color: var(--fg); text-align: start !important; hyphens: manual !important; }
.route-text { color: var(--muted); line-height: 1.6; }
.route-link { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; color: var(--fg); font-weight: 500; font-size: .9375rem; text-decoration: none; }
.route-link::after { content: "→"; transition: transform .25s var(--ease); }
.route-link:hover::after { transform: translateX(4px); }
@media (max-width: 999px) { .route { grid-template-columns: repeat(2, minmax(0, 1fr)); } .route-step:nth-child(3) { border-left: 0; padding-left: 0; } .route-step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 559px) { .route { grid-template-columns: 1fr; } .route-step + .route-step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* AI uses (home and /ia/) */
.uses { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.use { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-3); padding: clamp(20px, 2vw, 28px); border-radius: var(--radius-lg); background: var(--raised); border: 1px solid var(--line); border-top: 3px solid var(--node); transition: transform .4s var(--ease-out), border-color .3s var(--ease); }
.use:hover { transform: translateY(-4px); }
.use-title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.use p { color: var(--muted); line-height: 1.6; }
.use .use-need { font-size: .875rem; color: var(--fg); text-align: start; hyphens: manual; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.use-need span { display: block; font-family: var(--font-display); font-weight: 500; font-size: .8125rem; color: var(--muted); margin-bottom: 2px; }
@media (max-width: 1099px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .uses { grid-template-columns: 1fr; } }

/* IA page */
.area { margin-top: clamp(28px, 3.4vw, 48px); }
.area:first-of-type { margin-top: 0; }
.area-title { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.25; }
.area-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--node); }
.uses-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uses-3 .use-title { font-size: 1.125rem; }
@media (max-width: 999px) { .uses-3 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6) clamp(32px, 5vw, 96px); align-items: start; }
.split-text { display: grid; gap: var(--space-4); }
.split-text > p:not(.lead) { color: var(--muted); line-height: 1.7; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 759px) { .steps-4 { grid-template-columns: 1fr; } }
@media (max-width: 999px) and (min-width: 760px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-16); } }
.principles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.principles li { background: var(--bg); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: var(--space-2); align-content: start; }
.principles h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
.principles p { color: var(--muted); line-height: 1.6; }
@media (max-width: 899px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .principles { grid-template-columns: 1fr; } }
.text-link { color: var(--accent); }

/* Autodiagnóstico */
.test-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-8) clamp(32px, 5vw, 80px); align-items: start; }
.test { display: grid; gap: clamp(28px, 3vw, 44px); }
.q-block { display: grid; gap: var(--space-3); }
.q-block-title { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.25; padding-bottom: var(--space-3); border-bottom: 3px solid var(--node); }
.q { margin: 0; padding: var(--space-4) 0; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3) var(--space-6); align-items: center; }
.q legend { float: left; padding: 0; font-size: 1rem; line-height: 1.5; color: var(--fg); }
.q.is-missing legend { color: var(--error); }
.q-num { font-family: var(--font-display); font-weight: 600; color: var(--muted); margin-right: var(--space-2); font-variant-numeric: tabular-nums; }
.opts { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; justify-self: end; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); font-size: .875rem; font-weight: 500; color: var(--fg); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.opt + .opt span { border-left: 1px solid var(--line-strong); }
.opt input:checked + span { background: var(--accent); color: var(--on-accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -4px; }
.opt:hover span { background: var(--accent-soft); }
.opt input:checked:hover + span { background: var(--accent); }
.test-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.test-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: var(--space-6); }
.test-progress { display: grid; gap: var(--space-2); }
.test-progress-label { font-size: .9375rem; color: var(--muted); text-align: start !important; }
.test-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.test-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s var(--ease-out); }
.test-stages { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: st; }
.test-stages li { position: relative; padding: var(--space-3) 0 var(--space-3) 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.test-stages li::before { content: ""; position: absolute; left: 0; top: calc(var(--space-3) + 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--node); }
.test-stages strong { display: block; color: var(--fg); font-family: var(--font-display); font-weight: 500; }
@media (max-width: 899px) { .test-grid { grid-template-columns: 1fr; } .test-side { position: static; order: -1; } }
@media (max-width: 639px) { .q { grid-template-columns: 1fr; } .opts { justify-self: start; } }
.result-head { display: grid; gap: var(--space-3); max-width: 48rem; margin-bottom: clamp(32px, 4vw, 56px); }
.result-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8) clamp(32px, 5vw, 80px); align-items: start; }
.result-next { display: grid; gap: var(--space-3); }
.scores { list-style: none; display: grid; gap: var(--space-4); }
.score { display: grid; gap: var(--space-2); }
.score-head { display: flex; justify-content: space-between; gap: var(--space-4); font-size: .9375rem; }
.score-name { font-family: var(--font-display); font-weight: 500; }
.score-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.score-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.score-bar span { display: block; height: 100%; background: var(--node); border-radius: 5px; }
.score.is-focus .score-name { color: var(--accent); }
.result-res { list-style: none; display: grid; gap: var(--space-2); color: var(--muted); }
.result-res a { display: inline-flex; min-height: 28px; align-items: center; }
#resultado:focus { outline: none; }
@media (max-width: 899px) { .result-grid { grid-template-columns: 1fr; } }

/* Nosotros photo band */
.photo-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.photo-band .photo { aspect-ratio: 3 / 2; }
.photo-band-text { display: grid; gap: var(--space-4); }
.photo-band-text p { color: var(--muted); line-height: 1.7; }
@media (max-width: 899px) { .photo-band { grid-template-columns: 1fr; } }

/* Contact ------------------------------------------------------------------------------------------ */
.contact { overflow: hidden; }
.facets { position: absolute; top: 0; right: 0; width: clamp(180px, 30vw, 440px); height: auto; pointer-events: none; }
.facet-amber { fill: var(--brand-amber); } .facet-coral { fill: var(--brand-coral); } .facet-deep { fill: var(--brand-plum-deep); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact-intro { display: grid; gap: var(--space-4); padding-top: var(--space-2); }
.contact-intro .lead { color: var(--muted); }
.contact-alt { color: var(--muted); }
.contact-alt a { color: #ffffff; }
.contact-steps { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-6); counter-reset: c; }
.contact-steps li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); align-items: baseline; color: var(--muted); counter-increment: c; }
.contact-steps li::before { content: counter(c); font-family: var(--font-display); font-weight: 600; color: #ffffff; }
.contact-form { --bg: var(--noche); --raised: #1f262e; --fg: #eef0f2; --muted: #a6afb9; --line: #2f3842; --line-strong: #6b7480; --accent: #c99bc4; --on-accent: var(--noche); --accent-soft: #33222f; --error: #f48a7c; --success: #8fd1a8; background: var(--raised); color: var(--fg); padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius-lg); display: grid; gap: var(--space-6); color-scheme: dark; }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 500; font-size: .9375rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 1rem; line-height: 1.4; transition: border-color .15s var(--ease); }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23eef0f2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint { font-size: .8125rem; color: var(--muted); }
.field-error { font-size: .875rem; color: var(--error); }
.field-error:empty { display: none; }
.field-error::before { content: "Error: "; font-weight: 600; }
.field-check { grid-template-columns: 28px 1fr; align-items: start; column-gap: var(--space-3); }
.field-check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; font-size: .9375rem; line-height: 1.5; }
.field-check .field-error { grid-column: 2; }
.field-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9375rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } .facets { width: 150px; } }

/* Footer ------------------------------------------------------------------------------------------------ */
.site-footer { background: var(--sunken); padding-block: var(--space-16) var(--space-12); border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-10, 40px); align-items: start; }
.footer-brand img { width: 152px; }
.footer-slogan { margin-top: var(--space-4); font-family: var(--font-display); font-weight: 500; color: var(--fg); }
.footer-nav ul { list-style: none; display: grid; gap: var(--space-1); }
.footer-nav a, .footer-nav .link-button { color: var(--fg); display: inline-block; padding-block: 4px; }
.footer-legal { display: grid; gap: var(--space-3); color: var(--muted); }
.footer-legal a { color: var(--fg); }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-8); } .footer-brand { grid-column: 1 / -1; } .footer-legal { grid-column: 1 / -1; } }
@media (max-width: 759px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-nav[aria-label="Legal"] { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; } }

/* Consent banner ------------------------------------------------------------------------------------------ */
.consent { position: fixed; z-index: 60; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); max-width: 440px; background: var(--raised); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .28); padding: var(--space-6); display: grid; gap: var(--space-4); }
.consent[hidden] { display: none; }
.consent-title { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
.consent p { font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.consent-actions .btn { min-height: 44px; padding-inline: var(--space-3); }

/* Inner pages --------------------------------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 104px)); padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero-inner { position: relative; z-index: 1; display: grid; gap: var(--space-4); }
.page-hero-inner .lead { max-width: 42em; }
.page-hero-title { max-width: 18em; }
.page-hero-display { font-size: clamp(3rem, 1.4rem + 5.6vw, 7rem); line-height: .98; max-width: 12em; margin-bottom: var(--space-2); }
.breadcrumb { font-size: .9375rem; color: var(--muted); }
.breadcrumb a { color: var(--fg); }
.page-meta { color: var(--muted); font-size: .9375rem; }
.cta-band { padding-block: clamp(56px, 8vw, 104px); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6) var(--space-12); }
.cta-band-inner .title { max-width: 16em; }

/* Article */
.article { padding-block: clamp(48px, 7vw, 104px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.article-toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: var(--space-2); font-size: .9375rem; }
.article-toc p { font-family: var(--font-display); font-weight: 500; color: var(--fg); margin-bottom: var(--space-2); text-align: start; }
.article-toc a { color: var(--muted); text-decoration: none; padding-block: 2px; border-left: 2px solid var(--line); padding-left: var(--space-3); }
.article-toc a:hover { color: var(--fg); border-left-color: var(--accent); }
.article-body { max-width: 780px; display: grid; gap: clamp(48px, 6vw, 72px); }
.article-section { display: grid; gap: var(--space-4); min-width: 0; }
.article-section > h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.2; }
.article-section > p { line-height: 1.75; max-width: 42em; }
.article-section .chart { margin-block: var(--space-4); }
.key-points { list-style: none; display: grid; border-top: 1px solid var(--line); }
.key-points li { position: relative; padding: var(--space-4) 0 var(--space-4) 28px; border-bottom: 1px solid var(--line); line-height: 1.6; text-align: justify; hyphens: auto; }
.key-points li::before { content: ""; position: absolute; left: 2px; top: calc(var(--space-4) + 7px); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); align-items: center; padding-block: var(--space-4); }
.stat p:not(.figure) { max-width: 32em; line-height: 1.6; }
.review-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-12); }
.review-list li { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: 3px solid var(--fg); }
.review-list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.3; }
.review-list p { line-height: 1.6; color: var(--fg); }
.article-method { padding-top: var(--space-8); border-top: 1px solid var(--line); }
.article-method > h2 { font-size: 1.25rem; }
.article-method p { color: var(--muted); }
@media (max-width: 999px) { .article-layout { grid-template-columns: 1fr; } .article-toc { display: none; } }
@media (max-width: 699px) { .review-list { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .stat { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Indicator guide (/indicadores/) */
.guide { display: grid; gap: 0; border-top: 1px solid var(--line); }
.guide-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-6) clamp(32px, 5vw, 80px); padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.guide-head { display: grid; gap: var(--space-3); align-content: start; }
.guide-head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.15rem + .7vw, 1.75rem); line-height: 1.2; }
.guide-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.guide-body { display: grid; gap: var(--space-6); min-width: 0; }
.guide-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.guide-facts h4 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 500; font-size: .9375rem; color: var(--fg); }
.guide-facts p { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
@media (max-width: 899px) { .guide-item { grid-template-columns: 1fr; } .guide-facts { grid-template-columns: 1fr; } }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.about-text { display: grid; gap: var(--space-4); }
.about-text .title { margin-bottom: var(--space-2); }
.about-text p { max-width: 38em; line-height: 1.7; color: var(--muted); }
.about-text p:first-of-type { color: var(--fg); font-size: 1.125rem; }
.about-mark { width: 100%; max-width: 460px; justify-self: center; }
.about-mark img, .not-found-art img { width: 100%; height: auto; }
.dato-visual { min-width: 0; }
.bar-node { stroke: var(--bg); stroke-width: 2; }
.section-title-sm { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); margin-bottom: var(--space-6); }
.section-head .section-title-sm { margin-bottom: 0; }
.values { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.value { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-6); border-top: 3px solid var(--node); }
.value h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.25; }
.value p { color: var(--muted); line-height: 1.65; }
.inclusion-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.inclusion-text { display: grid; gap: var(--space-4); }
.inclusion-text p { max-width: 36em; line-height: 1.7; }
.inclusion-text .btn { justify-self: start; margin-top: var(--space-2); }
.inclusion-figures { display: grid; border-top: 1px solid var(--line); }
.dato { margin: 0; padding-block: clamp(28px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--space-8); align-items: center; border-bottom: 1px solid var(--line); }
.dato-text { display: grid; gap: var(--space-3); }
.dato-nota { padding-block: clamp(28px, 4vw, 40px); display: grid; gap: var(--space-3); }
.nota-title { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.3; }
.waffle { width: 100%; max-width: 240px; }
.waffle .w-off, .waffle .w-part { fill: none; stroke: var(--ch-zero); stroke-width: 1.5px; }
.waffle .w-on { fill: var(--ch-s1); }
.bars { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.bar-label { font-family: var(--font-sans); font-size: 15px; fill: var(--ch-ink); }
.bar-value { font-family: var(--font-display); font-weight: 500; font-size: 17px; fill: var(--ch-ink); }
.bar-line { stroke-width: 4; stroke-linecap: round; }
.bar-plum { stroke: var(--ch-s1); } .bar-plum-fill { fill: var(--ch-s1); }
.bar-slate { stroke: var(--ch-s2); } .bar-slate-fill { fill: var(--ch-s2); }
.bar-coral { stroke: var(--brand-coral); } .bar-coral-fill { fill: var(--brand-coral); }
@media (max-width: 1099px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 999px) { .inclusion-grid { grid-template-columns: 1fr; } }
@media (max-width: 799px) { .about-grid { grid-template-columns: 1fr; } .about-mark { max-width: 280px; justify-self: start; order: -1; } }
@media (max-width: 599px) { .values { grid-template-columns: 1fr; } .dato { grid-template-columns: 1fr; gap: var(--space-6); } .waffle { max-width: 220px; } }

/* Recursos page */
.feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: var(--space-8) clamp(32px, 5vw, 80px); align-items: center; padding: var(--space-8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-art { min-width: 0; }
.feature-body { display: grid; gap: var(--space-3); }
.feature-meta { font-size: .9375rem; color: var(--muted); }
.feature-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.2; }
.feature-title a { color: var(--fg); text-decoration: none; }
.feature-title a:hover { color: var(--accent); }
.feature-body p:not(.feature-meta) { color: var(--muted); max-width: 38em; }
.feature-body .hero-actions { margin-top: var(--space-2); }
@media (max-width: 899px) { .feature { grid-template-columns: 1fr; } }
.course-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.course { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-6) clamp(24px, 4vw, 64px); align-items: start; padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.course .resource-cover { max-width: 180px; }
.course-head { display: grid; gap: var(--space-2); align-content: start; }
.course-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.15rem + .7vw, 1.75rem); line-height: 1.2; }
.course-body { display: grid; gap: var(--space-4); }
.course-body > p { color: var(--fg); line-height: 1.65; }
.learn-list { list-style: none; display: grid; gap: var(--space-2); }
.learn-list li { position: relative; padding-left: 18px; color: var(--muted); }
.learn-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 3px; background: var(--muted); border-radius: 2px; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-2); }
.download-meta { font-size: .875rem; color: var(--muted); }
@media (max-width: 899px) { .course { grid-template-columns: 120px minmax(0, 1fr); } .course-body { grid-column: 1 / -1; } .course .resource-cover { max-width: 120px; } }

/* Legal / simple pages */
.page { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(64px, 9vw, 120px); }
.page-head { display: grid; gap: var(--space-4); margin-bottom: clamp(32px, 5vw, 56px); max-width: 46rem; }
.prose { max-width: 46rem; display: grid; gap: var(--space-4); }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); line-height: 1.25; margin-top: var(--space-8); }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.3; margin-top: var(--space-4); }
.prose p, .prose li { line-height: 1.7; color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: var(--space-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.not-found { min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 24px) 48px; }
.not-found-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.not-found-art { max-width: 420px; justify-self: center; }
.not-found .lead { margin-top: var(--space-4); }
.not-found .hero-actions { margin-top: var(--space-8); }
.not-found-code { color: var(--accent); margin-bottom: var(--space-4); }
@media (max-width: 799px) { .not-found-grid { grid-template-columns: 1fr; } .not-found-art { max-width: 240px; order: -1; justify-self: start; } }

/* Motion ---------------------------------------------------------------------------------------------------
   Hidden start states apply only when theme.js added .motion (JS on, no reduced-motion),
   so the page is complete at rest without JavaScript. */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .hero-title .line { transform: translateY(.42em) rotate(1.5deg); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.motion .hero.is-in .hero-title .line { transform: none; }
.motion .hero-reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms + 250ms); }
.motion .hero.is-in .hero-reveal { opacity: 1; transform: none; }
.motion .branch-line { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .35s; }
.motion .branch-end circle { transform: scale(0); transition: transform .6s var(--ease-out); }
.motion .branch-end .branch-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease-out) 1.2s; }
.motion .hero.is-in .branch-line { transform: none; }
.motion .hero.is-in .branch-end .branch-stroke { stroke-dashoffset: 0; }
.motion .hero.is-in .branch-coral { transform: none; transition-delay: 1.6s; }
.motion .hero.is-in .branch-plum { transform: none; transition-delay: 1.75s; }
.motion .hero.is-in .branch-amber { transform: none; transition-delay: 1.9s; }
.motion .ch-line, .motion .spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); }
.motion .is-drawn .ch-line, .motion .is-drawn .spark-line { stroke-dashoffset: 0; }
.motion .ch-bar, .motion .spark-bar { transform: scaleY(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.motion .ch-hbar { transform: scaleX(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.motion .is-drawn .ch-bar, .motion .is-drawn .spark-bar, .motion .is-drawn .ch-hbar { transform: none; }
.motion .ch-dot, .motion .spark-dot, .motion .spark-area, .motion .ch-range, .motion .ch-label, .motion .ch-value { opacity: 0; transition: opacity .6s var(--ease) 1s; }
.motion .is-drawn .ch-dot, .motion .is-drawn .spark-dot, .motion .is-drawn .spark-area, .motion .is-drawn .ch-range, .motion .is-drawn .ch-label, .motion .is-drawn .ch-value { opacity: 1; }
.motion .is-drawn .spark-area { opacity: .1; }
/* Service illustrations animate in */
.motion .service .art-dot.is-off { transform: translate(var(--dx, 0), var(--dy, 0)) scale(.7); }
.motion .service.is-in .art-dot.is-off { transform: none; transition-delay: calc(var(--i, 0) * 40ms + .3s); }
.motion .service .art-bar { transform: scaleY(.15); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + .3s); }
.motion .service.is-in .art-bar { transform: none; }
.motion .service .art-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) .6s; }
.motion .service.is-in .art-line { stroke-dashoffset: 0; }
.motion .service.is-in .art-scan { animation: scan 1.8s var(--ease) .25s both; }
@keyframes scan { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: .9; } 88% { opacity: .9; } 100% { opacity: 0; transform: translateX(250px); } }
.motion .ch-area { opacity: 0; transition: opacity .8s var(--ease) .9s; }
.motion .is-drawn .ch-area { opacity: .08; }
.motion .kpi-grid .kpi, .motion .hero .panel-grid .kpi { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), background-color .25s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .kpi-grid.is-in .kpi, .motion .hero.is-in .panel-grid .kpi { opacity: 1; transform: none; }
.service:hover .art-dot { transform: scale(1.18); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .live-dot::before { animation: none; }
}
.pains-2 .pain-quote::before { content: none; }

/* v1.5 · rubros, seguridad, publicaciones, casos, boletín ------------------------------ */
.pains-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 999px) { .pains-3 { grid-template-columns: 1fr; } }
.rubro-note { margin-top: var(--space-6); padding: var(--space-4) var(--space-6); border-left: 3px solid var(--node-plum, var(--accent)); background: var(--raised); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; max-width: 52rem; line-height: 1.6; }
.rubro-cards .use-title a { color: var(--fg); text-decoration: none; }
.rubro-cards .use-title a::after { content: " →"; color: var(--node, var(--accent)); transition: margin-left .25s var(--ease); }
.rubro-cards .use-title a:hover { text-decoration: underline; }
.rubro-card { position: relative; }
.rubro-card .use-title a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rubro-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.rubro-card .use-title a:focus-visible { outline: none; }
main .use-need, main .post-meta, main .post-desc, main .case-note, main .formula { text-align: start; -webkit-hyphens: manual; hyphens: manual; }

.formula { font-family: var(--font-display); font-weight: 500; padding: var(--space-4) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); line-height: 1.5; }

.post-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.post-list-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { position: relative; display: grid; gap: var(--space-3); align-content: start; padding: clamp(20px, 2.2vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); transition: transform .4s var(--ease-out), border-color .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); color: var(--muted); font-size: .875rem; }
.post-tag { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); font-weight: 500; font-size: .8125rem; }
.post-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.3; }
.post-title a { color: var(--fg); text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-title a:hover { text-decoration: underline; }
.post-title a:focus-visible { outline: none; }
.post-desc { color: var(--muted); line-height: 1.6; }
@media (max-width: 999px) { .post-list { grid-template-columns: 1fr; } }
@media (max-width: 759px) { .post-list-index { grid-template-columns: 1fr; } }

.case-facts { display: flex; flex-wrap: wrap; gap: var(--space-4) clamp(24px, 4vw, 56px); margin: var(--space-2) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.case-facts dt { font-size: .8125rem; color: var(--muted); margin-bottom: 2px; }
.case-facts dd { margin: 0; font-weight: 500; }
.case-note { max-width: 46rem; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--accent-soft); font-size: .9375rem; line-height: 1.55; }
.case-results .fact-value { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }
.case-quote { margin: clamp(32px, 4vw, 56px) 0 0; max-width: 46rem; display: grid; gap: var(--space-3); }
.case-quote blockquote { margin: 0; }
.case-quote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.35; text-align: start; hyphens: manual; }
.case-quote figcaption { color: var(--muted); }
.case-deliverables li { grid-template-columns: 20px minmax(0, 1fr); }

.newsletter-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6) clamp(32px, 5vw, 96px); align-items: start; }
.newsletter-copy { display: grid; gap: var(--space-4); }
.newsletter-form { display: grid; gap: var(--space-4); }
.newsletter-form .btn { justify-self: start; }
.newsletter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 899px) { .newsletter-inner { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .newsletter-fields { grid-template-columns: 1fr; } }
.rubro-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: clamp(32px, 4vw, 56px); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.rubro-strip > p { font-family: var(--font-display); font-weight: 500; text-align: start; }
.rubro-strip .demo-jump { margin-top: 0; }
.site-nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1179px) { .site-nav ul { gap: 14px; } .site-nav a:not(.btn) { font-size: .875rem; } .nav-cta .btn { padding-inline: var(--space-3); } }
.case-facts a { display: inline-flex; align-items: center; min-height: 28px; }

/* v1.6 · glosario */
.gloss-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.gloss-head .area-dot { width: 14px; height: 14px; }
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin: 0; border-top: 1px solid var(--line); }
.gloss-item { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.gloss-item:target { background: var(--accent-soft); box-shadow: -12px 0 0 var(--accent-soft), 12px 0 0 var(--accent-soft); }
.gloss dt { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.3; margin-bottom: var(--space-2); }
.gloss dd { margin: 0; color: var(--muted); line-height: 1.65; }
.gloss dd .text-link { display: inline-block; min-height: 24px; line-height: 24px; }
@media (max-width: 799px) { .gloss { grid-template-columns: 1fr; } }
#precios .data-table, .article-section .data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.article-section .data-table th, .article-section .data-table td, #precios .data-table th, #precios .data-table td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
#precios .data-table th, .article-section .data-table th { font-weight: 600; }

/* Home v1.7: shorter layout ----------------------------------------------------------------- */
.service-pain { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; line-height: 1.45; color: var(--fg) !important; text-align: start !important; hyphens: manual !important; }
.learn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.learn-col { display: grid; gap: var(--space-4); align-content: start; justify-items: start; }
.learn-col > ul { width: 100%; }
.learn-title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.learn-cards { grid-template-columns: 1fr; }
.post-list-compact { grid-template-columns: 1fr; gap: var(--space-3); }
.post-list-compact .post-card { padding: clamp(16px, 1.8vw, 22px); gap: var(--space-2); }
.post-list-compact .post-title { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.learn-more { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; color: var(--fg); font-weight: 500; text-decoration: none; }
.learn-more::after { content: "→"; transition: transform .25s var(--ease); }
.learn-more:hover::after { transform: translateX(4px); }
@media (max-width: 899px) { .learn-grid { grid-template-columns: 1fr; } }
h4 { margin: 0; text-wrap: balance; }

/* Inner page heroes: smaller title, context photo beside the text (scripts/hero_fotos.py) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); padding-bottom: clamp(32px, 4.5vw, 64px); }
.page-hero-display { font-size: clamp(2.375rem, 1.5rem + 2.6vw, 4.25rem); line-height: 1.02; max-width: 14em; }
.page-hero-title { font-size: clamp(2rem, 1.4rem + 1.9vw, 3.25rem); line-height: 1.08; }
.page-hero-inner.has-photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6) clamp(32px, 4.5vw, 72px); align-items: center; }
.page-hero-text { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.page-hero-text .lead { max-width: 40em; }
.page-hero-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--raised); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .page-hero-inner.has-photo { grid-template-columns: 1fr; }
  .page-hero-photo { aspect-ratio: 16 / 9; max-height: 260px; width: 100%; }
}
button.text-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button.text-link:hover { text-decoration-thickness: 2px; }

/* /ia/por-que/ ------------------------------------------------------------------------------- */
.btn-tldr { background: var(--brand-amber); border-color: var(--brand-amber); color: #161b21; font-weight: 600; white-space: normal; text-align: left; }
.btn-tldr span { font-weight: 500; }
.btn-tldr::before { background: var(--fg); }
.btn-tldr:hover { color: var(--bg); border-color: var(--fg); }
.pq-simple { display: grid; gap: var(--space-4); max-width: 52rem; }
.myth-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); margin-bottom: var(--space-6); }
.myth { display: grid; gap: var(--space-2); align-content: start; padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); }
.myth h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.3; text-decoration: line-through; text-decoration-color: var(--brand-coral); text-decoration-thickness: 2px; }
.myth-label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.myth-label-ok { color: var(--accent); margin-top: var(--space-2); }
.myth p:last-child { color: var(--muted); line-height: 1.6; }
.use-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.use-card { display: grid; gap: var(--space-3); align-content: start; padding: clamp(18px, 2vw, 24px); border-top: 3px solid var(--accent); background: var(--raised); border-radius: var(--radius-md); }
.use-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.3; }
.use-card p { color: var(--muted); line-height: 1.6; }
.use-card .use-evidence { color: var(--fg); font-size: .9375rem; }
.pq-note { margin-top: clamp(24px, 3vw, 40px); max-width: 52rem; padding-left: var(--space-4); border-left: 3px solid var(--brand-amber); }
.pq-free { margin-top: clamp(24px, 3vw, 40px); display: grid; gap: var(--space-2); max-width: 52rem; }
.pq-free h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; }
.pq-actions { margin-top: var(--space-8); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .steps-4 { grid-template-columns: 1fr; } }
.pq-png { align-self: center; }
#precios .data-table .num { white-space: nowrap; padding-right: var(--space-6); } #precios .data-table thead th { color: var(--muted); font-size: .8125rem; }
