/* Codigum: sistema visual. Sin dependencias externas. */
:root {
  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgb(0 0 0 / .09);
  --accent: #9c5a00;
  --accent-2: #c77a00;
  --brand: #f5a623;
  --brand-solid: #f5a623;
  --nav: rgb(251 251 253 / .72);
  --tint-amber: #fdf6e8;
  --tint-sky: #eef4fb;
  --tint-sage: #eef6f0;
  --bad: #c8402f;
  --s-rust: #b87400;
  --s-gc: #2f6fbf;
  --on-dark: #f5f5f7;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 5vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-soft: #101012;
    --card: #161618;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgb(255 255 255 / .13);
    --accent: #f5a623;
    --accent-2: #ffd27a;
    --nav: rgb(12 12 13 / .86);
    --tint-amber: #1b1509;
    --tint-sky: #0d151e;
    --tint-sage: #0e1711;
    --bad: #f0705f;
    --s-rust: #c9820f;
    --s-gc: #5b93e6;
  }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(17px, 1.2vw, 19px)/1.5 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #1d1d1f; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); transition: top .3s var(--ease); }
.skip:focus { top: 12px; }
.wrap { width: min(100%, 1120px); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 600; letter-spacing: -.005em; margin-bottom: .75rem; }
.eyebrow:empty { display: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.028em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7.4vw, 5.5rem); line-height: 1.04; letter-spacing: -.038em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); line-height: 1.07; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.16; letter-spacing: -.02em; }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.4; letter-spacing: -.016em; color: var(--muted); text-wrap: pretty; }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
  view-transition-name: nav;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 52px; width: min(100%, 1120px); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.logo { display: block; height: 24px; width: auto; }
.brand--footer { margin-bottom: .75rem; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); font-size: .875rem; }
.nav__links a:not(.nav__cta) { color: var(--muted); transition: color .25s; }
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__cta { padding: 5px 13px; border-radius: 980px; background: var(--ink); color: var(--bg); font-weight: 500; transition: opacity .25s; }
.nav__cta:hover { opacity: .78; }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; color: inherit; cursor: pointer; }
.nav__toggle i { position: absolute; left: 13px; width: 18px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.nav__toggle i:nth-of-type(1) { top: 18px; }
.nav__toggle i:nth-of-type(2) { top: 25px; }
.nav.is-open .nav__toggle i:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle i:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 53px 0 0; height: calc(100dvh - 53px);
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 24px var(--gutter);
    background: var(--bg);
    font-size: 1.75rem; font-weight: 600; letter-spacing: -.025em;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.nav__cta) { color: var(--ink); }
  .nav__cta { margin-top: 18px; padding: 10px 20px; font-size: 1rem; letter-spacing: -.01em; }
}

/* Botones */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 980px;
  background: var(--brand); color: #1d1d1f; font-weight: 500; font-size: 1.0625rem;
  transition: transform .5s var(--ease), filter .3s;
}
.btn:hover { filter: brightness(1.08); transform: scale(1.03); }
.btn:active { transform: scale(.97); }
.link { color: var(--accent); font-size: 1.0625rem; }
.link span { display: inline-block; transition: transform .5s var(--ease); }
.link:hover span { transform: translateX(4px); }

/* Hero */
.hero { position: relative; display: grid; place-items: center; min-height: clamp(480px, 72svh, 720px); padding: clamp(56px, 9vh, 96px) var(--gutter); text-align: center; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero__body { position: relative; z-index: 1; }
.hero__eyebrow { margin-bottom: 1.1rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.hero__title .line > span { display: inline-block; }
.grad {
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 640px; margin: 1.6rem auto 0; font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 2.2rem; }

.js .hero__eyebrow, .js .hero__lead, .js .hero__cta { animation: rise 1.2s var(--ease) both; }
.js .hero__lead { animation-delay: .35s; }
.js .hero__cta { animation-delay: .5s; }
.js .hero__title .line > span { animation: unmask 1.3s var(--ease) both; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes unmask { from { transform: translateY(105%); } }

/* Escena de memoria ligada al scroll */

/* Secciones */
.section { padding-block: clamp(72px, 13vh, 150px); }
.section--tight { padding-top: 0; }
.section--soft { background: var(--bg-soft); }
.section--amber { background: var(--tint-amber); }
.section--sky { background: var(--tint-sky); }
.section--sage { background: var(--tint-sage); }
.section--brand, .closing {
  background: var(--brand-solid); color: #1d1d1f;
  --ink: #1d1d1f; --muted: #5a3b00; --accent: #1d1d1f; --line: rgb(0 0 0 / .16);
}
.section--brand .btn, .closing .btn { background: #1d1d1f; color: #fff; }
.section--brand .card { background: #fff; color: #1d1d1f; --muted: #6e6e73; --accent: #9c5a00; }
.section--sky .card--plain, .section--sage .card--plain { background: var(--card); }
.section--dark { background: #000; color: var(--on-dark); --muted: #a1a1a6; --accent: #f5a623; --line: rgb(255 255 255 / .14); }
.section__head { margin-bottom: clamp(36px, 6vh, 64px); }

/* Tarjetas */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bento--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: block; padding: clamp(26px, 3.6vw, 44px); border-radius: 24px;
  background: var(--bg-soft);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), opacity 1s var(--ease);
}
.card--wide { grid-column: 1 / -1; padding-block: clamp(40px, 6vw, 72px); }
.card--wide h3 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.028em; }
.card h3 { margin-bottom: .6rem; }
.section--soft .card--plain { background: var(--card); }
a.card:hover { transform: scale(1.012); box-shadow: 0 18px 50px -24px rgb(0 0 0 / .28); }
@media (max-width: 860px) { .bento, .bento--three { grid-template-columns: minmax(0, 1fr); } }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.stat__n { font-size: clamp(3.4rem, 8vw, 6rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; margin-bottom: .9rem; font-variant-numeric: tabular-nums; background: linear-gradient(95deg, #f5a623, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.note { margin-top: clamp(36px, 6vh, 64px); margin-bottom: 1rem; max-width: 720px; font-size: 1.0625rem; color: var(--muted); }
.note a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Pasos */
.steps li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding-block: clamp(22px, 3.4vh, 34px); border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .95rem; padding-top: .3em; }
.steps h3 { margin-bottom: .35rem; }
.steps p { max-width: 620px; }

/* Listas */
.row { display: block; padding-block: 24px; border-top: 1px solid var(--line); transition: padding-left .6s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row:hover { padding-left: 10px; }
.row h3 { margin-bottom: .25rem; }

/* Páginas interiores */
.pagehead { padding: clamp(76px, 15vh, 150px) var(--gutter) clamp(52px, 9vh, 96px); max-width: 1120px; margin-inline: auto; }
.pagehead .lead { max-width: 700px; margin-top: 1.3rem; }
.pagehead--tall { min-height: 74vh; }
.pagehead--tall .btn { margin-top: 2rem; }
.pagehead--article { max-width: calc(680px + 2 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 36px; }
.pagehead--article h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.032em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); }
.split .lead { margin-bottom: 1.4rem; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks { margin-bottom: 1.4rem; }
.ticks li { position: relative; padding: .7rem 0 .7rem 28px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.1rem; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.8); }

/* Artículos */
.prose { max-width: calc(680px + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter) clamp(40px, 8vh, 96px); line-height: 1.62; }
.section .prose { padding-inline: 0; margin-inline: 0; padding-bottom: 28px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.024em; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.7em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose code { font: .88em var(--mono); background: var(--bg-soft); padding: .12em .36em; border-radius: 6px; }
.prose pre { margin-inline: 0; padding: 20px 22px; border-radius: 16px; background: #101012 !important; color: #e7e7ea; overflow-x: auto; font: .86rem/1.65 var(--mono); }
.prose pre code { background: none; padding: 0; font: inherit; color: inherit; }
.prose .play { display: block; margin-top: -.75rem; font-size: .875rem; color: var(--accent); text-decoration: none; }
.prose .play:hover { text-decoration: underline; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--muted); }

.list__more { margin-top: 1.75rem; }

/* Ruta de aprendizaje */
.modulos { counter-reset: paso; display: grid; gap: 16px; }
.path a { counter-increment: paso; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding-block: 26px; border-top: 1px solid var(--line); transition: padding-left .6s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.path li:last-child a { border-bottom: 1px solid var(--line); }
.path a::before { content: counter(paso, decimal-leading-zero); color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; padding-top: .35em; }
.path a:hover { padding-left: 10px; }
.path h3 { margin-bottom: .25rem; }

/* Evidencia */
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding-block: clamp(24px, 4vh, 40px); border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: .2em; }
.timeline h3 { margin-bottom: .4rem; }
.timeline p { max-width: 680px; }
.timeline .link { display: inline-block; margin-top: .5rem; font-size: .95rem; }

/* Navegación entre guías */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 680px; margin-inline: auto; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); box-sizing: content-box; }
.pager a { display: block; padding: 18px 20px; border-radius: 16px; background: var(--bg-soft); font-weight: 600; letter-spacing: -.014em; line-height: 1.25; transition: transform .6s var(--ease); }
.pager a:hover { transform: scale(1.015); }
.pager span.muted { display: block; font-size: .8rem; font-weight: 400; margin-bottom: .2rem; }
.pager__next { text-align: right; grid-column: 2; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .pager { box-sizing: border-box; grid-template-columns: minmax(0, 1fr); } .pager__next { grid-column: 1; } }

/* Recuadros didácticos */
.callout { padding: 18px 22px; border-radius: 18px; background: var(--tint-amber); }
.callout--nota { background: var(--tint-sky); }
.callout--reto { background: var(--tint-sage); margin-top: 2em; }
.callout > * + * { margin-top: .6em; }
.prose .callout__t { font-size: .8125rem; font-weight: 600; color: var(--accent); letter-spacing: -.003em; margin-bottom: .25rem; }
.callout code { background: rgb(127 127 127 / .14); }

/* Diagramas */
.dg { margin-inline: 0; padding: 20px 22px 16px; border-radius: 18px; background: var(--bg-soft); }
.dg svg { display: block; width: 100%; height: auto; }
.dg text { font: 500 15px var(--font); fill: var(--ink); letter-spacing: -.01em; }
.dg .dg__b { text-anchor: middle; fill: var(--bad); font-size: 14px; font-weight: 600; }
.dg .dg__c { text-anchor: middle; font-size: 16px; fill: var(--ink); }
.dg .dg__h { font-size: 15px; font-weight: 600; fill: var(--ink); }
.dg .dg__m { fill: var(--muted); font-size: 14px; }
.dg .dg__on { fill: #1d1d1f; font-weight: 600; }
.dg .dg__s { font-size: 14px; font-weight: 400; }
.dg__box { fill: var(--card); stroke: var(--line); }
.dg__off { fill: none; stroke: var(--muted); stroke-dasharray: 5 5; opacity: .6; }
.dg__dash { fill: var(--card); stroke: var(--accent); stroke-dasharray: 5 5; }
.dg__badbox { fill: var(--card); stroke: var(--bad); stroke-width: 1.5; }
.dg__dashed { stroke-dasharray: 5 5; }
.dg .dg__err { stroke: var(--bad); }
.dg code { font-size: .95em; padding: 0; background: none; }
.dg__ok { fill: var(--brand); }
.dg__ok2 { fill: var(--brand); opacity: .55; }
.dg__bad { fill: var(--bad); opacity: .85; }
.dg__line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 5; }
.dg .dg__t { font-size: 13.5px; font-weight: 400; fill: var(--muted); }
.dg .dg__mid { text-anchor: middle; }
.dg .dg__tbad { fill: var(--bad); font-weight: 500; }
.dg .dg__mm { fill: var(--muted); }
.dg .dg__cs { font-size: 13.5px; }
.dg .dg__on { fill: #1d1d1f; }
.dg__cell { fill: var(--card); stroke: var(--line); }
.dg__cellb { fill: var(--card); stroke: var(--muted); }
.dg__own { fill: var(--brand); }
.dg__free { fill: none; stroke: var(--muted); stroke-dasharray: 4 4; }
.dg__risk { fill: color-mix(in srgb, var(--bad) 13%, var(--card)); stroke: var(--bad); stroke-width: 1.5; }
.dg__ptr { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dg__ptr--bad { stroke: var(--bad); }
.dg__ptr--off { stroke: var(--muted); stroke-dasharray: 3 4; }
.dg__grid { stroke: var(--line); }
.dg__axisl { fill: none; stroke: var(--muted); stroke-width: 1; opacity: .7; }
.dg__mark { stroke: var(--ink); stroke-width: 1.5; }
.dg__limit { stroke: var(--bad); stroke-width: 1.25; stroke-dasharray: 4 4; }
.dg__stroke { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.dg__gc, .dg__rs { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dg__gc { stroke: var(--s-gc); }
.dg__rs { stroke: var(--s-rust); }
.dg__live { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 3 4; }
.dg__fgc { fill: var(--s-gc); }
.dg__fgc2 { fill: var(--s-gc); opacity: .55; }
.dg__frs { fill: var(--s-gc); }
.dg__fmut { fill: var(--muted); opacity: .4; }
.dg__band { fill: var(--s-gc); opacity: .1; }
.dg__area { fill: var(--s-gc); opacity: .14; }
.dg__hatch { stroke: var(--s-gc); stroke-width: 2; opacity: .45; }
.dg__hbox { stroke: var(--line); }
.dg sup { font-size: .75em; }
.dg .dg__ts { font-size: 12.5px; }
.dg__dot { fill: var(--brand); }
.dg__track { fill: var(--muted); opacity: .16; }
.dg__frust { fill: var(--s-rust); }
.dg__fbar { fill: var(--muted); opacity: .45; }
.dg__tick { fill: none; stroke: var(--s-rust); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pic { display: block; width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile .pic, .modulo .pic { margin-bottom: .85rem; }
.jump { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-block: 1.6rem; }
.prose .jump a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); font-size: .9rem; text-decoration: none; transition: background .25s; }
.prose .jump a:hover { background: var(--tint-amber); }
.jump .pic { width: 20px; height: 20px; flex: none; }
.detalle { margin-block: 1.4rem; padding: 14px 18px; border-radius: 14px; background: var(--bg-soft); }
.detalle summary { cursor: pointer; font-weight: 600; }
.detalle[open] summary { margin-bottom: .8rem; }
.sub { max-width: 480px; margin-top: 1.4rem; }
.closing .sub { margin-inline: auto; }
.sub__row { display: flex; flex-wrap: wrap; gap: 10px; }
.sub input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 980px; background: var(--card); color: var(--ink); font: inherit; }
.closing .sub input[type="email"] { background: #fff; color: #1d1d1f; }
.sub__ok { display: flex; gap: 8px; align-items: flex-start; margin-top: .85rem; font-size: .84rem; line-height: 1.4; text-align: left; color: var(--muted); }
.sub__ok a, .sub__pronto a { text-decoration: underline; text-underline-offset: 2px; }
.sub__pronto { font-weight: 500; }
.pagehead .sub__pronto { margin-top: 1.4rem; color: var(--muted); }
.notas-pilar { scroll-margin-top: 72px; }
.lab-home { max-width: 760px; }
.lab-home .lead { margin-block: 1rem 1.25rem; }
.sub .btn { border: 0; font-family: inherit; cursor: pointer; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.logos li { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; padding: 12px; border-radius: 14px; background: var(--bg-soft); color: var(--muted); }
.logos svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.logos span { font-size: .875rem; font-weight: 500; letter-spacing: -.01em; }
.logos__txt span { font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; }
.logos__nota { max-width: 680px; margin-top: 1.1rem; font-size: .84rem; line-height: 1.4; color: var(--muted); }
.fuentes { max-width: calc(680px + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter) clamp(36px, 7vh, 64px); }
.fuentes h2 { padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 1.05rem; letter-spacing: -.01em; }
.fuentes ol { list-style: decimal; margin: .8rem 0 0; padding-left: 1.3rem; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.fuentes li { margin-block: .55rem; padding-left: .2rem; }
.fuentes a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.fuentes a:hover { color: var(--accent); }
.fuentes span { display: block; }
.flujo__c { display: block; width: 100%; height: 210px; }
.flujo__ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; margin-top: 16px; }
.flujo__ctl label { display: grid; gap: 6px; font-size: .84rem; color: var(--muted); }
.flujo__ctl span { display: flex; justify-content: space-between; gap: 8px; }
.flujo__ctl output { color: var(--ink); font-weight: 600; white-space: nowrap; }
.flujo__ctl input { width: 100%; margin: 0; accent-color: var(--brand); }
.flujo__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 4px; }
.flujo__out div { padding: 12px 14px; border-radius: 12px; background: var(--card); }
.flujo__out dt { font-size: .78rem; line-height: 1.25; color: var(--muted); }
.flujo__out dd { margin: 4px 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.prose table { display: block; width: 100%; overflow-x: auto; margin-block: 1.4rem; border-collapse: collapse; font-size: .95rem; line-height: 1.4; }
.prose th { text-align: left; font-weight: 600; white-space: nowrap; }
.prose th, .prose td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 72px; }
@media (max-width: 620px) {
  .dg { padding: 14px 12px 12px; }
  .flujo__ctl, .flujo__out { grid-template-columns: minmax(0, 1fr); }
  .flujo__out { gap: 8px; }
}
.dg__axis { fill: none; stroke: var(--muted); stroke-width: 1.25; }
.dg figcaption, .ferris-fig figcaption { margin-top: 10px; font-size: .84rem; line-height: 1.4; color: var(--muted); }

/* Ferris */
.ferris { display: block; width: 100%; height: auto; }
.ferris-fig { max-width: 300px; margin-inline: auto; text-align: center; }
.ferris-fig--head { margin: 2.2rem 0 0; text-align: left; max-width: 260px; }
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.duo .lead { margin-block: 1rem 1.25rem; }
.duo__art { max-width: 300px; justify-self: center; width: 100%; }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo__art { max-width: 220px; justify-self: start; } }
.meet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.meet__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.meet__ferris { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9375rem; transition: color .3s; }
.meet__ferris:hover { color: var(--ink); }
.meet__ferris .ferris { width: 56px; transition: transform .7s var(--ease); }
.meet__ferris:hover .ferris { transform: translateX(6px); }

/* Módulos de aprendizaje */
.modulo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(24px, 4vw, 56px); padding: clamp(24px, 3.4vw, 44px); border-radius: 24px; background: var(--tint-amber); }
.modulo:nth-child(4n+2) { background: var(--tint-sky); }
.modulo:nth-child(4n+3) { background: var(--tint-sage); }
.modulo:nth-child(4n) { background: var(--bg-soft); }
.modulo h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; margin-bottom: .4rem; }
.modulo .path li + li a { border-top: 1px solid var(--line); }
.modulo .path a { border: 0; padding-block: 16px; }
.modulo .path li:first-child a { padding-top: 0; }
.modulo .path li:last-child a { border: 0; padding-bottom: 0; }
.modulo .path li + li a { border-top: 1px solid var(--line); }
.modulo { scroll-margin-top: 72px; }
@media (max-width: 760px) { .modulo { grid-template-columns: minmax(0, 1fr); } }

/* Tarjetas combinadas */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: block; padding: clamp(22px, 2.6vw, 32px); border-radius: 22px; background: var(--card); transition: transform .7s var(--ease), opacity 1s var(--ease), box-shadow .7s var(--ease); }
.tile h3 { margin-bottom: .45rem; font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
.tile .link { display: inline-block; margin-top: .8rem; font-size: 1rem; }
.tiles--tint .tile:nth-child(3n+1) { background: var(--tint-amber); }
.tiles--tint .tile:nth-child(3n+2) { background: var(--tint-sky); }
.tiles--tint .tile:nth-child(3n) { background: var(--tint-sage); }
.js a.tile.reveal.is-in:hover { transform: scale(1.012); transition-delay: 0ms; transition-duration: .7s; box-shadow: 0 18px 50px -24px rgb(0 0 0 / .22); }
@media (max-width: 1000px) { .tiles--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles, .tiles--two, .tiles--four { grid-template-columns: minmax(0, 1fr); } }
.tree__links { display: flex; flex-wrap: wrap; gap: 10px 32px; }

/* Etapas de migración */
.etapas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.etapa { padding: clamp(20px, 2.4vw, 28px); border-radius: 22px; background: var(--card); }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 1.2rem; }
.blocks i { height: clamp(34px, 4.4vw, 48px); border-radius: 9px; background: rgb(127 127 127 / .18); transition: background .9s var(--ease); }
.blocks .new { background: var(--brand); }
.js .reveal:not(.is-in) .blocks .new { background: rgb(127 127 127 / .18); }
.js .reveal.is-in .blocks .new { transition-delay: .45s; }
.js .reveal.is-in .blocks .new:nth-child(n+4) { transition-delay: .75s; }
.etapa h3 { margin-bottom: .35rem; }
@media (max-width: 760px) { .etapas { grid-template-columns: minmax(0, 1fr); } }

/* Árbol de decisión */
.tree { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 44px; align-items: center; }
.tree__root, .tree__out li { display: block; border-radius: 18px; padding: 16px 20px; background: var(--card); color: #1d1d1f; }
.tree__root { background: #1d1d1f; color: #fff; text-align: center; padding-block: 24px; }
.tree b { display: block; font-weight: 600; letter-spacing: -.016em; }
.tree span { font-size: .9rem; opacity: .72; }
.tree__out { position: relative; display: grid; gap: 10px; }
.tree__out li { position: relative; background: #fff; }
.tree__out li.go { background: #fff; box-shadow: inset 0 0 0 2px #1d1d1f; }
.section--sky .tree__out li.go { box-shadow: inset 0 0 0 2px var(--brand); }
.section--sky .tree__out li { color: var(--ink); background: var(--card); }
.tree__out li::before { content: ""; position: absolute; left: -44px; top: 50%; width: 44px; border-top: 1.5px solid currentColor; opacity: .45; }
.tree__out::before { content: ""; position: absolute; left: -44px; top: 12.4%; bottom: 12.4%; border-left: 1.5px solid currentColor; opacity: .45; }
@media (max-width: 760px) {
  .tree { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tree__out::before { left: 50%; top: -22px; bottom: auto; height: 22px; }
  .tree__out li::before { display: none; }
}

/* Progreso de la guía */
.prog { display: flex; gap: 5px; max-width: 200px; margin-bottom: 1.4rem; }
.prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.prog .on { background: var(--brand); }

/* Cierre */
.closing { padding-block: clamp(90px, 18vh, 190px); text-align: center; }
.closing__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
.closing p { max-width: 520px; margin: 1rem auto 1.9rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); text-wrap: pretty; }

/* Pie */
.footer { padding-block: 44px; font-size: .875rem; border-top: 1px solid var(--line); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); }
.footer nav a { transition: color .25s; }
.footer nav a:hover { color: var(--ink); }
.footer__legal { margin-top: 28px; font-size: .78rem; }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js a.card.reveal.is-in:hover { transform: scale(1.012); transition-delay: 0ms; transition-duration: .7s; }

/* Movimiento reducido: todo visible y estático */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Íconos incrustados por tools/plano.py */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
