/* ===== Fuente ===== */
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../vendor/fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --brand: #0B8A63;
  --brand-d: #07654A;
  --brand-l: #E8F6F0;
  --ink: #0F1B2D;
  --ink2: #44546A;
  --muted: #7C8A9C;
  --line: #E4E8EE;
  --bg: #F7F9FB;
  --card: #FFFFFF;
  --danger: #C62828;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 4px 16px rgba(15, 27, 45, .06);
  --shadow-lg: 0 18px 50px rgba(15, 27, 45, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--brand-d); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
:focus-visible { outline: 3px solid rgba(11, 138, 99, .35); outline-offset: 2px; }

/* ===== Barra superior ===== */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.topin { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(16px, 4vw, 32px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.mainnav { display: flex; align-items: center; gap: 6px; }
.menubtn, .langlink { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; color: var(--ink2); text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.menubtn:hover, .langlink:hover, .menu.open .menubtn { background: var(--bg); color: var(--ink); }
.menu { position: static; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 70px); overflow: auto; }
.menu.open .mega { display: block; }
@media (hover: hover) and (min-width: 901px) { .menu:hover .mega { display: block; } }
.megain { max-width: 1240px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 32px) 26px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.mcol h4 { margin: 0 0 8px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mcol a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.mcol a svg { color: var(--c); flex: none; }
.mcol a:hover, .mcol a[aria-current] { background: var(--bg); }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s, border-color .15s; line-height: 1.2; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11, 138, 99, .25); }
.btn.primary:hover { background: var(--brand-d); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #C8D1DB; background: #FBFCFD; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 7px 10px; border-radius: 10px; }
.btn.big { padding: 15px 22px; font-size: 1.06rem; }
.btn.xl { padding: 17px 30px; font-size: 1.1rem; border-radius: 14px; }
.btn.full { width: 100%; }

/* ===== Portada ===== */
.hero { max-width: 1240px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 32px) 20px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 99px; background: var(--brand-l); color: var(--brand-d); font-weight: 700; font-size: .88rem; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 18px; text-wrap: balance; }
.lead { color: var(--ink2); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 54ch; margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.heroart svg { width: 100%; height: auto; display: block; }
.trust { max-width: 1240px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 32px) 6px; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trust li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink2); font-size: .95rem; }
.trust svg { color: var(--brand); flex: none; }

.tools { max-width: 1240px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 32px) 40px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.chipsrow { display: flex; flex-wrap: wrap; gap: 8px; }
.catchip { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink2); cursor: pointer; }
.catchip:hover { border-color: var(--c); color: var(--ink); }
.catchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; width: min(360px, 100%); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 12px 16px 12px 44px; border-radius: 12px; border: 1px solid var(--line); font: inherit; background: var(--card); }
.search input:focus { outline: 3px solid rgba(11, 138, 99, .22); border-color: var(--brand); }
.cat h2 { font-size: 1.1rem; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.cat h2 i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s, border-color .12s; }
.tcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 40%, white); box-shadow: 0 12px 30px rgba(15, 27, 45, .09); }
.tcard b { font-size: 1.02rem; letter-spacing: -.01em; }
.tcard span:not(.ticon) { color: var(--ink2); font-size: .9rem; line-height: 1.45; }
.ticon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 11%, white); }
.ticon.lg { width: 64px; height: 64px; border-radius: 18px; }
#noresults { text-align: center; color: var(--muted); padding: 30px; }
.why { max-width: 1240px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 32px) 50px; }
.why h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; text-align: center; margin: 20px 0 22px; }
.whygrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.whycard { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.whycard h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.whycard p { margin: 0; color: var(--ink2); }
.wicon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); }

/* ===== Página de herramienta ===== */
.tool-hero { text-align: center; padding: clamp(18px, 3vw, 30px) 20px 6px; max-width: 900px; margin: 0 auto; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-d); }
.crumbs b { color: var(--ink2); font-weight: 600; }
.tool-hero .ticon { margin: 0 auto 14px; }
.tool-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.035em; margin: 0 0 8px; line-height: 1.1; }
.tool-hero p { color: var(--ink2); font-size: 1.08rem; margin: 0 auto; max-width: 56ch; }
.app { scroll-margin-top: 84px; max-width: 1240px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 32px) 40px; }
.drop { margin: 10px auto 0; max-width: 780px; padding: clamp(36px, 6vw, 60px) 20px; text-align: center; border: 2px dashed #C6D3DE; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.drop .btn { min-width: min(320px, 100%); }
.dragging .drop, .dragging .stage { border-color: var(--brand); background: var(--brand-l); }
.drop .muted { margin: 2px 0 0; }
.privacy { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-d); font-weight: 600; font-size: .9rem; margin: 6px 0 0; }
.privacy.small { font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: 12px; display: flex; }
.privacy svg { flex: none; }

.work { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stage { min-width: 0; min-height: 380px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stage-bar { color: var(--muted); font-size: .9rem; min-height: 1.2em; margin-bottom: 10px; }
.panel { position: sticky; top: 84px; }
.panel-in { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-title { margin: 0 0 16px; font-size: 1.2rem; letter-spacing: -.01em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.opts { display: grid; gap: 14px; margin-bottom: 18px; }
.opts:empty { display: none; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { color: var(--ink2); }
.field input[type=text], .field input[type=number], .field input[type=password], .field select, .field textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-weight: 500; font-size: 16px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(11, 138, 99, .2); border-color: var(--brand); }
.field.inline { grid-template-columns: 1fr auto; align-items: center; }
.field input[type=color] { width: 52px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; }
.field input[type=range] { width: 100%; accent-color: var(--brand); }
.radios { gap: 8px; }
.radios legend { margin-bottom: 6px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.radio.on { border-color: var(--brand); background: var(--brand-l); }
.radio input { accent-color: var(--brand); margin-top: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .94rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.err { padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: #8E1D1D; font-weight: 600; font-size: .93rem; margin-bottom: 14px; }
.xfiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xfiles li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.xfiles li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xfiles li small { color: var(--muted); }
.xfiles button { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.shapebtns { display: grid; gap: 8px; }

/* Tarjetas de archivos y páginas */
.files, .pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.fcard, .pcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: box-shadow .12s, border-color .12s, opacity .12s; min-width: 0; }
.fcard[draggable=true], .pcard[draggable=true] { cursor: grab; }
.fcard:hover, .pcard:hover { box-shadow: var(--shadow); }
.fcard.over, .pcard.over { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 138, 99, .2); }
.fcard.dragged, .pcard.dragged { opacity: .4; }
.fthumb, .pthumb { width: 100%; aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--bg); border-radius: 8px; overflow: hidden; position: relative; }
.fthumb img, .fthumb canvas { max-width: 100%; max-height: 100%; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); background: #fff; }
.ficon { color: var(--muted); }
.fname { width: 100%; font-weight: 600; font-size: .86rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta { color: var(--muted); font-size: .78rem; }
.factions, .pact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.factions button, .pact button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink2); cursor: pointer; }
.factions button:hover, .pact button:hover { color: var(--ink); border-color: #C4CFCA; }
.addcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; border-radius: 14px; border: 2px dashed #C6D3DE; background: transparent; color: var(--brand-d); font: inherit; font-weight: 700; cursor: pointer; }
.addcard:hover { background: var(--brand-l); border-color: var(--brand); }
.addcard.small { min-height: 160px; }
.single { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }
.single .fcard { width: min(240px, 80%); }
.pages { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.pimg { width: 86%; height: 86%; display: grid; place-items: center; transition: transform .2s; }
.pimg img { max-width: 100%; max-height: 100%; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); background: #fff; }
.pnum { font-weight: 700; font-size: .82rem; color: var(--ink2); }
.pickable .pcard { cursor: pointer; }
.mark { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); color: transparent; }
.pcard.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 138, 99, .22); }
.pcard.sel .mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.pcard.del { border-color: var(--danger); }
.pcard.del .pimg { opacity: .35; }
.pcard.del .mark { background: var(--danger); border-color: var(--danger); color: #fff; }

/* Colocar elementos */
.placer { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pnav { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.pview { position: relative; width: 100%; display: flex; justify-content: center; }
.pview canvas { box-shadow: 0 2px 14px rgba(0, 0, 0, .14); background: #fff; display: block; }
.layer { position: absolute; top: 0; left: 50%; transform: translateX(-50%); touch-action: none; }
.item { position: absolute; cursor: move; touch-action: none; outline: 1.5px dashed transparent; user-select: none; }
.item img { width: 100%; height: 100%; display: block; pointer-events: none; }
.item.txt { white-space: pre; line-height: 1.2; font-family: Helvetica, Arial, sans-serif; padding: 0 .08em; }
.item:hover, .item.on { outline-color: var(--brand); }
.shape.s-highlight { background: color-mix(in srgb, var(--sc) 45%, transparent); mix-blend-mode: multiply; }
.shape.s-box { border: 2px solid var(--sc); }
.shape.s-line { background: var(--sc); }
.shape.s-whiteout { background: #fff; box-shadow: 0 0 0 1px #d6dde5 inset; }
.shape.s-redact { background: #000; }
.handle { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: nwse-resize; display: none; }
.item.on .handle { display: block; }
.itemedit { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Ventana de firma */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(15, 27, 45, .5); display: grid; place-items: center; padding: 16px; }
.mbox { width: min(680px, 100%); background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink2); }
.tabs button.on { background: var(--brand-l); border-color: var(--brand); color: var(--brand-d); }
#pad { width: 100%; height: auto; aspect-ratio: 1200 / 420; border: 1px dashed #C6D3DE; border-radius: 14px; touch-action: none; cursor: crosshair; background: #fff; }
.padbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.colors { display: flex; gap: 8px; }
.dot { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.dot.on { box-shadow: 0 0 0 2px var(--brand); }
#signame { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-size: 1.05rem; }
.sigfonts { display: grid; gap: 8px; margin-top: 12px; }
.sigfont { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 2.2rem; line-height: 1.3; cursor: pointer; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #111; }
.sigfont.on { border-color: var(--brand); background: var(--brand-l); }
.sigprev img { max-height: 160px; margin-top: 12px; }
.mact { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Resultado */
.done { max-width: 720px; margin: 0 auto; text-align: center; padding: 32px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ok { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); }
.done h2 { margin: 4px 0; font-size: 1.6rem; letter-spacing: -.02em; }
.stats { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-radius: 14px; background: var(--bg); }
.stats div { display: flex; flex-direction: column; }
.stats span { font-size: .8rem; color: var(--muted); }
.stats b { font-size: 1.2rem; }
.stats .arrow { color: var(--brand); }
.saved { color: var(--brand-d); font-weight: 800; margin: 0; }
.note { color: var(--ink2); background: #FFF8E1; padding: 10px 14px; border-radius: 12px; margin: 0; }
.dl { margin: 8px 0 0; }
.outlist { list-style: none; padding: 0; margin: 4px 0; width: 100%; max-height: 260px; overflow: auto; text-align: left; border: 1px solid var(--line); border-radius: 14px; }
.outlist li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.outlist li:last-child { border-bottom: 0; }
.outlist span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.outlist small { color: var(--muted); }
.next { width: 100%; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.next h3 { margin: 0 0 12px; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.chip svg { color: var(--c); }
.chip:hover { border-color: var(--c); }

/* Cargando */
.busy { position: fixed; inset: 0; z-index: 70; background: rgba(247, 249, 251, .82); display: grid; place-items: center; backdrop-filter: blur(2px); }
.busybox { text-align: center; padding: 28px 36px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); min-width: 250px; }
.busybox p { font-weight: 700; margin: 14px 0 0; }
.spin { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 5px solid var(--brand-l); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pbar { height: 6px; border-radius: 6px; background: var(--brand-l); margin-top: 14px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: min(92vw, 560px); padding: 13px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .5s; }
.toast.out { opacity: 0; }

/* Contenido para Google */
.info { max-width: 980px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 32px) 30px; }
.info h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 34px 0 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-weight: 800; margin-bottom: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--ink2); margin: 10px 0 0; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Pie */
footer { background: var(--ink); color: #C9D3DF; padding: 44px clamp(16px, 4vw, 32px) 28px; margin-top: 30px; }
.fcols { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.fcols h3 { font-size: .82rem; margin: 0 0 10px; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.fcols a { display: block; color: #AEB9C7; text-decoration: none; font-size: .88rem; padding: 3px 0; }
.fcols a:hover { color: #fff; }
.fbottom { max-width: 1240px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8C99AA; font-size: .85rem; }
.fbrand { display: inline-flex; align-items: center; gap: 8px; }

/* ===== Pantallas medianas y celular ===== */
@media (max-width: 1100px) {
  .megain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fcols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero .lead { margin: 0 auto; }
  .ctas { justify-content: center; }
  .heroart { max-width: 380px; margin: 0 auto; width: 100%; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whygrid { grid-template-columns: minmax(0, 1fr); }
  .work { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .stage { min-height: 0; }
  .burger { display: grid; }
  .mainnav { margin-left: auto; }
  .mainnav .menu { display: none; }
  .mainnav .menu.open { display: block; }
  .megain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .langlink span { display: none; }
  .heroart { max-width: 280px; }
  .files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tcard { padding: 14px; gap: 6px; }
  .tcard b { font-size: .95rem; line-height: 1.25; }
  .tcard span:not(.ticon) { font-size: .8rem; }
  .ticon { width: 38px; height: 38px; }
  .stage { padding: 12px; }
  .trust li { font-size: .85rem; padding: 12px 8px; }
  .chipsrow { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
  .catchip { flex: none; }
  .search { width: 100%; }
  .megain { grid-template-columns: minmax(0, 1fr); }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pact button { width: 26px; height: 26px; }
  .btn.xl { padding: 15px 22px; font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
