/* ==========================================================================
   Nexulab — sistema de diseño
   Sin fuentes externas (velocidad + evita el problema legal de Google Fonts),
   sin frameworks, sin dependencias. Un solo archivo cacheable.
   ========================================================================== */

:root {
  /* Tipografía: serif de sistema para titulares (aire editorial, 0 bytes de
     descarga), sans de sistema para el cuerpo. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Paleta clara: papel cálido + tinta casi negra + acento verde azulado */
  --paper: #fdfcf9;
  --surface: #f4f1ea;
  --surface-2: #ebe7dd;
  --ink: #16161a;
  --ink-soft: #3d3d47;
  --muted: #6a6a75;
  --line: #e0dbd0;
  --accent: #0d7a6a;
  --accent-soft: #e6f3f0;
  --accent-ink: #095648;

  --radius: 10px;
  --radius-lg: 18px;
  --measure: 68ch;
  --shell: 1180px;
  --shadow: 0 1px 2px rgba(22, 22, 26, .04), 0 8px 24px rgba(22, 22, 26, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100f12;
    --surface: #191820;
    --surface-2: #22212b;
    --ink: #f2f0ec;
    --ink-soft: #cfccc6;
    --muted: #9a97a3;
    --line: #2c2b35;
    --accent: #34d3b5;
    --accent-soft: #11302b;
    --accent-ink: #7ef0d8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 66px;
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7c5cff));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block; padding: 8px 13px; border-radius: 8px;
  font-size: .935rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 66px 0 auto; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 12px 22px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav:not([data-open]) { display: none; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
}

/* --------------------------------------------------------------- hero --- */

.hero { padding: 76px 0 60px; border-bottom: 1px solid var(--line); }

/* Portada a dos columnas: sin esto el titular deja medio ancho vacío en PC. */
.hero-grid { display: grid; gap: 46px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }

/* Columna centrada para páginas de solo texto (legales, silos). El aire queda
   repartido a los dos lados y se lee como intención, no como fallo. */
.narrow { max-width: 830px; margin-inline: auto; }
.hero-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  max-width: 19ch; margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1.06rem, 2vw, 1.2rem); color: var(--ink-soft);
  max-width: 56ch; margin: 0 0 30px;
}

/* ------------------------------------------------------------ buscador --- */

.search { position: relative; max-width: 30rem; margin: 0 0 22px; }

.search-field {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--muted);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.search-field svg { flex: none; }

.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: inherit; font-size: .97rem; color: var(--ink);
  padding: 13px 0;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }

.search-clear {
  border: 0; background: none; cursor: pointer; padding: 4px 2px;
  font-size: 1.4rem; line-height: 1; color: var(--muted);
}
.search-clear:hover { color: var(--ink); }
.search-clear[hidden] { display: none; }

.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  max-height: 22rem; overflow-y: auto; padding: 6px;
}
.search-results[hidden] { display: none; }

.search-hit {
  display: block; padding: 11px 13px; border-radius: 8px;
  text-decoration: none; color: inherit;
}
.search-hit:hover, .search-hit:focus-visible { background: var(--surface); }
.search-hit .k {
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.search-hit .t {
  display: block; margin-top: 3px; font-family: var(--font-display);
  font-size: 1.02rem; line-height: 1.3; color: var(--ink);
}
.search-hit mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-empty { padding: 14px 13px; color: var(--muted); font-size: .92rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .86rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ------------------------------------------------------------ secciones --- */

.section { padding: 62px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: .97rem; }
.section-link { font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* --------------------------------------------------------------- grid --- */

.grid { display: grid; gap: 22px; }
/* auto-FILL, no auto-fit: con auto-fit una sola tarjeta se estiraría a todo el
   ancho y la foto quedaría gigante. auto-fill mantiene las pistas vacías. */
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Tarjetas ocultas tras el botón "ver más". display:none impide que el
   navegador descargue sus imágenes diferidas hasta que se muestran. */
.grid .card.is-extra { display: none; }
.grid.is-expanded .card.is-extra { display: flex; }

.more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.more-btn { gap: 8px; }
.more-chevron { transition: transform .2s ease; }
.more-btn[aria-expanded="true"] .more-chevron { transform: rotate(180deg); }

/* --------------------------------------------------------------- card --- */

.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.card-media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px 21px 23px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 { font-size: 1.22rem; margin: 0; line-height: 1.28; }
.card p { margin: 0; color: var(--muted); font-size: .945rem; line-height: 1.6; }
.card-meta {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--muted);
}

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
}

/* Tarjeta de silo (categoría) */
.silo {
  display: block; padding: 26px 24px 28px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  border-top: 3px solid var(--silo-accent, var(--accent));
  transition: transform .18s ease, box-shadow .18s ease;
}
.silo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.silo h3 { font-size: 1.34rem; margin: 0 0 8px; }
.silo p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.silo .go { font-size: .9rem; font-weight: 600; color: var(--silo-accent, var(--accent)); }

/* ------------------------------------------------------------ artículo --- */

/* padding-block, no el abreviado: cuando .article-head comparte elemento con
   .shell, el abreviado ponía padding-inline en 0 y descuadraba el titular. */
.article-head { padding-block: 44px 26px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span { margin: 0 7px; opacity: .5; }

.article-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  max-width: 22ch; margin: 10px 0 16px;
}
.article-standfirst {
  font-size: 1.14rem; line-height: 1.62; color: var(--ink-soft);
  max-width: var(--measure); margin: 0 0 24px;
}

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: .875rem; color: var(--muted);
  padding-top: 18px; border-top: 1px solid var(--line);
}
.byline strong { color: var(--ink-soft); font-weight: 600; }
.byline .sep { opacity: .4; }

.article-hero {
  margin: 26px 0 8px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); max-width: var(--measure);
}
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figcaption { font-size: .82rem; color: var(--muted); padding: 10px 2px 22px; }

/* Rejilla del artículo: columna de lectura + raíl lateral para publicidad.
   El raíl existe desde el día 1 aunque esté vacío, para que activar AdSense
   no reorganice la página. */
.article-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 52px; max-width: 1112px; margin-inline: auto;
}
.article-rail { display: none; }
@media (min-width: 1080px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .article-rail { display: block; }
}
.rail-sticky { position: sticky; top: 92px; }

/* Contenido del raíl. Existe para que la columna nunca esté vacía: índice
   pegajoso, enlaces internos (que además reparten autoridad entre silos) y,
   cuando se active AdSense, el anuncio entra arriba sin mover nada. */
.rail-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 17px 19px; margin-bottom: 18px;
}
.rail-card h2 {
  font-family: var(--font-body); font-size: .73rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px;
}
.rail-toc ol { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.rail-toc li + li { margin-top: .5em; }
.rail-toc a { color: var(--ink-soft); text-decoration: none; }
.rail-toc a:hover { color: var(--accent); text-decoration: underline; }
.rail-toc li::marker { color: var(--accent); font-size: .82em; }

.rail-links { list-style: none; margin: 0; padding: 0; }
.rail-links li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rail-links a { display: block; text-decoration: none; color: inherit; }
.rail-links .k { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.rail-links .t {
  display: block; margin-top: 4px; font-family: var(--font-display);
  font-size: 1.02rem; line-height: 1.3; color: var(--ink);
}
.rail-links a:hover .t { color: var(--accent); }

.rail-note p { margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.6; }
.rail-note a { font-weight: 600; }

/* En escritorio el índice vive en el raíl; el de dentro del texto sobra. */
@media (min-width: 1080px) { .prose > .toc { display: none; } }

/* Cuerpo con medida de lectura controlada */
.prose { max-width: var(--measure); }
.prose > * { margin: 0 0 1.15em; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  margin: 2.1em 0 .55em; padding-top: .2em; scroll-margin-top: 92px;
}
.prose h3 { font-size: 1.28rem; margin: 1.7em 0 .5em; scroll-margin-top: 92px; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.35em; color: var(--ink-soft); }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.16rem; color: var(--ink);
}
.prose code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--surface-2); padding: .15em .4em; border-radius: 5px;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.prose table {
  width: 100%; border-collapse: collapse; font-size: .93rem;
  margin: 1.6em 0; display: block; overflow-x: auto;
}
.prose thead th {
  text-align: left; font-weight: 650; color: var(--ink);
  background: var(--surface); padding: 11px 13px; border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.prose tbody td { padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.prose tbody tr:hover td { background: var(--surface); }

/* Imagen dentro del artículo */
.inline-figure { margin: 2em 0; }
.inline-figure img {
  width: 100%; border-radius: var(--radius-lg); background: var(--surface-2);
  aspect-ratio: 3 / 2; object-fit: cover;
}
.inline-figure figcaption {
  font-size: .84rem; color: var(--muted); padding-top: 10px; line-height: 1.5;
}

/* Cajas destacadas */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; margin: 1.8em 0;
}
.callout .callout-title {
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 9px;
}
.callout p, .callout li { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.callout ul { margin: 0; padding-left: 1.2em; }
.callout li + li { margin-top: .4em; }

.key-takeaways {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-left-width: 3px; border-left-color: var(--accent);
}

/* Tabla de contenidos */
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 30px 0;
}
.toc-title {
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 11px;
}
.toc ol { margin: 0; padding-left: 1.15em; font-size: .945rem; }
.toc li + li { margin-top: .42em; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* FAQ */
.faq { margin-top: 2.4em; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 0; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; color: var(--accent); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 15px 18px; color: var(--ink-soft); font-size: .96rem; }
.faq .faq-body p { margin: 0; }

/* ---------------------------------------------------------- compartir --- */

.share {
  margin: 2.6em 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
}
.share-title {
  font-family: var(--font-body); font-size: .96rem; font-weight: 650;
  color: var(--ink); margin: 0 0 14px;
}
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }

.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: .875rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.share-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft);
}
.share-btn svg { flex: none; }
.share-btn[hidden] { display: none; }
.share-btn.is-done { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------- ad slots --- */
/* Altura reservada desde el día 1: cuando se activen los anuncios no habrá
   Cumulative Layout Shift (y CLS es factor de ranking). */
.ad-slot {
  margin: 2.4em 0; min-height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.ad-slot::before {
  content: "Advertisement";
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ad-slot[data-size="leaderboard"] { min-height: 130px; }
.ad-slot[data-size="rectangle"] { min-height: 280px; }
.ad-placeholder {
  width: 100%; flex: 1; min-height: 90px; border: 1px dashed var(--line);
  border-radius: var(--radius); background: var(--surface);
  display: grid; place-items: center; color: var(--muted); font-size: .8rem;
}

/* ------------------------------------------------------------- footer --- */

.site-footer {
  margin-top: 72px; border-top: 1px solid var(--line);
  background: var(--surface); padding: 52px 0 30px;
}
.footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1.6fr repeat(3, 1fr);
  margin-bottom: 38px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-about p { color: var(--muted); font-size: .93rem; margin: 12px 0 0; max-width: 42ch; }
.footer-col h4 {
  font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 13px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 9px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--accent); }

.footer-legal {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .84rem; color: var(--muted);
}
.footer-legal p { margin: 0; max-width: 74ch; }

/* --------------------------------------------------- banner de cookies --- */

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  padding: 20px 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.06rem; margin: 0 0 8px; font-family: var(--font-body); font-weight: 650; }
.cookie-banner p { margin: 0 0 16px; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-link { background: none; padding: 10px 4px; color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------ utilidades --- */

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
