/* Hub de herramientas — CSS propio, sin peticiones externas. Tema claro/oscuro automático. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e1116;
  --paper: #ffffff;
  --paper-dim: #f4f5f7;
  --line: #dee1e6;
  --cobalt: #2c4bff;
  --cobalt-dim: #ebeeff;
  --lime: #c8ff4d;
  --muted: #6b7280;
  --good: #0f7a4c;
  --good-dim: #e7f5ee;
  --warn: #b3261e;
  --warn-dim: #fceae9;
  --shadow: rgba(14, 17, 22, 0.08);
  --on-cobalt: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1100px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f2f5;
    --paper: #0b0d12;
    --paper-dim: #161922;
    --line: #282c35;
    --cobalt: #7186ff;
    --cobalt-dim: #1a2050;
    --lime: #c8ff4d;
    --muted: #9aa0ac;
    --good: #39d999;
    --good-dim: #0f2b21;
    --warn: #ff7a70;
    --warn-dim: #3a1512;
    --shadow: rgba(0, 0, 0, 0.45);
    --on-cobalt: #0b0d12;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--cobalt);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.mono {
  font-family: var(--mono);
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-dim);
}
.nav .btn-support {
  background: var(--lime);
  color: #0e1116;
  font-weight: 600;
  margin-left: 6px;
}
.nav .btn-support:hover {
  background: var(--lime);
  color: #0e1116;
  filter: brightness(0.95);
}
.menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- barra de herramientas ---------- */
.toolbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper-dim);
}
.toolbar .wrap {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-block: 10px;
  scrollbar-width: thin;
}
.toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
}
.toolbar a svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.toolbar a:hover {
  color: var(--ink);
  background: var(--paper);
}
.toolbar a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px var(--shadow);
}
.toolbar a[aria-current="page"] svg {
  color: var(--cobalt);
}

/* ---------- hero ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.hero {
  padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 5vw, 48px);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  font-weight: 800;
  max-width: 17ch;
  margin: 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--cobalt);
}
.lead {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 18px 0 0;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.pills {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.pills li::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
  margin-right: 7px;
}

/* ---------- botones ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 11px 20px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover:not(:disabled) {
  border-color: var(--ink);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover:not(:disabled) {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--on-cobalt);
}
.btn--lime {
  background: var(--lime);
  color: #0e1116;
  border-color: var(--lime);
}
.btn--lime:hover:not(:disabled) {
  filter: brightness(0.95);
  border-color: var(--lime);
}
.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn--ghost:hover:not(:disabled) {
  color: var(--ink);
  background: var(--paper-dim);
  border-color: transparent;
}
.btn--sm {
  padding: 6px 12px;
  min-height: 34px;
  font-size: 13px;
}
.btn--lg {
  padding: 13px 26px;
  font-size: 15.5px;
  min-height: 48px;
}

/* ---------- tarjetas de herramientas ---------- */
.section {
  padding: clamp(32px, 5vw, 60px) 0;
}
.section--dim {
  background: var(--paper-dim);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 22px;
}
.section h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 750;
  margin: 0;
}
.section-head .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.sub {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 64ch;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
a.tcard:hover {
  border-color: var(--cobalt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}
.tcard__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cobalt-dim);
  color: var(--cobalt);
  display: grid;
  place-items: center;
}
.tcard__icon svg {
  width: 22px;
  height: 22px;
}
.tcard__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tcard h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.tcard p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  flex: 1;
}
.tcard__go {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cobalt);
}
.tcard--suggest {
  border-style: dashed;
  background: transparent;
}
.tcard--suggest .tcard__icon {
  background: var(--lime);
  color: #0e1116;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.feature .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cobalt);
  margin-bottom: 8px;
  display: block;
}

/* ---------- herramienta (página) ---------- */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 0;
}
.crumbs a {
  color: var(--muted);
}
.tool-hero {
  padding: 14px 0 26px;
}
.tool-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  font-weight: 800;
  margin: 0;
  max-width: 24ch;
}
.tool-hero .lead {
  margin-top: 12px;
}
.shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(16px, 3vw, 28px);
}
.dropzone {
  display: block;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-dim);
  padding: clamp(24px, 5vw, 42px) 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--cobalt);
  background: var(--cobalt-dim);
}
.dropzone svg {
  margin: 0 auto 10px;
  color: var(--cobalt);
}
.dropzone__title {
  font-size: 1.15rem;
  font-weight: 700;
}
.dropzone__hint {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 2px;
}
.dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  overflow: hidden;
}
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field--wide {
  grid-column: 1 / -1;
}
.field > label:not(.check),
.field > .label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
select,
.input {
  appearance: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
  min-height: 44px;
}
select {
  padding-right: 38px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a919e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select:focus,
.input:focus {
  outline: none;
  border-color: var(--cobalt);
}
select:disabled,
.input:disabled {
  opacity: 0.6;
}
textarea.input {
  resize: vertical;
  min-height: 160px;
  line-height: 1.55;
}
input[type="range"] {
  accent-color: var(--cobalt);
  width: 100%;
}
.help {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper-dim);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
}
.check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--cobalt);
  flex: none;
}
.check strong {
  display: block;
  font-size: 14.5px;
}
.check span {
  color: var(--muted);
  font-size: 13px;
  display: block;
}
.check.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.engine {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.engine[data-state="ready"]::before {
  content: "●";
  color: var(--good);
  margin-right: 6px;
}
.banner {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  border-left: 4px solid var(--cobalt);
  font-size: 14.5px;
}
.banner[data-kind="error"] {
  border-left-color: var(--warn);
  color: var(--warn);
  background: var(--warn-dim);
}
.segmented {
  display: inline-flex;
  gap: 2px;
  background: var(--paper-dim);
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.segmented button {
  font: inherit;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.segmented button[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px var(--shadow);
}

/* ---------- lista de archivos ---------- */
.queue {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.file {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--paper);
}
.file[data-status="done"] {
  border-color: color-mix(in srgb, var(--good) 55%, var(--line));
}
.file__icon {
  width: 42px;
  height: 52px;
  border-radius: 6px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cobalt);
  overflow: hidden;
  position: relative;
}
.file__icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file__main {
  min-width: 0;
}
.file__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file__meta {
  font-size: 13.5px;
  color: var(--muted);
}
.file__meta.is-error {
  color: var(--warn);
}
.file__note {
  color: var(--good);
  margin-top: 2px;
}
.file__note--warn {
  color: #9a5b00;
}
@media (prefers-color-scheme: dark) {
  .file__note--warn {
    color: #ffc266;
  }
}
.file__actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--paper-dim);
  overflow: hidden;
  margin-top: 8px;
}
.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cobalt), var(--lime));
  transition: width 0.2s ease;
}
.bar.is-indeterminate span {
  animation: slide 1.1s ease-in-out infinite alternate;
}
@keyframes slide {
  from { margin-left: 0; }
  to { margin-left: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .bar.is-indeterminate span { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; }
}

/* ---------- contenido de apoyo ---------- */
.content {
  padding: clamp(28px, 5vw, 56px) 0;
}
.content .cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
  max-width: 760px;
}
.content h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 750;
  margin: 0 0 12px;
}
.content p,
.content li {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}
.content ol,
.content ul {
  padding-left: 1.2em;
}
.content li {
  margin-bottom: 8px;
}
.steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
}
.steps strong {
  color: var(--ink);
}
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  margin-bottom: 10px;
  background: var(--paper);
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--cobalt);
  flex: none;
}
details[open] summary::after {
  content: "−";
}
details p {
  margin: 0 0 15px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: var(--paper-dim);
  font-weight: 600;
  white-space: nowrap;
}
td:first-child {
  font-weight: 600;
  white-space: nowrap;
}
.note {
  font-size: 13.5px;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 14px;
}

/* ---------- apoyo y anuncios ---------- */
.support {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
}
.support h2,
.support h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--paper);
}
.support p {
  margin: 0;
  max-width: 58ch;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}
.ad-slot {
  margin: 28px auto;
  text-align: center;
  min-height: 100px;
}
.ad-slot::before {
  content: attr(data-label);
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.ad-slot[data-empty] {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- prosa legal ---------- */
.prose {
  padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 72px);
  max-width: 740px;
}
.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 8px;
}
.prose h2 {
  margin: 34px 0 8px;
  font-size: 1.3rem;
}
.prose p,
.prose li {
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
}
.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-dim);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ---------- pie ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-dim);
  padding: 34px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: grid;
  gap: 16px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 6px 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.site-footer p {
  margin: 0;
  max-width: 92ch;
  font-size: 13px;
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    margin: 0;
    box-shadow: 0 12px 24px var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px;
  }
  .nav .btn-support {
    margin: 6px 0 0;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .tool-grid,
  .features,
  .options {
    grid-template-columns: 1fr;
  }
  .file {
    grid-template-columns: auto 1fr;
  }
  .file__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .engine {
    margin-left: 0;
    width: 100%;
  }
  .btn--lg {
    width: 100%;
  }
}

/* ---------- filtros de la portada ---------- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.chip {
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  min-height: 36px;
}
.chip:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- extras ---------- */
.tool-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .tool-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tool-grid--four { grid-template-columns: 1fr; }
}

/* ---------- contador de palabras ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.stats--small {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  background: var(--paper-dim);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stat__n {
  font-family: var(--mono);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.stat__l {
  font-size: 12px;
  color: var(--muted);
}
.limit .bar {
  height: 10px;
  margin-top: 0;
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- idioma ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 6px;
  padding: 3px 3px 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.lang-switch svg {
  flex: none;
  margin-right: 4px;
}
.nav .lang-switch a,
.lang-switch .lang-switch__cur {
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.3;
}
.lang-switch .lang-switch__cur {
  background: var(--ink);
  color: var(--paper);
}
.nav .lang-switch a:hover {
  background: var(--paper-dim);
  color: var(--ink);
}
.lang-banner {
  background: var(--cobalt-dim);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.lang-banner .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
}
.lang-banner a {
  color: var(--cobalt);
  font-weight: 600;
}
.lang-banner__x {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
}
.toolbar a .tag,
.tcard__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper-dim);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tcard__tag {
  margin-left: 6px;
}
.lang-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}
.lang-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.lang-card h2 {
  margin: 0;
  font-size: 1.4rem;
}
.lang-card.is-current {
  border-color: var(--cobalt);
  background: var(--cobalt-dim);
}
.lang-card__cur {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prose--wide {
  max-width: 880px;
}
.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
table.avail {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.avail th,
table.avail td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.avail thead th {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
table.avail tr.sec th,
table.avail tr.sec td {
  background: var(--paper-dim);
}
table.avail th.sub {
  font-weight: 500;
  padding-left: 28px;
}
table.avail td.muted {
  color: var(--muted);
}
@media (max-width: 880px) {
  .nav .lang-switch {
    align-self: flex-start;
    margin: 8px 12px;
  }
}
