/* =============================================================
   QRelieve · estilos
   1 Tokens · 2 Base · 3 Utilidades · 4 Componentes · 5 Herramienta
   6 Secciones · 7 Publicidad · 8 Responsive · 9 Movimiento reducido
   ============================================================= */

/* 1. Tokens */
:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #FAF9F6;
  --ink: #16161D;
  --ink-2: #3A3A45;
  --muted: #62626F;
  --line: #E4E1DA;
  --line-2: #D3CFC6;
  --accent: #F2541B;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFF0E8;
  --accent-deep: #C23E0E;
  --ok: #157F3C;
  --ok-soft: #EAF6EE;
  --warn: #8A5300;
  --warn-soft: #FFF5E0;
  --bad: #B3261E;
  --bad-soft: #FDECEA;
  --info: #2D4B8E;
  --info-soft: #EEF2FB;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(22, 22, 29, .05), 0 8px 28px rgba(22, 22, 29, .06);
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --c-base: #FFFFFF;
  --c-code: #16161D;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 3. Utilidades */
.container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* 4. Componentes */
.site-header { background: rgba(246, 245, 241, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: none; gap: 22px; font-size: .94rem; font-weight: 500; color: var(--ink-2); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent-deep); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: background .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out), opacity .2s; text-align: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(242, 84, 27, .28); }
.btn-primary:hover:not(:disabled) { background: var(--accent-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #000; }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-xl { width: 100%; min-height: 56px; font-size: 1.06rem; border-radius: 14px; }
.btn.is-working { cursor: progress; }
.btn-link { color: var(--ink-2); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.btn-link:hover:not(:disabled) { color: var(--accent-deep); }
.btn-link:disabled { opacity: .45; cursor: not-allowed; }
.btn-mini { padding: 0 12px; font-size: .85rem; font-weight: 600; color: var(--ink-2); border-left: 1px solid var(--line); }

.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--surface); transition: border-color .2s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-xl { min-height: 54px; font-size: 1.05rem; padding: 12px 14px; }
.input-sm { min-height: 40px; padding: 6px 10px; font-size: .9rem; width: auto; }
.input-group { display: flex; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group .input { border: 0; box-shadow: none; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2362626F' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 34px; }
.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(22, 22, 29, .15); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 5. Herramienta */
.hero { padding: 22px 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 6.4vw, 3.4rem); font-weight: 800; }
.hero-sub { margin-top: 8px; color: var(--ink-2); font-size: clamp(.98rem, 2.4vw, 1.12rem); max-width: 62ch; }

.tool { padding-bottom: 8px; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; position: relative; }
.noscript, .broken-msg { padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 500; margin-bottom: 16px; }
.broken-msg { display: none; }
.tool-card[data-state="broken"] .broken-msg { display: block; }

.step-block { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.step-2d { grid-template-areas: "content" "preview" "design"; }
.step-3d { grid-template-areas: "format" "viewer" "opts"; margin-top: 30px; padding-top: 28px; border-top: 1px dashed var(--line-2); }
.area-content { grid-area: content; }
.area-preview { grid-area: preview; }
.area-design { grid-area: design; display: grid; gap: 22px; }
.area-format { grid-area: format; }
.area-viewer { grid-area: viewer; }
.area-opts { grid-area: opts; display: grid; gap: 20px; }

.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.22rem; font-weight: 800; margin-bottom: 14px; }
.area-design > .step-title { margin-bottom: -6px; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .95rem; flex: none; font-family: var(--sans); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: .9rem; font-weight: 500; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fields { display: block; }
.row-2 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.row-2 + .row-2 { margin-top: 12px; }
.row-tight { align-items: end; }

.preview-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.qr-frame { position: relative; width: min(100%, 300px); margin-inline: auto; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 26px rgba(22, 22, 29, .08); }
.qr-preview, .qr-preview canvas { width: 100% !important; height: 100% !important; }
.qr-demo { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(22, 22, 29, .82); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.qr-error { color: var(--bad); font-size: .88rem; font-weight: 500; margin-top: 10px; text-align: center; }
.qr-error:empty { display: none; }
.tool-card[data-state="error"] .qr-frame { opacity: .35; }
.dl-row { display: flex; gap: 8px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.dl-row .btn-dark { flex: 1 1 auto; max-width: 220px; }
.dl-hint { text-align: center; }

.group { display: block; }
.style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.style-opt input, .format-opt input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.style-card { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: .8rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; background: var(--surface); }
.style-card svg { width: 30px; height: 30px; fill: var(--ink); }
.style-opt input:checked + .style-card { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.style-opt input:focus-visible + .style-card, .format-opt input:focus-visible + .format-card, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.palettes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pal { display: inline-flex; width: 52px; height: 34px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line-2); padding: 0; transition: transform .15s var(--ease-out); }
.pal i { flex: 1; }
.pal:hover { transform: translateY(-1px); }
.pal[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 3.5px var(--accent); }
.color-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-field { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: .88rem; font-weight: 500; cursor: pointer; min-height: 48px; background: var(--surface); }
.color-field input { width: 36px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.color-field input::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input::-webkit-color-swatch { border: 1px solid var(--line-2); border-radius: 8px; }
.color-field input::-moz-color-swatch { border: 1px solid var(--line-2); border-radius: 8px; }

.emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.emo { display: grid; place-items: center; aspect-ratio: 1; min-height: 40px; font-size: 1.3rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .15s, background .15s, transform .15s var(--ease-out); font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.emo:hover { border-color: var(--ink); transform: translateY(-1px); }
.emo[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.center-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.input-emoji .input { width: 130px; }
.btn-file { position: relative; overflow: hidden; cursor: pointer; min-height: 40px; padding: 8px 14px; }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.emoji-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.emoji-row .hint { margin: 0 4px 0 0; }
.emo-sm { width: 38px; min-height: 38px; font-size: 1.1rem; }

.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.format-card { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 12px 6px 10px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; height: 100%; transition: border-color .2s, background .2s; background: var(--surface); }
.format-card svg { width: 58px; height: 40px; margin-bottom: 6px; color: var(--ink); }
.format-card b { font-size: .9rem; line-height: 1.2; }
.format-card small { display: none; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.format-opt input:checked + .format-card { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

.viewer { position: relative; aspect-ratio: 4 / 3.3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 15%, #FFFFFF 0%, #EEECE7 60%, #E2DFD8 100%); touch-action: none; }
.viewer-stage { position: absolute; inset: 0; }
.viewer-stage canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.viewer-stage canvas:active { cursor: grabbing; }
.viewer-msg { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: .92rem; gap: 10px; }
.viewer[data-view="idle"] .viewer-msg-idle,
.viewer[data-view="loading"] .viewer-msg-loading,
.viewer[data-view="no-webgl"] .viewer-msg-nowebgl,
.viewer[data-view="error"] .viewer-msg-error { display: grid; }
.viewer-msg-loading { display: none; grid-auto-flow: column; }
.viewer[data-view="loading"] .viewer-msg-loading { display: flex; justify-content: center; align-items: center; }
.viewer-busy { position: absolute; top: 12px; right: 12px; opacity: 0; transition: opacity .2s; background: rgba(255, 255, 255, .9); border-radius: 50%; padding: 6px; display: grid; }
.viewer.is-busy .viewer-busy { opacity: 1; }
.viewer-tip { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: .74rem; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 3px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; display: none; }
.viewer[data-view="ready"] .viewer-tip { display: block; }
.viewer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 10px; font-size: .84rem; color: var(--ink-2); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); display: inline-block; }
.legend i:nth-of-type(2) { margin-left: 8px; }
.dims { font-variant-numeric: tabular-nums; font-weight: 600; }
.dl-3d { display: grid; justify-items: center; gap: 6px; margin-top: 14px; }

.range-head { display: flex; justify-content: space-between; align-items: baseline; }
.range-head output { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.range { width: 100%; accent-color: var(--accent); height: 32px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.seg label { display: block; }
.seg label + label span { border-left: 1px solid var(--line); }
.seg span { display: grid; place-items: center; min-height: 46px; padding: 4px; font-size: .86rem; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.15; background: var(--surface); transition: background .2s; }
.seg small { font-size: .66rem; font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:checked + span small { color: rgba(255, 255, 255, .75); }

.warnings { list-style: none; padding: 0; display: grid; gap: 6px; }
.warn { font-size: .85rem; line-height: 1.45; padding: 8px 10px 8px 34px; border-radius: 10px; position: relative; }
.warn::before { position: absolute; left: 10px; top: 8px; font-weight: 800; width: 16px; text-align: center; }
.warn-ok { background: var(--ok-soft); color: var(--ok); }
.warn-ok::before { content: "✓"; }
.warn-warn { background: var(--warn-soft); color: var(--warn); }
.warn-warn::before { content: "!"; }
.warn-bad { background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.warn-bad::before { content: "✕"; }
.warn-info { background: var(--info-soft); color: var(--info); }
.warn-info::before { content: "i"; font-style: italic; font-family: Georgia, serif; }

.flash { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .9rem; z-index: 80; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

.privacy { display: flex; gap: 8px; align-items: flex-start; justify-content: center; font-size: .86rem; color: var(--ink-2); margin: 14px auto 0; max-width: 760px; text-align: center; }
.privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok); }

/* 6. Secciones */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 800; }
.section-lead { color: var(--ink-2); margin-top: 8px; max-width: 64ch; }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 28px; counter-reset: none; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-card h3 { font-size: 1.15rem; margin: 12px 0 6px; }
.step-card p { color: var(--ink-2); font-size: .95rem; }
.step-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); }
.step-ico svg { width: 24px; height: 24px; }
.ideas { display: grid; gap: 14px; margin-top: 28px; }
.idea { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.idea-emoji { font-size: 1.8rem; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.idea h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.idea p { color: var(--ink-2); font-size: .95rem; }
.prose { max-width: 820px; }
.prose h3 { font-size: 1.18rem; margin: 26px 0 8px; }
.prose p { color: var(--ink-2); margin-top: 10px; }
.prose ul { margin-top: 10px; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 6px; }
.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }
.site-footer { padding: 30px 0 90px; font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 10px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* 7. Publicidad (solo marcadores) */
.ad-slot { display: grid; place-content: center; justify-items: center; gap: 2px; border: 2px dashed #C9C4B8; border-radius: 12px; background: repeating-linear-gradient(-45deg, #F1EFEA 0 12px, #ECE9E2 12px 24px); color: #8C8676; text-align: center; }
.ad-label { font-weight: 800; letter-spacing: .18em; font-size: .9rem; }
.ad-size { font-size: .74rem; }
.ad-leaderboard { min-height: 100px; margin: 22px auto 0; max-width: 728px; }
.ad-incontent { min-height: 280px; max-width: 336px; margin: 40px auto; }
.ad-dialog { margin: auto; border: 0; border-radius: 18px; padding: 22px 20px 20px; width: min(360px, calc(100% - 24px)); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); text-align: center; color: var(--ink); }
.ad-dialog::backdrop { background: rgba(22, 22, 29, .55); }
.ad-dialog[open] { display: grid; gap: 12px; justify-items: center; }
.ad-dialog-title { font-weight: 700; font-size: 1.05rem; padding: 0 24px; }
.ad-dialog-file { font-size: .82rem; color: var(--muted); margin-top: -6px; word-break: break-all; }
.ad-dialog-file:empty { display: none; }
.ad-modal { width: 300px; max-width: 100%; height: 250px; }
.ad-dialog .btn { width: 100%; }
.ad-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; color: var(--ink-2); background: var(--bg); z-index: 1; }
.ad-close:hover { background: var(--line); }
.ad-toast { position: fixed; right: 12px; bottom: 12px; z-index: 70; background: var(--surface); border-radius: 14px; padding: 10px; box-shadow: 0 12px 36px rgba(0, 0, 0, .18); width: min(320px, calc(100% - 24px)); transform: translateY(16px); opacity: 0; transition: transform .35s var(--ease-out), opacity .35s var(--ease-out); }
.ad-toast.is-in { transform: none; opacity: 1; }
.ad-toast .ad-close { top: -12px; right: -10px; width: 30px; height: 30px; font-size: 1.2rem; background: var(--ink); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.ad-mini { height: 100px; }

/* 8. Responsive */
@media (min-width: 540px) {
  .container { width: min(100% - 48px, 1180px); }
  .tool-card { padding: 24px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .format-card small { display: block; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 720px) {
  .site-nav { display: flex; }
  .hero { padding: 34px 0 20px; }
}
@media (min-width: 960px) {
  .tool-card { padding: 30px; }
  .step-block { column-gap: 34px; row-gap: 26px; }
  .step-2d { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "content preview" "design preview"; align-items: start; }
  .step-3d { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "format viewer" "opts viewer"; align-items: start; }
  .area-preview { position: sticky; top: 76px; }
  .area-viewer { position: sticky; top: 76px; }
  .qr-frame { width: 100%; }
  .ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: 72px 0; }
}
@media (min-width: 1280px) {
  .step-2d { grid-template-columns: minmax(0, 1fr) 400px; }
}

/* 9. Movimiento reducido: solo lo intrusivo */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ad-toast { transition: none; }
}
