/* =========================================================================
   Soberanía Cognitiva · Indioyori — Theme de Ghost
   Blanco y negro. El color lo ponen las imágenes.
   Tipografía: Space Mono.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-tone: #f4f4f4;
  --bg-ink: #0a0a0a;
  --typ: #111111;
  --typ-tone: #6b6b6b;
  --typ-content: #2b2b2b;
  --brd: #e4e4e4;
  --brd-strong: #cfcfcf;

  /* "brand" = negro. No hay acento de color: lo aportan las imágenes. */
  --brand: #111111;
  --brand-ink: #000000;
  --brand-contrast: #ffffff;

  --radius: 2px;
  --container: 1200px;
  --font: 'Space Mono', ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;
  --shadow-card: 0 10px 24px 0 rgb(0 0 0 / 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body,
button,
input,
select,
textarea,
.gh-content,
.post-content,
.kg-card {
  font-family: var(--font) !important;
}
body {
  margin: 0;
  font-weight: 400;
  color: var(--typ);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; }
:focus-visible { outline: 2px solid var(--typ); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 1.25rem; padding-right: 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; }

/* ---------------------------------------------------------------- sysbar */
.sysbar { background: var(--bg-ink); color: #d3d3d3; font-size: 0.72rem; letter-spacing: 0.02em; padding: 0.4rem 0; }
.sysbar .container { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.sysbar b { color: #fff; font-weight: 700; }
.sysbar .prompt { color: #fff; font-weight: 700; }
.sysbar .sep { color: #565656; }
.sysbar .blink { display: inline-block; width: 0.5ch; height: 1em; background: #fff; margin-left: 2px; transform: translateY(2px); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--brd); }
.site-header .container { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand .logo { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.03em; color: var(--typ); }
.brand .logo b { font-weight: 700; }
.brand .logo img { max-height: 34px; width: auto; }
.brand .logo-sub { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--typ-tone); margin-top: 3px; }

.main-nav ul { display: flex; gap: 0.15rem; list-style: none; padding: 0; margin: 0; }
.main-nav a { display: block; padding: 0.45rem 0.75rem; font-size: 0.9rem; border-radius: var(--radius); border: 1px solid transparent; color: var(--typ-content); transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--bg-tone); color: var(--typ); }
.main-nav li.nav-current a { color: var(--typ); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.btn-subscribe { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--brand); color: var(--brand-contrast); font-weight: 700; font-size: 0.85rem; padding: 0.5rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--brand); cursor: pointer; transition: opacity .15s; }
.btn-subscribe:hover { opacity: 0.85; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); border: 1px solid transparent; background: none; color: var(--typ); cursor: pointer; }
.icon-btn:hover { background: var(--bg-tone); }
.nav-toggle { display: none; }

.mobile-nav { display: none; border-bottom: 1px solid var(--brd); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0.75rem 0; margin: 0; }
.mobile-nav a { display: block; padding: 0.5rem 0; color: var(--typ-content); }
.mobile-nav a:hover { color: var(--typ); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.hero-figure { width: 100%; max-width: 420px; border: 1px solid var(--brd); opacity: 0; transform: translateY(12px); animation: rise-in 0.7s ease forwards; }
.hero-figure img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.hero-body { flex: 1; display: flex; flex-direction: column; gap: 1rem; opacity: 0; transform: translateY(16px); animation: rise-in 0.75s ease 0.12s forwards; }
.eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--typ); font-weight: 700; }
.page-eyebrow { display: inline-block; margin-bottom: 0.35rem; }
.page-title { font-size: clamp(2rem, 6vw, 3rem); margin: 0.5rem 0 1rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--typ-tone); }
.hero-lead a { color: var(--typ); text-decoration: underline; text-underline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.filterbar-wrap { margin-top: 0.5rem; }
@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-figure, .hero-body, .sysbar .blink, .pulse { animation: none !important; opacity: 1; transform: none; }
}
@media (min-width: 900px) { .hero-grid { flex-direction: row; gap: 3rem; } .hero-body { justify-content: center; } }

/* ---------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; font-family: var(--font); font-weight: 700; font-size: 0.9rem; padding: 0.7rem 1.3rem; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--typ); color: var(--typ); background: var(--bg); transition: background .15s, color .15s; }
.btn:hover { background: var(--typ); color: var(--bg); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.btn-brand:hover { background: var(--bg); color: var(--typ); }
.btn-ghost { background: transparent; }
.btn-full { width: 100%; }

/* ---------------------------------------------------------------- secciones */
.section { padding: 2.5rem 0; }
.section-head { margin-bottom: 1.5rem; max-width: 60ch; }
.s-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--typ-tone); font-weight: 700; }
.s-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0.4rem 0 0.6rem; }
.s-desc { color: var(--typ-tone); }
.s-desc a { color: var(--typ); text-decoration: underline; text-underline-offset: 3px; }

.filterbar ul { display: flex; gap: 0.25rem; list-style: none; padding: 0 0 0.25rem; margin: 0; overflow-x: auto; }
.filterbar a, .filterbar button { display: block; white-space: nowrap; font-family: var(--font); font-size: 0.82rem; font-weight: 500; padding: 0.4rem 0.8rem; border: 2px solid transparent; background: none; color: var(--typ-tone); cursor: pointer; }
.filterbar a:hover, .filterbar button:hover { background: var(--bg-tone); }
.filterbar a.current, .filterbar button.current, .filterbar li.nav-current a { border-color: var(--typ); color: var(--typ); font-weight: 700; }

/* ---------------------------------------------------------------- retícula */
.card-grid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--brd); }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: 1fr 1fr 1fr; } }

.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 16rem; padding: 1.5rem; border: 1px solid var(--brd); background: var(--bg); color: var(--typ); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; z-index: 0; }
@media (min-width: 768px) { .card { min-height: 20rem; padding: 1.75rem; } }
.card:hover { transform: scale(1.03); z-index: 10; box-shadow: var(--shadow-card); }
.card.tone { background: var(--bg-tone); }
.card.has-image { color: #fff; border-color: #000; }
.card .card-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.card.has-image::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.85) 100%); }
.card-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; font-weight: 500; color: var(--typ-tone); }
.card.has-image .card-meta { color: rgba(255,255,255,0.82); }
.card-meta .dot { opacity: 0.35; }
.card-meta .spacer { flex: 1; }
.card-star { color: var(--typ); display: inline-flex; }
.card.has-image .card-star { color: #fff; }
.card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 768px) { .card-title { font-size: 1.25rem; } }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .grow { flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; font-weight: 500; }
.tag { font-weight: 700; color: var(--typ); }
.card.has-image .tag { color: #fff; }
.tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge-lock { display: inline-flex; align-items: center; gap: 0.35rem; text-transform: capitalize; }

/* ---------------------------------------------------------------- ofertas / precios */
.offer-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; border: 1px solid var(--brd); background: var(--bg); }
.offer-badge { align-self: flex-start; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; padding: 0.25rem 0.55rem; border-radius: var(--radius); background: var(--typ); color: #fff; }
.offer-badge.outline { background: transparent; color: var(--typ); border: 1px solid var(--typ); }
.offer-badge.soft { background: var(--bg-tone); color: var(--typ); border: 1px solid var(--brd-strong); }
.offer h3 { font-size: 1.35rem; }
.offer-meta { font-size: 0.82rem; color: var(--typ-tone); }
.offer-desc { color: var(--typ-content); }
.offer-bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.offer-bullets li { padding-left: 1.1rem; position: relative; color: var(--typ-content); }
.offer-bullets li::before { content: "→"; position: absolute; left: 0; color: var(--typ); }
.offer-price { font-weight: 700; font-size: 1.05rem; margin-top: 0.25rem; }
.offer-price span { font-weight: 400; font-size: 0.82rem; color: var(--typ-tone); }
.offer .btn { margin-top: auto; }

/* ---------------------------------------------------------------- tabla */
.table { border: 1px solid var(--brd); }
.trow { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 0.5rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--brd); font-size: 0.9rem; }
.trow:last-child { border-bottom: 0; }
.trow.head { background: var(--bg-tone); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--typ-tone); }
.trow .live { color: var(--typ); font-weight: 700; }

/* ---------------------------------------------------------------- mapa del archivo */
.archivo-map {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 0.5rem;
}
@media (min-width: 700px) {
  .archivo-map { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .archivo-map { grid-template-columns: repeat(4, 1fr); }
}
.archivo-door {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--brd);
  background: var(--bg);
  transition: background .15s, border-color .15s, transform .15s;
}
.archivo-door:hover {
  background: var(--bg-tone);
  border-color: var(--typ);
  transform: translateY(-2px);
}
.archivo-door-k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--typ-tone);
}
.archivo-door-t {
  font-weight: 700;
  font-size: 1.05rem;
}
.archivo-door-d {
  font-size: 0.82rem;
  color: var(--typ-tone);
}

/* ---------------------------------------------------------------- listas / media */
.doc-list { border: 1px solid var(--brd); }
.doc { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--brd); transition: background .15s; }
.doc:last-child { border-bottom: 0; }
.doc:hover { background: var(--bg-tone); }
.doc-kind { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.5rem; border: 1px solid var(--brd-strong); border-radius: var(--radius); color: var(--typ-tone); white-space: nowrap; }
.doc-body { flex: 1; min-width: 0; }
.doc-title { font-weight: 700; display: block; }
.doc-desc { font-size: 0.85rem; color: var(--typ-tone); }
.doc-arrow { color: var(--typ); font-weight: 700; }

.media-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .media-grid { grid-template-columns: repeat(4, 1fr); } }
.media { position: relative; display: block; border: 1px solid var(--brd); overflow: hidden; background: #111; }
/* Marco vertical; contain = no corta ni estira la foto que subes */
.media img { width: 100%; height: 100%; aspect-ratio: 9/16; object-fit: contain; object-position: center center; transition: transform .3s; opacity: 0.95; background: #000; }
.media:hover img { transform: scale(1.02); opacity: 1; }
.media .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.media .play span { width: 3.25rem; height: 3.25rem; border-radius: 999px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgb(0 0 0 /.4); border: 2px solid #fff; }
.media .caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0.85rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.media .caption .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: .85; display: block; }
.media .caption .t { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }

.embed { position: relative; padding-top: 56.25%; border: 1px solid var(--brd); background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-tall { padding-top: 0; height: 560px; }
.embed-tall iframe { position: static; height: 100%; }

/* ---------------------------------------------------------------- prosa / contenido Ghost (Koenig) */
.prose { max-width: 46rem; margin: 0 auto; }
.prose > * + * { margin-top: 1.15rem; }
.prose p { color: var(--typ-content); font-size: 1.02rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--typ-content); }
.prose li { margin-top: 0.4rem; }
.prose blockquote { border-left: 3px solid var(--typ); padding: 0.25rem 0 0.25rem 1.25rem; margin-left: 0; font-style: italic; color: var(--typ); }
.prose a { color: var(--typ); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--bg-tone); padding: 0.1rem 0.35rem; border: 1px solid var(--brd); border-radius: var(--radius); font-size: 0.9em; }
.prose img { border: 1px solid var(--brd); }
.prose figcaption { font-size: 0.8rem; color: var(--typ-tone); text-align: center; margin-top: 0.5rem; }
.lead { font-size: 1.2rem; color: var(--typ); }

/*
  Embed archive.org: NO forzar 9:16 en el iframe.
  El player de archive.org es horizontal; el video vertical va adentro
  con bandas. Si forzamos el iframe a vertical, estira la cara.
*/
.prose iframe,
.post-content iframe,
.kg-embed-card iframe {
  display: block;
  width: 100% !important;
  max-width: 40rem;
  height: auto !important;
  aspect-ratio: 560 / 384; /* proporción nativa del embed de archive.org */
  min-height: 220px;
  margin-inline: auto;
  border: 1px solid var(--brd);
  background: #000;
}

/* Koenig cards */
.kg-card { margin-top: 1.5rem; }
.kg-width-wide { max-width: min(1040px, 90vw); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-image { width: 100%; }
.kg-embed-card, .kg-video-card, .kg-audio-card { margin-top: 1.5rem; }
.kg-embed-card { display: flex; justify-content: center; }
.kg-bookmark-card a { display: block; border: 1px solid var(--brd); padding: 1rem; color: var(--typ); }
.kg-bookmark-title { font-weight: 700; }
.kg-bookmark-description { color: var(--typ-tone); font-size: 0.9rem; }
.kg-button-card a { display: inline-block; background: var(--typ); color: #fff; padding: 0.7rem 1.3rem; font-weight: 700; border-radius: var(--radius); }
.kg-callout-card { border: 1px solid var(--brd); border-left: 4px solid var(--typ); padding: 1rem 1.25rem; background: var(--bg-tone); }
.kg-gallery-container { display: flex; flex-direction: column; gap: 0.5rem; }
.kg-gallery-row { display: flex; gap: 0.5rem; }
.kg-gallery-image img { width: 100%; }

/* cabecera de artículo (notas, etc.) */
.article-hero { border-bottom: 1px solid var(--brd); }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; }

/*
  Posts tag:video — la feature image es TU foto (no el video).
  Se muestra completa, centrada, sin cortar ni estirar.
*/
body.tag-video .article-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  padding: 1.25rem 1rem;
}
body.tag-video .article-hero img {
  width: auto;
  max-width: min(100%, 28rem);
  height: auto;
  max-height: min(80vh, 36rem);
  object-fit: contain;
}

/* ---------------------------------------------------------------- avisos */
.note { font-size: 0.82rem; color: var(--typ-tone); border: 1px dashed var(--brd-strong); padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--bg-tone); }
.note code { background: var(--bg); padding: 0.05rem 0.3rem; border: 1px solid var(--brd); }
.callout { border: 1px solid var(--brd); border-left: 4px solid var(--typ); padding: 1.25rem 1.5rem; background: var(--bg-tone); }

.band { background: var(--bg-ink); color: #eaeaea; }
.band a { color: #fff; }
.band .s-eyebrow { color: #bdbdbd; }
.band .s-title { color: #fff; }
.band .s-desc { color: #b6b6b6; }
.band .input { background: #17171a; border-color: #333; color: #fff; }
.band .callout { background: #141416; border-color: #2a2a2e; border-left-color: #fff; }
.band .callout h3 { color: #fff; }

.chat { border: 1px solid var(--brd); overflow: hidden; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--brd); background: var(--bg-tone); font-weight: 700; }
.pulse { width: 0.6rem; height: 0.6rem; border-radius: 999px; background: var(--typ); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(17,17,17,.5); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chat iframe { width: 100%; height: 560px; border: 0; display: block; }

/* ---------------------------------------------------------------- formulario */
.form { display: flex; flex-direction: column; gap: 1rem; max-width: 42rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.field label .req { color: var(--typ); }
.input, .textarea, select.input { font-family: var(--font); font-size: 0.95rem; padding: 0.7rem 0.85rem; border: 1px solid var(--brd-strong); border-radius: var(--radius); background: var(--bg); color: var(--typ); width: 100%; }
.input:focus, .textarea:focus { outline: none; border-color: var(--typ); box-shadow: 0 0 0 2px rgba(17,17,17,.15); }
.textarea { min-height: 8rem; resize: vertical; }
.field .hint { font-size: 0.78rem; color: var(--typ-tone); }
.field .error { font-size: 0.8rem; color: var(--typ); font-weight: 700; display: none; }
.field.invalid .error { display: block; }
.field.invalid .input, .field.invalid .textarea { border-color: var(--typ); border-width: 2px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { font-size: 0.9rem; font-weight: 700; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--typ-content); }
.consent input { margin-top: 0.25rem; }

.two-col { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }
.security-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.security-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--typ-content); }
.security-list .ic { color: var(--typ); flex-shrink: 0; margin-top: 2px; font-weight: 700; }

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2.narrow-right { grid-template-columns: 1.4fr 1fr; } }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.tool { border: 1px solid var(--brd); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tool h3 { font-size: 1.05rem; }
.tool p { font-size: 0.9rem; color: var(--typ-tone); }
.tool .free { align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--typ); border: 1px solid var(--typ); padding: 0.15rem 0.45rem; }

/* ---------------------------------------------------------------- paginación / pie */
.pagination { text-align: center; color: var(--typ-tone); font-size: 0.9rem; padding: 2rem 0; }
.pagination a { font-weight: 700; margin: 0 0.75rem; color: var(--typ); }
.pagination .page-number { color: var(--typ-tone); }

.site-footer { border-top: 1px solid var(--brd); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 2rem; padding-bottom: 2rem; }
.foot-brand { font-size: 0.85rem; color: var(--typ-tone); max-width: 44ch; }
.foot-brand b { color: var(--typ); }
.foot-sub { display: block; margin-top: 0.35rem; font-size: 0.78rem; }
.socials { display: flex; align-items: center; gap: 0.75rem; color: var(--typ-tone); flex-wrap: wrap; }
.socials a:hover { color: var(--typ); }

.breadcrumb { font-size: 0.8rem; color: var(--typ-tone); padding: 1rem 0 0; }
.breadcrumb a:hover { color: var(--typ); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
