/* =============================================================================
   QR3D — styles.css
   1 Tokens · 2 Reset · 3 Utilidades · 4 Tipografía · 5 Componentes
   6 Herramienta · 7 Secciones · 8 Publicidad · 9 Responsive · 10 Movimiento
   ============================================================================= */

/* ============================== 1. Tokens ============================== */
:root {
  --paper:   #faf8f5;
  --card:    #ffffff;
  --ink:     #16181d;
  --ink-2:   #4b5058;
  --ink-3:   #7b818b;
  --line:    #e6e2db;
  --line-2:  #d5cfc5;
  --accent:  #e8551f;
  --accent-d:#c8410f;
  --accent-w:#fff1eb;
  --ok:      #1d7a4c;
  --warn:    #9a6200;
  --warn-bg: #fff6e2;
  --bad:     #b3261e;
  --bad-bg:  #fdecea;
  --info-bg: #eef2fb;
  --info:    #2f4b8f;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Fraunces", Georgia, "Times New Roman", serif;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 24px;

  --sh-1: 0 1px 2px rgba(22,24,29,.05), 0 2px 8px rgba(22,24,29,.04);
  --sh-2: 0 2px 6px rgba(22,24,29,.06), 0 12px 32px rgba(22,24,29,.07);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #131417;
    --card:   #1b1d22;
    --ink:    #f2f0ec;
    --ink-2:  #b6bac1;
    --ink-3:  #8b9099;
    --line:   #2c2f36;
    --line-2: #3a3e46;
    --accent: #ff6f3d;
    --accent-d:#ff8a5e;
    --accent-w:#33201a;
    --warn-bg:#33290f;
    --warn:   #f0c060;
    --bad-bg: #3a1c19;
    --bad:    #ff9d95;
    --info-bg:#1c2333;
    --info:   #a6bef0;
    --sh-1: 0 1px 2px rgba(0,0,0,.3);
    --sh-2: 0 2px 8px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.3);
  }
}

/* ============================== 2. Reset =============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.14; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============================ 3. Utilidades ============================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  border-radius: var(--r-s); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* =========================== 4. Tipografía ============================= */
h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3.1rem);
  letter-spacing: -0.025em;
}
.sec-t {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem);
  margin-bottom: .5rem;
}
.hero-sub {
  color: var(--ink-2);
  font-size: clamp(1rem, .95rem + .3vw, 1.14rem);
  max-width: 62ch;
  margin-top: .85rem;
}
.sec-sub { color: var(--ink-2); max-width: 66ch; margin-bottom: 1.6rem; }

/* ========================= 5. Cabecera y pie =========================== */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 26px; height: 26px; fill: var(--accent); }
.brand-name { font-size: 1.24rem; }
.head-nav { display: none; gap: 1.5rem; font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.head-nav a { transition: color .2s var(--ease-out); }
.head-nav a:hover { color: var(--accent); }

.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.4rem 0 3rem; }
.foot-in { display: grid; gap: .8rem; }
.foot-b { color: var(--ink-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-weight: 600; font-size: .93rem; }
.foot-nav a:hover { color: var(--accent); }
.foot-c { color: var(--ink-3); font-size: .82rem; }

/* =========================== 6. Componentes ============================ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 1.15rem 1.15rem 1.3rem;
  box-shadow: var(--sh-1);
}
.tc-t {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.tc-n {
  display: grid; place-items: center;
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 800;
}

.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; text-align: center;
  padding: .72rem 1.05rem;
  border-radius: var(--r-m);
  font-weight: 700; font-size: .94rem;
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-primary:hover { background: var(--accent-d); }
.btn-soft { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: var(--line); }
.btn-soft:hover { border-color: var(--line-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink-2); font-weight: 600; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-t { font-weight: 800; }
.btn-s { font-size: .74rem; font-weight: 600; opacity: .82; letter-spacing: .01em; }
.btn-file { cursor: pointer; }

.fld { display: block; margin-bottom: .8rem; }
.fld-l, .grp-l {
  display: block;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: .35rem;
}
.grp-l2 { margin-top: .8rem; }
.fld input[type=text], .fld select, .tc input[type=text] {
  width: 100%;
  padding: .68rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.fld input[type=text]:focus, .tc input[type=text]:focus, .fld select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.fld-help { font-size: .82rem; color: var(--ink-3); margin-top: .4rem; }
.fld-help code { background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 0 .3em; border-radius: 4px; }
.fld-row { display: flex; gap: .9rem; align-items: flex-end; flex-wrap: wrap; }
.fld-row .fld { flex: 1 1 190px; margin-bottom: 0; }
.chk { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; padding-bottom: .7rem; }
.chk input { width: 17px; height: 17px; accent-color: var(--accent); }

.seg {
  display: inline-flex; gap: 3px; padding: 3px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: var(--r-m); margin-bottom: 1rem;
}
.seg-b {
  padding: .42rem .95rem; border-radius: 9px;
  font-size: .88rem; font-weight: 700; color: var(--ink-2);
  transition: background .2s var(--ease-out), color .2s;
}
.seg-b.is-on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }

.grp { margin-bottom: 1.15rem; }
.grp:last-child { margin-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: .87rem; font-weight: 650;
  transition: all .2s var(--ease-out);
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.colors { display: flex; align-items: flex-end; gap: .55rem; }
.col-pick { flex: 1 1 0; display: grid; gap: .35rem; cursor: pointer; }
.col-pick input[type=color] {
  width: 100%; height: 46px; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-m);
  background: none; cursor: pointer;
}
.col-pick input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.col-pick input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.col-t { font-size: .76rem; font-weight: 700; color: var(--ink-3); text-align: center; }
.swap {
  width: 34px; height: 46px; flex: none;
  border: 1px solid var(--line-2); border-radius: var(--r-m);
  color: var(--ink-2); font-size: 1.05rem;
  transition: all .2s var(--ease-out);
}
.swap:hover { border-color: var(--accent); color: var(--accent); }

.palettes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.pal {
  display: flex; width: 46px; height: 26px;
  border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden;
  transition: transform .18s var(--ease-out), border-color .2s;
}
.pal span { flex: 1; }
.pal:hover { transform: translateY(-2px); border-color: var(--ink-3); }

.emoji-row { display: flex; flex-wrap: wrap; gap: .3rem; }
.emo {
  width: 36px; height: 36px; display: grid; place-items: center;
  font-size: 1.08rem; line-height: 1;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper);
  transition: all .18s var(--ease-out);
}
.emo:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.emo.is-on { border-color: var(--accent); background: var(--accent-w); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
#emoji-label .emo[data-emoji=""] { font-size: .72rem; font-weight: 700; color: var(--ink-3); }

.center-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.center-actions .btn { padding: .5rem .85rem; font-size: .86rem; }
.center-state { font-size: .82rem; color: var(--ok); font-weight: 700; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.fmt {
  display: grid; gap: .1rem; justify-items: center;
  padding: .7rem .4rem .6rem;
  border: 1px solid var(--line-2); border-radius: var(--r-m);
  text-align: center;
  transition: all .2s var(--ease-out);
}
.fmt svg { width: 38px; height: 38px; }
.fmt .f-b { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.fmt .f-c { fill: var(--ink-2); }
.fmt .f-h { fill: var(--paper); }
.fmt-t { font-size: .8rem; font-weight: 750; line-height: 1.2; }
.fmt-s { font-size: .7rem; color: var(--ink-3); }
.fmt:hover { border-color: var(--ink-3); }
.fmt.is-on { border-color: var(--accent); background: var(--accent-w); }
.fmt.is-on .f-b { fill: color-mix(in srgb, var(--accent) 28%, transparent); }
.fmt.is-on .f-c { fill: var(--accent-d); }
.fmt.is-on .f-h { fill: var(--card); }

input[type=range] {
  width: 100%; height: 26px; accent-color: var(--accent); cursor: pointer;
}
#size-out { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ========================== 6b. La herramienta ========================= */
/* En móvil el alto por encima del pliegue es oro: la frase larga se guarda
   para pantallas grandes (sigue en el HTML, solo no se pinta en móvil). */
.hero { padding: 1.2rem 0 1rem; }
.hero-more { display: none; }
@media (min-width: 720px) {
  .hero { padding: 2rem 0 1rem; }
  .hero-more { display: inline; }
}
.noscript-note {
  margin: 1rem 0; padding: .8rem 1rem;
  background: var(--warn-bg); color: var(--warn);
  border-radius: var(--r-m); font-weight: 600;
}

.tool { display: grid; gap: .7rem; margin-top: 1rem; }

.tool-output { display: grid; gap: .85rem; align-content: start; }
.out-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 1rem;
  box-shadow: var(--sh-1);
}
.out-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.out-head h2 { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.out-tag {
  font-size: .74rem; font-weight: 700; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.qr-holder {
  display: grid; place-items: center;
  padding: .8rem;
  background: repeating-conic-gradient(color-mix(in srgb, var(--ink) 4%, transparent) 0% 25%, transparent 0% 50%) 50%/16px 16px;
  border-radius: var(--r-m);
}
#qr-preview { width: min(300px, 100%); }
#qr-preview canvas, #qr-preview svg { width: 100% !important; height: auto !important; border-radius: 6px; }
.qr-fail { padding: 2rem 1rem; text-align: center; color: var(--bad); font-weight: 600; }

.viewer {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  border-radius: var(--r-m);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 8%, color-mix(in srgb, var(--ink) 5%, transparent), transparent 62%),
    color-mix(in srgb, var(--ink) 3%, var(--paper));
  border: 1px solid var(--line);
  touch-action: none;
}
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer[data-state="nowebgl"] canvas { display: none; }
.viewer-status {
  position: absolute; inset: auto 8% 50% 8%; transform: translateY(50%);
  text-align: center; font-size: .88rem; color: var(--ink-3); font-weight: 600;
}
.viewer-status[data-kind="warn"] { color: var(--warn); }
.viewer[data-state="ready"] .viewer-status[hidden] { display: none; }
.viewer-reset {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  padding: .3rem .6rem; border-radius: 8px;
  font-size: .74rem; font-weight: 700;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid var(--line-2); color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.viewer-reset:hover { color: var(--accent); border-color: var(--accent); }
.viewer[data-state="idle"] .viewer-reset, .viewer[data-state="nowebgl"] .viewer-reset { display: none; }
.viewer-hint { font-size: .78rem; color: var(--ink-3); margin-top: .45rem; }

.specs {
  display: flex; flex-wrap: wrap; gap: .35rem;
  list-style: none; padding: 0; margin: .8rem 0 0;
}
.specs li {
  font-size: .76rem; font-weight: 650;
  padding: .22rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.specs li b { color: var(--ink); }

.warns { display: grid; gap: .4rem; margin-top: .7rem; }
.warn {
  font-size: .82rem; line-height: 1.45;
  padding: .5rem .7rem; border-radius: var(--r-s);
  border-left: 3px solid currentColor;
}
.warn-bad  { background: var(--bad-bg);  color: var(--bad); }
.warn-warn { background: var(--warn-bg); color: var(--warn); }
.warn-info { background: var(--info-bg); color: var(--info); }
.warn strong { font-weight: 800; }

.dl-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; margin-top: .85rem; }
.dl-row .btn { flex: 1 1 auto; }
.dl-main { display: grid; gap: .5rem; }
.dl-main .btn-primary { padding: .95rem 1.1rem; font-size: 1.02rem; }
.mini-sel select {
  height: 100%; padding: .4rem .5rem;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--paper); font-size: .84rem; font-weight: 650;
}

.privacy {
  font-size: .84rem; color: var(--ink-2);
  padding: .7rem .9rem;
  background: color-mix(in srgb, var(--ok) 8%, transparent);
  border-radius: var(--r-m);
}
.privacy strong { color: var(--ink); }

/* ============================ 7. Secciones ============================= */
.sec { padding: 3rem 0; }
.sec-alt { background: color-mix(in srgb, var(--ink) 3%, var(--paper)); border-block: 1px solid var(--line); }

.steps { list-style: none; padding: 0; display: grid; gap: 1.4rem; margin-top: 1.6rem; }
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; }
.step p { color: var(--ink-2); font-size: .95rem; }
.step-i {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-m); background: var(--accent-w); margin-bottom: .7rem;
}
.step-i svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-d); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.cards { display: grid; gap: .8rem; }
.uc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 1rem 1.1rem;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.uc:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.uc h3 { font-size: .98rem; font-weight: 750; margin-bottom: .3rem; }
.uc p { font-size: .89rem; color: var(--ink-2); }
.uc-link { display: flex; flex-direction: column; }
.uc-link p { flex: 1; }
.uc-go {
  display: inline-block; margin-top: .6rem;
  font-size: .84rem; font-weight: 750; color: var(--accent);
}
.uc-link:hover { border-color: var(--accent); }

.prose { max-width: 74ch; }
.prose h3 { font-size: 1.12rem; font-weight: 800; margin: 1.8rem 0 .5rem; }
.prose p { margin-bottom: .9rem; color: var(--ink-2); }
.prose p strong { color: var(--ink); font-weight: 750; }

/* Tablas de la guía de impresión: desbordan en su propio contenedor, nunca
   hacen que la página entera se mueva en horizontal. */
.prose .tbl {
  display: block; overflow-x: auto;
  width: 100%; margin: 1rem 0 1.4rem;
  border-collapse: collapse; font-size: .88rem;
  white-space: nowrap;
}
.prose .tbl th, .prose .tbl td {
  border: 1px solid var(--line);
  padding: .55rem .7rem; text-align: left; vertical-align: top;
}
.prose .tbl th { background: color-mix(in srgb, var(--ink) 5%, transparent); font-weight: 750; }
.prose .tbl td { color: var(--ink-2); }
@media (min-width: 720px) { .prose .tbl { white-space: normal; display: table; } }

.prose ol, .prose ul { margin: 0 0 1rem 1.2rem; color: var(--ink-2); }
.prose li { margin-bottom: .35rem; }
.prose code { background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .1em .35em; border-radius: 4px; font-size: .92em; }

.faq {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-m); margin-bottom: .5rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: .9rem 2.4rem .9rem 1.05rem;
  font-weight: 750; font-size: .96rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq p { padding: 0 1.05rem 1rem; color: var(--ink-2); font-size: .92rem; }

/* =========================== 8. Publicidad ============================= */
/* Solo huecos marcados. El código de AdSense lo pega el propietario. */
.ad {
  position: relative;
  display: grid; place-items: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-m);
  background: color-mix(in srgb, var(--ink) 2.5%, transparent);
  color: var(--ink-3);
}
.ad-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .22em;
}
.ad-leader { min-height: 96px; margin: 1.6rem 0 .4rem; }
.ad-incontent { min-height: 250px; margin: .5rem 0 2rem; }

.ad-modal {
  border: 0; padding: 0; background: none;
  max-width: min(380px, calc(100vw - 32px));
  border-radius: var(--r-xl);
}
.ad-modal::backdrop { background: rgba(12,13,16,.55); backdrop-filter: blur(3px); }
.ad-modal-in {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.1rem;
  box-shadow: var(--sh-2);
}
.ad-modal-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.ad-modal-t { font-weight: 800; font-size: .98rem; }
.ad-modal-x {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  font-size: 1.35rem; line-height: 1; color: var(--ink-3);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.ad-modal-x:hover { color: var(--ink); }
.ad-modal-slot { min-height: 250px; }
.ad-modal-close { width: 100%; margin-top: .8rem; }

/* Abajo a la IZQUIERDA a propósito: la columna de descargas va a la derecha y
   el aviso no debe taparle el botón de descargar. */
.ad-toast {
  position: fixed; left: 14px; bottom: 14px; z-index: 60;
  width: min(300px, calc(100vw - 28px));
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: .55rem;
  box-shadow: var(--sh-2);
  animation: toast-in .45s var(--ease-out) both;
}
.ad-toast[hidden] { display: none; }
.ad-toast-x {
  position: absolute; top: -9px; right: -9px; z-index: 1;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: 1.05rem; line-height: 1;
  box-shadow: var(--sh-1);
}
.ad-toast-slot { min-height: 96px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================ 9. Responsive ============================ */
@media (min-width: 540px) {
  .dl-main { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .head-nav { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .foot-in { grid-template-columns: 1fr auto; align-items: center; }
  .foot-c { grid-column: 1 / -1; }
  .ad-leader { min-height: 110px; }
}

@media (min-width: 960px) {
  .wrap { padding-inline: 28px; }
  .hero { padding: 2.8rem 0 1rem; }
  .tool {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    grid-template-areas:
      "content output"
      "design  output"
      "obj     output";
    align-items: start;
    gap: .9rem;
  }
  .tc-content { grid-area: content; }
  .tc-design  { grid-area: design; }
  .tc-3d      { grid-area: obj; }
  .tool-output { grid-area: output; position: sticky; top: 76px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  #qr-preview { width: min(340px, 100%); }
}

@media (min-width: 1280px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* ====================== 10. Movimiento reducido ======================== */
/* Solo se apaga lo intrusivo; las transiciones de estado siguen dando
   la sensación de que la interfaz responde. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ad-toast { animation: none; }
}
