/* =============================================================
   Forja QR — hoja de estilos única
   1 tokens · 2 reset · 3 utilidades · 4 tipografía · 5 componentes
   6 herramienta · 7 secciones · 8 anuncios · 9 responsive
   ============================================================= */

/* ---------- 1. Tokens (paleta completa en :root = tema claro) ---------- */
:root {
  --paper:      #F2F4F1;
  --paper-2:    #E9EDE8;
  --surface:    #FFFFFF;
  --surface-2:  #F7F9F6;
  --ink:        #14191B;
  --ink-2:      #38464A;
  --muted:      #5F6F70;
  --line:       #D9E0D9;
  --line-2:     #C4CFC4;
  --accent:     #EA4E20;
  --accent-ink: #B23413;
  --accent-soft:#FCEAE2;
  --ok:         #1E7A5A;
  --warn:       #9A6100;
  --bad:        #B3261E;
  --warn-bg:    #FDF4E3;
  --bad-bg:     #FCEDEC;
  --ok-bg:      #E8F5EF;

  --shadow-s: 0 1px 2px rgba(20,25,27,.05), 0 2px 6px rgba(20,25,27,.05);
  --shadow-m: 0 2px 6px rgba(20,25,27,.06), 0 14px 34px rgba(20,25,27,.09);
  --shadow-l: 0 18px 60px rgba(20,25,27,.16);

  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-s: 8px;  --r-m: 14px;  --r-l: 20px;  --r-xl: 26px;
  --gut: clamp(1rem, 4vw, 2.25rem);
  --maxw: 1220px;
  --ease-out: cubic-bezier(.16,1,.3,1);

  --plate-a: #E4E9E3;
  --plate-b: #D5DDD4;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0E1214;
    --paper-2:    #131A1C;
    --surface:    #171F21;
    --surface-2:  #1D2629;
    --ink:        #E9EFEB;
    --ink-2:      #BDC9C7;
    --muted:      #8FA09F;
    --line:       #273235;
    --line-2:     #354346;
    --accent:     #FF6438;
    --accent-ink: #FF8A63;
    --accent-soft:#331409;
    --ok:         #56C79E;
    --warn:       #E0A33A;
    --bad:        #FF7A6E;
    --warn-bg:    #2C2211;
    --bad-bg:     #2E1614;
    --ok-bg:      #10261F;
    --shadow-s: 0 1px 2px rgba(0,0,0,.4);
    --shadow-m: 0 2px 6px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.44);
    --shadow-l: 0 18px 60px rgba(0,0,0,.6);
    --plate-a: #1B2426;
    --plate-b: #141C1E;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:      #0E1214;
  --paper-2:    #131A1C;
  --surface:    #171F21;
  --surface-2:  #1D2629;
  --ink:        #E9EFEB;
  --ink-2:      #BDC9C7;
  --muted:      #8FA09F;
  --line:       #273235;
  --line-2:     #354346;
  --accent:     #FF6438;
  --accent-ink: #FF8A63;
  --accent-soft:#331409;
  --ok:         #56C79E;
  --warn:       #E0A33A;
  --bad:        #FF7A6E;
  --warn-bg:    #2C2211;
  --bad-bg:     #2E1614;
  --ok-bg:      #10261F;
  --shadow-s: 0 1px 2px rgba(0,0,0,.4);
  --shadow-m: 0 2px 6px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.44);
  --shadow-l: 0 18px 60px rgba(0,0,0,.6);
  --plate-a: #1B2426;
  --plate-b: #141C1E;
  color-scheme: dark;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.06; letter-spacing: -.025em; font-weight: 800; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:where(dialog)::backdrop { background: rgba(10,14,15,.55); backdrop-filter: blur(3px); }

/* ---------- 3. Utilidades ---------- */
.wrap { width: min(100% - (var(--gut) * 2), var(--maxw)); margin-inline: auto; }
.wrap-read { width: min(100% - (var(--gut) * 2), 720px); }
.is-hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip-link:focus { top: 1rem; }

/* ---------- 4. Cabecera ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark > rect:first-child { fill: var(--ink); }
.bm-dots rect { fill: var(--accent); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em; }
.brand-qr { color: var(--accent); }
.head-nav { display: flex; gap: 1.4rem; font-size: .92rem; color: var(--muted); }
.head-nav a { text-decoration: none; transition: color .2s var(--ease-out); }
.head-nav a:hover { color: var(--accent); }

/* ---------- 5. Hero ---------- */
.hero { padding: clamp(1.75rem, 5vw, 3.25rem) 0 1.5rem; }
.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .7rem;
}
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); max-width: 17ch; }
.lede { margin-top: .85rem; max-width: 62ch; font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }

/* ---------- 6. La herramienta ---------- */
/* La herramienta son cinco tarjetas. En movil van en el orden en que se usan
   (pega el enlace -> ves el codigo -> lo decoras -> eliges el objeto -> lo giras);
   en escritorio se reparten en dos columnas sin tocar el orden del HTML. */
.tool {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: 14px;
}
/* En movil las dos columnas desaparecen y las cinco tarjetas se ordenan por
   uso; en escritorio vuelven a ser columnas y cada una crece por su cuenta. */
.tool-col { display: contents; }
.t-contenido { order: 1; }
.t-qr        { order: 2; }
.t-diseno    { order: 3; }
.t-objeto    { order: 4; }
.t-visor     { order: 5; }
.tool .block,
.tool .out-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-m); padding: clamp(1rem, 2.4vw, 1.4rem);
}
.out-card { display: flex; flex-direction: column; gap: .9rem; }
.block { display: flex; flex-direction: column; gap: .55rem; }
.block-t { font-size: .78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .2rem; }
.out-t { font-family: var(--display); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.out-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

.fl { font-size: .84rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: .35rem; }
.fl-op { font-weight: 400; color: var(--muted); font-size: .8rem; }
.out { font-size: .82rem; color: var(--accent-ink); font-weight: 500; }
.hint { font-size: .82rem; color: var(--muted); }
.hint-tight { margin-top: -.3rem; }

.in {
  width: 100%; padding: .7rem .85rem; border-radius: var(--r-m);
  border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
}
.in:hover { border-color: var(--muted); }
.in:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2rem; }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; }
.check { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; color: var(--ink-2); padding-bottom: .7rem; white-space: nowrap; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
.seg-b { padding: .4rem 1rem; border-radius: 999px; font-size: .87rem; font-weight: 500; color: var(--muted); transition: all .2s var(--ease-out); }
.seg-b.is-on { background: var(--ink); color: var(--paper); }
.pane { display: flex; flex-direction: column; gap: .45rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .38rem;
  font-size: .8rem; padding: .32rem .7rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface-2);
  transition: all .18s var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.style-b {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .6rem .3rem .5rem; border-radius: var(--r-m); font-size: .76rem; font-weight: 500;
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--muted);
  transition: all .18s var(--ease-out);
}
.style-b:hover { border-color: var(--line-2); color: var(--ink-2); }
.style-b.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.style-p { width: 30px; height: 30px; fill: currentColor; }

.colors { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.color { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); cursor: pointer; }
.color:hover { border-color: var(--line-2); }
.color input[type="color"] { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 9px; background: none; cursor: pointer; flex: none; }
.color input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
.color-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.color-t b { font-size: .82rem; font-weight: 600; }
.color-t span { font-size: .72rem; color: var(--muted); }

.duos { display: flex; gap: .4rem; flex-wrap: wrap; }
.duo { padding: 3px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); line-height: 0; transition: border-color .18s var(--ease-out); }
.duo:hover { border-color: var(--accent); }
.duo i { display: block; width: 30px; height: 20px; border-radius: 6px; background: linear-gradient(105deg, var(--b) 0 50%, var(--a) 50% 100%); }

.emojis { display: flex; flex-wrap: wrap; gap: .3rem; }
.emo { width: 38px; height: 38px; font-size: 1.15rem; line-height: 1; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); transition: all .16s var(--ease-out); }
.emo:hover { border-color: var(--accent); transform: translateY(-1px); }
.emo.is-on { border-color: var(--accent); background: var(--accent-soft); }
.emojis-sm .emo { width: 32px; height: 32px; font-size: 1rem; }
.center-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: var(--line-2); }
.range::-moz-range-track { height: 5px; border-radius: 3px; background: var(--line-2); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7.5px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-s); }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent); }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.fmt {
  display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center;
  padding: .7rem .35rem .6rem; border-radius: var(--r-m);
  border: 1.5px solid var(--line); background: var(--surface-2); transition: all .18s var(--ease-out);
}
.fmt svg { width: 44px; height: 34px; }
.fmt .f-base { fill: var(--line-2); }
.fmt .f-code { fill: var(--muted); }
.fmt .f-hole { fill: var(--surface); }
.fmt b { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.fmt small { font-size: .7rem; color: var(--muted); }
.fmt:hover { border-color: var(--line-2); }
.fmt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.fmt.is-on .f-base { fill: color-mix(in srgb, var(--accent) 35%, transparent); }
.fmt.is-on .f-code { fill: var(--accent); }
.fmt.is-on .f-hole { fill: var(--surface); }
.fmt.is-on b { color: var(--accent-ink); }

/* salida: QR 2D */
.badge { font-family: var(--mono); font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge-live { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.qr-stage {
  display: grid; place-items: center; padding: clamp(.9rem, 2.5vw, 1.5rem);
  border-radius: var(--r-l); background: var(--qr-bg, var(--surface-2));
  border: 1px solid var(--line); transition: background .25s var(--ease-out);
}
.qr-holder { width: min(280px, 62vw); aspect-ratio: 1; }
.qr-holder canvas, .qr-holder svg { width: 100% !important; height: auto !important; border-radius: 4px; }

/* salida: visor 3D */
.viewer {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 3; min-height: 240px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.028) 0 1px, transparent 1px 6px),
    radial-gradient(120% 90% at 50% 108%, var(--plate-b) 0%, var(--plate-a) 55%, var(--surface-2) 100%);
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#gl:active { cursor: grabbing; }
.viewer-msg {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-size: .88rem; color: var(--muted); padding: 1.5rem; pointer-events: none;
}
.viewer-hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-family: var(--mono); font-size: .68rem; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  padding: .18rem .6rem; border-radius: 999px; pointer-events: none; white-space: nowrap;
}

.warns { display: flex; flex-direction: column; gap: .35rem; }
.warn {
  display: flex; gap: .5rem; align-items: flex-start;
  font-size: .8rem; line-height: 1.45; padding: .5rem .65rem; border-radius: 10px;
}
.warn b { font-weight: 600; }
.warn-ok  { background: var(--ok-bg);   color: var(--ok); }
.warn-mid { background: var(--warn-bg); color: var(--warn); }
.warn-bad { background: var(--bad-bg);  color: var(--bad); }

/* botones */
.btn {
  text-decoration: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .05rem; padding: .72rem 1.1rem; border-radius: var(--r-m);
  font-weight: 600; font-size: .93rem; text-align: center; line-height: 1.25;
  transition: transform .16s var(--ease-out), background .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; pointer-events: none; }
.btn small { font-weight: 400; font-size: .72rem; opacity: .8; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: var(--surface-2); color: var(--ink-2); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-sm { padding: .5rem .85rem; font-size: .84rem; font-weight: 500; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dl-row-main { grid-template-columns: 1fr; }
.privacy { font-size: .78rem; color: var(--muted); text-align: center; }
.noscript { grid-column: 1 / -1; padding: 1rem; border-radius: var(--r-m); background: var(--warn-bg); color: var(--warn); }

/* ---------- 7. Secciones de contenido ---------- */
.sec { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sec-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.sec-t { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.sec-l { margin-top: .5rem; color: var(--muted); max-width: 58ch; }
.wrap-read h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); margin-top: 1.9rem; }
.wrap-read p { margin-top: .8rem; color: var(--ink-2); }
.wrap-read > p:first-of-type { margin-top: 1.2rem; }
.wrap-read strong { color: var(--ink); font-weight: 600; }

.steps { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: none; }
.step { position: relative; padding: 1.5rem 1.35rem 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-s); }
.step-n {
  position: absolute; top: -14px; left: 1.35rem;
  width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .85rem; font-weight: 500;
  background: var(--accent); color: #fff; border-radius: 9px;
}
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .93rem; }

.ideas { margin-top: 2rem; display: grid; gap: .9rem; grid-template-columns: 1fr; }
.idea { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.idea-e { font-size: 1.5rem; display: block; margin-bottom: .5rem; }
.idea h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.idea p { font-size: .9rem; color: var(--muted); }

.faq { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.faq summary { padding: .95rem 2.6rem .95rem 1.1rem; font-weight: 600; font-size: .96rem; cursor: pointer; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.2rem; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.1rem 1.1rem; color: var(--muted); font-size: .92rem; }

/* ---------- 8. Anuncios (solo huecos marcados) ---------- */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-m);
  background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--line) 45%, transparent) 9px 10px);
  color: var(--muted); text-align: center;
}
.ad-tag { font-family: var(--mono); font-size: .74rem; letter-spacing: .22em; font-weight: 500; }
.ad-size { font-family: var(--mono); font-size: .66rem; opacity: .65; }
.ad-leaderboard { min-height: 100px; margin: .5rem 0 1.5rem; }
.ad-incontent { min-height: 260px; max-width: 380px; margin: 0 auto 1rem; padding: 1rem; }

.ad-modal { border: 0; padding: 0; background: none; max-width: min(92vw, 380px); }
.ad-modal-in {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); box-shadow: var(--shadow-l); padding: 1.4rem 1.2rem 1.1rem;
  display: flex; flex-direction: column; gap: .9rem; align-items: stretch;
}
.ad-modal-t { font-family: var(--display); font-weight: 700; font-size: 1.02rem; text-align: center; color: var(--ink); }
.ad-modal-slot { min-height: 250px; }
.ad-close {
  position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.ad-close:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- legales ---------- */
.legal { border: 0; padding: 0; background: none; max-width: min(92vw, 640px); max-height: 82vh; }
.legal::backdrop { background: rgba(10,14,15,.55); }
.legal-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.8rem 1.5rem; box-shadow: var(--shadow-l); }
.legal-body h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.legal-body p, .legal-body li { font-size: .9rem; color: var(--ink-2); margin-top: .7rem; }
.legal-body ul { padding-left: 1.1rem; }
.legal-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); z-index: 2; }

/* ---------- pie ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0; background: var(--paper); }
.foot-in { display: flex; flex-direction: column; gap: 1.2rem; justify-content: space-between; }
.foot-brand p { font-size: .86rem; color: var(--muted); margin-top: .35rem; max-width: 44ch; }
.foot-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.linkish { font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--accent-ink); }

/* ---------- 9. Responsive ---------- */
@media (max-width: 539px) {
  /* la cabecera desbordaba el ancho de pantalla: el nav de 5 enlaces no
     cabía y empujaba toda la página a scroll horizontal. Se deja scrollear
     solo el nav, sin perder ningún enlace. */
  .head-nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .head-nav::-webkit-scrollbar { display: none; }
  .head-nav a { white-space: nowrap; }
}
@media (min-width: 540px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .ideas { grid-template-columns: repeat(2, 1fr); }
  .foot-in { flex-direction: row; align-items: center; }
}
@media (min-width: 960px) {
  .tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: start; }
  .tool-col { display: flex; flex-direction: column; gap: 14px; }
  /* dentro de cada columna el orden vuelve a ser el del HTML */
  .tool-col > * { order: 0; }
  .ideas { grid-template-columns: repeat(3, 1fr); }
  .qr-holder { width: 300px; }
  .dl-row-main { grid-template-columns: 1.5fr 1fr; }
  .ad-leaderboard { min-height: 120px; }
}
@media (min-width: 1280px) {
  .tool { gap: 20px; }
  .tool-col { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .emo:hover { transform: none; }
}

/* =============================================================
   10. Página de venta (negocios.html)
   ============================================================= */
.vhero { padding: clamp(1.75rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.vhero-in { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1fr; align-items: center; }
.vhero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); max-width: 15ch; }
.vhero .lede { margin-top: .9rem; max-width: 52ch; }
.vhero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.vhero-img { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.vhero-img img { width: 100%; height: auto; }

.ticks { list-style: none; padding: 0; margin-top: 1.4rem; display: flex; flex-direction: column; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .95rem; height: .5rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks-block { margin-top: 1rem; }
.ticks-block li { font-size: .95rem; }

.prods { margin-top: 2rem; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.prod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column; }
.prod img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.prod-b { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; }
.prod-b h3 { font-size: 1.2rem; }
.prod-p { font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.prod-p b { font-family: var(--display); font-size: 1.45rem; font-weight: 800; color: var(--accent-ink); letter-spacing: -.02em; }
.prod-b p { font-size: .92rem; color: var(--muted); }
.prod-b ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.prod-b ul li { font-size: .76rem; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

.nota { margin-top: 1.1rem; font-size: .84rem; color: var(--muted); }

.tabla-wrap { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 420px; }
.tabla th, .tabla td { padding: .8rem 1rem; text-align: right; font-size: .95rem; border-bottom: 1px solid var(--line); }
.tabla thead th { text-align: right; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tabla thead th:first-child, .tabla tbody th { text-align: left; }
.tabla tbody th { font-weight: 600; color: var(--ink); }
.tabla tbody tr:last-child th, .tabla tbody tr:last-child td { border-bottom: 0; }
.tabla td { color: var(--ink-2); }

.cta-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-m); padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; display: flex; flex-direction: column; gap: .8rem; align-items: center; }
.cta-box h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-box p { color: var(--muted); max-width: 46ch; }
.cta-wsp { margin-top: .5rem; }
.cta-pendiente { font-family: var(--mono); font-size: .82rem; color: var(--warn); background: var(--warn-bg); padding: .6rem 1rem; border-radius: 10px; }

@media (min-width: 720px) {
  .prods { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .vhero-in { grid-template-columns: 1.05fr .95fr; }
}
.zona { margin-top: .7rem; font-size: .95rem; color: var(--muted); }
.zona strong { color: var(--accent-ink); font-weight: 600; }
.privacy-cta { margin-top: -.35rem; }
.privacy-cta a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.compara { margin-top: 1.8rem; padding: 1.1rem 1.25rem; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.compara h3 { margin-top: 0; font-size: 1.05rem; }
.compara p { margin-top: .5rem; font-size: .93rem; color: var(--ink-2); }
.compara b { color: var(--ink); font-weight: 600; }

/* ---------- generador de códigos de barras ---------- */
.bar-stage { min-height: 190px; padding: clamp(1rem, 3vw, 1.6rem); }
.bar-stage svg { width: 100%; height: auto; max-width: 100%; }
#b-error { margin-top: .1rem; }
.out-card .hint a { color: var(--accent-ink); }
.steps-pago { margin-top: 1.6rem; }
