/* Lector de QR (página /herramientas/lector-qr/ y widget revisar-qr). Usa los colores de widget.css. */
.lq-botones { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 480px) { .lq-botones { grid-template-columns: 1fr 1fr; } }
.lq-boton { position: relative; display: block; text-align: center; font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 10px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; }
.lq-boton-2 { background: var(--paper); color: var(--ink); }
.lq-boton:hover { background: var(--brand); color: var(--ink); }
.lq-boton input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.lq-riesgo { border-color: var(--alert); color: var(--alert); }
.lq-pista { margin: 8px 0 0; font-size: .82rem; color: var(--ink-soft); }
@media (hover: none) { .lq-pista { display: none; } }
.lq-arrastre { outline: 3px dashed var(--brand); outline-offset: 4px; }
.lq-camara { margin-top: 12px; }
.lq-camara video { width: 100%; max-height: 60vh; border-radius: var(--radius); background: #000; display: block; object-fit: cover; }
.lq-estado { margin: 10px 0 0; font-size: .92rem; }
.lq-estado:empty { display: none; }
.lq-enlace { font: inherit; font-size: .88rem; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 2px; cursor: pointer; margin-top: 10px; }

.lq-resultado { margin-top: 16px; }
.lq-veredicto { padding: 12px 14px; border-radius: var(--radius); border-left: 4px solid var(--line-strong); background: var(--surface); }
.lq-veredicto strong { font-size: 1.1rem; }
.lq-veredicto p { margin: 4px 0 0; font-size: .92rem; }
.lq-veredicto.ok { background: var(--ok-soft); border-left-color: var(--ok); }
.lq-veredicto.ojo { background: var(--brand-soft); border-left-color: var(--brand); }
.lq-veredicto.no { background: var(--alert-soft); border-left-color: var(--alert); }
.lq-tipo { margin: 14px 0 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.lq-sitio { margin: 4px 0 0; font-size: 1.15rem; }
.lq-url { margin: 4px 0 0; font: 14px/1.45 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.lq-gris { color: var(--ink-soft); }
.lq-detalle { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; }
.lq-detalle dt { font-weight: 700; }
.lq-detalle dd { margin: 0; overflow-wrap: anywhere; }
.lq-avisos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.lq-avisos li { padding: 8px 10px 8px 34px; border-radius: var(--radius); font-size: .92rem; position: relative; background: var(--surface); }
.lq-avisos li::before { position: absolute; left: 10px; top: 8px; font-weight: 800; }
.lq-avisos li.alerta { background: var(--alert-soft); }
.lq-avisos li.alerta::before { content: "✕"; color: var(--alert); }
.lq-avisos li.ojo { background: var(--brand-soft); }
.lq-avisos li.ojo::before { content: "!"; color: #8a6d00; left: 14px; }
.lq-avisos li.info::before { content: "i"; color: var(--ink-soft); left: 14px; font-style: italic; font-family: Georgia, serif; }
.lq-completo { margin-top: 12px; font-size: .9rem; }
.lq-completo summary { cursor: pointer; }
.lq-completo pre { margin: 6px 0 0; padding: 10px; background: var(--surface); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 240px; overflow: auto; }
.lq-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.lq-google { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.lq-google .lq-boton { width: 100%; }
.lq-google .lq-boton:disabled { opacity: .5; cursor: default; }
.lq-nota { margin: 6px 0 0; font-size: .8rem; color: var(--ink-soft); }
.lq-google-res { margin-top: 8px; font-size: .92rem; }
.lq-google-res:empty { display: none; }
.lq-google-res.ok { padding: 10px 12px; border-radius: var(--radius); background: var(--ok-soft); }
.lq-google-res.no { padding: 10px 12px; border-radius: var(--radius); background: var(--alert-soft); color: var(--alert); font-weight: 700; }
.lq-google-res ul { margin: 0; padding-left: 18px; }
.lq-resultado { scroll-margin-top: 130px; }
