/* ══ Tokens (los mismos del terminal) ═════════════════════════════════ */
:root,
:root[data-theme='dark'] {
	--bg: #0a0d12;
	--surface: #10151c;
	--surface-2: #151b24;
	--surface-3: #1b2330;
	--line: #1e2733;
	--line-strong: #2a3545;
	--text: #e7ecf3;
	--text-2: #a9b4c3;
	--muted: #7a8799;
	--ask: #f6465d;
	--ask-bg: rgba(246, 70, 93, 0.12);
	--bid: #1fc28b;
	--bid-bg: rgba(31, 194, 139, 0.12);
	--accent: #5b8cff;
	--accent-2: #8f6bff;
	--accent-bg: rgba(91, 140, 255, 0.14);
	--shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
	--glow: rgba(91, 140, 255, 0.18);
	--s-usd: #b8841f;
	--tg: #2aabee;
	--tg-strong: #1a7fc0;
	--s-usdt: #5b8cff;
	color-scheme: dark;
}

:root[data-theme='light'] {
	--bg: #f6f8fb;
	--surface: #ffffff;
	--surface-2: #f3f6fa;
	--surface-3: #eaeef4;
	--line: #e3e8ef;
	--line-strong: #d3dae4;
	--text: #121821;
	--text-2: #3f4b5b;
	--muted: #6b7788;
	--ask: #d9304a;
	--ask-bg: rgba(217, 48, 74, 0.09);
	--bid: #0f9d6e;
	--bid-bg: rgba(15, 157, 110, 0.1);
	--accent: #2f6bff;
	--accent-2: #7a4dff;
	--accent-bg: rgba(47, 107, 255, 0.1);
	--shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
	--glow: rgba(47, 107, 255, 0.12);
	--s-usd: #b7791f;
	--tg: #229ed9;
	--tg-strong: #1a7fc0;
	--s-usdt: #2f6bff;
	color-scheme: light;
}

:root {
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--r: 14px;
	--r-sm: 9px;
}

/* ══ Base ═════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
code { font: 0.88em var(--mono); background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-theme='light'] .i-sun, :root:not([data-theme='light']) .i-moon { display: none; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

/* ══ Botones ══════════════════════════════════════════════════════════ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
	padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface-2);
	font-size: 14px; font-weight: 600; text-decoration: none; transition: filter 0.15s, background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 13px 22px; font-size: 15.5px; border-radius: 11px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm);
	border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); text-decoration: none;
}
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.link-arrow { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* ══ Barra superior ═══════════════════════════════════════════════════ */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ══ Portada ══════════════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before {
	content: ''; position: absolute; inset: -30% -10% auto; height: 620px; pointer-events: none;
	background: radial-gradient(closest-side, var(--glow), transparent), radial-gradient(40% 60% at 85% 30%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent);
}
.hero::after {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
	color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--bid); box-shadow: 0 0 0 0 var(--bid); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bid) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; letter-spacing: -0.035em; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: 18.5px; color: var(--text-2); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* Ilustración del terminal */
.mock {
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow);
	overflow: hidden; font: 12.5px var(--mono); font-variant-numeric: tabular-nums; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar span { margin-left: 10px; font: 12px var(--sans); color: var(--muted); }
.mock-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-family: var(--sans); }
.mock-head b { font-size: 14px; }
.mock-stats { display: flex; gap: 14px; }
.mock-stats em { font: 600 13px var(--mono); font-style: normal; }
.ask, .asks .mrow span:first-child { color: var(--ask); }
.bid, .bids .mrow span:first-child { color: var(--bid); }
.mock-cols, .mrow { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; padding: 0 16px; }
.mock-cols { font: 11px var(--sans); color: var(--muted); padding-bottom: 6px; }
.mock-cols span:not(:first-child), .mrow span:not(:first-child) { text-align: right; }
.mrow { position: relative; height: 25px; align-items: center; }
.mrow::before { content: ''; position: absolute; inset: 1px 0 1px auto; width: var(--w); }
.asks .mrow::before { background: var(--ask-bg); }
.bids .mrow::before { background: var(--bid-bg); }
.mrow span { position: relative; }
.mrow span:last-child { color: var(--muted); }
.mock-spread { display: flex; justify-content: space-between; padding: 8px 16px; margin: 4px 0; border-block: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }
.mock-spread span:first-child { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.mock-depth { display: block; width: 100%; height: 70px; margin-top: 10px; border-top: 1px solid var(--line); }
.d-bid { fill: var(--bid-bg); stroke: var(--bid); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.d-ask { fill: var(--ask-bg); stroke: var(--ask); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ══ Secciones ════════════════════════════════════════════════════════ */
.sec { padding: 96px 0; }
.sec.alt, .band { background: var(--surface); border-block: 1px solid var(--line); }
.band { padding: 56px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; margin-bottom: 48px; }
.sec-head h2, .priv h2, .final h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 750; }
.sec-head p { margin-top: 10px; color: var(--text-2); font-size: 17px; max-width: 40em; }

/* Tasas */
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rate { padding: 16px 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); min-height: 112px; }
.rate h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.rate .unit { font-size: 12px; color: var(--muted); }
.rate .px { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-top: 12px; font: 600 15px var(--mono); font-variant-numeric: tabular-nums; }
.rate .px span { font: 500 12.5px var(--sans); color: var(--muted); align-self: center; }
.rate .px b { text-align: right; font-weight: 600; }
.rate .ops { margin-top: 8px; font-size: 12px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--bg), var(--surface-3), var(--bg)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.src { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.feat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feat .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-bg); color: var(--accent); }
.feat .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin-top: 18px; font-size: 18px; font-weight: 650; }
.feat p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* Operar */
.op { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.op-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: op; }
.op-step {
	position: relative; width: 100%; text-align: left; padding: 18px 20px 18px 66px; border-radius: var(--r); counter-increment: op;
	background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.op-step::before {
	content: counter(op); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--surface-3); color: var(--text-2); font-weight: 700; font-size: 14px;
}
.op-step:hover { border-color: var(--line-strong); }
.op-step b { display: block; font-size: 16.5px; }
.op-step span { display: block; margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
.op-step.active { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-bg), transparent 70%), var(--surface); }
.op-step.active::before { background: var(--accent); color: #fff; }
.op-shot { position: sticky; top: 88px; margin: 0; padding: 22px; border-radius: 20px; border: 1px solid var(--line-strong); background: radial-gradient(70% 60% at 50% 0%, var(--glow), transparent 75%), var(--surface); text-align: center; }
.op-shot img { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow); }
.op-shot figcaption { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.op-cta { text-align: center; margin-top: 36px; }

/* Registro en QvaPay (enlace de referido) */
.ref-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.ref-note a, .step-link a, details p a { color: var(--accent); font-weight: 600; text-decoration: none; }
.ref-note a:hover, .step-link a:hover, details p a:hover { text-decoration: underline; }
.ref-note small, .step-link small, details p small { font-size: 11px; color: var(--muted); font-weight: 400; }
.final .ref-note { margin: 14px 0 0; }
.steps .step-link { margin-top: 10px; font-size: 14.5px; }
.btn-stack { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.btn-stack small { font-size: 10.5px; font-weight: 500; opacity: 0.65; margin-top: 2px; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 26px 26px 26px 76px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
	content: counter(step); position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 36px; height: 36px;
	border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
}
.steps b { font-size: 17px; }
.steps p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* Privacidad */
.priv { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.priv-copy p { margin: 16px 0 20px; color: var(--text-2); font-size: 17px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks li { position: relative; padding: 18px 18px 18px 50px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.checks li::before {
	content: ''; position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--bid-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%231fc28b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.checks b { display: block; color: var(--text); margin-bottom: 2px; }

/* Preguntas */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 17px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 20px; color: var(--text-2); }

/* Cierre */
.final { padding: 96px 0; }
.final-in {
	text-align: center; padding: 56px 24px; border-radius: 20px; border: 1px solid var(--line-strong);
	background: radial-gradient(80% 120% at 50% 0%, var(--glow), transparent 70%), var(--surface);
}
.final p { margin: 12px 0 28px; color: var(--text-2); font-size: 17px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13.5px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--text-2); }

.informal { margin-top: 32px; }
.informal h3 { font-size: 16px; font-weight: 650; }
.informal h3 small { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.inf-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.inf { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.inf span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.inf b { margin-left: auto; font: 600 16px var(--mono); font-variant-numeric: tabular-nums; }
.inf i { font-style: normal; font-size: 12px; font-family: var(--mono); }
.inf i.up { color: var(--bid); }
.inf i.down { color: var(--ask); }
.informal .src a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ══ Telegram ═════════════════════════════════════════════════════════ */
.tg-icon { color: var(--tg); }
.tg-icon:hover { color: #fff; background: var(--tg-strong); border-color: var(--tg-strong); }
.btn.tg { background: var(--tg-strong); border-color: var(--tg-strong); color: #fff; }
.btn.tg:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tg-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text); background: color-mix(in srgb, var(--tg) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tg) 40%, transparent); transition: background 0.15s; }
.tg-chip svg { color: var(--tg); }
.tg-chip b { color: var(--tg); font-weight: 650; }
.tg-chip:hover { background: color-mix(in srgb, var(--tg) 24%, transparent); }
.tg-band { padding: 56px 0 8px; }
.tg-card {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 20px; text-decoration: none; color: var(--text);
	background: radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--tg) 26%, transparent), transparent 70%), var(--surface);
	border: 1px solid color-mix(in srgb, var(--tg) 45%, var(--line)); box-shadow: 0 18px 50px color-mix(in srgb, var(--tg) 14%, transparent); transition: transform 0.2s, box-shadow 0.2s;
}
.tg-card:hover { transform: translateY(-2px); box-shadow: 0 22px 60px color-mix(in srgb, var(--tg) 22%, transparent); }
.tg-logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tg); color: #fff; }
.tg-logo svg { margin-left: -3px; }
.tg-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tg-title { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.tg-text { color: var(--text-2); font-size: 15.5px; }
.tg-line { margin-top: 18px; }
.tg-line a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.tg-line a svg { color: var(--tg); flex: none; }
.tg-line a b { color: var(--tg); font-family: var(--sans); }
.tg-line a:hover span { text-decoration: underline; }

/* ══ Blog ═════════════════════════════════════════════════════════════ */
.blog-head { padding: 72px 0 8px; }
.blog-head h1 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.035em; }
.blog-head p { margin-top: 12px; color: var(--text-2); font-size: 17.5px; }
.posts { display: grid; gap: 16px; padding: 36px 0 96px; }
.post-card { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.post-card h2 { font-size: 23px; font-weight: 700; }
.post-card p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.post-meta { font-size: 13px; color: var(--muted); font-weight: 500; }
.post-card .post-meta { margin-bottom: 8px; }
.post-card .link-arrow { display: inline-block; margin-top: 14px; }

.article { padding: 64px 0 88px; }
/* Sin imagen principal, el texto empieza justo debajo */
.article:not(:has(.article-hero)) { padding-bottom: 0; }
.article:not(:has(.article-hero)) + .prose > h2:first-child { margin-top: 36px; }
.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.article h1 { margin-top: 18px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.article .post-meta { margin-top: 14px; }
.article .dek { margin-top: 18px; font-size: 19px; color: var(--text-2); }
.article-hero { width: min(1160px, 100% - 40px); margin: 40px auto 8px; }
.article-hero img, .prose figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.article-hero figcaption, .prose figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.prose { font-size: 17px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: 26px; font-weight: 750; color: var(--text); }
.prose h3 { margin-top: 28px; font-size: 19px; font-weight: 650; color: var(--text); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a:not(.btn) { color: var(--accent); font-weight: 600; text-decoration: none; }
.prose a:not(.btn):hover { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose small { font-size: 12px; color: var(--muted); }
.prose figure { margin: 32px 0; }
.prose figure.tall img { width: auto; max-width: 100%; max-height: 620px; margin: 0 auto; }
.prose .note { padding: 16px 18px; border-radius: var(--r-sm); background: var(--accent-bg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); font-size: 15.5px; }
.article-cta { margin-top: 48px; padding: 32px; border-radius: var(--r); background: radial-gradient(70% 90% at 50% 0%, var(--glow), transparent 75%), var(--surface); border: 1px solid var(--line-strong); text-align: center; }
.article-cta h2 { margin: 0; font-size: 24px; font-weight: 750; color: var(--text); }
.article-cta p { margin-top: 8px; color: var(--text-2); }
.article-cta .cta-row { justify-content: center; margin-top: 22px; }
.article-cta .btn:not(.primary) { color: var(--text); }

/* Capturas de móvil en las guías */
.prose figure.phone { margin: 24px 0 32px; }
.prose figure.phone img { width: auto; max-width: min(320px, 100%); max-height: none; margin: 0 auto; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.tbl td.yes { color: var(--bid); font-family: var(--sans); font-weight: 600; }
.tbl td.no { color: var(--ask); font-family: var(--sans); font-weight: 600; }
.tbl td code { white-space: nowrap; }
.prose .tbl td { white-space: normal; font-family: var(--sans); font-size: 14px; }
/* La tabla de permisos es texto: todo a la izquierda */
.tbl.text th, .tbl.text td { text-align: left; vertical-align: top; }
.prose .tbl td:first-child { min-width: 150px; }
.post-card img.tall { height: 190px; object-fit: cover; object-position: top; }

/* Gráficos y tablas de los artículos */
.prose .chart-fig { margin: 28px 0; padding: 18px 18px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.chart-fig .chart-title { margin: 0; text-align: left; font-size: 15px; font-weight: 650; color: var(--text); }
.chart-fig .legend { display: flex; gap: 18px; margin: 8px 0 4px; font-size: 13px; color: var(--text-2); }
.chart-fig .legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.sw.usd { background: var(--s-usd); }
.sw.usdt { background: var(--s-usdt); }
.tchart { display: block; width: 100%; height: auto; overflow: visible; }
.tchart .grid { stroke: var(--line); stroke-width: 1; }
.tchart .ax { font: 11.5px var(--mono); fill: var(--muted); }
.tchart .end { font: 600 12px var(--mono); fill: var(--text-2); }
.tchart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tchart .ln.usd { stroke: var(--s-usd); }
.tchart .ln.usdt { stroke: var(--s-usdt); }
.tchart .pt { stroke: var(--surface); stroke-width: 2; }
.tchart .pt.usd { fill: var(--s-usd); }
.tchart .pt.usdt { fill: var(--s-usdt); }
.tchart .hit { fill: transparent; cursor: crosshair; }
.tchart .hit:hover { fill: color-mix(in srgb, var(--text) 18%, transparent); }
.prose .chart-fig > figcaption:last-child { margin-top: 6px; text-align: left; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); }
.tbl td { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.tbl td:first-child { font-family: var(--sans); color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.prose details.data { border: 0; }
.prose details.data summary { display: inline-block; padding: 0 22px 0 0; color: var(--accent); font-size: 15px; }
.prose details.data summary::after { right: 0; font-size: 18px; color: var(--accent); }
.prose details.data .tbl { max-height: 340px; overflow-y: auto; margin-top: 10px; }

/* ══ Responsive ═══════════════════════════════════════════════════════ */
@media (max-width: 980px) {
	.nav-links { display: none; }
	.hero { padding: 56px 0 72px; }
	.hero-in, .priv, .op { grid-template-columns: 1fr; gap: 44px; }
	.op { gap: 20px; }
	.op-shot { position: static; }
	.mock { transform: none; max-width: 560px; }
	.features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.wrap, .narrow { width: calc(100% - 32px); }
	.nav-in { height: 58px; gap: 12px; }
	.hide-sm { display: none; }
	.nav-actions { gap: 6px; }
	.nav-actions .btn { padding: 8px 10px; font-size: 13.5px; }
	.nav-actions .icon-btn { width: 34px; height: 34px; }
	.brand { white-space: nowrap; gap: 8px; font-size: 15px; }
	.lead { font-size: 16.5px; }
	.cta-row .btn { flex: 1; }
	.sec, .final { padding: 64px 0; }
	.sec-head { flex-direction: column; align-items: flex-start; }
	.features, .steps, .checks { grid-template-columns: 1fr; }
	.rates { grid-template-columns: 1fr 1fr; gap: 10px; }
	.inf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.inf { padding: 10px 12px; }
	.informal h3 small { display: block; margin: 2px 0 0; }
	.rate { padding: 14px; }
	.rate .px { font-size: 13.5px; gap: 2px 8px; }
	.mock-head b { font-size: 12.5px; }
	.final-in { padding: 40px 20px; }
	.tg-band { padding-top: 40px; }
	.tg-card { grid-template-columns: auto 1fr; gap: 14px 16px; padding: 20px; }
	.tg-logo { width: 48px; height: 48px; }
	.tg-logo svg { width: 26px; height: 26px; }
	.tg-title { font-size: 18px; }
	.tg-text { font-size: 14.5px; }
	.tg-card .btn.tg { grid-column: 1 / -1; width: 100%; }
	.tg-chip { font-size: 13.5px; }
	/* Blog */
	.blog-head { padding-top: 48px; }
	.posts { padding: 24px 0 64px; }
	.post-card { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
	.post-card h2 { font-size: 20px; }
	.article { padding: 40px 0 64px; }
	.article .dek { font-size: 17px; }
	.article-hero { width: calc(100% - 32px); margin-top: 28px; }
	.prose { font-size: 16.5px; }
	.prose h2 { margin-top: 40px; font-size: 22px; }
	.article-cta { padding: 26px 18px; }
	.article-cta .cta-row .btn { flex: 1 1 100%; }
	.prose .chart-fig { padding: 14px 10px 10px; margin-left: -6px; margin-right: -6px; }
	/* Tabla de permisos en tarjetas: permiso y respuesta arriba, explicación debajo */
	.tbl.text { overflow: visible; }
	.tbl.text thead { display: none; }
	.tbl.text tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
	.tbl.text tr:last-child { border-bottom: 0; }
	.tbl.text td { padding: 0; border: 0; min-width: 0 !important; }
	.tbl.text td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--text-2); font-size: 13.5px; }
	.tbl.text td:nth-child(3) { grid-row: 1; grid-column: 2; text-align: right; white-space: nowrap; }
	.tchart .ax { font-size: 21px; }
	.tchart .end { font-size: 20px; }
	/* Ilustración más corta: tres niveles por lado y sin el gráfico */
	.mock-book.asks .mrow:nth-child(-n+2), .mock-book.bids .mrow:nth-child(n+4), .mock-depth { display: none; }
	/* Tasas como lista: una fila por moneda, venta y compra a la derecha */
	.rates { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
	.rate {
		display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name px' 'unit px' 'ops px'; column-gap: 12px;
		min-height: 0; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
	}
	.rate:last-child { border-bottom: 0; }
	.rate.skeleton { min-height: 72px; }
	.rate h3 { grid-area: name; font-size: 14.5px; }
	.rate .unit { grid-area: unit; }
	.rate .ops { grid-area: ops; margin-top: 2px; font-size: 11.5px; }
	.rate .px { grid-area: px; align-self: center; margin-top: 0; font-size: 14px; gap: 1px 10px; }
	/* Funciones: icono al lado del título */
	.feat { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 16px; }
	.feat .ico { grid-row: span 2; width: 38px; height: 38px; }
	.feat h3 { margin-top: 0; font-size: 16.5px; align-self: center; }
	.feat p { grid-column: 2; margin-top: 4px; font-size: 14.5px; }
	.features { gap: 10px; }
	/* Pasos y privacidad más compactos */
	.steps li { padding: 18px 18px 18px 62px; }
	.steps li::before { left: 16px; top: 18px; width: 32px; height: 32px; }
	.checks { gap: 10px; }
	.checks li { padding: 14px 14px 14px 46px; }
	.checks li::before { left: 14px; top: 16px; }
	.foot { line-height: 2; }
	/* Operar en el móvil: pasos en una fila deslizable y solo la descripción del activo */
	.op-steps { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x proximity; }
	.op-steps::-webkit-scrollbar { display: none; }
	.op-steps li { flex: 0 0 78%; scroll-snap-align: start; }
	.op-step { height: 100%; padding: 14px 16px 14px 56px; }
	.op-step::before { left: 14px; top: 14px; width: 28px; height: 28px; }
	.op-shot { padding: 12px; }
	.op-shot img { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
