/* Convertix — rosa mexicano, índigo y mango. Tipografía: Archivo (ancho variable). */
@font-face {
  font-family: 'Archivo';
  src: url(fonts/archivo-var.woff2) format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #F6F3FF;
  --ink: #1B1464;
  --muted: #4A4380;
  --on-dark-muted: #D9D4FF;
  --card: #ffffff;
  --line: rgba(27, 20, 100, .2);
  --accent: #E4007C;
  --accent-ink: #ffffff;
  --accent-soft: #FDE4F1;
  --mango: #FFB627;
  --teal: #12B5A6;
  --ok: #0C7F74;
  --warn: #8A5A00;
  --err: #B3261E;
  --radius: 22px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); font-stretch: 100%; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
img, canvas, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: .92rem; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .on-pink :focus-visible { outline-color: var(--mango); }
.on-pink .btn:focus-visible, .on-pink .chip:focus-visible { outline-color: #fff; }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 30px; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; line-height: 1; }
.brand svg { width: 38px; height: 38px; flex: none; }
.on-pink .brand { color: #fff; }
.on-dark .brand { color: #fff; font-size: 26px; }
.on-dark .brand svg { width: 34px; height: 34px; }

/* ---------- cabecera ---------- */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 24px 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; flex-grow: 1; font-size: 17px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.on-pink .site-nav a { color: #fff; }
.on-pink .site-nav a:hover { text-decoration-color: #fff; }

/* ---------- botones ---------- */
.btn { appearance: none; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; padding: 12px 24px; min-height: 48px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, color .15s; }
.btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px; padding: 14px 32px; min-height: 52px; }
.btn-primary:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.btn-small { padding: 8px 16px; min-height: 40px; font-size: 15px; }
.btn-mango { background: var(--mango); border-color: var(--mango); color: var(--ink); font-weight: 800; font-size: 18px; padding: 14px 32px; min-height: 52px; }
.btn-mango:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--ink); }
.install-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-pink .install-btn { background: var(--ink); }
.on-dark .install-btn { background: transparent; border-color: #fff; color: #fff; }
.icon-btn { appearance: none; border: 2px solid var(--ink); background: #fff; color: var(--ink); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: .9rem; line-height: 1; display: inline-grid; place-items: center; padding: 0; }
.icon-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- portada ---------- */
.hero-pink { background: var(--accent); color: #fff; }
.hero-body { padding: 40px 0 96px; }
.morph-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: .14em; font-size: clamp(56px, 13vw, 190px); line-height: .95; font-weight: 800; letter-spacing: -.02em; overflow: hidden; }
.morph-row .m-from, .morph-row .m-to { transition: font-stretch .5s cubic-bezier(.7, 0, .2, 1); }
.morph-row .m-from { color: var(--ink); font-stretch: 125%; }
.morph-row .m-to { color: #fff; font-stretch: 62%; }
.morph-row.squeeze .m-from { font-stretch: 62%; }
.morph-row.squeeze .m-to { font-stretch: 125%; }
.morph-row svg { width: .62em; height: .62em; flex: none; }
.hero-cols { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; margin-top: 40px; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero-text h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; }
.hero-text p { margin: 20px 0 28px; font-size: 20px; line-height: 1.5; max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { cursor: pointer; background: transparent; color: #fff; border: 2px solid #fff; border-radius: 14px; padding: 12px 18px; font: inherit; font-size: 17px; font-weight: 700; min-height: 48px; transition: background .15s, color .15s; }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); }
.hero-panel { flex: 1 1 420px; max-width: 560px; background: var(--ink); border-radius: 32px; padding: 20px; color: #fff; }
.hero-drop { border: 2.5px dashed var(--mango); border-radius: 22px; padding: 44px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.hero-drop svg { width: 56px; height: 56px; }
.hero-drop .t { font-size: 30px; font-weight: 800; line-height: 1.1; }
.hero-drop .s { font-size: 18px; color: var(--on-dark-muted); }
.hero-drop .btn-mango { margin-top: 8px; }
.hero-note { margin: 16px 8px 4px; display: flex; gap: 10px; align-items: center; font-size: 15px; line-height: 1.4; color: var(--on-dark-muted); }
.hero-note svg { width: 20px; height: 20px; flex: none; }

.band { padding: 104px 0; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.band .txt { flex: 1 1 420px; min-width: 0; }
.h2-big { margin: 0; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; }
.band p { margin: 20px 0 0; font-size: 20px; line-height: 1.55; max-width: 28em; }
.plane-card { flex: 1 1 420px; max-width: 520px; background: var(--ink); color: #fff; border-radius: 32px; padding: 28px; }
.plane-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plane-top .lbl { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; }
.plane-top .lbl svg { width: 28px; height: 28px; }
.switch { width: 76px; height: 42px; border-radius: 999px; border: 2px solid var(--on-dark-muted); background: transparent; padding: 4px; display: flex; align-items: center; justify-content: flex-start; cursor: pointer; }
.switch span { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: block; }
.switch[aria-checked="true"] { background: var(--mango); justify-content: flex-end; }
.switch[aria-checked="true"] span { background: var(--ink); }
.plane-card hr { border: 0; height: 1px; background: rgba(255, 255, 255, .2); margin: 22px 0; }
.plane-on { display: flex; flex-direction: column; gap: 14px; }
.plane-on .tag { align-self: flex-start; background: var(--mango); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 800; }
.plane-on .bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.plane-on .bar i { display: block; height: 100%; width: 0; background: var(--mango); border-radius: 999px; }
.plane-on.run .bar i { animation: fillbar 2.4s linear forwards; }
.plane-on .ok { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--teal); opacity: 0; }
.plane-on .ok svg { width: 24px; height: 24px; }
.plane-on.run .ok { animation: pop .3s ease 2.4s forwards; }
.plane-off { margin: 0; font-size: 18px; line-height: 1.5; color: var(--on-dark-muted); }
@keyframes fillbar { from { width: 0; } to { width: 100%; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- tabla de conversiones ---------- */
.table-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { cursor: pointer; background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 20px; font: inherit; font-size: 16px; font-weight: 700; min-height: 44px; }
.tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.conv-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1.5px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) 28px; align-items: center; gap: 24px; padding: 20px 16px; border-bottom: 1.5px solid var(--line); color: var(--ink); text-decoration: none; transition: background .15s, color .15s; }
.row .pair { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .ext { font-size: 40px; font-weight: 800; font-stretch: 75%; line-height: 1; white-space: nowrap; }
.row .pair svg { width: 24px; height: 24px; flex: none; }
.row .nm { font-size: 20px; font-weight: 700; }
.row .d { color: var(--muted); font-size: 16px; line-height: 1.4; margin-top: 2px; }
.row > svg { width: 24px; height: 24px; }
.row:hover, .row:focus-visible { background: var(--accent); color: #fff; }
.row:hover .d, .row:focus-visible .d { color: #fff; }
.row.sm { padding: 16px; }
.row.sm .ext { font-size: 32px; }

/* ---------- guías en portada ---------- */
.guides-band { display: flex; flex-wrap: wrap; gap: 40px 72px; padding: 0 0 120px; }
.guides-band .intro { flex: 1 1 320px; min-width: 0; max-width: 420px; }
.guides-band .intro p { margin: 20px 0 0; font-size: 18px; line-height: 1.55; }
.more-link { font-size: 18px; font-weight: 800; color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.post-list { flex: 2 1 520px; min-width: 0; border-top: 1.5px solid var(--line); list-style: none; margin: 0; padding: 0; }

/* ---------- pie ---------- */
.site-footer { background: var(--ink); color: #fff; margin-top: 64px; }
.site-footer .big { margin: 0; padding-top: 88px; font-size: clamp(40px, 6vw, 88px); line-height: .98; font-weight: 800; font-stretch: 80%; letter-spacing: -.015em; max-width: 11em; }
.site-footer .foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 40px 0 48px; font-size: 16px; }
.site-footer .big + .foot-row { margin-top: 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--mango); text-underline-offset: 6px; }
.site-footer .copy { color: var(--on-dark-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- página de herramienta ---------- */
.crumbs { font-size: 15px; padding-top: 24px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head { padding: 24px 0 40px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.page-head h1 { margin: 0; font-size: clamp(48px, 9vw, 140px); line-height: .92; font-weight: 800; font-stretch: 70%; letter-spacing: -.02em; color: var(--accent); overflow-wrap: anywhere; }
.page-head p { margin: 0; flex: 1 1 320px; max-width: 30em; font-size: 20px; line-height: 1.55; }
.page-head.plain h1 { font-size: clamp(40px, 6vw, 84px); }
.page-head.plain { display: block; }
.page-head.plain p { max-width: 40em; margin-top: 16px; }
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 0; }
.cat-nav a { border: 2px solid var(--ink); border-radius: 999px; padding: 6px 18px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; }
.cat-nav a:hover { background: var(--ink); color: #fff; }
.cat-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.tool-shell { background: #fff; border: 2px solid var(--ink); border-radius: 32px; padding: 28px; min-height: 340px; }
.privacy-note { margin: 16px 4px 0; display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--muted); }
.privacy-note svg { width: 20px; height: 20px; flex: none; }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; min-height: 260px; padding: 56px 28px; border: 2.5px dashed var(--accent); border-radius: 22px; cursor: pointer; transition: background .15s; }
.drop:hover, .drop:focus-visible, .drop.over { background: var(--accent-soft); }
.drop strong { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; font-weight: 800; }
.drop .muted { font-size: 18px; }
.drop-icon { width: 56px; height: 56px; }
.drop-icon svg { width: 100%; height: 100%; }
.drop-btn { margin-top: 8px; pointer-events: none; }

.filelist { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1.5px solid var(--line); }
.filelist li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.ficon { font-size: 1.6rem; width: 44px; text-align: center; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.finfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 18px; }
.factions { display: flex; gap: 8px; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.field select, .field input[type="text"], .field input[type="number"], .page-input { font: inherit; font-size: 17px; font-weight: 500; padding: 10px 12px; min-height: 46px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field input[type="range"] { width: 100%; accent-color: var(--accent); }
.field input[type="color"] { width: 64px; height: 40px; border: 2px solid var(--ink); border-radius: 10px; padding: 2px; background: #fff; }
.field input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); }
.field input[type="range"] + span { display: block; margin-top: 2px; }
.fileinfo { margin: 0 0 8px; font-weight: 700; font-size: 18px; }
.inline { display: flex; align-items: center; gap: 8px; font-weight: 500; flex-wrap: wrap; }
.field[hidden], .options > [hidden] { display: none; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.toolbar .sep { width: 2px; height: 24px; background: var(--line); margin: 0 4px; }
.page-input { width: 72px; text-align: center; }
.zoom-lbl { min-width: 56px; text-align: center; font-size: .95rem; color: var(--muted); }
.stage { background: repeating-conic-gradient(rgba(27,20,100,.08) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px; border-radius: 16px; padding: 12px; overflow: auto; max-height: 75vh; text-align: center; }
.view-canvas { background: #fff; box-shadow: 0 2px 16px rgba(27, 20, 100, .25); max-width: none; display: inline-block; }

.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 12px; }
.page-card { border: 2px solid var(--ink); border-radius: 16px; background: var(--bg); padding: 8px; cursor: grab; }
.page-card.dragging { opacity: .4; }
.thumb-wrap { height: 150px; display: grid; place-items: center; overflow: hidden; }
.rot { transition: transform .2s; display: grid; place-items: center; }
.rot canvas { max-width: 130px; max-height: 130px; width: auto; height: auto; background: #fff; box-shadow: 0 1px 6px rgba(27, 20, 100, .3); }
.pc-bar { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; margin-top: 6px; }
.pc-bar .muted { width: 100%; text-align: center; }
.pc-bar .icon-btn { width: 32px; height: 32px; border-radius: 8px; border-width: 1.5px; }

.results { margin-top: 24px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.result { margin: 0; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.result img { width: 100%; height: 150px; object-fit: contain; background: repeating-conic-gradient(rgba(27,20,100,.08) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px; }
.result figcaption { display: flex; flex-direction: column; gap: 6px; padding: 12px; }

.wave { width: 100%; height: 140px; background: var(--bg); border: 2px solid var(--ink); border-radius: 16px; margin-top: 12px; display: block; }
.audio-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; margin-bottom: 12px; }
.audio-item audio { grid-column: 1 / -1; width: 100%; height: 40px; }

/* ---------- pasos, preguntas y texto ---------- */
.info-cols { display: flex; flex-wrap: wrap; gap: 48px 80px; padding: 24px 0 64px; }
.info-cols > section { flex: 1 1 380px; min-width: 0; }
.h2-mid { margin: 0 0 28px; font-size: clamp(34px, 3.8vw, 52px); line-height: 1; font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; counter-reset: s; }
.steps li { display: flex; gap: 20px; align-items: flex-start; counter-increment: s; font-size: 19px; line-height: 1.5; }
.steps li::before { content: counter(s); font-size: 64px; font-weight: 800; font-stretch: 70%; line-height: .9; color: var(--accent); width: 40px; flex: none; }
.steps li span { padding-top: 4px; }
details { border-bottom: 1.5px solid var(--line); }
details:first-of-type { border-top: 1.5px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 56px; font-size: 20px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: 24px; height: 24px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1464' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.content { max-width: 46em; }
.content h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; margin: 56px 0 16px; }
.content p, .content li { line-height: 1.7; }
.content ol, .content ul { padding-left: 1.3rem; }
.content li { margin: 6px 0; }
.legal { padding-bottom: 24px; }
.legal h2 { margin-top: 40px; }
.guides ul { padding-left: 1.2rem; }
.related { padding: 32px 0 0; }
.conv-table { border-collapse: collapse; width: 100%; max-width: 520px; margin: 8px 0 20px; }
.conv-table th, .conv-table td { border: 1.5px solid var(--line); padding: 10px 14px; text-align: left; }
.conv-table th { background: #fff; }

/* ---------- anuncios ---------- */
.ad-slot { margin: 48px 0; text-align: center; min-height: 120px; }
.ad-placeholder { min-height: 120px; border: 1.5px dashed rgba(27, 20, 100, .35); border-radius: 18px; display: grid; place-items: center; font-size: 15px; color: var(--muted); }

/* ---------- aviso ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 16px; max-width: min(520px, 92vw); font-size: 16px; font-weight: 600; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--err); }
.toast.ok { background: var(--ok); }
.toast.warn { background: var(--warn); }

/* ---------- blog ---------- */
.post { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 24px 0; border-bottom: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.post .pt { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; font-stretch: 90%; line-height: 1.15; }
.post:hover .pt { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.post .pd { grid-column: 1; color: var(--muted); margin: 0; font-size: 17px; max-width: 40em; }
.post .pm { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.pill { display: inline-block; background: var(--mango); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 800; text-decoration: none; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.article { max-width: 760px; padding-bottom: 24px; }
.article h1 { font-size: clamp(36px, 5.5vw, 68px); line-height: 1; letter-spacing: -.02em; font-weight: 800; font-stretch: 80%; margin: 16px 0 16px; }
.article .lead { font-size: 21px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.article-body { font-size: 19px; }
.article-body h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; margin: 48px 0 12px; }
.article-body h3 { font-size: 22px; margin: 28px 0 8px; font-weight: 800; }
.article-body p, .article-body li { line-height: 1.7; }
.article-body blockquote { margin: 24px 0; padding: 4px 20px; border-left: 6px solid var(--accent); background: var(--accent-soft); border-radius: 0 16px 16px 0; }
.article-body code { background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.article-body table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 17px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1.5px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: #fff; }
.tool-cta { display: flex; align-items: center; gap: 16px; margin: 28px 0; padding: 18px 22px; background: var(--ink); color: #fff; border-radius: 22px; text-decoration: none; }
.tool-cta .ico { font-size: 1.8rem; }
.tool-cta div { flex: 1; display: flex; flex-direction: column; }
.tool-cta span { color: var(--on-dark-muted); font-size: 15px; }
.tool-cta .go { color: var(--mango); font-weight: 800; white-space: nowrap; }
.tool-cta:hover { background: var(--accent); }
.tool-cta:hover span, .tool-cta:hover .go { color: #fff; }

/* ---------- herramientas extra ---------- */
.code-area { width: 100%; font: 15px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 14px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); resize: vertical; min-height: 140px; margin-top: 12px; }
.code-out { margin: 12px 0 0; padding: 14px; max-height: 320px; overflow: auto; border: 2px solid var(--ink); border-radius: 16px; background: var(--bg); font: 14px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
.big-out { margin: 20px 0 0; padding: 20px 24px; font-size: clamp(22px, 3vw, 34px); font-weight: 800; font-stretch: 90%; line-height: 1.25; border: 2.5px solid var(--accent); border-radius: 22px; background: #fff; word-break: break-word; min-height: 3.4rem; }
.sig-pad { width: 100%; max-width: 600px; aspect-ratio: 600 / 220; border: 2.5px dashed var(--accent); border-radius: 18px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.sig-box { margin: 0 0 20px; }
.sig-stage { position: relative; display: inline-block; touch-action: none; cursor: crosshair; }
.sig-overlay { position: absolute; pointer-events: none; outline: 2px dashed var(--accent); max-width: none; }
.qr-out { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 20px 0; }
.qr-canvas { width: min(320px, 100%); height: auto; image-rendering: pixelated; border: 2px solid var(--ink); border-radius: 16px; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .morph-row .m-from, .morph-row .m-to, .chip, .row, .rot, summary::after { transition: none; }
  .plane-on.run .bar i { animation: none; width: 100%; }
  .plane-on.run .ok { animation: none; opacity: 1; }
}

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .row { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 16px; }
  .row .b { grid-column: 1; grid-row: 2; }
  .row > svg { grid-column: 2; grid-row: 1; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 64px 0; }
  .tool-shell { padding: 16px; border-radius: 24px; }
  .drop { padding: 40px 16px; min-height: 220px; }
  .hero-body { padding-bottom: 56px; }
  .hero-drop { padding: 32px 20px; }
  .site-header .wrap { padding: 16px 0; }
  .brand { font-size: 26px; }
  .site-footer .big { padding-top: 56px; }
}

/* ---- portada: grupos desplegables con fichas ---- */
.table-sub { margin: 0; color: var(--muted); font-size: 18px; }
.groups { margin-top: 32px; display: grid; gap: 14px; }
.grp { --c: var(--accent); --c-soft: var(--accent-soft); background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.grp.indigo { --c: var(--ink); --c-soft: #E4E0FF; }
.grp.mango { --c: #B87A00; --c-soft: #FFF0CC; }
.grp.teal { --c: #0C7F74; --c-soft: #D6F3EF; }
.grp summary { list-style: none; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer; min-height: 88px; }
.grp summary::-webkit-details-marker { display: none; }
.grp summary:hover, .grp summary:focus-visible { background: var(--c-soft); }
.grp .gi { width: 56px; height: 56px; border-radius: 16px; background: var(--c); color: #fff; display: grid; place-items: center; }
.grp .gi svg { width: 30px; height: 30px; }
.grp .gt { display: grid; gap: 2px; min-width: 0; }
.grp .gn { font-size: clamp(26px, 3vw, 36px); font-weight: 800; font-stretch: 80%; line-height: 1; }
.grp .gh { color: var(--muted); font-size: 16px; }
.grp .gp { display: flex; gap: 8px; }
.grp .pv { background: var(--c-soft); color: var(--c); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-stretch: 80%; font-size: 18px; white-space: nowrap; }
.grp .gc { background: var(--ink); color: #fff; border-radius: 999px; min-width: 38px; height: 38px; display: grid; place-items: center; font-weight: 800; font-size: 16px; padding: 0 10px; }
.grp .gx { width: 22px; height: 22px; position: relative; }
.grp .gx::before, .grp .gx::after { content: ''; position: absolute; left: 3px; right: 3px; top: 10px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.grp .gx::after { transform: rotate(90deg); }
.grp[open] .gx::after { transform: rotate(0); }
.grp[open] summary { background: var(--c-soft); border-bottom: 2px solid var(--ink); }
.tiles { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 10px; align-content: space-between; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; background: var(--bg); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.tile .pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile .ext { font-size: 30px; font-weight: 800; font-stretch: 72%; line-height: 1; white-space: nowrap; }
.tile .pair svg { width: 20px; height: 20px; flex: none; color: var(--c); }
.tile .nm { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.tile:hover, .tile:focus-visible { background: var(--c); border-color: var(--c); color: #fff; transform: translateY(-2px); }
.tile:hover .nm, .tile:hover .pair svg, .tile:focus-visible .nm, .tile:focus-visible .pair svg { color: #fff; }
@media (max-width: 720px) {
  .grp summary { grid-template-columns: 48px minmax(0, 1fr) auto 24px; gap: 12px; padding: 14px; }
  .grp .gi { width: 48px; height: 48px; }
  .grp .gp { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 10px; }
  .tile .ext { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tile, .grp .gx::before, .grp .gx::after { transition: none; } .tile:hover { transform: none; } }

.grp summary::after { content: none; }
.grp summary { font-size: inherit; font-weight: inherit; }
.tile .ext { font-size: 26px; }
.tile .pair { flex-wrap: nowrap; gap: 6px; }
.tile .pair svg { width: 16px; height: 16px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 720px) { .tile .ext { font-size: 20px; } .tile { padding: 12px; } .tile .pair { gap: 4px; } .tile .pair svg { width: 13px; height: 13px; } }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- selector de idioma ---- */
.n { font-weight: inherit; }
.lang-sw { position: relative; margin-left: auto; }
.lang-sw + .install-btn { margin-left: 12px; }
.lang-sw summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px; border: 2px solid currentColor; border-radius: 999px; cursor: pointer; font-size: 16px; font-weight: 800; color: inherit; }
.lang-sw summary::after { content: none; }
.lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw svg { width: 20px; height: 20px; }
.lang-sw ul { list-style: none; margin: 8px 0 0; padding: 8px; position: absolute; right: 0; z-index: 30; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; min-width: 210px; box-shadow: 0 12px 32px rgba(27, 20, 100, .22); max-height: 70vh; overflow: auto; }
.lang-sw li a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.lang-sw li a:hover, .lang-sw li a:focus-visible { background: var(--accent-soft); }
.lang-sw li a[aria-current="true"] { background: var(--ink); color: #fff; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; padding-top: 22px; border-top: 1.5px solid rgba(255, 255, 255, .25); }
.foot-langs a { color: var(--on-dark-muted); text-decoration: none; font-size: 16px; }
.foot-langs a:hover, .foot-langs a:focus-visible { color: #fff; text-decoration: underline; }
@media (max-width: 720px) { .lang-sw summary span { display: none; } .lang-sw summary { padding: 8px 10px; } }

/* ---- tarjeta de donación (aparece al terminar una conversión) ---- */
.donate { position: relative; display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin: 20px 0 0; padding: 20px 64px 20px 24px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.donate[hidden] { display: none; }
.donate .d-body { flex: 1 1 320px; min-width: 0; }
.donate .d-t { margin: 0 0 4px; font-size: 22px; font-weight: 800; font-stretch: 85%; }
.donate .d-p { margin: 0; color: var(--on-dark-muted); font-size: 16px; line-height: 1.45; max-width: 60ch; }
.donate .btn { flex: none; }
.donate .d-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; color: #fff; border-radius: 50%; cursor: pointer; }
.donate .d-x:hover, .donate .d-x:focus-visible { background: rgba(255, 255, 255, .16); }
.donate .d-x svg { width: 20px; height: 20px; }
