/* =============================================================
   LocalPDF — hoja de estilos única
   Índice:
   1. Tokens  2. Reset & base  3. Utilidades  4. Tipografía
   5. Componentes  6. Secciones  7. Efectos  8. Responsive
   9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #faf8f5;
  --bg-alt: #f1eee7;
  --surface: #ffffff;
  --text: #1c1b19;
  --text-muted: #5b564e;
  --text-faint: #8a8578;
  --border: #e4e0d6;
  --border-strong: #d3cdbf;

  --accent: #1b4b41;
  --accent-dark: #10332c;
  --accent-soft: #e3ede9;
  --accent-soft-strong: #cfe1da;

  --danger: #a4372c;
  --danger-soft: #f7e7e4;
  --ok: #1b4b41;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(20, 18, 14, 0.06);
  --shadow-m: 0 6px 20px rgba(20, 18, 14, 0.08);
  --shadow-l: 0 16px 44px rgba(20, 18, 14, 0.14);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 68px;
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15140f;
    --bg-alt: #1c1b16;
    --surface: #201f19;
    --text: #f2efe7;
    --text-muted: #c3bdac;
    --text-faint: #8d876f;
    --border: #38352a;
    --border-strong: #4a4636;
    --accent: #58b39b;
    --accent-dark: #7fcdb6;
    --accent-soft: #23332e;
    --accent-soft-strong: #2c443c;
    --danger: #e08678;
    --danger-soft: #3a2420;
  }
}
:root[data-theme="dark"] {
  --bg: #15140f;
  --bg-alt: #1c1b16;
  --surface: #201f19;
  --text: #f2efe7;
  --text-muted: #c3bdac;
  --text-faint: #8d876f;
  --border: #38352a;
  --border-strong: #4a4636;
  --accent: #58b39b;
  --accent-dark: #7fcdb6;
  --accent-soft: #23332e;
  --accent-soft-strong: #2c443c;
  --danger: #e08678;
  --danger-soft: #3a2420;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul, ol { padding-left: 1.15em; }
::selection { background: var(--accent-soft-strong); color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--text-muted); }
.mono { font-family: var(--mono); }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-narrow { max-width: 760px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); font-family: var(--sans);
}

/* =============================================================
   4. Tipografía
   ============================================================= */
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-family: var(--sans); font-weight: 700; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 62ch; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.28rem; color: var(--text);
}
.logo .logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.logo .logo-mark svg { width: 18px; height: 18px; }

.nav-more { position: relative; }
.nav-more > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--border-strong);
  font-weight: 600; font-size: .92rem;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover { background: var(--surface); border-color: var(--accent); }
.nav-more > summary .chev { transition: transform .2s var(--ease-out); }
.nav-more[open] > summary .chev { transform: rotate(180deg); }
.nav-more-panel {
  position: absolute; right: 0; top: calc(100% + .6rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-m); box-shadow: var(--shadow-l);
  padding: .5rem; width: min(320px, 84vw);
  display: grid; gap: .15rem;
  animation: menuIn .16s var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-more-panel a {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .65rem; border-radius: var(--radius-s);
  font-size: .93rem; font-weight: 600;
}
.nav-more-panel a:hover { background: var(--accent-soft); }
.nav-more-panel a .ic {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; flex: none; color: var(--accent);
}
.nav-more-panel a[aria-current] .ic,
.nav-more-panel .current .ic { background: var(--accent); color: #fff; }
.nav-more-panel small { display: block; font-weight: 400; color: var(--text-faint); }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out);
  white-space: nowrap;
}
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn-soft:hover { background: var(--accent-soft-strong); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; border-radius: 999px; }
.btn-icon {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--border-strong);
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn[data-copied]::after { content: "✓ Copiado"; }

/* --- Badge / privacidad --- */
.privacy-badge {
  display: inline-flex; align-items: flex-start; gap: .6rem;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: .8rem 1rem; border-radius: var(--radius-m);
  font-size: .92rem; font-weight: 600; line-height: 1.45;
  border: 1px solid var(--accent-soft-strong);
}
.privacy-badge svg { flex: none; margin-top: .1rem; }
.limits-note {
  font-size: .85rem; color: var(--text-faint); margin-top: .6rem;
}

/* --- Tool card --- */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: clamp(1.1rem, 3vw, 1.9rem);
}
.tool-card .state-block { display: none; }
.tool-card[data-state="idle"] .state-idle,
.tool-card[data-state="loading-engine"] .state-loading,
.tool-card[data-state="working"] .state-working,
.tool-card[data-state="done"] .state-done,
.tool-card[data-state="error"] .state-error { display: block; }

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-m);
  padding: clamp(1.6rem, 5vw, 2.6rem) 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
  display: block;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-icon {
  width: 54px; height: 54px; margin-inline: auto .9rem; color: var(--accent);
}
.dropzone .dz-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.dropzone .dz-sub { color: var(--text-faint); font-size: .88rem; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.progress-bar {
  height: 10px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; margin-block: .8rem;
  border: 1px solid var(--border);
}
.progress-bar > span {
  display: block; height: 100%; background: var(--accent); border-radius: 999px;
  width: 0%; transition: width .25s var(--ease-out);
}
.progress-label { font-size: .88rem; color: var(--text-muted); display: flex; justify-content: space-between; }

.result-panel {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-strong);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.2rem;
  display: grid; gap: .8rem;
}
.result-stats { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: baseline; }
.result-stat .n { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; color: var(--accent-dark); }
.result-stat .l { font-size: .8rem; color: var(--text-muted); }
.result-stat.savings .n { color: var(--ok); }
.result-note { font-size: .88rem; color: var(--text-muted); }
.result-note.warn { color: var(--danger); }

.error-panel {
  background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  color: var(--danger); border-radius: var(--radius-m); padding: 1rem 1.1rem; font-size: .92rem;
}

.reset-link { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.reset-link:hover { color: var(--accent); text-decoration: underline; }

/* --- Opciones tipo segmented control --- */
.option-group { display: grid; gap: .6rem; margin-block: 1rem; }
.option-group .og-label { font-weight: 700; font-size: .92rem; }
.segmented { display: flex; gap: .5rem; flex-wrap: wrap; }
.segmented label {
  flex: 1 1 140px; cursor: pointer; border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  padding: .7rem .85rem; text-align: left; transition: border-color .18s, background .18s;
}
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label .t { font-weight: 700; font-size: .92rem; display: block; }
.segmented label .d { font-size: .78rem; color: var(--text-faint); }
.segmented input:checked + label,
.segmented label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.field-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 700; }
.field input[type="number"], .field input[type="text"], .field select {
  border: 1px solid var(--border-strong); border-radius: var(--radius-s); padding: .55rem .7rem;
  font: inherit; background: var(--surface); color: var(--text); min-width: 5.5rem;
}
.field select { min-width: 12rem; }
.checkbox-row { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }

/* --- Lista de archivos reordenable (unir / imagen-a-pdf) --- */
.file-list { display: grid; gap: .6rem; margin-block: 1rem; list-style: none; padding: 0; }
.file-row {
  display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: .8rem;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: .55rem .7rem;
}
.file-row.is-dragging { opacity: .55; box-shadow: var(--shadow-m); background: var(--surface); }
.file-row .drag-handle {
  cursor: grab; color: var(--text-faint); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
.file-row .drag-handle:active { cursor: grabbing; }
.file-row .thumb {
  width: 44px; height: 56px; border-radius: 5px; object-fit: cover; background: var(--surface);
  border: 1px solid var(--border); flex: none;
}
.file-row .thumb.doc-thumb { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.file-row .meta { min-width: 0; }
.file-row .meta .name { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .meta .size { font-size: .76rem; color: var(--text-faint); }
.file-row .order-btns { display: flex; flex-direction: column; gap: 2px; }
.file-row .order-btns button {
  width: 22px; height: 18px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; color: var(--text-faint);
}
.file-row .order-btns button:hover { color: var(--accent); background: var(--accent-soft); }
.file-row .remove-btn { color: var(--text-faint); width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.file-row .remove-btn:hover { color: var(--danger); background: var(--danger-soft); }

/* --- Grid de miniaturas (dividir / pdf-a-imagen) --- */
.thumb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .6rem;
  margin-block: 1rem; max-height: 420px; overflow-y: auto; padding: .3rem;
  border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg-alt);
}
.thumb-cell {
  position: relative; border-radius: var(--radius-s); overflow: hidden; background: var(--surface);
  border: 2px solid var(--border); aspect-ratio: 3/4; cursor: default;
}
.thumb-cell img { width: 100%; height: 100%; object-fit: cover; }
.thumb-cell .num {
  position: absolute; left: 4px; top: 4px; background: rgba(20,18,14,.7); color: #fff;
  font-size: .68rem; padding: .1rem .4rem; border-radius: 6px; font-family: var(--mono);
}
.thumb-cell .dl {
  position: absolute; right: 4px; bottom: 4px; background: var(--surface); border: 1px solid var(--border);
  width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
}
.thumb-cell.in-range { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft-strong) inset; }
.thumb-cell.selectable { cursor: pointer; }
.thumb-cell.out-range { opacity: .4; }

/* --- Ad slots --- */
.ad-slot {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--bg-alt);
  color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-align: center;
}
.ad-slot .ad-inner { display: flex; flex-direction: column; gap: .25rem; align-items: center; }
.ad-slot .ad-inner small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .72rem; }
.ad-leaderboard { min-height: 100px; margin-block: 2rem; }
.ad-incontent { min-height: 250px; margin-block: 2.4rem; max-width: 720px; margin-inline: auto; }

/* Popup al descargar */
.ad-dialog {
  border: none; border-radius: var(--radius-l); padding: 0; max-width: min(420px, 92vw);
  box-shadow: var(--shadow-l);
}
.ad-dialog::backdrop { background: rgba(20, 18, 14, .5); backdrop-filter: blur(2px); }
.ad-dialog .ad-dialog-inner { padding: 1.4rem; display: grid; gap: .9rem; }
.ad-dialog-head { display: flex; justify-content: space-between; align-items: center; }
.ad-dialog-head span { font-size: .78rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.ad-dialog .ad-slot { min-height: 260px; }
.ad-close {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.ad-close:hover { border-color: var(--accent); color: var(--accent); }

/* Toast de esquina */
.corner-toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  max-width: 260px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-m); box-shadow: var(--shadow-l); padding: .8rem .9rem;
  display: flex; gap: .6rem; align-items: flex-start;
  transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.corner-toast.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.corner-toast .ad-slot { flex: 1; min-height: 70px; border-style: solid; }
.corner-toast .ad-close { flex: none; width: 24px; height: 24px; }

/* --- Cómo funciona --- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { display: grid; gap: .6rem; }
.step .step-icon {
  width: 46px; height: 46px; border-radius: var(--radius-s); background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.02rem; }
.step p { color: var(--text-muted); font-size: .92rem; }

/* --- Casos de uso --- */
.usecases { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.usecase {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 1.1rem 1.25rem; display: flex; gap: .8rem;
}
.usecase .ic { color: var(--accent); flex: none; margin-top: .1rem; }
.usecase h3 { font-size: .98rem; margin-bottom: .25rem; }
.usecase p { font-size: .88rem; color: var(--text-muted); }

/* --- FAQ --- */
.faq-list { display: grid; gap: .6rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; font-size: .98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { transition: transform .2s var(--ease-out); flex: none; color: var(--accent); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.2rem 1.1rem; color: var(--text-muted); font-size: .93rem; line-height: 1.6; }

/* --- Más herramientas --- */
.more-tools-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.tool-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 1.1rem; display: grid; gap: .55rem; transition: border-color .18s, transform .18s;
}
.tool-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-chip .ic {
  width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.tool-chip h3 { font-size: .95rem; }
.tool-chip p { font-size: .82rem; color: var(--text-faint); }

/* --- Créditos / licencias --- */
.credits-line { font-size: .76rem; color: var(--text-faint); margin-top: 1.2rem; }
.credits-line a { text-decoration: underline; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 3rem; padding-block: 2rem;
  background: var(--bg-alt);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .86rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-weight: 700; }
.footer-copy { font-size: .8rem; color: var(--text-faint); }

/* --- No-JS notice --- */
.js-required {
  display: none;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-m);
  padding: 1.2rem; text-align: center; color: var(--text-muted); font-size: .92rem;
}
.no-js .js-required { display: block; }
.no-js .tool-card > *:not(.js-required) { display: none; }

/* =============================================================
   6. Secciones
   ============================================================= */
.hero { padding-block: clamp(1.6rem, 4vw, 2.6rem) .5rem; }
.hero-head { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.hero-tool { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
.hero-under { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.2rem; }

.home-hero { padding-block: clamp(2.4rem, 7vw, 5rem) clamp(1.6rem, 4vw, 3rem); text-align: center; }
.home-hero .lede { margin-inline: auto; }
.home-hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

.tools-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.tool-card-lg {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 1.5rem; display: grid; gap: .8rem; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
}
.tool-card-lg:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--accent); }
.tool-card-lg .ic {
  width: 52px; height: 52px; border-radius: var(--radius-s); background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.tool-card-lg h2, .tool-card-lg h3 { font-size: 1.12rem; font-family: var(--sans); font-weight: 700; }
.tool-card-lg p { color: var(--text-muted); font-size: .9rem; }
.tool-card-lg .go { font-size: .85rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: .3rem; }

.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 2rem;
}
.trust-card {
  background: var(--accent-soft); border: 1px solid var(--accent-soft-strong); border-radius: var(--radius-m);
  padding: 1.2rem; display: grid; gap: .5rem;
}
.trust-card .ic { color: var(--accent); }
.trust-card h3 { font-size: .96rem; font-family: var(--sans); }
.trust-card p { font-size: .85rem; color: var(--text-muted); }

/* =============================================================
   7. Efectos
   ============================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 719px) {
  .steps { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .more-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
  .nav-more-panel { right: -0.5rem; }
  .corner-toast { left: .75rem; right: .75rem; max-width: none; bottom: .75rem; }
}
@media (min-width: 540px) { .file-row { grid-template-columns: auto auto 1fr auto auto; } }
@media (min-width: 720px) {
  .home-hero h1 { max-width: 20ch; margin-inline: auto; }
}
@media (min-width: 960px) {
  .more-tools-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

/* =============================================================
   9. Reduced-motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .corner-toast { transition: opacity .01s linear; }
}
