:root {
  --ht-soft-bg: var(--accent-soft);
  --ht-soft-ink: var(--accent-ink);
}

[data-theme="dark"] {
  --ht-soft-ink: #A8F0CE;
}

.ht-hero { padding-top: clamp(var(--sp-6), 3.5vw, var(--sp-12)); padding-bottom: clamp(var(--sp-5), 2.5vw, var(--sp-8)); }
.ht-hero .breadcrumb { margin-bottom: var(--sp-3); }
.ht-hero h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 24ch; }
.ht-hero p { max-width: 100ch; font-size: 16px; margin-top: var(--sp-3); }

.ht-section { padding: 0 0 clamp(var(--sp-16), 8vw, var(--sp-20)); }

.ht-grid { display: grid; gap: var(--sp-6); align-items: start; }

.ht-col { display: grid; gap: var(--sp-5); min-width: 0; }

.ht-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

@media (min-width: 940px) {
  .ht-grid--tool { grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: stretch; }
  .ht-col { display: contents; }
}

.ht-panel > h2,
.ht-panel > h3 {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.ht-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ht-soft-ink);
  background: var(--ht-soft-bg);
  border-radius: var(--r-pill);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ht-sub {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  max-width: 52ch;
}

.ht-row { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .ht-row--2 { grid-template-columns: 1fr 1fr; } }

.ht-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.ht-status {
  font-size: var(--text-small);
  line-height: var(--leading-body);
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  display: none;
}

.ht-status.is-on { display: block; }
.ht-status.is-ok { background: var(--ht-soft-bg); border-color: var(--accent-soft-2); color: var(--ht-soft-ink); }
.ht-status.is-warn { background: var(--canvas-2); border-color: var(--border); color: var(--text); }
.ht-status.is-bad { background: #FDECE8; border-color: #F5C9BC; color: #7A2A14; }
[data-theme="dark"] .ht-status.is-bad { background: #2A1613; border-color: #5A2E24; color: #F5C9BC; }
.ht-status code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 1px 5px;
  border-radius: var(--r-sm);
}

.ht-fmt { position: relative; display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-3); }

.ht-fmt > button {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--text);
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.ht-fmt > button:hover { border-color: var(--accent); color: var(--accent-strong); }

.ht-fmt > .ht-emoji-btn { font-family: var(--font-sans); font-size: 15px; padding: 4px 9px; }
.ht-fmt > .ht-emoji-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-strong); }

.ht-emoji {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 268px;
  max-width: 100%;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
}

.ht-emoji.is-open { display: grid; }

.ht-emoji button {
  font-size: 18px;
  line-height: 1;
  padding: 5px 0;
  border: 0;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
}

.ht-emoji button:hover { background: var(--canvas-2); }

.ht-count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.ht-hint {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-faint);
}

.ht-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-align: right;
  margin-top: 0;
}

.ht-count.is-over { color: #B4441F; }
[data-theme="dark"] .ht-count.is-over { color: #F5A98C; }

.link-out {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
}

.link-out code {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-body { display: block; flex: 1; min-width: 0; }

.ht-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.ht-actions .btn { font-size: 13px; padding: 10px 16px; }

.ht-qr { display: flex; justify-content: center; padding: var(--sp-2) 0 var(--sp-4); }

.ht-qr-empty {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-4);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--canvas-2);
  font-size: var(--text-small);
  color: var(--text-faint);
}

.ht-panel .btn[disabled] { opacity: 0.45; pointer-events: none; }

.ht-qr-band { margin-top: var(--sp-5); }
.ht-qr-band-inner { display: flex; align-items: center; gap: var(--sp-8); flex-wrap: wrap; }
.ht-qr-band-inner .ht-qr { flex: none; padding: 0; }
.ht-qr-body { flex: 1; min-width: 260px; }
.ht-qr-body .ht-sub { max-width: 46ch; }

@media (max-width: 700px) {
  .ht-qr-band-inner { flex-direction: column; align-items: center; gap: var(--sp-5); }
  .ht-qr-body { width: 100%; min-width: 0; display: grid; justify-items: center; gap: var(--sp-4); }
  .ht-qr-body .ht-sub { max-width: 34ch; margin-bottom: 0; text-align: center; }
  .ht-qr-body .ht-actions { justify-content: center; }
}
.ht-qr canvas, .ht-qr svg { border-radius: var(--r-md); max-width: 100%; height: auto; }

.ht-embed { margin-top: var(--sp-5); }

.ht-snippet {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-4);
  max-height: 142px;
  max-height: calc(6lh + var(--sp-8));
  overflow: auto;
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ht-wa {
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(var(--sp-4), 3vw, var(--sp-5));
  display: grid;
}

.ht-bubble {
  justify-self: end;
  text-align: left;
  max-width: 88%;
  background: var(--ht-soft-bg);
  color: var(--ht-soft-ink);
  border-radius: var(--r-md) var(--r-md) var(--sp-1) var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ht-bubble code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: color-mix(in srgb, var(--ht-soft-ink) 16%, transparent);
  padding: 1px 4px;
  border-radius: var(--r-sm);
}

.ht-bubble a { color: inherit; text-decoration: underline; }

.ht-hub { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

.hub-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.hub-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.hub-card h3 { font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 600; }
.hub-card p { font-size: var(--text-small); color: var(--text-muted); line-height: var(--leading-body); flex: 1; }
.hub-card .hub-go { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); }
.hub-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ht-soft-ink);
  background: var(--ht-soft-bg);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

.related { border-top: 1px solid var(--border); padding-top: var(--sp-8); margin-top: var(--sp-12); }
.related h2 { font-family: var(--font-display); font-size: var(--text-heading-sm); font-weight: 600; margin-bottom: var(--sp-5); }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.related a {
  display: inline-block;
  font-size: var(--text-small);
  color: var(--text);
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.related a:hover { border-color: var(--accent); color: var(--accent-strong); }

.ht-prose { max-width: var(--maxw-text); }
.ht-prose h2 { font-family: var(--font-display); font-size: var(--text-heading); font-weight: 500; letter-spacing: -0.02em; margin-bottom: var(--sp-5); }
.ht-prose h3 { font-size: var(--text-subheading); font-weight: 600; margin: var(--sp-8) 0 var(--sp-3); }
.ht-prose p { margin-bottom: var(--sp-4); color: var(--text); }
.ht-prose ul, .ht-prose ol { margin: 0 0 var(--sp-5) var(--sp-6); display: grid; gap: var(--sp-3); }
.ht-prose li { color: var(--text); line-height: var(--leading-body); }
.ht-prose strong { color: var(--ink); font-weight: 600; }
.ht-prose code { font-family: var(--font-mono); font-size: 13px; background: var(--canvas-2); border: 1px solid var(--border-soft); padding: 1px 5px; border-radius: var(--r-sm); }

.ht-table-wrap { overflow-x: auto; margin-bottom: var(--sp-6); }
table.ht-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
table.ht-table th, table.ht-table td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-soft); }
table.ht-table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); font-weight: 500; }
table.ht-table code { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-deep); }

.ht-faq { display: grid; gap: var(--sp-3); }
.ht-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.ht-faq summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
.ht-faq summary::-webkit-details-marker { display: none; }
.ht-faq summary::after { content: "+"; float: right; font-family: var(--font-mono); color: var(--accent-strong); }
.ht-faq details[open] summary::after { content: "−"; }
.ht-faq p { margin-top: var(--sp-4); color: var(--text-muted); font-size: var(--text-small); line-height: var(--leading-body); }

.tool-toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-8);
  transform: translate(-50%, 20px);
  z-index: 300;
  background: var(--ink);
  color: var(--canvas);
  font-size: var(--text-small);
  font-weight: 500;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.tool-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.ht-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}

.ht-bar.is-on { opacity: 1; visibility: visible; transform: translateY(0); }

.ht-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
}

.ht-bar-info { display: grid; gap: 2px; min-width: 0; }
.ht-bar-label { font-size: var(--text-small); color: var(--text-muted); }

.ht-bar-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.ht-has-bar { padding-bottom: 88px; }

@media (max-width: 560px) {
  .ht-bar-inner { padding: var(--sp-3) 0; gap: var(--sp-3); }
  .ht-bar-label { font-size: 12px; }
  .ht-bar-num { font-size: 12px; }
  body.ht-has-bar { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .ht-bar { transition: none; }
}





.vd-parts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  min-height: 22px;
}

.vd-empty { font-size: var(--text-small); color: var(--text-faint); }

.hub-tag.is-bad { background: #FDECE8; color: #7A2A14; }
[data-theme="dark"] .hub-tag.is-bad { background: #2A1613; color: #F5C9BC; }

.vd-explain {
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-muted);
  margin-top: var(--sp-3);
  max-width: 52ch;
}

.vd-verdict {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--canvas-2);
}

.vd-verdict-icon {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--text-muted);
}

.vd-verdict-body { min-width: 0; }
.vd-verdict-body strong { display: block; font-size: var(--text-small); color: var(--ink); margin-bottom: 2px; }
.vd-verdict-body p { font-size: var(--text-small); line-height: var(--leading-body); color: var(--text-muted); }

.vd-verdict.is-neutral .vd-verdict-icon::before { content: '·'; }
.vd-verdict.is-warn .vd-verdict-icon::before { content: '!'; }

.vd-verdict.is-ok { background: var(--ht-soft-bg); border-color: var(--accent-soft-2); }
.vd-verdict.is-ok .vd-verdict-body strong,
.vd-verdict.is-ok .vd-verdict-body p,
.vd-verdict.is-ok .vd-verdict-icon { color: var(--ht-soft-ink); }
.vd-verdict.is-ok .vd-verdict-icon { border-color: var(--ht-soft-ink); }
.vd-verdict.is-ok .vd-verdict-icon::before { content: '✓'; }

.vd-verdict.is-bad { background: #FDECE8; border-color: #F5C9BC; }
.vd-verdict.is-bad .vd-verdict-body strong,
.vd-verdict.is-bad .vd-verdict-body p,
.vd-verdict.is-bad .vd-verdict-icon { color: #7A2A14; }
.vd-verdict.is-bad .vd-verdict-icon { border-color: #7A2A14; }
.vd-verdict.is-bad .vd-verdict-icon::before { content: '✕'; }
[data-theme="dark"] .vd-verdict.is-bad { background: #2A1613; border-color: #5A2E24; }
[data-theme="dark"] .vd-verdict.is-bad .vd-verdict-body strong,
[data-theme="dark"] .vd-verdict.is-bad .vd-verdict-body p,
[data-theme="dark"] .vd-verdict.is-bad .vd-verdict-icon { color: #F5C9BC; border-color: #F5C9BC; }

.vd-buscar { margin-bottom: var(--sp-4); }

.vd-form { display: grid; gap: var(--sp-3); align-items: end; }
@media (min-width: 640px) { .vd-form { grid-template-columns: 1fr auto; } }
.vd-form .btn { padding: 13px 24px; }
.vd-form .field { margin: 0; }

.vd-arca-band { margin-bottom: var(--sp-5); }
.vd-arca { display: grid; align-content: start; gap: var(--sp-3); min-height: 84px; }

.vd-arca-idle,
.vd-arca-vacio {
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-muted);
  max-width: 68ch;
}

.vd-arca-idle {
  background: var(--canvas-2);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}

.vd-arca-vacio { color: var(--text); }

.vd-arca-link { color: var(--accent-strong); text-decoration: underline; }
.vd-arca-link:hover { color: var(--accent-deep); }

.vd-cargando { display: flex; gap: 6px; padding: var(--sp-5) 0 var(--sp-4); }
.vd-cargando span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: vd-pulse 1s infinite ease-in-out;
}
.vd-cargando span:nth-child(2) { animation-delay: .15s; }
.vd-cargando span:nth-child(3) { animation-delay: .3s; }

@keyframes vd-pulse {
  0%, 80%, 100% { opacity: .25; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .vd-cargando span { animation: none; opacity: .55; }
}

.vd-persona {
  background: var(--ht-soft-bg);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.vd-persona-rotulo {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ht-soft-ink);
  margin-bottom: var(--sp-2);
}

.vd-persona-nombre {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ht-soft-ink);
}

.vd-persona-cuit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ht-soft-ink);
  margin-top: 5px;
}

.vd-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.vd-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--accent-soft-2);
  color: var(--text);
}

.vd-badge b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
}

.vd-persona-pie {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ht-soft-ink);
  margin-top: var(--sp-4);
  max-width: 72ch;
}

.vd-persona-pie a { color: inherit; text-decoration: underline; }


.vd-lista { display: grid; gap: var(--sp-2); }
.vd-lista-head { font-size: var(--text-small); color: var(--text-muted); margin-bottom: var(--sp-1); }

.vd-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--dur-fast) var(--ease);
}

.vd-fila:hover { border-color: var(--accent); }
.vd-fila-nombre { font-size: var(--text-small); color: var(--ink); min-width: 0; }

.vd-fila-cuit {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

