@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* =============================================================
   Utiliec QR 3D — Dark UI & Bento Layout
   Diseño base: propuesta de Gemini. Ampliado para cubrir todos los
   componentes de la web (pasos, ideas, anuncios, cookies, pop-up…).
   ============================================================= */

/* ---------- 0. Fuente alojada en el propio dominio (sin Google Fonts) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #eef1f4;
  --panel: #ffffff;
  --panel-border: #d5dae1;
  --panel-hover: #b9c0ca;
  --text-main: #1f2328;
  --text-muted: #59606b;

  --accent-glow: #047857;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
  --accent-glow-subtle: rgba(5, 150, 105, 0.12);
  --on-accent: #ffffff;

  --bad: #b42318;  --bad-bg: #fdecea;
  --warn: #92400e; --warn-bg: #fef3c7;
  --ok: #166534;   --ok-bg: #e6f5ee;

  --radius-lg: 12px; --radius-md: 8px; --radius-sm: 6px;
  --font-sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 10px 28px rgba(31, 35, 40, 0.08);
}

/* ---------- 2. Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans); background-color: var(--bg); color: var(--text-main);
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-glow); text-underline-offset: 3px; }
p { text-wrap: pretty; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(16, 185, 129, 0.65); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(1200px, 92%); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -100px; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- 3. Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(9, 10, 15, 0.75); backdrop-filter: blur(16px); border-bottom: 1px solid var(--panel-border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; color: var(--text-main); text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand small { color: var(--accent-glow); font-size: 0.8em; font-weight: 600; }
.nav { display: none; gap: 8px; }
.nav a { color: var(--text-muted); text-decoration: none; padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: 0.9rem; transition: 0.2s; }
.nav a:hover { color: var(--text-main); background: rgba(31, 35, 40, 0.05); }

/* ---------- 4. Hero ---------- */
.hero { text-align: center; padding: 40px 0 28px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--text-main);
   }
.hero p { color: var(--text-muted); max-width: 640px; margin: 12px auto 0; font-size: 1.05rem; }
.hero p strong { color: var(--text-main); font-weight: 700; }

/* ---------- 5. Cuadrícula principal (bento) ---------- */
.tool { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "prev" "more"; }
.ctl-main { grid-area: main; }
.prev { grid-area: prev; }
.ctl-more { grid-area: more; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .tool { grid-template-columns: 1.1fr 0.9fr; grid-template-areas: "main prev" "more prev"; align-items: start; }
  /* La vista previa acompaña al scroll; si es más alta que la pantalla, se desplaza por dentro y los botones de descarga siguen alcanzables */
  .prev { position: sticky; top: 86px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(31, 35, 40, .18) transparent; }
  .dl { position: sticky; bottom: -24px; z-index: 5; margin: 0 -24px -24px; padding: 12px 24px 24px; background: linear-gradient(180deg, rgba(17,19,27,0) 0, var(--panel) 14px); }
}

/* ---------- 6. Tarjetas y formularios ---------- */
.card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.step { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; color: var(--text-main); margin-bottom: 16px; }
.step b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-glow-subtle); color: var(--accent-glow); font-size: 0.9rem; border: 1px solid var(--accent-glow); }
.lbl { display: block; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 16px 0 8px; }
.lbl:first-of-type { margin-top: 0; }
.field { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--panel-border); border-radius: var(--radius-md); background: #ffffff; color: var(--text-main); outline: none; transition: 0.2s; }
.field::placeholder { color: #7c8594; }
.field:focus { border-color: var(--accent-glow); box-shadow: 0 0 0 3px var(--accent-glow-subtle); }
select.field option { background: #ffffff; color: var(--text-main); }
.hint { color: var(--text-muted); font-size: .86rem; margin-top: 8px; }
.tabs { display: inline-flex; background: rgba(0,0,0,0.4); padding: 4px; border-radius: 99px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 8px 20px; border-radius: 99px; color: var(--text-muted); font-weight: 700; transition: 0.2s; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--panel-hover); color: var(--text-main); }

.row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--panel-border); background: rgba(31, 35, 40, 0.02); border-radius: var(--radius-md); padding: 10px 16px; min-height: 44px; color: var(--text-main); font-weight: 600; transition: 0.2s; }
.chip:hover { border-color: var(--panel-hover); background: rgba(31, 35, 40, 0.05); }
.chip[aria-pressed="true"] { border-color: var(--accent-glow); background: var(--accent-glow-subtle); color: var(--accent-glow); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sizes .chip { display: grid; text-align: center; line-height: 1.3; padding: 10px 6px; }
.sizes small { color: var(--text-muted); font-weight: 500; font-size: .74rem; }
.sizes .chip[aria-pressed="true"] small { color: var(--accent-glow); opacity: .85; }

.fmts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fmt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--radius-md); border: 1px solid var(--panel-border); background: rgba(0,0,0,0.2); color: var(--text-main); font-weight: 700; font-size: 0.85rem; text-align: center; transition: 0.2s; }
.fmt:hover { border-color: var(--panel-hover); }
.fmt svg { width: 36px; height: 36px; color: var(--accent-glow); }
.fmt[aria-pressed="true"] { border-color: var(--accent-glow); background: var(--accent-glow-subtle); }
.fmt small { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; line-height: 1.25; }

.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.preset { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--panel-border); overflow: hidden; position: relative; background: none; cursor: pointer; transition: 0.2s; }
.preset i { position: absolute; inset: 0; }
.preset[aria-pressed="true"] { border-color: var(--accent-glow); transform: scale(1.1); }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.colors label { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--panel-border); border-radius: var(--radius-md); padding: 8px 12px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.colors input[type=color] { border: 0; width: 36px; height: 34px; padding: 0; background: none; cursor: pointer; border-radius: 8px; }

.emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emoji-btn { font-size: 1.35rem; line-height: 1; padding: 0; height: 44px; border: 1px solid var(--panel-border); border-radius: 10px; background: rgba(31, 35, 40, 0.02); transition: 0.2s; }
.emoji-btn:hover { border-color: var(--panel-hover); background: rgba(31, 35, 40, 0.06); }
.emoji-btn[aria-pressed="true"] { border-color: var(--accent-glow); background: var(--accent-glow-subtle); }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file .hint { margin: 0; }
.file input { max-width: 100%; min-width: 0; font-size: .85rem; color: var(--text-muted); }
.file input::file-selector-button { border: 1px solid var(--panel-border); background: rgba(31, 35, 40, 0.05); color: var(--text-main); border-radius: 8px; padding: 8px 12px; margin-right: 10px; font-weight: 600; cursor: pointer; }
.btn-x { border: 0; background: none; color: var(--accent-glow); font-weight: 700; text-decoration: underline; padding: 6px 4px; text-transform: none; letter-spacing: 0; }

/* ---------- 7. Vista previa ---------- */
.prev { display: grid; gap: 16px; align-content: start; }
.stage { position: relative; background: #dfe4ea; border-radius: var(--radius-md); border: 1px solid var(--panel-border); overflow: hidden; }
.stagebox { background: #dfe4ea; }
.viewer { position: relative; height: 300px; touch-action: none; }
.viewer canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
/* Sin 3D: el QR pasa a ser la vista principal (centrado y grande) y el mensaje se lee entero */
.stagebox.no3d .viewer { height: auto; min-height: 0; padding: 18px 18px 0; }
.stagebox.no3d .tag { display: none; }
.stagebox.no3d #viewer-msg { position: static; display: block; padding: 0; text-align: center; font-size: .86rem; line-height: 1.5; }
.stagebox.no3d .qr2d { position: relative; top: auto; right: auto; z-index: 1; width: min(210px, 62%); margin: 14px auto 18px; }
#viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--text-muted); font-weight: 600; pointer-events: none; }
/* El QR 2D es una miniatura sobre el visor 3D: así todo el panel cabe en pantalla */
.qr2d { position: absolute; z-index: 3; top: 10px; right: 10px; width: clamp(92px, 27%, 128px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid rgba(31, 35, 40, 0.16); box-shadow: 0 6px 20px rgba(0,0,0,.55); background: var(--panel); }
.qr2d #qr-box { width: 100%; height: 100%; }
.qr2d canvas { width: 100% !important; height: 100% !important; }
#qr-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 8px; background: rgba(9,10,15,0.88); color: var(--text-muted); font-weight: 600; font-size: .72rem; }
.tag { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); border: 1px solid var(--panel-border); padding: 4px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; color: var(--accent-glow); }
.spec { font-weight: 700; font-size: .95rem; color: var(--text-main); }
.tris { color: var(--text-muted); font-size: .8rem; margin-top: 2px; }
#warns { list-style: none; display: grid; gap: 8px; }
#warns li { padding: 10px 14px; border-radius: var(--radius-md); font-size: 0.85rem; line-height: 1.4; }
.w-bad { background: var(--bad-bg); color: var(--bad); }
.w-warn { background: var(--warn-bg); color: var(--warn); }
.w-ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- 8. Botones ---------- */
.dl { display: grid; gap: 10px; }
.dl .sub { font-size: .82rem; color: var(--text-muted); margin-top: -2px; }
.dl-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dl-row3 .btn { min-height: 44px; padding: 10px 8px; }
.dl .sub strong { color: var(--text-main); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius-md); font-weight: 700; padding: 14px 20px; min-height: 48px; transition: 0.2s; }
.btn-primary { background: var(--accent-gradient); color: var(--on-accent); font-weight: 800; font-size: 1.05rem; min-height: 56px; box-shadow: 0 4px 20px var(--accent-glow-subtle); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.1); }
.btn-second { background: rgba(31, 35, 40, 0.05); border: 1px solid var(--panel-border); color: var(--text-main); }
.btn-second:hover:not(:disabled) { background: rgba(31, 35, 40, 0.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.priv { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--ok-bg); border: 1px solid rgba(16,185,129,.25); color: var(--ok); font-size: .92rem; font-weight: 600; }
.priv svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.nojs { padding: 16px; border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn); font-weight: 600; margin-bottom: 16px; }

/* ---------- 9. Contenido ---------- */
section.block, .block { margin-top: 64px; }
.block > h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin-bottom: 8px; color: var(--text-main); }
.block > .lead { color: var(--text-muted); max-width: 66ch; margin-bottom: 22px; }
.steps { display: grid; gap: 16px; counter-reset: s; list-style: none; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-gradient); color: var(--on-accent); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--text-main); }
.steps p { color: var(--text-muted); font-size: .96rem; }
.prose { max-width: 72ch; }
.prose h1 { color: var(--text-main); }
.prose h2 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); margin: 0 0 12px; color: var(--text-main); }
.prose h3 { font-size: 1.1rem; margin: 22px 0 6px; color: var(--text-main); }
.prose p, .prose li { color: var(--text-muted); }
.prose p strong, .prose li strong { color: var(--text-main); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 6px; margin-top: 8px; }
.wrap.prose h2 { margin-top: 26px; }
.ideas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.idea { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 20px; }
.idea .em { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }
.idea h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--text-main); }
.idea p { color: var(--text-muted); font-size: .92rem; }
.faq { display: grid; gap: 8px; max-width: 78ch; }
.faq details { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-md); padding: 4px 16px; }
.faq details[open] { border-color: rgba(16,185,129,.35); }
.faq summary { font-weight: 700; cursor: pointer; color: var(--text-main); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent-glow); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); font-size: 0.92rem; padding-bottom: 14px; }
.more { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.more a { display: block; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 18px 20px; text-decoration: none; color: var(--text-main); transition: .2s; }
.more a:hover { border-color: var(--accent-glow); transform: translateY(-2px); }
.more b { display: block; color: var(--text-main); }
.more span { color: var(--text-muted); font-size: .9rem; }

/* ---------- 10. Pie ---------- */
.foot { margin-top: 80px; border-top: 1px solid var(--panel-border); padding: 40px 0; color: var(--text-muted); font-size: 0.9rem; }
.foot .wrap { display: grid; gap: 20px; }
.foot strong { color: var(--text-main); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a, .foot [data-cookie-prefs] { color: var(--text-muted); }
.foot a:hover { color: var(--accent-glow); }
.credits { font-size: .82rem; opacity: .9; }

/* ---------- 11. Publicidad (solo huecos) ---------- */
.ad-slot { display: grid; place-items: center; text-align: center; min-height: 100px; margin: 28px auto 0; border: 1.5px dashed rgba(31, 35, 40, 0.16); border-radius: var(--radius-md); color: var(--text-muted); font-weight: 800; letter-spacing: .18em; font-size: .8rem; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(31, 35, 40, 0.025) 10px 11px); }
.ad-slot span { display: block; font-weight: 500; letter-spacing: 0; font-size: .74rem; margin-top: 2px; }
.ad-leader { max-width: 970px; min-height: 100px; }
.ad-inline { max-width: 970px; min-height: 120px; margin-top: 56px; }
dialog { margin: auto; }   /* el reset "* { margin: 0 }" anulaba el centrado nativo del pop-up */
#ad-popup { max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--panel-border); border-radius: var(--radius-lg); padding: 0; width: min(420px, calc(100% - 32px)); background: var(--panel); color: var(--text-main); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
#ad-popup::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0 18px; font-size: .78rem; font-weight: 700; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }
.pop-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(31, 35, 40, 0.06); color: var(--text-main); font-size: 1.4rem; line-height: 1; }
.pop-x:hover { background: rgba(31, 35, 40, 0.12); }
.pop-body { padding: 8px 18px 18px; display: grid; gap: 12px; }
.pop-body .ad-slot { margin: 0; min-height: 250px; }
.pop-ok { text-align: center; font-weight: 700; color: var(--ok); }
#ad-toast { position: fixed; right: 14px; bottom: 14px; z-index: 40; width: min(300px, calc(100% - 28px)); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
#ad-toast.show { opacity: 1; transform: none; }
#ad-toast .ad-slot { margin: 0; min-height: 76px; }
.toast-x { position: absolute; right: -6px; top: -10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--panel-border); background: var(--panel); color: var(--text-main); font-size: 1.1rem; line-height: 1; }
body:has(#cookie-banner:not([hidden])) #ad-toast { display: none; }

/* ---------- 12. Aviso de cookies ---------- */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px; }
.cc-in { width: min(960px, 100%); margin: 0 auto; display: grid; gap: 14px; align-items: center; background: var(--panel); border: 1px solid rgba(31, 35, 40, 0.14); border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); padding: 16px 18px; }
.cc-in strong { color: var(--text-main); }
.cc-in p { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.cc-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btns .btn { flex: 1 1 130px; min-height: 46px; }

/* ---------- 13. Responsive (mobile-first) ---------- */
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } .nav { display: flex; } .viewer { height: 340px; } .cc-in { grid-template-columns: 1fr auto; } .cc-btns { flex-wrap: nowrap; } }
@media (max-width: 540px) { .card { padding: 18px; } .hero { padding: 28px 0 20px; } .top .wrap { height: 62px; } .emojis { grid-template-columns: repeat(6, 1fr); } .fmts { gap: 8px; } .fmt { padding: 14px 4px; font-size: .8rem; } }
@media (min-width: 992px) and (max-height: 820px) { .viewer { height: 240px; } .dl .sub:first-of-type { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .top, .ad-slot, #ad-toast, .cc, .foot nav { display: none; } body { background: #fff; color: #000; } }


/* =============================================================
   Familia Utiliec (oct 2026): base común clara, color esmeralda.
   El elemento propio es la vista del QR impreso en 3D.
   ============================================================= */
.top { background: #fff; border-bottom: 1px solid var(--panel-border); backdrop-filter: none; }
.hero h1 { font-weight: 700; -webkit-text-fill-color: currentColor; color: var(--text-main); }
.brand { font-weight: 700; }
.nav a:hover { background: none; }
.panel, .card { box-shadow: none; }
.step { font-weight: 700; }
.spec { font-family: var(--mono); font-weight: 600; }
.ad-slot { text-transform: none; letter-spacing: 0; }
.foot { background: #fff; }
.lbl { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 700; color: var(--text-main); }
.tabs { background: #fff; border: 1px solid var(--panel-border); border-radius: 6px; }
.tabs button { border-radius: 4px; }
.tabs button[aria-selected="true"] { background: var(--text-main); color: #fff; }
.fmt { background: #fff; }
.tag { background: rgba(255, 255, 255, .9); color: var(--text-main); backdrop-filter: none; border-radius: 4px; }
.pop-head { text-transform: none; letter-spacing: 0; }
