/* =============================================================
   QR3D — hoja de estilo única
   1 Tokens · 2 Reset · 3 Utilidades · 4 Tipografía · 5 Componentes
   6 Secciones · 7 Publicidad · 8 Efectos · 9 Responsive · 10 Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f6f3;
  --surface:   #ffffff;
  --surface-2: #f1f1ed;
  --ink:       #17171c;
  --ink-soft:  #52525e;
  --ink-mute:  #7c7c8a;
  --line:      #e2e2dc;
  --line-strong:#cfcfc7;

  --accent:      #1f6feb;
  --accent-deep: #1550b3;
  --accent-soft: #e8f0fe;
  --warn:        #b45309;
  --warn-soft:   #fff5e6;
  --bad:         #c02626;
  --bad-soft:    #fdeded;
  --good:        #1a7f45;

  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(20,20,30,.05), 0 1px 3px rgba(20,20,30,.04);
  --shadow-md: 0 4px 12px rgba(20,20,30,.06), 0 12px 32px rgba(20,20,30,.06);
  --shadow-lg: 0 8px 24px rgba(20,20,30,.10), 0 32px 64px rgba(20,20,30,.10);

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

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #121216;
    --surface:   #1a1a20;
    --surface-2: #22222a;
    --ink:       #f2f2f0;
    --ink-soft:  #b6b6c2;
    --ink-mute:  #8b8b98;
    --line:      #2e2e38;
    --line-strong:#3d3d49;
    --accent:      #6ea8ff;
    --accent-deep: #94c0ff;
    --accent-soft: #1b2740;
    --warn:        #f0b45f;
    --warn-soft:   #33270f;
    --bad:         #ff8080;
    --bad-soft:    #3a1c1c;
    --good:        #6fd39b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 14px rgba(0,0,0,.45);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.55);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { 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.12; letter-spacing: -0.022em; font-weight: 800; }
::selection { background: var(--accent); color: #fff; }

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

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; }
.soft { font-style: normal; font-weight: 500; color: var(--ink-mute); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sep { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }

/* =============================================================
   4. Tipografía de secciones
   ============================================================= */
h1 { font-size: clamp(1.85rem, 5.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.05rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); }

.hero-sub {
  margin-top: .7rem;
  font-size: .94rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
}
@media (min-width: 720px) { .hero-sub { margin-top: .9rem; font-size: 1.09rem; line-height: 1.6; } }

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

/* --- cabecera --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 24px; height: 24px; color: var(--accent); }
.brand-name { font-size: 1.15rem; }
.header-nav { display: none; gap: 1.5rem; font-size: .93rem; font-weight: 500; color: var(--ink-soft); }
.header-nav a { transition: color .2s var(--ease-out); }
.header-nav a:hover { color: var(--accent); }

/* --- botones --- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; text-align: center;
  padding: .8rem 1.1rem; border-radius: var(--r-md);
  font-weight: 700; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), background-color .18s var(--ease-out),
              border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--accent); color: #fff; width: 100%;
  padding-block: .95rem; box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-deep); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0c1526; } }
.btn-main { font-size: 1.02rem; }
.btn-sub { font-size: .76rem; font-weight: 500; opacity: .82; }

.btn-ghost {
  background: var(--surface); border-color: var(--line-strong); color: var(--ink);
  flex: 1 1 0; box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-quiet {
  background: transparent; border-color: var(--line-strong); color: var(--ink-soft);
  width: 100%; font-weight: 600; font-size: .88rem; padding-block: .7rem;
}
.btn-quiet:hover { border-color: var(--ink-mute); color: var(--ink); }

.mini-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .42rem .7rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  transition: border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.as-label { cursor: pointer; }

/* --- campos --- */
.field { margin-bottom: 1.15rem; }
.field-label {
  display: block; font-size: .82rem; font-weight: 700;
  letter-spacing: .01em; color: var(--ink); margin-bottom: .42rem;
}
.hint { font-size: .79rem; color: var(--ink-mute); margin-top: .4rem; line-height: 1.45; }
.hint code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .95em; }

input[type="url"], input[type="text"], select, textarea {
  width: 100%; padding: .7rem .8rem;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); font-size: .95rem;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
input[type="url"]:focus, input[type="text"]:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea { resize: vertical; min-height: 4.5rem; }
.field [data-panel] + .field-label { margin-top: .8rem; }
[data-panel="wifi"] .field-label:not(:first-child) { margin-top: .8rem; }

/* --- segmented / chips / formatos --- */
.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px; border-radius: var(--r-md);
}
.seg {
  padding: .52rem .3rem; border-radius: calc(var(--r-md) - 5px);
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
}
.seg:hover { color: var(--ink); }
.seg.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  transition: all .18s var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .chip.is-on { color: #0c1526; } }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.fmt {
  display: flex; flex-direction: column; align-items: center; gap: .18rem;
  padding: .7rem .4rem; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface);
  text-align: center; color: var(--ink-soft);
  transition: all .2s var(--ease-out);
}
.fmt svg { width: 34px; height: 29px; margin-bottom: .12rem; }
.fmt strong { font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.fmt em { font-style: normal; font-size: .7rem; color: var(--ink-mute); }
.fmt:hover { border-color: var(--accent); }
.fmt.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.fmt.is-on strong { color: var(--accent); }

/* --- colores --- */
.colors { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.color-pick {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  padding: .35rem .6rem .35rem .35rem; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color .18s var(--ease-out);
}
.color-pick:hover { border-color: var(--accent); }
.color-pick input[type="color"] {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--r-sm);
  background: none; cursor: pointer;
}
.color-pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.color-pick input[type="color"]::-moz-color-swatch { border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.color-pick span { display: flex; flex-direction: column; line-height: 1.2; }
.color-pick strong { font-size: .8rem; font-weight: 700; }
.color-pick em { font-style: normal; font-size: .69rem; color: var(--ink-mute); }

/* --- emojis y logo --- */
.emoji-row { display: flex; flex-wrap: wrap; gap: .28rem; }
.emoji-btn {
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  font-size: 1.05rem; line-height: 1; border-radius: var(--r-sm);
  border: 1px solid transparent; background: var(--surface-2);
  transition: all .16s var(--ease-out);
}
.emoji-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.emoji-btn.is-on { border-color: var(--accent); background: var(--accent-soft); }
.center-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .55rem; }
.center-state { font-size: .78rem; color: var(--ink-mute); }

/* --- sliders --- */
.sliders { display: grid; gap: .9rem; }
.slider { display: block; }
.slider .field-label { display: flex; justify-content: space-between; align-items: baseline; }
.slider output { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; background: var(--line-strong); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--surface);
}

/* =============================================================
   6. Secciones
   ============================================================= */
.hero { padding: clamp(1.1rem, 4vw, 3rem) 0 1.5rem; }

.tool-card {
  margin-top: clamp(.9rem, 3vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tool-grid { display: grid; grid-template-columns: 1fr; }
.panel { padding: clamp(1.1rem, 3vw, 1.7rem); }
/* En móvil las columnas desaparecen y mandan los cuatro bloques por separado:
   pegar el enlace -> ver el código -> diseñarlo -> descargar la pieza 3D. */
.col { display: contents; }
.panel-contenido { order: 1; }
.panel-preview   { order: 2; background: var(--surface-2); border-block: 1px solid var(--line); }
.panel-diseno    { order: 3; }
.panel-3d        { order: 4; background: var(--surface-2); border-top: 1px solid var(--line); }
.panel-title { font-size: 1.02rem; font-weight: 800; margin-bottom: .9rem; }

/* --- vista 2D --- */
.preview-2d {
  display: grid; place-items: center;
  padding: 1rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: .8rem;
}
.qr-holder { width: 100%; max-width: 224px; aspect-ratio: 1; display: grid; place-items: center; }
.qr-holder canvas, .qr-holder svg { width: 100% !important; height: auto !important; border-radius: 6px; }
.nojs { font-size: .85rem; color: var(--bad); text-align: center; }

.dl-row { display: flex; gap: .5rem; }

/* --- visor 3D --- */
.viewer-block { margin-top: .3rem; }
.viewer {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(170deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  touch-action: none; cursor: grab;
}
.viewer.is-grabbing { cursor: grabbing; }
.viewer canvas { width: 100%; height: 100%; display: block; }
.viewer-msg {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 1.5rem; text-align: center;
  font-size: .87rem; font-weight: 600; color: var(--ink-mute);
  background: var(--surface-2);
}
.viewer-msg[hidden] { display: none; }
.viewer-hint {
  position: absolute; left: .6rem; bottom: .55rem;
  font-size: .7rem; font-weight: 600; color: var(--ink-mute);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  padding: .18rem .45rem; border-radius: 999px; pointer-events: none;
}

/* --- specs --- */
.specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem;
  margin: .6rem 0 .5rem;
}
.specs div {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .5rem .55rem; text-align: center;
}
.specs dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); }
.specs dd { font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .1rem; }
.specs dd.is-bad { color: var(--bad); }
.specs dd.is-warn { color: var(--warn); }
.specs dd.is-good { color: var(--good); }

/* --- avisos --- */
.warnings { display: grid; gap: .35rem; margin-bottom: .8rem; }
.warnings:empty { margin-bottom: 0; }
.warn-item {
  display: flex; gap: .45rem; align-items: flex-start;
  font-size: .79rem; line-height: 1.45; font-weight: 500;
  padding: .5rem .6rem; border-radius: var(--r-sm);
  border: 1px solid transparent;
}
.warn-item b { font-weight: 700; }
.warn-item.lvl-bad  { background: var(--bad-soft);  color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.warn-item.lvl-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.warn-item.lvl-ok   { background: transparent; color: var(--ink-mute); padding-block: .2rem; }

.dl-main { display: grid; gap: .45rem; }
.privacy {
  margin-top: .85rem; font-size: .79rem; line-height: 1.5;
  color: var(--ink-mute); text-align: center;
}
.limits {
  margin-top: .9rem; font-size: .79rem; color: var(--ink-mute);
  text-align: center; max-width: 66ch; margin-inline: auto;
}

/* --- secciones de contenido --- */
.section { padding: clamp(2.2rem, 6vw, 4rem) 0; }
.section-sub { margin-top: .6rem; color: var(--ink-soft); max-width: 60ch; }
.section h2 + .steps, .section h2 + .cards { margin-top: 1.6rem; }
.section-prose { background: var(--surface); border-block: 1px solid var(--line); }
.section-legal { border-top: 1px solid var(--line); }

.steps { list-style: none; display: grid; gap: 1rem; margin-top: 1.6rem; padding: 0; }
.steps li {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.3rem 1.2rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.step-n {
  position: absolute; top: -.7rem; left: 1.2rem;
  width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .82rem; font-weight: 800;
}
@media (prefers-color-scheme: dark) { .step-n { color: #0c1526; } }
.step-i { width: 26px; height: 26px; color: var(--accent); margin-bottom: .55rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { font-size: .9rem; color: var(--ink-soft); }

.prose h2 { margin-bottom: .8rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .5rem; }
.prose p { margin-bottom: .85rem; color: var(--ink-soft); max-width: 72ch; }
.prose strong { color: var(--ink); }

.cards { display: grid; gap: .8rem; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-emoji { font-size: 1.5rem; line-height: 1; display: block; margin-bottom: .5rem; }
.card h3 { margin-bottom: .35rem; }
.card p { font-size: .88rem; color: var(--ink-soft); }

.faq {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); margin-bottom: .55rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: .9rem 2.4rem .9rem 1rem;
  font-weight: 700; font-size: .95rem; 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(--ink-mute);
  transition: transform .25s var(--ease-out);
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 1rem 1rem; font-size: .89rem; color: var(--ink-soft); }
.faq p + p { padding-top: .5rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.6rem; background: var(--surface); }
.footer-inner { display: grid; gap: .6rem; text-align: center; }
.footer-brand { font-weight: 700; font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; font-size: .85rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-credits { font-size: .76rem; color: var(--ink-mute); }
.footer-credits a { text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   7. Publicidad (solo huecos reservados — sin scripts de terceros)
   ============================================================= */
.ad-slot {
  position: relative; display: grid; place-items: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  background: repeating-linear-gradient(45deg,
      transparent 0 10px,
      color-mix(in srgb, var(--line) 45%, transparent) 10px 11px);
  color: var(--ink-mute);
}
.ad-tag {
  font-size: .66rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
  background: var(--surface); padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid var(--line);
}
.ad-leaderboard { min-height: 100px; margin: .5rem 0 1.5rem; }
.ad-incontent   { min-height: 250px; margin: 0 0 1.5rem; }
.ad-corner      { min-height: 100px; width: 100%; }
.ad-interstitial{ min-height: 250px; width: 100%; margin: .8rem 0 1rem; }

/* aviso pequeño en la esquina */
.ad-toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: min(300px, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: .8rem .8rem .7rem;
  animation: toast-in .45s var(--ease-out) both;
}
.ad-toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ad-toast-close {
  position: absolute; top: -.55rem; right: -.55rem;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--bg);
  font-size: 1rem; line-height: 1; box-shadow: var(--shadow-sm);
}

/* pop-up al descargar */
.ad-modal {
  border: 0; padding: 0; background: transparent;
  max-width: min(400px, calc(100vw - 2rem));
  color: var(--ink);
}
.ad-modal::backdrop { background: rgba(10,10,16,.55); backdrop-filter: blur(2px); }
.ad-modal-inner {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 1.4rem 1.2rem 1.2rem; box-shadow: var(--shadow-lg);
}
.ad-modal-close {
  position: absolute; top: .5rem; right: .6rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--ink-mute);
}
.ad-modal-close:hover { background: var(--surface-2); color: var(--ink); }
.ad-modal-title { font-weight: 700; font-size: .98rem; text-align: center; }

/* =============================================================
   8. Efectos
   ============================================================= */
.is-flash { animation: flash .5s var(--ease-out); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .dl-row { gap: .6rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; text-align: left; align-items: center; }
  .footer-credits { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
  .header-nav { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .qr-holder { max-width: 290px; }
}

@media (min-width: 960px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .col { display: block; }
  .col-b { border-left: 1px solid var(--line); background: var(--surface-2); }
  .panel-preview { border-top: 0; border-bottom: 1px solid var(--line); }
  .panel-contenido { padding-bottom: 0; }
  .panel-diseno { padding-top: .4rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .ad-leaderboard { min-height: 120px; }
}

@media (min-width: 1280px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* =============================================================
   10. Reduced-motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ad-toast { animation: none; }
  .is-flash { animation: none; }
}

/* --- páginas legales independientes --- */
.legal-doc h1 { margin-bottom: .4rem; }
.legal-doc .actualizado { font-size: .82rem; color: var(--ink-mute); margin-bottom: 1.6rem; }
.legal-doc p { margin-bottom: .95rem; color: var(--ink-soft); }
.legal-doc strong { color: var(--ink); }
.legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.volver { font-size: .87rem; font-weight: 600; margin-bottom: 1.2rem; }
.volver a { color: var(--ink-mute); text-decoration: none; }
.volver a:hover { color: var(--accent); }
.otra-pagina {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .9rem;
}
.legal-lista { margin-top: .9rem; padding-left: 1.1rem; display: grid; gap: .5rem; }
.legal-lista li { color: var(--ink-soft); font-size: .93rem; }
.legal-lista a { color: var(--accent); font-weight: 700; }
