/* MAKR Briefs — experiencia del cliente */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/montserrat-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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/montserrat-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; }

:root {
  --ink: #0D0D0D; --sand: #DDD6CE; --rust: #7B1D18; --paper: #F3F2F0; --white: #fff;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 16px; --ease: cubic-bezier(.2, .8, .2, 1);
}
.theme-ink {
  --bg: var(--ink); --fg: var(--sand); --muted: rgba(221, 214, 206, .68); --line: rgba(221, 214, 206, .22);
  --surface: rgba(221, 214, 206, .06); --accent: #C65A43; --sel-bg: var(--rust); --sel-fg: var(--paper); --sel-line: #C65A43; color-scheme: dark;
}
.theme-sand {
  --bg: var(--sand); --fg: var(--ink); --muted: rgba(13, 13, 13, .68); --line: rgba(13, 13, 13, .2);
  --surface: var(--paper); --accent: var(--rust); --sel-bg: var(--rust); --sel-fg: var(--paper); --sel-line: var(--rust); color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.5; transition: background-color .5s var(--ease), color .5s var(--ease); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { display: inline-flex; flex: none; }
.ico svg { display: block; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: max(14px, env(safe-area-inset-top)) 20px 14px; pointer-events: none; }
.top > * { pointer-events: auto; }
.back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 10px 8px 6px; margin-left: -6px; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); border-radius: 10px; }
.back:disabled { opacity: 0; pointer-events: none; }
.back:hover { background: var(--surface); }
.segs { flex: 1; display: flex; gap: 5px; transition: opacity .3s; }
.segs.hidden { opacity: 0; }
.seg { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.seg i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .45s var(--ease); }
.savestate { font-size: 12px; letter-spacing: .06em; color: var(--muted); min-width: 84px; text-align: right; }
.savestate[data-state="offline"] { color: var(--accent); font-weight: 700; }
.top.minimal .back, .top.minimal .savestate { visibility: hidden; }
.pvbanner { position: fixed; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 8px 14px; border-radius: 12px; max-width: calc(100vw - 32px); width: max-content; text-align: center; line-height: 1.3; }

/* ---------- escenario y transiciones ---------- */
.stage { display: grid; min-height: 100dvh; overflow-x: clip; }
.screen { grid-area: 1 / 1; min-height: 100dvh; position: relative; display: flex; align-items: center; padding: 88px 0 64px; transition: opacity .36s var(--ease), transform .36s var(--ease); }
.screen.enter-up { opacity: 0; transform: translateY(44px); }
.screen.enter-down { opacity: 0; transform: translateY(-44px); }
.screen.leave-up { opacity: 0; transform: translateY(-44px); pointer-events: none; }
.screen.leave-down { opacity: 0; transform: translateY(44px); pointer-events: none; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 0 24px; }
.wrap.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.watermark { position: fixed; right: max(-5vw, -60px); bottom: max(-7vw, -80px); width: min(62vw, 540px); aspect-ratio: 1; color: var(--fg); opacity: .06; pointer-events: none; z-index: 0; }
.watermark svg { width: 100%; height: 100%; display: block; }
.watermark .ring { transform-box: view-box; transform-origin: 349.99px 352.04px; animation: spin 120s linear infinite; }

/* ---------- tipografía ---------- */
.kicker, .qlabel { font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.qlabel em { font-style: normal; color: var(--accent); }
.mark { width: 44px; height: 5px; background: var(--accent); margin: 18px 0 20px; border-radius: 1px; }
.center .mark { margin-inline: auto; }
.display { font-weight: 800; font-size: clamp(38px, 8.4vw, 82px); line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; margin: 0 0 18px; overflow-wrap: anywhere; }
.display.md { font-size: clamp(28px, 5.4vw, 50px); }
.qtext { font-weight: 700; font-size: clamp(24px, 4.2vw, 38px); line-height: 1.18; letter-spacing: -.005em; margin: 0 0 12px; text-wrap: balance; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 40em; margin: 0 0 28px; }
.qhint { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.note { color: var(--muted); font-size: 14.5px; max-width: 34em; }
.sublabel { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.meta { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: 14.5px; }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.err { color: var(--accent); font-weight: 600; font-size: 15px; min-height: 22px; margin-top: 10px; }
.theme-sand .err { color: var(--rust); }
.err ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid transparent; border-radius: 14px; padding: 13px 22px; font-weight: 700; font-size: 13.5px; letter-spacing: .09em; text-transform: uppercase; transition: transform .15s var(--ease), background-color .2s, border-color .2s, opacity .2s; text-decoration: none; }
.btn.lg { padding: 16px 28px; font-size: 14px; }
.btn.sm { padding: 8px 14px; font-size: 12px; border-radius: 11px; letter-spacing: .07em; }
.btn.primary { background: var(--sel-bg); color: var(--sel-fg); }
.btn.primary:hover:not(:disabled) { background: var(--accent); }
.btn.primary:active:not(:disabled) { transform: scale(.97); }
.btn.primary:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.ghost.on { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-line); }
.btn.link, button.link { background: none; border: 0; padding: 10px 6px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.btn.link:hover, button.link:hover { color: var(--fg); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.enter { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- inputs ---------- */
.field { width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--line); padding: 12px 2px; font-size: 18px; outline: none; transition: border-color .2s; border-radius: 0; }
.field:focus { border-color: var(--accent); }
.field.big { font-size: clamp(20px, 3.2vw, 30px); font-weight: 500; }
textarea.field { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 18px; resize: none; min-height: 132px; line-height: 1.45; background: var(--surface); font-size: 19px; }
textarea.field:focus { border-color: var(--accent); }
.field.inline { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 16px; background: var(--surface); }
.field.date { max-width: 280px; }
.field::placeholder, .tag-input::placeholder { color: var(--muted); opacity: .75; }
.addrow { display: flex; gap: 10px; margin-top: 14px; align-items: stretch; }
.addrow .field { flex: 1; }
.composite .cpart + .cpart { margin-top: 22px; }
.qbody { margin-top: 18px; }

/* ---------- tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.cards.one { grid-template-columns: 1fr; margin-bottom: 14px; }
.cards.has-art { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; align-items: flex-start; padding: 18px 18px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); color: var(--fg); transition: border-color .2s, background-color .2s, color .2s, transform .15s var(--ease); }
.card:hover:not(:disabled) { border-color: var(--fg); }
.card:disabled { opacity: .5; cursor: not-allowed; }
.card.row { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.card-t { font-weight: 700; font-size: 16px; line-height: 1.25; }
.card-s { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.card .art { width: 100%; }
.card .art svg { width: 100%; height: 66px; display: block; }
.card.on, .chip.on, .pal.on, .bigcard.on { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-fg); }
.card.on .card-s { color: inherit; opacity: .85; }
.key { position: absolute; top: 12px; right: 14px; font-size: 11px; font-weight: 700; opacity: .5; border: 1px solid currentColor; border-radius: 6px; min-width: 20px; height: 20px; display: grid; place-items: center; line-height: 1; }
.card.row .key { display: none; }
.tick { position: absolute; bottom: 12px; right: 12px; opacity: 0; transform: scale(.6); transition: .2s var(--ease); }
.card.on .tick { opacity: 1; transform: none; }
.pill { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
@media (pointer: coarse) { .key { display: none; } }
.pop { animation: pop .3s var(--ease); }
@keyframes pop { 0% { transform: scale(.96); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }
.shake { animation: shake .36s; }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } 100% { transform: none; } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; font-size: 15.5px; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--fg); }
.chip.on:hover { border-color: var(--sel-line); }

/* tags */
.tagbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-bottom: 2px solid var(--line); padding: 8px 0; transition: border-color .2s; }
.tagbox:focus-within { border-color: var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--sel-bg); color: var(--sel-fg); font-weight: 600; font-size: 15px; }
.tag button { background: none; border: 0; padding: 2px; display: grid; opacity: .8; }
.tag button:hover { opacity: 1; }
.tag-input { flex: 1; min-width: 180px; background: transparent; border: 0; outline: none; font-size: 20px; padding: 8px 2px; }

/* links y archivos */
.linklist, .filelist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.linklist li, .filelist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.linklist li button, .filelist li button { margin-left: auto; background: none; border: 0; display: grid; padding: 4px; opacity: .7; }
.filelist li small { color: var(--muted); margin-left: auto; }
.filelist li small + button { margin-left: 0; }
.drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 18px; border: 2px dashed var(--line); border-radius: var(--r); background: transparent; color: var(--fg); text-align: center; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--surface); }
.drop small { color: var(--muted); }

/* ---------- escala de opuestos ---------- */
.scale { display: grid; grid-template-columns: minmax(0, auto) minmax(250px, 1fr) minmax(0, auto); grid-template-areas: "l d r" "c c c"; align-items: center; gap: 8px 20px; }
.sl-l, .sl-r { font-weight: 700; font-size: 16px; line-height: 1.2; transition: color .2s; }
.sl-l { grid-area: l; } .sl-r { grid-area: r; text-align: right; }
.sl-l.lean, .sl-r.lean { color: var(--accent); }
.dots5 { grid-area: d; position: relative; display: flex; justify-content: space-between; align-items: center; }
.dots5::before { content: ""; position: absolute; left: 26px; right: 26px; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.d { position: relative; z-index: 1; width: 52px; height: 52px; padding: 0; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.d i { display: block; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); transition: transform .18s var(--ease), background-color .2s, border-color .2s; }
.d1 i, .d5 i { width: 40px; height: 40px; } .d2 i, .d4 i { width: 30px; height: 30px; } .d3 i { width: 22px; height: 22px; }
.d:hover i { border-color: var(--fg); transform: scale(1.08); }
.d.on i { background: var(--accent); border-color: var(--accent); }
.d:focus-visible { outline: none; } .d:focus-visible i { outline: 2px solid var(--fg); outline-offset: 3px; }
.scap { grid-area: c; text-align: center; font-size: 15px; color: var(--muted); min-height: 24px; margin-top: 4px; }
.scap b { color: var(--fg); font-weight: 700; }
.series { display: grid; gap: 10px; }
.srow { padding: 10px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); }
.scale.compact { grid-template-columns: minmax(96px, 1fr) minmax(220px, 1.6fr) minmax(96px, 1fr); grid-template-areas: "l d r"; }
.scale.compact .d { width: 44px; height: 44px; }
.scale.compact .d1 i, .scale.compact .d5 i { width: 32px; height: 32px; } .scale.compact .d2 i, .scale.compact .d4 i { width: 24px; height: 24px; } .scale.compact .d3 i { width: 18px; height: 18px; }
.scale.compact .sl-l, .scale.compact .sl-r { font-size: 15px; }
@media (max-width: 600px) {
  .scale, .scale.compact { grid-template-columns: 1fr 1fr; grid-template-areas: "l r" "d d" "c c"; gap: 4px 12px; }
  .scale.compact { grid-template-areas: "l r" "d d"; }
  .srow { padding: 12px 12px 6px; }
}
.shint { color: var(--muted); font-size: 13.5px; min-height: 22px; margin-top: 4px; }

.rangebox { padding-top: 6px; }
.range-read { font-size: clamp(30px, 6vw, 48px); font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; transition: opacity .2s; }
.range-read b { font-weight: 800; }
.range-read.dim { opacity: .45; }
.range { position: relative; height: 40px; }
.rtrack { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--line); border-radius: 2px; }
.rfill { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: var(--accent); border-radius: 2px; }
.range input { position: absolute; left: 0; width: 100%; top: 0; height: 40px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-runnable-track { background: none; height: 40px; }
.range input::-moz-range-track { background: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 30px; height: 30px; margin-top: 5px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent); cursor: grab; }

/* ---------- esto o aquello ---------- */
.tot { display: grid; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .2s; }
.dots i.done { background: var(--accent); opacity: .55; }
.dots i.cur { background: var(--fg); opacity: 1; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.or { align-self: center; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bigcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 16px 22px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; color: var(--fg); transition: border-color .2s, background-color .2s, color .2s; min-height: 190px; }
.bigcard:hover { border-color: var(--fg); }
.bigcard .art svg { width: min(180px, 36vw); height: 96px; display: block; }
.any { justify-self: start; }
@media (max-width: 620px) {
  .pair { grid-template-columns: 1fr; gap: 10px; } .or { display: none; }
  .bigcard { min-height: 0; flex-direction: row; justify-content: flex-start; padding: 18px; gap: 18px; }
  .bigcard .art svg { width: 92px; height: 60px; }
}

/* ---------- ordenar (tocar en orden) ---------- */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ritem { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 16px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; color: var(--fg); transition: border-color .2s, background-color .2s; position: relative; }
.ritem:hover { border-color: var(--fg); }
.ritem.on { border-color: var(--accent); }
.rn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed var(--line); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; transition: background-color .2s, border-color .2s, color .2s; }
.ritem:hover .rn { border-color: var(--fg); }
.ritem.on .rn { background: var(--accent); border: 1.5px solid var(--accent); color: var(--sel-fg); }
.rl { flex: 1; font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.ritem:not(.on) .rl { opacity: .8; }
.rx { opacity: 0; transition: opacity .2s; display: grid; color: var(--muted); }
.ritem.on:hover .rx, .ritem.on:focus-visible .rx { opacity: 1; }
.rank-status { font-weight: 700; font-size: 15px; margin: 0 0 12px; color: var(--accent); min-height: 22px; }
.rank-status.done { color: var(--fg); }
.rankbox .btn.link.sm { margin-top: 8px; font-size: 14px; }
@media (pointer: coarse) { .ritem.on .rx { opacity: .7; } }

/* ---------- paletas y colores ---------- */
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pal { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 12px 12px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); text-align: left; color: var(--fg); transition: .2s; }
.pal:hover { border-color: var(--fg); }
.pal .sw { display: flex; width: 100%; height: 58px; border-radius: 10px; overflow: hidden; }
.pal .sw i { flex: 1; }
.pal .card-t { padding: 0 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.swatch { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; padding: 4px 0; color: var(--fg); }
.swatch .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); transition: transform .2s var(--ease), opacity .2s; color: #fff; }
.swatch .dot .ico { opacity: 0; transition: .2s; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.swatch:hover .dot { transform: scale(1.06); }
.swatch.on .dot { opacity: .45; transform: scale(.92); }
.swatch.on .dot .ico { opacity: 1; }
.swatch .sl { font-size: 12.5px; font-weight: 600; }
.swatch.on .sl { text-decoration: line-through; }

/* ---------- sello y marca ---------- */
.seal { width: 124px; height: 124px; color: var(--fg); margin-bottom: 22px; }
.seal.big { width: 170px; height: 170px; }
.seal svg { width: 100%; height: 100%; overflow: visible; display: block; }
.seal .ring { transform-box: view-box; transform-origin: 349.99px 352.04px; }
.seal.spin .ring { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tagline { font-weight: 800; font-size: clamp(36px, 9vw, 72px); line-height: 1.02; letter-spacing: .005em; margin: 4px 0 4px; }

/* ---------- bienvenida / puertas ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 28px 24px; }
.gate-card { max-width: 520px; width: 100%; }
.gate-logo { width: min(320px, 70vw); display: block; margin-bottom: 26px; }
.gate-card h1 { font-weight: 800; font-size: clamp(30px, 6vw, 48px); text-transform: uppercase; line-height: 1.05; margin: 8px 0 14px; }
.gate-card p { color: var(--muted); }
.whoform { display: grid; gap: 14px; margin: 14px 0 26px; max-width: 460px; }

/* ---------- resumen ---------- */
.sumlist { display: grid; gap: 16px; margin-top: 8px; }
.sumsec { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 22px 8px; }
.sumhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sumhead h3 { margin: 0; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.sumq { padding: 12px 0; border-top: 1px solid var(--line); }
.sq { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.sa { font-weight: 600; overflow-wrap: anywhere; }
.sa.none { color: var(--muted); font-weight: 500; font-style: italic; }
.sa div + div { margin-top: 2px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .back span:not(.ico) { display: none; }
  .back { min-width: 44px; min-height: 44px; justify-content: center; margin-left: -10px; padding: 0; }
  .top { gap: 12px; padding-inline: 16px; }
  .wrap { padding: 0 20px; }
  .screen { padding-top: 76px; align-items: flex-start; }
  .screen.welcome, .screen.sectionscr, .screen.finalscr { align-items: center; }
  .savestate { min-width: 0; font-size: 11px; }
  .btn.lg { width: 100%; }
  .actions .btn.lg { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
[hidden]{display:none !important}

.personal { margin-top: 30px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: var(--r); max-width: 460px; }
.personal b { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.personal p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.center .personal { text-align: left; }

/* ---------- pulido ---------- */
.qlabel .opt { margin-left: 10px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; letter-spacing: .14em; font-size: 10px; vertical-align: 1px; }
.qtext:focus { outline: none; }
.counter { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.counter.full { color: var(--accent); }
.chip.add { border-style: dashed; color: var(--muted); }
.chip.add:hover { color: var(--fg); }
.chip-input { border: 1.5px solid var(--accent); border-radius: 999px; padding: 10px 16px; font-size: 15.5px; font-weight: 600; background: var(--surface); outline: none; min-width: 180px; }
.cpart[hidden] { display: none; }
.cpart.reveal { animation: reveal .32s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn.ghost.lg { border-color: var(--line); }
.toast { position: fixed; z-index: 40; left: 50%; top: max(64px, calc(env(safe-area-inset-top) + 56px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: opacity .4s, transform .4s var(--ease); animation: reveal .35s var(--ease); max-width: calc(100vw - 32px); }
.toast.out { opacity: 0; transform: translate(-50%, -8px); }
@media (max-width: 600px) {
  .qscr .actions { position: sticky; bottom: 0; z-index: 5; margin: 24px -20px 0; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 78%, transparent); }
  .qscr .actions .btn.link { flex: 1 1 100%; text-align: center; padding: 4px; }
}
.srow .d i { background: var(--surface); }
.srow .d.on i { background: var(--accent); }

/* ---------- portada (placeholder de la landing) ---------- */
.home { min-height: 100dvh; display: flex; align-items: center; justify-content: space-between; gap: clamp(40px, 8vw, 140px); padding: 48px clamp(24px, 9vw, 180px); }
.home-logo { width: min(52vw, 620px); height: auto; display: block; }
.home-tag .mark { width: 50px; height: 6px; margin: 0 0 22px; background: #8A231C; }
.home-tag h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; text-transform: uppercase; letter-spacing: .01em; }
@media (max-width: 760px) {
  .home { flex-direction: column; align-items: flex-start; justify-content: center; gap: 56px; }
  .home-logo { width: 100%; max-width: 420px; }
}
