/* mauroaguirre.com · estilo del sitio (lo usan todas las páginas) */
@font-face { font-family: "Lexend"; src: url(fonts/lexend.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --soft: #f6f8fb;
  --soft-2: #eef2f7;
  --ink: #0f1b33;
  --ink-2: #3d4a63;
  --muted: #6b7489;
  --line: #e4e8ef;
  --accent: #0f9d8a;
  --accent-2: #0b7d6e;
  --accent-soft: #e3f5f1;
  --mint: #c9f1e6;
  --red: #d62828;
  --body: "Lexend", system-ui, sans-serif;
  --mono: "Plex Mono", Consolas, monospace;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 51, .05), 0 8px 24px rgba(15, 27, 51, .06);
  --head: 72px;
}
* { box-sizing: border-box; }
html { background: #fff; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: border-color .2s; }
.pill:hover { border-color: var(--accent); }
.pill i { display: inline-block; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #fff; font: 600 11px/1.3 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.025em; }
mark { background: var(--mint); color: var(--ink); padding: 0 .18em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; border: 0; font: 600 15px/1 var(--body); white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,27,51,.14); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* ---------- cabecera fija que se esconde al bajar ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: transform .38s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.site-head.oculto { transform: translateY(-100%); }
.site-head.sombra { box-shadow: 0 8px 28px rgba(15,27,51,.08); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: var(--head); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.brand span { display: flex; flex-direction: column; }
.brand b { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a { position: relative; padding: 8px 12px; border-radius: 9px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.on { color: var(--ink); font-weight: 600; }
.nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; place-items: center; }
.menu-btn span { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.site-head.abierto .menu-btn span { background: transparent; }
.site-head.abierto .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.site-head.abierto .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- tarjetas ---------- */
.ncard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; box-shadow: var(--shadow); transition: border-color .2s, transform .25s, box-shadow .25s; }
.ncard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,27,51,.04), 0 18px 40px rgba(15,27,51,.1); }
.ncard .media { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--soft-2); }
.ncard .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ncard:hover .media img { transform: scale(1.03); }
.ncard .media .badge { position: absolute; left: 12px; top: 12px; }
.ncard .body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.ncard h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.ncard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ncard .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.94); font-size: 12px; font-weight: 600; color: var(--ink); box-shadow: 0 1px 3px rgba(15,27,51,.12); }
.badge.vid::before { content: ""; border-left: 7px solid var(--accent); border-block: 4.5px solid transparent; }
.src { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-2); font-weight: 600; }
.src::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 2px solid currentColor; box-sizing: border-box; }
.views::before { content: "▶ "; font-size: 10px; color: var(--accent); }

.sec { padding: 88px 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { margin: 8px 0 0; font-size: 34px; line-height: 1.15; font-weight: 700; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.link { font-size: 14.5px; font-weight: 600; color: var(--accent-2); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- portada ---------- */
.hero { background: radial-gradient(900px 420px at 85% 10%, var(--accent-soft), transparent 70%), linear-gradient(180deg, #fff, var(--soft)); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 72px 0 84px; }
.hero h1 { margin: 22px 0 18px; font-size: 62px; line-height: 1.04; font-weight: 700; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin: 0 0 30px; max-width: 540px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.proof { display: flex; align-items: center; gap: 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 560px; }
.proof div { display: flex; flex-direction: column; }
.proof b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.proof small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.proof .sep { width: 1px; height: 38px; background: var(--line); flex: none; }
.proof-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.feature { position: relative; }
.feature .ncard { box-shadow: 0 2px 4px rgba(15,27,51,.04), 0 24px 60px rgba(15,27,51,.12); }
.feature .body { padding: 22px 24px 24px; }
.feature h3 { font-size: 26px; font-weight: 700; }
.feature .stat-pop { position: absolute; left: -38px; top: 38%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(15,27,51,.14); animation: flota 5s ease-in-out infinite; }
.feature .stat-pop b { font-size: 26px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; white-space: nowrap; }
.feature .stat-pop small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; max-width: 170px; }
@keyframes flota { 50% { transform: translateY(-6px); } }

.dato { margin-top: 88px; }
.dato .box { display: grid; grid-template-columns: auto 1fr auto; gap: 44px; align-items: center; padding: 40px 48px; border-radius: 20px; background: var(--ink); color: #fff; transition: transform .25s; }
.dato a.box:hover { transform: translateY(-3px); }
.dato .n { font-size: 96px; font-weight: 700; line-height: .9; letter-spacing: -.04em; color: var(--mint); white-space: nowrap; }
.dato .eyebrow { color: var(--mint); }
.dato p { margin: 10px 0 6px; font-size: 20px; line-height: 1.5; max-width: 640px; }
.dato small { color: rgba(255,255,255,.6); font-size: 13px; }
.dato .btn { background: #fff; color: var(--ink); }

.how { margin-top: 88px; padding: 88px 0; background: var(--soft); border-block: 1px solid var(--line); }
.how .sec-head { text-align: center; display: block; margin-bottom: 44px; }
.how .sec-head p { max-width: 560px; margin: 10px auto 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.step .num { font: 600 12px/1 var(--mono); color: var(--accent-2); letter-spacing: .1em; }
.step h3 { margin: 14px 0 8px; font-size: 20px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.step li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 700; }
.course { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 44px 48px; border-radius: 20px; background: var(--ink); color: #fff; }
.course .eyebrow { color: var(--mint); }
.course h2 { margin: 14px 0 10px; font-size: 32px; line-height: 1.2; font-weight: 700; }
.course p { margin: 0 0 20px; color: rgba(255,255,255,.7); max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 12.5px; }

/* ---------- página de listados (notas, videos) ---------- */
.page-top { background: linear-gradient(180deg, #fff, var(--soft)); border-bottom: 1px solid var(--line); }
.page-top .wrap { padding: 56px 0 48px; }
.page-top h1 { margin: 14px 0 10px; font-size: 48px; line-height: 1.08; font-weight: 700; }
.page-top p { margin: 0; max-width: 680px; font-size: 18px; color: var(--ink-2); }
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.totals div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.totals b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.totals span { font-size: 13px; color: var(--muted); }
.vtable { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) repeat(6, 92px); align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.vrow:first-child { border-top: 0; }
.vrow.th { padding-block: 12px; background: var(--soft); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.vrow.th button { all: unset; cursor: pointer; text-align: right; }
.vrow.th button:hover, .vrow.th button.on { color: var(--accent-2); }
.vrow.th button.on::after { content: " ↓"; }
.vrow .num { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }
.vrow .num small { display: none; }
.vrow .num.dim { color: var(--muted); font-weight: 400; }
.vinfo { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; }
.vinfo img { width: 54px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--soft-2); }
.vinfo h3 { margin: 4px 0 6px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.vinfo .eyebrow { font-size: 11px; }
.vlinks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--accent-2); }
.vlinks a:hover { text-decoration: underline; }
.vlinks .nota { color: #fff; background: var(--accent); padding: 2px 9px; border-radius: 99px; }
.vlinks .nota:hover { text-decoration: none; background: var(--accent-2); }
.foot-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- nota ---------- */
.top { background: linear-gradient(180deg, #fff, var(--soft)); border-bottom: 1px solid var(--line); }
.top .wrap { padding: 36px 0 44px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--accent-2); font-weight: 600; }
.top h1 { margin: 20px 0 16px; font-size: 56px; line-height: 1.06; font-weight: 700; max-width: 900px; }
.top .dek { max-width: 780px; margin: 0 0 28px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 14px; color: var(--muted); }
.byline .who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.byline .who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.byline .who small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.byline .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); font-weight: 600; font-size: 13px; }
.byline .chip:hover { background: var(--mint); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; padding: 48px 0 0; align-items: start; }
.article { max-width: 720px; min-width: 0; }
.summary { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.summary h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.summary h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary li { display: grid; grid-template-columns: 22px 1fr; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.summary li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.article > p { margin: 0 0 20px; font-size: 18px; line-height: 1.8; color: #1d2940; }
.article > p:first-of-type { margin-top: 34px; }
.article > p a:not(sup a) { color: var(--accent-2); font-weight: 600; }
.article h2.sub { margin: 48px 0 14px; font-size: 28px; line-height: 1.25; font-weight: 700; }
sup a { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; margin-left: 2px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-2); font: 600 11px/1 var(--mono); vertical-align: 3px; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
sup a:hover, sup a.activo { background: var(--accent); color: #fff; transform: translateY(-1px); }

.stat { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin: 34px 0; padding: 28px 32px; border-radius: 18px; background: var(--ink); color: #fff; }
.stat b { font-size: 84px; line-height: .9; font-weight: 700; letter-spacing: -.04em; color: var(--mint); white-space: nowrap; }
.stat p { margin: 0; font-size: 18px; line-height: 1.5; }
.stat small { display: block; margin-top: 8px; color: rgba(255,255,255,.55); font-size: 13px; }

figure { margin: 36px 0; padding: 28px 28px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
figure .eyebrow { margin-bottom: 8px; }
figure h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
figure > p { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; }
.bar-row span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.bar-row span b { display: block; color: var(--ink); font-weight: 600; }
.track { height: 40px; border-radius: 8px; background: var(--soft-2); }
.fill { height: 100%; min-width: fit-content; border-radius: 8px; background: var(--ink); display: flex; align-items: center; padding: 0 14px; color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.fill.warn { background: var(--accent); }
.fill.soft { background: #8a94a8; }
figcaption { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 30px; }
.chain.c3 { grid-template-columns: repeat(3, 1fr); }
.link4 { position: relative; padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.link4 .eyebrow { font-size: 11px; }
.link4 b { display: block; margin: 8px 0 4px; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.link4 small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.link4 i { position: absolute; right: 12px; top: 12px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); font: 600 11px/1.5 var(--mono); font-style: normal; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 14px; margin: 10px 0 30px; }
.timeline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: var(--line); }
.tl { position: relative; padding-top: 34px; }
.tl::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl.bad::before { border-color: var(--red); }
.tl .eyebrow { font-size: 11px; }
.tl b { display: block; margin: 6px 0 4px; font-size: 15px; font-weight: 600; }
.tl small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }

.signals { counter-reset: s; display: grid; gap: 12px; margin: 22px 0 30px; padding: 0; list-style: none; }
.signals li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.signals li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--mint); font: 600 15px/1 var(--mono); }
.signals b { color: var(--ink); }
.note { margin: 28px 0; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.unknown { margin: 34px 0; padding: 22px 26px; border: 1px dashed #c3cad6; border-radius: var(--r); }
.unknown h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.unknown ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }

.sources { margin-top: 44px; }
.sources h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; }
.sources > p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.sources table { width: 100%; border-collapse: collapse; font-size: 14.5px; border: 1px solid var(--line); }
.sources th { text-align: left; padding: 10px 14px; background: var(--soft); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sources td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); transition: background .4s; }
.sources td:first-child { width: 48px; font: 600 12px/1.8 var(--mono); color: var(--accent-2); }
.sources td b { color: var(--ink); font-weight: 600; }
.sources td:last-child { width: 86px; text-align: right; white-space: nowrap; }
.sources td:last-child a { color: var(--accent-2); font-weight: 600; font-size: 13px; }
.sources tr:target td, .sources tr.marca td { background: var(--accent-soft); }

.made { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 36px 0 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--accent-soft); }
.made h3 { margin: 6px 0 4px; font-size: 20px; font-weight: 600; }
.made p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.side { position: sticky; top: calc(var(--head) + 24px); display: grid; gap: 18px; }
.reel { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 18px; background: var(--ink); box-shadow: 0 20px 50px rgba(15,27,51,.18); }
.reel video { width: 100%; height: 100%; display: block; object-fit: cover; background: var(--ink); }
.panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.panel h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.toc { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--ink-2); transition: all .2s; }
.toc a:hover, .toc a.on { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share a, .share button { padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; font: 500 13px/1.4 var(--body); color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--accent); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats div { padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.stats b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.stats span { font-size: 12px; color: var(--muted); }
.stats-red { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 8px; font-size: 13px; font-weight: 600; }
.stats-red:first-of-type { margin-top: 0; }
.stats-red a { color: var(--accent-2); font-size: 12.5px; }
.stats-note, .stats-empty { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.more { margin-top: 88px; }

/* ---------- ventana de la fuente ---------- */
.ref-pop { position: absolute; z-index: 70; width: min(380px, calc(100vw - 24px)); padding: 16px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(15,27,51,.2), 0 2px 6px rgba(15,27,51,.06); opacity: 0; transform: translateY(6px) scale(.98); transform-origin: top left; transition: opacity .18s, transform .18s; pointer-events: none; }
.ref-pop.on { opacity: 1; transform: none; pointer-events: auto; }
.ref-pop .eyebrow { font-size: 11px; }
.ref-pop p { margin: 8px 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ref-pop p b { color: var(--ink); }
.ref-pop .acts { display: flex; align-items: center; gap: 14px; }
.ref-pop .acts .link { font-size: 13.5px; }
.ref-pop .x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ref-pop .x:hover { background: var(--soft); color: var(--ink); }
.ref-velo { position: fixed; inset: 0; z-index: 69; background: rgba(15,27,51,.35); opacity: 0; transition: opacity .2s; pointer-events: none; }

/* ---------- animaciones de entrada ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.js figure .fill { clip-path: inset(0 100% 0 0 round 8px); transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1); }
.js figure .bar-row:nth-child(2) .fill { transition-delay: .15s; }
.js figure .bar-row:nth-child(3) .fill { transition-delay: .3s; }
.js figure .bar-row:nth-child(4) .fill { transition-delay: .45s; }
.js figure .bar-row:nth-child(5) .fill { transition-delay: .6s; }
.js figure.in .fill { clip-path: inset(0 0 0 0 round 8px); }
.js .timeline::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js .timeline.in::before { transform: none; }
.js .timeline .tl { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.js .timeline.in .tl { opacity: 1; transform: none; }
.js .timeline.in .tl:nth-child(2) { transition-delay: .2s; } .js .timeline.in .tl:nth-child(3) { transition-delay: .4s; }
.js .timeline.in .tl:nth-child(4) { transition-delay: .6s; } .js .timeline.in .tl:nth-child(5) { transition-delay: .8s; }
.js .timeline.in .tl:nth-child(6) { transition-delay: 1s; }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .timeline .tl { opacity: 1; transform: none; transition: none; }
  .js figure .fill { clip-path: none; transition: none; }
  .js .timeline::before { transform: none; }
  .feature .stat-pop { animation: none; }
  .site-head { transition: none; }
}

/* ---------- pie ---------- */
.site-foot { margin-top: 88px; border-top: 1px solid var(--line); background: var(--soft); padding: 56px 0 32px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-foot p { margin: 14px 0 0; color: var(--muted); font-size: 14px; max-width: 320px; }
.site-foot h4 { margin: 4px 0 14px; font-size: 13.5px; }
.site-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.site-foot ul a:hover { color: var(--accent-2); }
.site-foot .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 700 12px/1 var(--body); color: var(--ink-2); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- pantallas medianas ---------- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .feature { max-width: 560px; }
  .feature .stat-pop { left: auto; right: -12px; }
  .dato .box { grid-template-columns: 1fr; gap: 18px; }
  .vrow { grid-template-columns: minmax(0, 1fr) repeat(6, 74px); }
}
@media (max-width: 900px) {
  :root { --head: 64px; }
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15,27,51,.08); font-size: 17px; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .site-head.abierto .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.on::after { left: 6px; right: auto; width: 24px; bottom: 8px; }
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .side { position: static; order: -1; margin-bottom: 26px; grid-template-columns: minmax(0, 340px); justify-content: center; }
  .side .toc-panel { display: none; }
}
/* ---------- celular ---------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 32px); }
  .brand img { width: 36px; height: 36px; }
  .btn { height: 44px; padding: 0 16px; font-size: 14.5px; }
  .hero .wrap { padding: 36px 0 52px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 17px; }
  .proof { gap: 14px; }
  .proof b { font-size: 20px; }
  .proof small { font-size: 12px; }
  .feature .stat-pop { position: static; margin-top: 12px; animation: none; }
  .feature h3 { font-size: 21px; }
  .sec { padding-top: 56px; }
  .sec-head { flex-direction: column; align-items: start; gap: 8px; }
  .sec-head h2 { font-size: 27px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dato { margin-top: 56px; }
  .dato .box { padding: 28px 22px; }
  .dato .n { font-size: 64px; }
  .dato p { font-size: 17px; }
  .how { margin-top: 56px; padding: 52px 0; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .course { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .course h2 { font-size: 25px; }
  .page-top .wrap { padding: 32px 0 30px; }
  .page-top h1 { font-size: 34px; }
  .page-top p { font-size: 16px; }
  .totals { grid-template-columns: 1fr 1fr; gap: 10px; }
  .totals b { font-size: 22px; }
  .vtable { border: 0; background: none; box-shadow: none; overflow: visible; display: grid; gap: 12px; }
  .vrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
  .vrow.th { display: none; }
  .vrow .vinfo { grid-column: 1 / -1; margin-bottom: 4px; }
  .vrow .num { text-align: left; padding: 8px 10px; border-radius: 9px; background: var(--soft); font-size: 15px; }
  .vrow .num small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
  .top .wrap { padding: 22px 0 28px; }
  .top h1 { font-size: 34px; margin: 14px 0 12px; }
  .top .dek { font-size: 17px; margin-bottom: 20px; }
  .byline { gap: 10px 16px; font-size: 13px; }
  .summary { padding: 20px; }
  .article > p { font-size: 17px; line-height: 1.75; }
  .article h2.sub { font-size: 23px; }
  .stat { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .stat b { font-size: 64px; }
  figure { padding: 22px 18px 16px; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .chain, .chain.c3 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .timeline::before { display: none; }
  .sources td:last-child { width: auto; }
  .made { grid-template-columns: 1fr; }
  .more { margin-top: 56px; }
  .ref-pop { position: fixed; left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; padding: 20px 20px 18px; border-radius: 18px; transform: translateY(24px); }
  .ref-pop.on { transform: none; }
  .ref-velo.on { opacity: 1; pointer-events: auto; }
  .site-foot { margin-top: 56px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; gap: 26px; }
  .site-foot .wrap > div:first-child { grid-column: 1 / -1; }
  .site-foot .legal { flex-direction: column; gap: 6px; }
}

/* ---------- botón del curso en el menú ---------- */
.nav a.nav-curso { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; }
.nav a.nav-curso:hover { background: var(--accent-2); color: #fff; }
.nav a.nav-curso i { padding: 2px 7px; border-radius: 99px; background: var(--accent); font: 600 10.5px/1.4 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.nav a.nav-curso.on::after { display: none; }

/* ---------- reproductor de Instagram en la nota ---------- */
.reel-ig { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(15,27,51,.14); height: 0; padding-bottom: calc(125% + 190px); }
.reel-ig iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- bloque del curso ---------- */
.curso { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 52px 56px; border-radius: 24px; overflow: hidden; background: radial-gradient(700px 360px at 100% 0%, rgba(15,157,138,.35), transparent 70%), var(--ink); color: #fff; }
.curso .eyebrow { color: var(--mint); }
.curso .eyebrow i { padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-style: normal; }
.curso h2 { margin: 16px 0 14px; font-size: 44px; line-height: 1.08; font-weight: 700; }
.curso h2 span { color: var(--mint); }
.curso p { margin: 0 0 18px; max-width: 520px; font-size: 17px; color: rgba(255,255,255,.75); }
.curso ul { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: rgba(255,255,255,.88); }
.curso li::before { content: "✓"; margin-right: 10px; color: var(--mint); font-weight: 700; }
.curso-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.precio { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: baseline; }
.precio b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.precio s { color: rgba(255,255,255,.5); }
.precio small { grid-column: 1 / -1; font-size: 12px; color: var(--mint); }
.curso-img { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(2deg); transition: transform .4s; }
.curso-img:hover { transform: rotate(0) scale(1.02); }
.curso-img img { display: block; width: 100%; height: auto; }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 34px 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--accent-soft); }
.cta-band h2 { margin: 10px 0 6px; font-size: 28px; line-height: 1.2; font-weight: 700; }
.cta-band p { margin: 0; color: var(--ink-2); }

/* ---------- servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc { padding: 30px 30px 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.svc .num { font: 600 13px/1 var(--mono); color: var(--accent-2); }
.svc h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 700; }
.svc p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.svc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); font-size: 12.5px; font-weight: 600; }
.steps.s4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- gráficas ---------- */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.charts figure { margin: 0; }
.charts figure.wide { grid-column: 1 / -1; }
.charts .bar-row { grid-template-columns: 210px 1fr; }
.charts .track { height: 30px; }
.charts .fill { font-size: 13px; padding: 0 10px; }
.split { display: flex; height: 54px; margin: 6px 0 14px; border-radius: 10px; overflow: hidden; }
.split span { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 12px; color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; }
.split b { font-size: 16px; }
.split .g-F { background: var(--accent); } .split .g-M { background: var(--ink); } .split .g-U { background: #8a94a8; }
.split-lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.js figure .split { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1); }
.js figure.in .split { clip-path: inset(0); }
.linea { display: block; width: 100%; height: auto; }
.linea .area { fill: var(--accent-soft); }
.linea .trazo { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.linea circle { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.linea text { font: 500 12px var(--body); fill: var(--muted); }
.linea text.v { font-weight: 700; font-size: 14px; fill: var(--ink); }
.js figure .linea .trazo { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1); }
.js figure.in .linea .trazo { stroke-dashoffset: 0; }
.js figure .linea .area, .js figure .linea circle { opacity: 0; transition: opacity .8s .9s; }
.js figure.in .linea .area, .js figure.in .linea circle { opacity: 1; }

@media (max-width: 1080px) {
  .curso { grid-template-columns: 1fr; padding: 40px; }
  .curso-img { max-width: 520px; }
  .steps.s4 { grid-template-columns: 1fr 1fr; }
  .charts .bar-row { grid-template-columns: 150px 1fr; }
}
@media (max-width: 900px) {
  .nav a.nav-curso { margin: 10px 0 0; justify-content: center; padding: 12px; border-radius: 12px; border-bottom: 0; }
}
@media (max-width: 760px) {
  .curso { padding: 28px 22px; border-radius: 20px; }
  .curso h2 { font-size: 30px; }
  .curso-img { transform: none; }
  .cta-band { grid-template-columns: 1fr; padding: 26px 22px; }
  .cta-band h2 { font-size: 23px; }
  .svc-grid, .steps.s4, .charts { grid-template-columns: 1fr; }
  .svc { padding: 24px 20px; }
  .charts .bar-row { grid-template-columns: 1fr; gap: 4px; }
}
