/* Concepto: el cajón de bananas amarillas de la metodología NORTHE. Papel frío y tinta; el amarillo queda reservado para el cajón, las marcas y las acciones. */
:root {
  --paper: #F0EBE5;
  --panel: #F7F3EE;
  --ink: #061223;
  --muted: #4A5464;
  --line: #D8D1C7;
  --banana: #E7C13B;
  --on-banana: #061223;
  --chip: #EFD25A;
  --chip-fg: #3B3208;
  --odd-bg: #061223;
  --odd-fg: #F0EBE5;
  --odd-ring: transparent;
  --inv-bg: #061223;
  --inv-card: #0D1B31;
  --inv-fg: #F0EBE5;
  --inv-muted: #9CA8B9;
  --inv-line: #1C2C47;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #061223;
    --panel: #0D1B31;
    --ink: #F0EBE5;
    --muted: #9CA8B9;
    --line: #1C2C47;
    --banana: #E2BC3A;
    --chip: #4A4114;
    --chip-fg: #EBDD9A;
    --odd-bg: #000000;
    --odd-fg: #F4F4EE;
    --odd-ring: #E2BC3A;
    --inv-bg: #0D1B31;
    --inv-card: #061223;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #061223;
  --panel: #0D1B31;
  --ink: #F0EBE5;
  --muted: #9CA8B9;
  --line: #1C2C47;
  --banana: #E2BC3A;
  --chip: #4A4114;
  --chip-fg: #EBDD9A;
  --odd-bg: #000000;
  --odd-fg: #F4F4EE;
  --odd-ring: #E2BC3A;
  --inv-bg: #0D1B31;
  --inv-card: #061223;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--banana); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 80%; text-wrap: balance; margin: 0; line-height: 1.05; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(16px, 4vw); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Encabezado */
.site { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site.stuck { box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .45); }
.bar { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: .06em; font-size: 20px; }
.logo { display: block; height: 26px; width: auto; aspect-ratio: 1727 / 732; color: var(--ink); }
.foot .logo { height: 48px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a.link { text-decoration: none; padding-block: 4px; text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 8px; transition: text-decoration-color .2s; }
.nav a.link:hover { text-decoration-color: var(--muted); }
.nav a.link.on { text-decoration-color: var(--banana); }
.ctrl { display: flex; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 2px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.icon-btn svg { display: block; }
.menu-btn { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--banana); transform-origin: left; transform: scaleX(0); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 2px solid var(--ink); border-radius: 2px; background: var(--banana); color: var(--on-banana); font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: translate .15s, box-shadow .15s, filter .15s; }
.btn:hover { filter: brightness(1.06); translate: -2px -2px; box-shadow: 4px 4px 0 var(--ink); }
.btn:active { translate: 0 0; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.dark { background: #061223; color: #F0EBE5; border-color: #061223; }
.btn.dark:hover { box-shadow: 4px 4px 0 rgba(6, 18, 35, .35); }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 14px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, 4vw) 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a.link { padding-block: 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
  .nav .btn { margin-top: 16px; }
  .ctrl { margin-left: auto; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; line-height: .98; }
.hero h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: .09em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.hero .lede { margin-top: 24px; max-width: 34em; font-size: 1.15rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ai-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; max-width: 40em; }
.ai-points > div { padding-top: 12px; border-top: 2px solid var(--ink); }
.ai-points .mono { display: block; margin-bottom: 6px; color: var(--muted); }
.ai-points p { font-size: 15px; line-height: 1.5; }
@media (max-width: 560px) { .ai-points { grid-template-columns: 1fr; gap: 16px; } }
.eyebrow { display: block; margin-bottom: 20px; color: var(--muted); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

.crate { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 8px; border: 2px solid var(--ink); border-radius: 3px; touch-action: manipulation; }
.chip { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 4px; background: var(--chip); color: var(--chip-fg); border-radius: 2px; font-family: var(--body); font-weight: 500; font-size: 12px; line-height: 1.2; text-align: center; overflow-wrap: normal; word-break: normal; hyphens: none; scale: var(--s, 1); transition: scale .25s var(--ease), background-color .4s, color .4s; }
.chip.odd { grid-column: span 2; }
.chip.found { background: var(--odd-bg); color: var(--odd-fg); outline: 2px solid var(--odd-ring); outline-offset: -2px; font-weight: 600; font-size: 12.5px; }
.chip.flip { animation: flip .7s var(--ease); }
@keyframes flip { 50% { transform: rotateX(90deg); } }
.crate-cap { margin-top: 12px; color: var(--muted); }
@media (max-width: 520px) { .crate { grid-template-columns: repeat(4, minmax(0, 1fr)); } .chip { min-height: 58px; font-size: 11.5px; } }

/* Cifras y cinta */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-bottom: clamp(40px, 6vw, 72px); }
.stat { padding: 16px 16px 0 0; }
.stat b { display: block; font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } }
.ticker { overflow: hidden; background: var(--banana); color: var(--on-banana); border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker-track span { padding: 13px 26px; white-space: nowrap; }
.ticker-track .odd { background: #061223; color: #F0EBE5; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Eje del norte */
.axis-sec { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.axis-sec h2 { margin-bottom: 8px; color: var(--muted); font-weight: 400; }
.axis { position: relative; height: 230px; margin-top: 8px; }
.axis .line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.axis .tick { position: absolute; top: 50%; left: var(--x); width: 2px; height: 10px; margin-top: -5px; background: var(--ink); opacity: .45; }
.axis .pt { position: absolute; top: 50%; left: var(--x); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--banana); border: 2px solid var(--ink); scale: 0; transition: scale .5s var(--ease); transition-delay: calc(.3s + var(--i) * .25s); }
.axis .pt.base { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.axis .lbl { position: absolute; left: var(--x); transform: translateX(-50%); text-align: center; white-space: nowrap; opacity: 0; transition: opacity .6s; transition-delay: calc(.5s + var(--i) * .25s); }
.axis .lbl.l { transform: none; text-align: left; left: 0; }
.axis .lbl.r { transform: translateX(-100%); text-align: right; left: 100%; }
.axis .lbl.up { bottom: calc(50% + 26px); }
.axis .lbl.down { top: calc(50% + 26px); }
.axis .lbl b { display: block; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.axis .lbl span { color: var(--muted); }
.axis .lbl em { display: inline-block; margin-left: 6px; padding: 0 6px; background: var(--banana); color: var(--on-banana); font-style: normal; border-radius: 2px; }
.axis.in .line { transform: none; }
.axis.in .pt { scale: 1; }
.axis.in .lbl { opacity: 1; }
html:not(.js) .axis .line { transform: none; }
html:not(.js) .axis .pt { scale: 1; }
html:not(.js) .axis .lbl { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .axis .line, .axis .pt, .axis .lbl { transition: none; } }
.axis-cap { margin-top: 6px; color: var(--muted); }
@media (max-width: 560px) { .axis .lbl b { font-size: 1.05rem; } .axis .lbl { font-size: 11px; } }

/* Secciones */
section.sec { padding-block: clamp(56px, 9vw, 120px); border-top: 1px solid var(--line); }
section.sec.inv { background: var(--inv-bg); color: var(--inv-fg); border-top: 0; }
.sec.inv .muted, .sec.inv .sec-head p, .sec.inv .sec-head .mono { color: var(--inv-muted); }
.sec-head { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 32px; margin-bottom: clamp(32px, 5vw, 60px); }
.sec-head .mono { color: var(--muted); padding-top: .9em; }
.sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); font-weight: 800; max-width: 20em; }
.sec-head p { grid-column: 2; margin-top: 8px; color: var(--muted); max-width: 40em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { grid-column: 1; } .sec-head .mono { padding-top: 0; } }

/* Comparación */
.switch { display: inline-grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 2px; margin-bottom: 8px; }
.switch button { min-height: 44px; padding: 8px 20px; border: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.switch button + button { border-left: 2px solid var(--ink); }
.cmp-list { border-top: 2px solid var(--ink); margin-top: 18px; }
.cmp-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--line); }
.cmp-row .n { color: var(--muted); }
.txt { display: grid; font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.3; font-family: var(--display); font-stretch: 90%; font-weight: 500; }
.txt > span { grid-area: 1 / 1; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.txt .a { color: var(--muted); }
.txt .b { font-weight: 800; opacity: 0; transform: translateY(10px); }
.cmp.is-b .txt .a { opacity: 0; transform: translateY(-10px); }
.cmp.is-b .txt .b { opacity: 1; transform: none; }
html:not(.js) .txt > span { grid-area: auto; }
html:not(.js) .txt .b { opacity: 1; transform: none; }
.hint { margin-top: 14px; color: var(--muted); }

/* Método */
.rail { height: 2px; background: var(--inv-line); margin-bottom: 30px; position: relative; overflow: hidden; }
.rail i { position: absolute; inset: 0; background: var(--banana); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease); }
.rail.in i { transform: scaleX(1); }
html:not(.js) .rail i { transform: none; }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.phase .num { display: block; margin-bottom: 16px; font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--banana); }
.phase h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.phase p { color: var(--inv-muted); }
.tools-title { margin: clamp(48px, 7vw, 88px) 0 20px; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; background: var(--inv-card); border: 1px solid var(--inv-line); border-radius: 3px; transition: translate .25s var(--ease), border-color .25s; }
.tool:hover { translate: 0 -4px; border-color: var(--banana); }
.tool .mono { color: var(--banana); }
.tool h4 { font-size: 1.2rem; font-weight: 800; }
.tool p { color: var(--inv-muted); font-size: 15px; }
@media (max-width: 1000px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .phases { grid-template-columns: 1fr; gap: 36px; }
  .rail { display: none; }
  .phase { border-top: 2px solid var(--banana); padding-top: 18px; }
}
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }

/* Rubros */
.rubros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rubro { display: flex; flex-direction: column; gap: 12px; padding: 30px; border: 2px solid var(--ink); border-radius: 3px; background: var(--panel); transition: translate .2s var(--ease), box-shadow .2s var(--ease); }
.rubro:hover { translate: -5px -5px; box-shadow: 8px 8px 0 var(--ink); }
.rubro .mono { color: var(--muted); }
.rubro h3 { font-size: 1.7rem; font-weight: 800; }
.rubro .q { font-family: var(--display); font-stretch: 90%; font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.rubro p { color: var(--muted); }
.rubro .go { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.rubro .go-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: auto; padding-top: 10px; }
@media (max-width: 720px) { .rubros { grid-template-columns: 1fr; } }

/* Herramienta */
.audit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: clamp(18px, 3vw, 32px); }
.panel h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label, .field legend { font-weight: 600; }
.field input[type="text"], .field select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--muted); border-radius: 2px; background: var(--paper); color: var(--ink); font: inherit; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 8px; font-weight: 600; line-height: 1.4; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 8px 14px; border: 1px solid var(--muted); border-radius: 2px; font-size: 15px; background: var(--paper); transition: background .15s, color .15s; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--banana); outline-offset: 2px; }
.prog { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.prog .bar-track { flex: 1; margin: 0; }
.prog .mono { color: var(--muted); white-space: nowrap; }
.err { margin-top: 14px; min-height: 1.4em; font-weight: 600; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.result { margin-top: 0; }
@media (min-width: 901px) { .result { position: sticky; top: 96px; } }
.score { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: clamp(3.2rem, 8vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.score small { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--muted); }
.bar-track { height: 10px; margin: 16px 0 10px; background: var(--line); border-radius: 1px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--banana); transition: width .9s var(--ease); }
.tier { font-weight: 700; font-size: 1.15rem; }
.finds { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.finds li { padding-top: 12px; border-top: 1px solid var(--line); }
.msg { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 2px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ph { color: var(--muted); }
@media (max-width: 900px) { .audit { grid-template-columns: 1fr; } }

/* Escalera de precios */
.ladder-wrap { margin-top: clamp(56px, 8vw, 104px); }
.ladder-title { margin-bottom: 20px; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 26px 22px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.step.pick { background: var(--ink); color: var(--paper); border-color: var(--ink); translate: 0 -12px; }
.step h3 { font-size: 1.2rem; font-weight: 800; }
.price { font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-stretch: 100%; font-weight: 500; font-size: 13px; color: var(--muted); }
.price small.blk { display: block; margin-top: 4px; }
.step.pick .price small { color: inherit; opacity: .75; }
.inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.inc li { padding-left: 18px; position: relative; }
.inc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--banana); }
.step.pick .inc { color: inherit; opacity: .85; }
.step .flag { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.step.pick .flag { border-top-color: rgba(128, 128, 128, .5); }
.badge { align-self: flex-start; padding: 2px 8px; background: var(--banana); color: var(--on-banana); border-radius: 2px; }
.fine { margin-top: 22px; color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step.pick { translate: 0 0; } }
@media (max-width: 560px) { .ladder { grid-template-columns: 1fr; } }

/* Preguntas */
.faq { max-width: 52em; margin-left: 242px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.5rem; line-height: 1; color: var(--muted); transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; color: var(--ink); }
.faq p { padding-bottom: 22px; color: var(--muted); max-width: 44em; }
@media (max-width: 760px) { .faq { margin-left: 0; } }

/* Cierre */
.cta { background: var(--banana); color: var(--on-banana); border-top: 2px solid var(--ink); padding-block: clamp(56px, 9vw, 120px); }
.cta .mono { display: block; margin-bottom: 18px; }
.cta h2 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); font-weight: 800; line-height: .98; max-width: 14em; }
.cta p { margin-top: 20px; max-width: 34em; font-size: 1.1rem; }
.cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta .btn.ghost { color: #061223; border-color: #061223; }
.cta .btn.ghost:hover { box-shadow: 4px 4px 0 rgba(6, 18, 35, .35); }

/* Pie */
footer.foot { border-top: 2px solid var(--ink); padding-block: 48px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot .brand { font-size: 24px; }
.foot p { color: var(--muted); }
.foot .col { display: grid; gap: 8px; align-content: start; }
.foot .col a { text-decoration: none; }
.foot .col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .col span { overflow-wrap: anywhere; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.rubros.posts .rubro h3 { font-size: 1.35rem; line-height: 1.15; }

/* Aparición al desplazarse */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .rail i { transition: none; }
}

/* Páginas de rubro */
.crumbs { padding-top: 26px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-hero { padding-block: clamp(28px, 5vw, 64px) clamp(44px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1; max-width: 16em; }
.page-hero h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: .09em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.page-hero .lede { margin-top: 24px; max-width: 40em; font-size: 1.15rem; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tools.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rubros.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tools.three, .rubros.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tools.three, .rubros.three { grid-template-columns: 1fr; } }
.rubro .go-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: auto; padding-top: 10px; }
.rubro .go-row .go { margin-top: 0; padding-top: 0; }

/* Blog */
.article-head { padding-block: clamp(28px, 5vw, 60px) 28px; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; color: var(--muted); }
.article-head .meta .tag { padding: 1px 8px; background: var(--banana); color: var(--on-banana); border-radius: 2px; }
.article-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); font-weight: 800; line-height: 1.02; max-width: 18em; }
.article-head .lede { margin-top: 22px; max-width: 40em; font-size: 1.2rem; }
.article-body { padding-bottom: clamp(48px, 7vw, 88px); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 2.2em 0 .5em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.3rem; font-weight: 800; margin: 1.7em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose a { text-decoration-color: var(--banana); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .9em; padding: 1px 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.summary { border: 2px solid var(--ink); border-radius: 3px; background: var(--panel); padding: 22px 26px; margin: 0 0 2em; }
.summary .mono { display: block; margin-bottom: 10px; color: var(--muted); }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin-bottom: .5em; }
.toc { border-block: 1px solid var(--line); padding: 16px 0 6px; margin: 0 0 2em; }
.toc .mono { display: block; margin-bottom: 10px; color: var(--muted); }
.toc ol { margin: 0 0 10px; padding-left: 1.3em; }
.toc li { margin-bottom: .35em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.callout { border-left: 4px solid var(--banana); padding: 4px 0 4px 20px; margin: 1.8em 0; }
.callout p { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom: 2px solid var(--ink); }
.faq-in-article { margin-top: 2.4em; }
.rubro .cat { color: var(--muted); }
.rubro time { color: var(--muted); }
