/* Piezas visuales de las comparativas (scripts/seo-site/lib/visuals.js). Usa las variables de site.css. */
.bl { display: inline-flex; align-items: center; justify-content: center; width: var(--s); height: var(--s); flex: 0 0 var(--s); }
.bl svg { width: 100%; height: 100%; }
.prose .bl img { width: 100%; height: 100%; border-radius: 24%; margin: 0; }
.bl--img { border-radius: 26%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; }
.prose .bl--img img, .bl--img img { width: 84%; height: 84%; object-fit: contain; border-radius: 12%; margin: 0; }
.vs-logo.vs-logo--img { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), var(--shadow); }
.vs-logo--img .bl { width: 44px; height: 44px; flex-basis: 44px; box-shadow: none; }
.bl--mono { border-radius: 28%; background: var(--ink); color: var(--bg); font: 700 calc(var(--s) * .55)/1 var(--font-display); }

.vc { margin: 0 0 2.4em; padding: 24px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); position: relative; overflow: hidden; isolation: isolate; }
.vc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 100% 0%, var(--accent-weak), transparent 70%); }
.vc-head { display: flex; align-items: center; gap: 14px; }
.vc-head > div { flex: 1; min-width: 0; }
.prose .vc-head p { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.vc-head b { display: block; font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.prose .vc-head .btn { text-decoration: none; color: #fff; white-space: nowrap; }
.vc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 16px; }
.vc-stat { padding: 16px; border-radius: 18px; background: var(--card); }
.vc-stat b { display: block; font: 700 2rem/1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.vc-stat span { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.vc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); font-size: .84rem; font-weight: 600; color: var(--ink); line-height: 1; }
.vc-chip--sep { box-shadow: none; background: none; padding-right: 0; color: var(--muted); font-weight: 500; }

.prose figure.vch { margin: 1.6em 0; padding: 22px 24px 16px; border-radius: 24px; background: var(--card); }
.prose .vch-title { margin: 0 0 6px; text-align: left; font: 700 1.05rem/1.3 var(--font-display); color: var(--ink); }
.vch-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.prose .vch-group p { margin: 0 0 8px; font-size: .8rem; font-weight: 650; color: var(--muted); line-height: 1.3; }
.vch-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 112px; grid-template-areas: 'name bar val'; align-items: center; gap: 12px; padding: 5px 0; }
.vch-name { grid-area: name; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.25; }
.vch-track { grid-area: bar; height: 14px; }
.vch-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--line-2); }
.vch-val { grid-area: val; line-height: 1.25; text-align: right; font-size: .9rem; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.vch-row.is-us .vch-name, .vch-row.is-us .vch-val { color: var(--accent-ink); font-weight: 700; }
.vch-row.is-us .vch-track i { background: var(--accent); }
.prose .vch-note { margin: 12px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }

.prose figure.vf { margin: 2.4em 0; }
.prose .vf-title { margin: 0 0 14px; text-align: left; font: 700 1.05rem/1.3 var(--font-display); color: var(--ink); }
.vf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.vf-step { position: relative; display: flex; flex-direction: column; }
.vf-step + .vf-step::before { content: '→'; position: absolute; left: -21px; top: 54%; color: var(--accent); font-weight: 700; }
.prose .vf-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .84rem; font-weight: 650; color: var(--ink); line-height: 1.3; }
.vf-label span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .72rem; }
.vf-card { flex: 1; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.vf-bubble { padding: 11px 13px; border-radius: 14px 14px 14px 4px; background: var(--card); font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.vf-bubble--ai { border-radius: 14px 14px 4px 14px; background: var(--grad); color: #fff; }
.prose .vf-card ul { list-style: none; margin: 0; padding: 0; }
.prose .vf-card li { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .82rem; line-height: 1.4; }
.prose .vf-card li:last-child { border: 0; }
.vf-card li span { color: var(--muted); }
.vf-card li b { color: var(--ink); text-align: right; }

.th-brand { display: inline-flex; align-items: center; gap: 8px; }
.prose th.us { background: var(--accent-weak); color: var(--accent-ink); box-shadow: inset 0 3px 0 var(--accent); }
.prose td.us, .prose tr.us td { background: var(--accent-weak); }
.mk { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 50%; font-size: .7rem; font-weight: 800; vertical-align: -3px; }
.mk--yes { background: rgba(52, 199, 89, .16); color: var(--ok); }
.mk--no { background: var(--line); color: var(--muted); }

@media (max-width: 640px) {
  .vc { padding: 18px; }
  .vc-head { flex-wrap: wrap; }
  .vc-stats, .vf-steps { grid-template-columns: 1fr; }
  .vf-steps { gap: 24px; }
  .vf-step + .vf-step::before { content: '↓'; left: 50%; top: -22px; }
  .prose figure.vch { padding: 18px 16px 12px; }
  .vch-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name val' 'bar bar'; gap: 5px 10px; padding: 7px 0; }
  .vch-track { height: 8px; }
  .vch-val { max-width: 160px; }
}
