/* RocaHub PDF · mismos tokens que rocahub.com */
:root {
  --bg: #f5f7fc; --surface: #fff; --ink: #0b1220; --muted: #5a6478; --line: #e1e7f2;
  --accent: #3b5bdb; --accent-ink: #fff; --accent-soft: #eaeefd; --accent-line: #c3cdf7;
  --bad: #d6455d; --bad-bg: #fdeef1; --ok: #1f9d6b; --ok-bg: #e6f6ef; --warn: #b45309; --warn-bg: #fff4e0;
  --radius: 16px; --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 8px 24px rgba(11,18,32,.06);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--accent); }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.15; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--surface); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); font-weight: 400; }
.nojs { background: var(--warn-bg); color: var(--warn); padding: 12px 14px; margin: 16px; border-radius: 10px; }

/* ---------- cabecera ---------- */
.site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand b { color: var(--accent); }
.nav { display: none; gap: 26px; margin-inline: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.is-cur { color: var(--ink); }
.pill-top { display: none; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 6px 12px; border-radius: 999px; }
.pill-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
@media (min-width: 820px) { .nav { display: flex; } .pill-top { display: inline-flex; } }

/* ---------- inicio ---------- */
.hero { text-align: center; padding: 56px 16px 28px; background: radial-gradient(60% 70% at 50% 0%, #e3e9ff 0%, transparent 70%); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--surface); border: 1px solid var(--accent-line); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; max-width: 16ch; margin-inline: auto; }
.hl { color: var(--accent); }
.lead { color: var(--muted); max-width: 56ch; margin: 16px auto 26px; font-size: 1.08rem; }
.search { position: relative; max-width: 560px; margin-inline: auto; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; font: inherit; padding: 17px 18px 17px 50px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); min-height: 58px; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.try { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.try button { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .85rem; }
.try button:hover { border-color: var(--accent); color: var(--accent); }
.hint-drop { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.tools { padding-top: 22px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; justify-content: center; }
.cat { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--muted); }
.cat:hover { color: var(--ink); }
.cat.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.tcard:not(.soon):hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(59,91,219,.14); border-color: var(--accent-line); }
.tc-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.tcard b { font-family: var(--display); font-size: 1.1rem; }
.tc-d { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.tcard.soon { opacity: .6; background: transparent; border-style: dashed; }
.pill { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); padding: 3px 9px; border-radius: 999px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; }

.why { padding-top: 72px; }
.why > h2 { text-align: center; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 26px; }
.vs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs-col { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.vs-col h3 { font-size: 1.15rem; margin-bottom: 14px; }
.vs-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.vs-col li { position: relative; padding-left: 28px; font-size: .96rem; }
.vs-col li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.vs-col.bad li::before { content: "✕"; background: var(--bad-bg); color: var(--bad); }
.vs-col.good { border-color: var(--accent-line); box-shadow: 0 10px 30px rgba(59,91,219,.1); }
.vs-col.good li::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }
.vs-col.bad { color: var(--muted); }
.perks { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.perks > div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pk { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.perks b { font-family: var(--display); display: block; margin-bottom: 4px; }
.perks p { color: var(--muted); font-size: .92rem; }

/* ---------- herramienta ---------- */
.tool-wrap { padding-top: 22px; padding-bottom: 130px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.back:hover { color: var(--accent); }
.tool-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.tool-ico { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(59,91,219,.3); }
.tool-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
.tool-head p { color: var(--muted); }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.steps i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); font-style: normal; font-size: .75rem; }
.steps .is-on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.steps .is-on i { background: var(--accent); color: #fff; }
.steps .is-done i { background: var(--ok); color: #fff; }
.steps .is-done { color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.ico { display: inline-flex; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: .98rem; text-decoration: none; transition: transform .15s var(--ease), filter .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-main { background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: 1.08rem; min-height: 54px; padding: 0 28px; box-shadow: 0 6px 16px rgba(59,91,219,.28); }
.btn-main:hover { filter: brightness(1.08); }
.btn-sec { background: var(--accent-soft); color: var(--accent); }
.btn-sec:hover { filter: brightness(.96); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--muted); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.link { color: var(--accent); font-weight: 600; font-size: .88rem; background: none; text-decoration: underline; }
.ibtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.ibtn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.ibtn.danger:hover { color: var(--bad); border-color: #f2b8c2; background: var(--bad-bg); }

/* zona de soltar */
.dz { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 20px; border: 2px dashed var(--accent-line); border-radius: 22px; background: var(--surface); cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.dz:hover, .dz.is-drag { background: var(--accent-soft); border-color: var(--accent); }
.dz.is-drag { transform: scale(1.01); }
.dz-ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.dz h2 { font-size: clamp(1.3rem, 3.6vw, 1.8rem); font-weight: 800; }
.dz p { color: var(--muted); max-width: 44ch; }
.dz .btn { margin-top: 8px; pointer-events: none; }
.dz-priv { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; margin-top: 6px; }

/* barra de herramientas y avisos */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tb-l { min-width: 0; overflow-wrap: anywhere; }
.tb-r { display: flex; flex-wrap: wrap; gap: 8px; }
.tip { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.warn { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 10px; font-size: .88rem; margin-top: 10px; }

/* lista de archivos (unir) */
.flist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 16px; }
.fcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; cursor: grab; transition: border-color .15s, transform .2s var(--ease), opacity .15s; }
.fcard.dragging { opacity: .4; }
.fcard.over, .ocell.over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.02); }
.forder { position: absolute; top: 14px; left: 14px; z-index: 2; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; }
.fthumb { aspect-ratio: 3 / 4; border-radius: 9px; background: #eef1f8; display: grid; place-items: center; overflow: hidden; }
.fthumb img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.fmeta { min-width: 0; }
.fmeta b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta small { color: var(--muted); font-size: .78rem; }
.facts { display: flex; gap: 6px; justify-content: space-between; }

/* cuadrícula de páginas */
.pgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); margin-bottom: 16px; }
.pcell { position: relative; display: block; width: 100%; padding: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; text-align: center; transition: border-color .15s, background .15s, transform .15s var(--ease); }
button.pcell:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pth { display: grid; place-items: center; aspect-ratio: 3 / 4; background: #eef1f8; border-radius: 6px; overflow: hidden; }
.pth img { max-width: 100%; max-height: 100%; opacity: 0; transition: opacity .25s; background: #fff; }
.pth img.ld { opacity: 1; }
.pnum { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tick { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: none; place-items: center; }
.pcell.is-on { border-color: var(--accent); background: var(--accent-soft); }
.pcell.is-on .tick { display: grid; }
.pgrid.is-locked .pcell { pointer-events: none; }
.pgrid.is-locked .tick { display: none !important; }
.pbadge { position: absolute; left: 12px; top: 12px; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--accent); }
.pbadge[data-c="1"] { background: #0f9d8a; } .pbadge[data-c="2"] { background: #d97706; } .pbadge[data-c="3"] { background: #c026d3; }
.pbadge[data-c="4"] { background: #e11d48; } .pbadge[data-c="5"] { background: #4d7c0f; }
.split-ctl .row, .opts .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.split-ctl .row .inp { flex: 1 1 200px; margin: 0; }
.lbl.inline { margin: 0; }

/* organizar */
.ogrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 16px; }
.ocell { position: relative; padding: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; cursor: grab; transition: border-color .15s, transform .2s var(--ease); }
.ocell.dragging { opacity: .4; }
.obox { position: relative; aspect-ratio: 1; background: #eef1f8; border-radius: 9px; overflow: hidden; }
.obox img { position: absolute; left: 50%; top: 50%; height: auto; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.14); transition: transform .3s var(--ease); }
.onum { position: absolute; top: 12px; left: 12px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(11,18,32,.72); color: #fff; font-size: .72rem; font-weight: 700; }
.oacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 8px; }
.oacts .ibtn { width: 30px; height: 30px; border-radius: 8px; }
.oacts .ibtn svg { width: 15px; height: 15px; }

/* opciones */
.opts { display: grid; gap: 18px; margin-bottom: 16px; align-content: start; }
.opts h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.opts.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; }
.lbl { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.inp { width: 100%; font: inherit; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); min-height: 46px; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp.bad { border-color: var(--bad); }
.inp.num { width: 96px; }
.rng { width: 100%; accent-color: var(--accent); height: 34px; }
.chk { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.seg button { display: flex; flex-direction: column; align-items: center; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); line-height: 1.25; transition: border-color .15s, background .15s; }
.seg button b { font-size: .92rem; font-weight: 600; }
.seg button small { font-size: .74rem; color: var(--muted); font-weight: 400; }
.seg button:hover { border-color: var(--accent-line); }
.seg button.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.seg button.is-on small { color: var(--accent); }
.sws { display: flex; gap: 10px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); }
.sw.is-on { box-shadow: 0 0 0 2.5px var(--accent); }
.pos-pick { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; width: 150px; height: 190px; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); }
.pp { display: grid; place-items: center; border-radius: 6px; border: 1.5px dashed var(--line); }
.pp i { width: 12px; height: 4px; border-radius: 2px; background: var(--line); }
.pp[data-p^="t"] { align-items: start; } .pp[data-p^="b"] { align-items: end; }
.pp:hover { border-color: var(--accent-line); }
.pp.is-on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.pp.is-on i { background: var(--accent); }

/* vista previa en vivo */
.lay { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; align-items: start; }
@media (min-width: 860px) { .lay { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lay.sign { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); } }
.pv-box { position: relative; padding: 14px; background: #e9edf7; border-radius: var(--radius); display: grid; place-items: center; min-height: 280px; }
.pv-img { max-height: 560px; width: auto; box-shadow: 0 6px 24px rgba(11,18,32,.18); background: #fff; }
.pv-tag { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700; background: var(--surface); padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.pv-box.err { opacity: .6; }
.pv-wait { color: var(--muted); font-size: .9rem; }

/* firmar */
.sg-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.sg-lbl { font-weight: 600; font-size: .9rem; min-width: 120px; text-align: center; }
.sg-page { position: relative; background: #e9edf7; padding: 12px; border-radius: var(--radius); }
.sg-page::before { content: ""; position: absolute; inset: 12px; }
.sg-canvas { width: 100%; height: auto; background: #fff; box-shadow: 0 6px 24px rgba(11,18,32,.16); }
.sg-page.is-loading .sg-canvas { opacity: .5; }
.sg-box { position: absolute; cursor: move; touch-action: none; outline: 2px dashed var(--accent); outline-offset: 3px; border-radius: 3px; margin: 12px 0 0 12px; }
.sg-sig { width: 100%; height: auto; pointer-events: none; user-select: none; }
.sg-handle { position: absolute; right: -9px; bottom: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; cursor: nwse-resize; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.sg-padwrap { position: relative; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.sg-pad { width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
.sg-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); color: #b6bdcc; font-size: .8rem; pointer-events: none; }
.sg-type { font-family: "Dancing Script", cursive; font-size: 1.6rem; }

/* progreso, error, resultado */
.prog, .fail, .res { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 44px 20px; }
.prog h2, .fail h2, .res h2 { font-size: 1.6rem; font-weight: 800; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { width: min(380px, 100%); height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; border-radius: 99px; }
.prog-txt { color: var(--muted); font-size: .9rem; max-width: 100%; overflow-wrap: anywhere; }
.fail-ico, .res-ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; }
.fail-ico { background: var(--bad-bg); color: var(--bad); }
.res-ico { background: var(--ok-bg); color: var(--ok); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.res-size { color: var(--muted); font-weight: 600; }
.res-note { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 10px; font-size: .9rem; max-width: 460px; }
.res .btn-main { margin-top: 6px; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.res-list { list-style: none; padding: 0; width: min(460px, 100%); display: grid; gap: 6px; text-align: left; }
.res-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; }
.res-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-list small { color: var(--muted); }
.res-next { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); width: min(640px, 100%); }
.res-next p { font-weight: 600; margin-bottom: 10px; }
.res-next .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-next { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .88rem; }
.chip-next:hover { background: var(--accent); color: #fff; }

/* barra inferior fija */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.ab-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ab-info { color: var(--muted); font-size: .9rem; font-weight: 500; flex: 1 1 160px; }
.ab-in .btn-main { flex: 0 1 auto; }
@media (max-width: 520px) { .ab-in .btn-main { width: 100%; } }

/* soltar en el inicio + selector */
.drop-ov { position: fixed; inset: 0; z-index: 60; background: rgba(59,91,219,.9); display: grid; place-items: center; color: #fff; pointer-events: none; }
.drop-ov div { display: grid; justify-items: center; gap: 10px; font-family: var(--display); font-size: 1.8rem; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(11,18,32,.5); display: grid; place-items: center; padding: 16px; }
.modal-in { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 20px; padding: 26px 20px 20px; box-shadow: 0 30px 80px rgba(11,18,32,.35); }
.modal-in h2 { font-size: 1.3rem; padding-right: 30px; margin-bottom: 16px; overflow-wrap: anywhere; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); }
.modal-x:hover { background: var(--bg); }
.modal ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.modal li button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; }
.modal li button:hover { border-color: var(--accent); background: var(--accent-soft); }
.modal li .tc-ico { width: 44px; height: 44px; margin: 0; flex: none; }
.modal li b { display: block; font-family: var(--display); }
.modal li small { color: var(--muted); font-size: .82rem; line-height: 1.3; display: block; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 80; max-width: min(92vw, 460px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 26px; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--muted); }
@media (min-width: 720px) { .foot-in { flex-direction: row; justify-content: space-between; } }

@media (max-width: 560px) {
  .hero { padding-top: 38px; }
  .steps li { padding-right: 10px; font-size: .8rem; }
  .tool-ico { width: 52px; height: 52px; }
  .dz { padding: 40px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
