/* =============================================================
   Formatly - hoja de estilos unica
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografia
   5. Componentes · 6. Secciones · 7. Herramienta · 8. Responsive
   9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --paper:      #fbfaf7;
  --surface:    #ffffff;
  --surface-2:  #f4f2ec;
  --ink:        #141419;
  --ink-soft:   #43434f;
  --muted:      #6f6f7d;
  --line:       #e4e1d8;
  --line-soft:  #eeece5;
  --accent:     #4b36e8;
  --accent-ink: #ffffff;
  --accent-wash:#eeeafd;
  --warn:       #b4460b;
  --warn-wash:  #fdf1e7;
  --ok:         #12722f;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 25, .05);
  --shadow-md: 0 2px 4px rgba(20, 20, 25, .04), 0 12px 28px -12px rgba(20, 20, 25, .14);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #101014;
    --surface:    #17171d;
    --surface-2:  #1d1d25;
    --ink:        #f3f1eb;
    --ink-soft:   #c9c7c1;
    --muted:      #918f9c;
    --line:       #2b2b35;
    --line-soft:  #23232c;
    --accent:     #8f80ff;
    --accent-ink: #14121f;
    --accent-wash:#221d3d;
    --warn:       #f0a06a;
    --warn-wash:  #2c1f16;
    --ok:         #5fc47f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .25), 0 12px 28px -12px rgba(0, 0, 0, .6);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.hide { display: none !important; }

/* =============================================================
   4. Tipografia
   ============================================================= */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: 1.06rem; color: var(--ink-soft); }

.prose { max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.08rem; font-weight: 600; margin: 1.8rem 0 .5rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 1rem 1.15rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-soft); }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- cabecera --- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 60px;
}
.brand { display: inline-flex; align-items: baseline; gap: .3rem; }
.brand__mark {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.head-nav { display: flex; align-items: center; gap: 1.4rem; font-size: .92rem; }
.head-nav a { color: var(--ink-soft); transition: color .2s var(--ease-out); }
.head-nav a:hover { color: var(--accent); }

/* --- botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.15rem; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* --- badges --- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .34rem .62rem; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-soft);
}
.badge--privacy { background: var(--accent-wash); color: var(--accent); border-color: transparent; }

/* --- tarjetas de herramienta (rejilla) --- */
.tool-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.tool-tile {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
a.tool-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-tile__icon { color: var(--accent); margin-bottom: .4rem; }
.tool-tile__name { font-size: 1rem; font-weight: 600; }
.tool-tile__desc { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.tool-tile--soon { opacity: .62; border-style: dashed; }
.tool-tile--soon .tool-tile__icon { color: var(--muted); }
.tool-tile__soon {
  align-self: flex-start; margin-top: .5rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* --- ranura de anuncio --- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  min-height: 100px; margin: 2.2rem 0;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}
.ad-slot--leaderboard { min-height: 110px; }

/* --- FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.25rem; color: var(--accent);
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--ink-soft); max-width: 68ch; }

/* --- pie --- */
.site-foot {
  margin-top: 4rem; padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line); background: var(--surface-2);
  font-size: .88rem; color: var(--muted);
}
.site-foot__in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-foot a:hover { color: var(--accent); }

/* =============================================================
   6. Secciones
   ============================================================= */
.hero { padding: clamp(2.6rem, 7vw, 4.6rem) 0 clamp(1.6rem, 4vw, 2.4rem); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); margin: .5rem 0 .9rem; }
.hero .lead { max-width: 54ch; }

.section { padding: clamp(2rem, 5vw, 3.2rem) 0; }
.section__head { margin-bottom: 1.4rem; }
.section__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section__head p { color: var(--muted); margin-top: .3rem; }

/* pasos "como funciona" */
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.step { display: flex; gap: .9rem; }
.step__n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent);
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
}
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: .15rem; }
.step p { font-size: .92rem; color: var(--muted); }

/* =============================================================
   7. La herramienta
   ============================================================= */
.tool-head { padding: clamp(1.6rem, 4vw, 2.6rem) 0 1.2rem; }
.tool-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.2rem); margin: .45rem 0 .6rem; }
.tool-head .lead { max-width: 60ch; }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tool-card__body { display: grid; gap: 0; grid-template-columns: 1fr; }
.tool-pane { padding: clamp(1.1rem, 3vw, 1.6rem); }
.tool-pane--out {
  background: var(--surface-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}

/* campos */
.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label {
  display: block; margin-bottom: .38rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: var(--ink-soft);
}
.input, .select, textarea.input {
  width: 100%; padding: .7rem .85rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .98rem;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
.field__hint { margin-top: .35rem; font-size: .78rem; color: var(--muted); }
.field-row { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }

/* pestanas de tipo de contenido */
.tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.1rem; }
.tab {
  padding: .48rem .82rem; border-radius: 999px;
  font-size: .86rem; font-weight: 500;
  background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid transparent;
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.tab:hover { color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

/* estilos visuales del QR */
.style-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.style-opt {
  flex: 1 1 0; min-width: 74px;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .6rem .4rem; border-radius: var(--r-sm);
  background: var(--paper); border: 1px solid var(--line);
  font-size: .74rem; color: var(--ink-soft);
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
}
.style-opt svg { color: var(--ink); }
.style-opt:hover { border-color: var(--accent); }
.style-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); color: var(--accent); }
.style-opt[aria-pressed="true"] svg { color: var(--accent); }

.color-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.color-field { flex: 1 1 130px; }
.color-input-wrap {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem .5rem .3rem .3rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
}
input[type="color"] {
  width: 34px; height: 34px; padding: 0; border: none; border-radius: 6px;
  background: none; cursor: pointer; flex: none;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line); border-radius: 6px; }
.color-input-wrap .hex {
  flex: 1; min-width: 0; border: 0; background: none;
  font-family: var(--mono); font-size: .84rem; text-transform: uppercase;
}
.color-input-wrap .hex:focus { outline: none; }

.check { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* emojis / logo */
.emoji-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.emoji-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm); font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .16s var(--ease-out), transform .16s var(--ease-out);
}
.emoji-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.emoji-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.file-label {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .8rem; border-radius: var(--r-sm);
  background: var(--paper); border: 1px dashed var(--line);
  font-size: .86rem; color: var(--ink-soft); cursor: pointer;
  transition: border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.file-label:hover { border-color: var(--accent); color: var(--accent); }
.center-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.link-btn { font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--accent); }

/* bloque plegable de opciones */
.opt-group { border-top: 1px solid var(--line-soft); }
.opt-group > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; cursor: pointer; list-style: none;
  font-size: .84rem; font-weight: 600; color: var(--ink-soft);
}
.opt-group > summary::-webkit-details-marker { display: none; }
.opt-group > summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.1rem; transition: transform .25s var(--ease-out); }
.opt-group[open] > summary::after { transform: rotate(45deg); }
.opt-group__body { padding-bottom: 1.1rem; }

/* previsualizacion */
.qr-stage {
  --checker: color-mix(in srgb, var(--ink) 7%, transparent);
  width: 100%; max-width: 300px; aspect-ratio: 1;
  display: grid; place-items: center; padding: 10px;
  border-radius: var(--r-md);
  background-color: var(--surface);
  background-image:
    linear-gradient(45deg, var(--checker) 25%, transparent 25%),
    linear-gradient(-45deg, var(--checker) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--checker) 75%),
    linear-gradient(-45deg, transparent 75%, var(--checker) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border: 1px solid var(--line);
}
.qr-stage canvas, .qr-stage svg { width: 100% !important; height: auto !important; border-radius: 4px; }
.qr-stage__empty { font-size: .88rem; color: var(--muted); text-align: center; padding: 1.5rem; }

.dl-row { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; width: 100%; }
.dl-row .btn--primary { flex: 1 1 100%; }
.dl-row .btn--ghost { flex: 1 1 0; min-width: 0; }
.size-row { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.size-row .select { width: auto; padding: .38rem .6rem; font-size: .82rem; }

/* avisos */
.notice {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .7rem .85rem; border-radius: var(--r-sm);
  font-size: .85rem; line-height: 1.45; width: 100%;
}
.notice--warn { background: var(--warn-wash); color: var(--warn); }
.notice__icon { flex: none; margin-top: .15rem; }

.tool-meta {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  margin-top: 1rem; font-size: .84rem; color: var(--muted);
}

.nojs-note {
  margin-top: 1rem; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); font-size: .88rem; color: var(--ink-soft);
}

/* --- herramientas de texto: una sola columna, area grande --- */
.tool-pane--stack { display: block; }
.ta-tool { width: 100%; min-height: 190px; font-size: 1rem; line-height: 1.55; }
.ta-out { background: var(--surface-2); }

.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.btn-row--end { justify-content: flex-end; }

/* rejilla de cifras (contador de palabras) */
.stat-grid {
  display: grid; gap: .6rem; margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat {
  padding: .8rem .9rem; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.stat__n {
  display: block; font-family: var(--mono); font-size: 1.5rem;
  font-weight: 500; color: var(--ink); line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat__l { display: block; margin-top: .15rem; font-size: .78rem; color: var(--muted); }
.stat--wide { grid-column: 1 / -1; }

/* opciones en fila (casillas) */
.check-grid {
  display: grid; gap: .55rem .9rem; margin-top: .2rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* deslizador */
.range-row { display: flex; align-items: center; gap: .9rem; }
.range-row input[type="range"] {
  flex: 1; height: 4px; accent-color: var(--accent); cursor: pointer;
}
.range-row output {
  min-width: 3.2rem; text-align: right;
  font-family: var(--mono); font-size: 1rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* resultado de contrasena */
.pass-out {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
}
.pass-out code {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: clamp(.95rem, 3.4vw, 1.25rem);
  color: var(--ink); word-break: break-all; line-height: 1.4;
}
.icon-btn {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: border-color .16s var(--ease-out), color .16s var(--ease-out);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.is-ok { border-color: var(--ok); color: var(--ok); }

/* medidor de fuerza */
.meter { margin-top: .9rem; }
.meter__bar {
  height: 6px; border-radius: 999px; background: var(--surface-2);
  overflow: hidden; border: 1px solid var(--line-soft);
}
.meter__fill {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--accent);
  transition: width .3s var(--ease-out), background .3s var(--ease-out);
}
.meter__fill[data-nivel="debil"]     { background: #d1471a; }
.meter__fill[data-nivel="aceptable"] { background: #c98a11; }
.meter__fill[data-nivel="buena"]     { background: var(--accent); }
.meter__fill[data-nivel="excelente"] { background: var(--ok); }
.meter__txt {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .4rem; font-size: .82rem; color: var(--muted);
}
.meter__txt strong { color: var(--ink); font-weight: 600; }

/* limites de caracteres (contador de palabras) */
.limites { display: flex; flex-direction: column; gap: .3rem; margin-top: .9rem; }
.limite {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .45rem .7rem; border-radius: var(--r-sm);
  background: var(--surface-2); font-size: .86rem; color: var(--ink-soft);
}
.limite__n { font-family: var(--mono); font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.limite--pasado { background: var(--warn-wash); color: var(--warn); }
.limite--pasado .limite__n { color: var(--warn); }

/* palabras repetidas */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }

/* lista de resultados en lote */
.bulk { margin-top: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.bulk__row {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem .6rem; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.bulk__row code { flex: 1; min-width: 0; font-family: var(--mono); font-size: .88rem; word-break: break-all; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat--wide { grid-column: auto; }
}
@media (min-width: 960px) {
  /* En movil el orden del HTML manda: contenido -> codigo -> opciones de diseno.
     En pantalla grande el codigo salta a la columna derecha y ocupa las dos filas. */
  .tool-card__body { grid-template-columns: minmax(0, 1fr) 380px; }
  .tool-pane--in   { grid-column: 1; grid-row: 1; }
  .tool-pane--opts { grid-column: 1; grid-row: 2; padding-top: 0; }
  .tool-pane--out {
    grid-column: 2; grid-row: 1 / span 2;
    border-top: 0; border-bottom: 0;
    border-left: 1px solid var(--line-soft);
    justify-content: flex-start;
  }
  .qr-stage { max-width: 100%; }
}

/* =============================================================
   9. Reduced-motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
