/* Ahá Herramientas Digitales · Test "¿Qué tan digital es tu negocio?" */
.td { max-width: 820px; }
.td h2 { color: var(--navy); }
.td h3 { font-size: 1.05rem; color: var(--navy); margin: 0 0 .4em; }

/* Inicio */
.td-intro { text-align: center; max-width: 600px; margin: 0 auto; padding: 8px 0; }
.td-intro-ico { font-size: 2.8rem; line-height: 1; margin-bottom: 10px; }
.td-intro h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.td-puntos { list-style: none; margin: 0 auto 18px; padding: 0; text-align: left; display: inline-flex; flex-direction: column; gap: 6px; }
.td-puntos li { padding-left: 26px; position: relative; color: var(--ink-2); }
.td-puntos li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.td-rubro { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; max-width: 340px; margin: 0 auto 18px; text-align: left; }
.td-rubro small { color: var(--muted); font-weight: 500; }
.td-rubro select { width: 100%; font-weight: 600; }
.td-intro-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }

/* Progreso */
.td-progreso { margin-bottom: 18px; }
.td-prog-txt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.td-area-txt { color: var(--muted); font-weight: 600; }
.td-barra { height: 10px; background: var(--blue-50); border-radius: 999px; overflow: hidden; }
.td-barra span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 999px; transition: width .3s ease; }

/* Pregunta */
.td-preg { border: 0; margin: 0; padding: 0; min-width: 0; }
.td-preg legend { font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: 14px; padding: 0; outline: none; }
.td-opciones { display: flex; flex-direction: column; gap: 10px; }
.td-op { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .12s, background .12s; }
.td-op:hover { border-color: var(--blue); }
.td-op input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--orange); }
.td-op:has(input:checked) { border-color: var(--orange); background: var(--orange-50); }
.td-op:has(input:focus-visible) { outline: 3px solid rgba(254, 130, 2, .55); outline-offset: 2px; }
.td-op-txt { line-height: 1.4; }
.td-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }

/* Resultado */
.td-print-head { display: none; }
.td-res-top { display: flex; align-items: center; gap: 22px; }
.td-res-top .score { flex-shrink: 0; width: 128px; height: 128px; }
.td-res-top .score b { font-size: 2.3rem; }
.td-nivel-lbl { margin: 0; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.td-res-txt h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 .2em; outline: none; }
.td-nivel-txt { margin: 0 0 4px; color: var(--ink-2); }
.td-escala { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 18px 0 6px; font-size: .74rem; font-weight: 700; text-align: center; color: var(--muted); line-height: 1.25; }
.td-escala span { background: var(--bg); border-radius: 8px; padding: 6px 4px; }
.td-escala span.on { background: var(--navy); color: #fff; }
.td-escala small { font-weight: 600; font-size: .7rem; }

.td-prioridades { background: var(--orange-50); border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.td-prioridades p.small { margin: 0 0 8px; }
.td-prio { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.td-prio li { padding-left: 4px; }
.td-prio li::marker { font-weight: 800; color: var(--orange-600); }
.td-prio small { display: block; color: var(--ink-2); font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.td-mas { font-size: .74rem; font-weight: 800; color: var(--orange-600); background: #fff; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

.td-areas li > div { min-width: 0; }
.td-area-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.td-pts { font-size: .76rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.td-areas small { margin-top: 4px; }
.td-areas .td-tu { color: var(--muted); font-style: italic; }
.td-areas .td-serv { color: var(--navy); }
.td-acciones { justify-content: center; }

/* Formulario de contacto */
.td-lead { margin-top: 24px; border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; background: linear-gradient(180deg, var(--blue-50), #fff 70%); }
.td-lead-copy p { color: var(--ink-2); margin: 0 0 12px; }
.td-lead-form .fila > label { flex: 1 1 200px; }
.td-lead-form input[type=tel] { min-height: 42px; }
.td-lead-form .btn { align-self: flex-start; }
.td-lead-nota { margin: 0; }
.td-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.td-lead-ok { outline: none; }
.td-lead-ok b { display: block; color: var(--ok); font-size: 1.05rem; margin-bottom: 4px; }
.td-lead-ok p { margin: 0; }

@media (max-width: 640px) {
  .td-res-top { flex-direction: column; text-align: center; gap: 12px; }
  .td-op { padding: 12px 14px; }
  .td-nav .btn { flex: 1; }
  .td-lead { padding: 16px 14px; }
  .td-lead-form .btn { align-self: stretch; }
  .td-escala { font-size: .68rem; }
}

/* ── Impresión: solo el resultado ── */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; font-size: 11pt; }
  .site-header, .site-footer, .modal, .aha-aviso, .td-noprint,
  main > *:not(.tool-hero), .tool-hero .hero-copy,
  .td-acciones, .td-lead, .td-escala { display: none !important; }
  .hero, .tool-hero { padding: 0 !important; background: none !important; }
  .wrap { max-width: none; padding: 0; }
  .tool-card.td { box-shadow: none !important; border: 0 !important; padding: 0 !important; max-width: none; }
  .td-print-head { display: block; font-size: 9.5pt; color: #474E6B; border-bottom: 1px solid #ccc; padding-bottom: 6px; margin-bottom: 14px; }
  .td-res-top { flex-direction: row; text-align: left; }
  .score { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .td-prioridades { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
  .chequeos li { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}
