/* Generador de códigos QR (/herramientas/generador-codigo-qr/). */
html:not(#z) body main.ps.qr-pagina > section.pagina-intro { padding-top: 24px !important; padding-bottom: 22px !important; }
@media (min-width: 1024px) {
  html:not(#z) body main.ps.qr-pagina > section.pagina-intro { padding-top: 36px !important; padding-bottom: 28px !important; }
}
html:not(#z) body main.ps.qr-pagina .pagina-intro h1 { margin: 0 0 12px !important; font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem) !important; }
html:not(#z) body main.ps.qr-pagina .pagina-intro > p.lead { margin: 0 !important; }
html:not(#z) body main.ps .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html:not(#z) body main.ps > section.qr-app { padding-top: 32px !important; }
html:not(#z) body main.ps .qr-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { html:not(#z) body main.ps .qr-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; } }

html:not(#z) body main.ps .qr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
html:not(#z) body main.ps .qr-tabs button {
  min-height: 42px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--ps-rule); background: var(--ps-paper); color: var(--ps-ink); padding: 0 16px;
}
html:not(#z) body main.ps .qr-tabs button[aria-selected="true"] { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff; }

html:not(#z) body main.ps .qr-panel { display: grid; gap: 12px; }
html:not(#z) body main.ps .qr-panel[hidden] { display: none; }
html:not(#z) body main.ps .qr-campo { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ps-ink); }
html:not(#z) body main.ps .qr-campo small { font-weight: 400; color: var(--ps-muted); }
html:not(#z) body main.ps .qr-campo input:not([type=checkbox]):not([type=color]),
html:not(#z) body main.ps .qr-campo select,
html:not(#z) body main.ps .qr-campo textarea {
  width: 100%; box-sizing: border-box; min-height: 46px; border-radius: 10px; border: 1.5px solid var(--ps-rule);
  background: var(--ps-paper); color: var(--ps-text); font: inherit; font-size: 1rem; font-weight: 400; padding: 10px 12px;
}
html:not(#z) body main.ps .qr-campo textarea { min-height: 96px; resize: vertical; }
html:not(#z) body main.ps .qr-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ps-text); }
html:not(#z) body main.ps .qr-check input { width: 20px; height: 20px; margin: 0; }

html:not(#z) body main.ps .qr-estilo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ps-rule);
}
html:not(#z) body main.ps .qr-estilo input[type=color] { width: 100%; height: 46px; border: 1.5px solid var(--ps-rule); border-radius: 10px; padding: 3px; background: var(--ps-paper); cursor: pointer; box-sizing: border-box; }

html:not(#z) body main.ps .qr-salida {
  background: var(--ps-soft); border: 1px solid var(--ps-rule); border-radius: 16px; padding: 20px; text-align: center;
}
@media (min-width: 900px) { html:not(#z) body main.ps .qr-salida { position: sticky; top: 90px; } }
html:not(#z) body main.ps .qr-salida canvas {
  display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 14px; border-radius: 8px; image-rendering: pixelated; background: #fff;
}
html:not(#z) body main.ps .qr-descargas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
html:not(#z) body main.ps .qr-descargas button {
  min-height: 46px; border-radius: 10px; font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--ps-ink); background: var(--ps-ink); color: #fff; padding: 0 18px;
}
html:not(#z) body main.ps .qr-descargas button + button { background: var(--ps-paper); color: var(--ps-ink); }
html:not(#z) body main.ps .qr-vacio .qr-descargas button { opacity: .45; pointer-events: none; }
html:not(#z) body main.ps .qr-contenido-wrap { margin: 14px 0 0; font-size: .8rem; color: var(--ps-muted); text-align: left; overflow-wrap: anywhere; }
html:not(#z) body main.ps .qr-contenido { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ps-text); }
html:not(#z) body main.ps .qr-aviso { min-height: 1.2em; margin: 10px 0 0; font-size: .85rem; font-weight: 600; color: #a33a00; text-align: left; }
html:not(#z) body main.ps .qr-cta {
  margin: 16px 0 0; padding: 16px; border-radius: 14px; background: var(--ps-ink); color: #fff; text-align: left;
}
html:not(#z) body main.ps .qr-cta p { margin: 0 0 10px; color: #fff; font-size: .95rem; line-height: 1.5; }
html:not(#z) body main.ps .qr-cta a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
