/* ==========================================================
   THE HEAVENER — hoja de estilos (versión minimalista)
   Fondo blanco, mucho aire, foco total en el texto.
   ========================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --ink: #111111;
  --ink-soft: #444444;
  --muted: #8c8c8c;
  --rule: #ebebeb;

  --serif-display: "Instrument Serif", "Times New Roman", serif;
  --serif-text: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --read: 660px;
  --gutter: clamp(16px, 5vw, 56px);
  --space: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía utilitaria ---------- */
.kicker { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.meta b { color: var(--ink-soft); font-weight: 500; }
.display { font-family: var(--serif-display); font-weight: var(--display-weight, 400); letter-spacing: -.01em; line-height: 1.04; margin: 0; }
.display em { font-style: italic; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 40px; }
.section-title h2 { font-family: var(--sans); font-weight: 500; font-size: 14px; margin: 0; color: var(--ink); }
.link-arrow { font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .2s; }
.link-arrow:hover { color: var(--ink); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  transition: box-shadow .2s;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; position: relative; }
.nav .mini-logo { font-family: var(--serif-display); font-size: 24px; letter-spacing: -.01em; font-weight: var(--display-weight, 400); }
.nav .links { gap: 32px; }
.nav .links a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--ink); }
.nav .links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav.scrolled { box-shadow: 0 1px 0 var(--rule); }
.menu-btn { display: none; }

.masthead { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(24px, 4vw, 48px); }
.masthead .logo { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: clamp(56px, 12vw, 168px); letter-spacing: -.03em; line-height: .9; margin: 0; }
.masthead .tag { margin: 20px 0 0; font-size: 15px; color: var(--muted); }

@media (max-width: 760px) {
  .nav .wrap { min-height: 60px; }
  .menu-btn { display: inline-flex; background: none; border: 0; padding: 12px 0; cursor: pointer; font: 500 14px var(--sans); color: var(--ink); }
  .nav .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; box-shadow: 0 1px 0 var(--rule);
  }
  .nav.open .links { display: flex; }
  .nav .links a { padding: 12px 0; font-size: 18px; }
}
@media (min-width: 761px) { .nav .links { display: flex; } }

/* ---------- Portadas ---------- */
.cover { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cover .art { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif-display); font-size: clamp(24px, 3vw, 40px); opacity: .55; font-weight: var(--display-weight, 400); }
a:hover .cover img { transform: scale(1.02); }

/* ---------- Home ---------- */
.hero { padding: 24px 0 var(--space); }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 88px); }
.hero-main .cover { aspect-ratio: 3 / 2; }
.hero-main .cover .art { font-size: clamp(48px, 7vw, 96px); }
.hero-main > a > div:first-of-type { margin-top: 24px; }
.hero-main .display { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 16px; }
.hero-main p.dek { font-family: var(--serif-text); font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-soft); margin: 0 0 16px; max-width: 46ch; }
.hero-side { display: flex; flex-direction: column; gap: 40px; }
.hero-side h3 { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: 26px; line-height: 1.12; margin: 6px 0 8px; }
.hero-side h3, .card h3, .hero-main .display, .row h3 { transition: opacity .2s; }
.hero-side a:hover h3, .card a:hover h3, .hero-main a:hover .display, .row a:hover h3 { opacity: .6; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-side { gap: 32px; } }

/* Cita */
.band { padding: 0 0 var(--space); }
.band blockquote {
  font-family: var(--serif-display); font-style: italic; font-weight: var(--display-weight, 400);
  font-size: clamp(32px, 5vw, 64px); line-height: 1.08; letter-spacing: -.015em;
  max-width: 22ch; margin: 0 0 32px;
}

/* ---------- Grids ---------- */
.section { padding: 0 0 var(--space); }
.grid { display: grid; gap: 64px 40px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; gap: 48px; } }
.card h3 { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: 28px; line-height: 1.1; margin: 6px 0 10px; }
.card p { font-family: var(--serif-text); color: var(--ink-soft); margin: 0 0 12px; font-size: 16px; }
.card .kicker { display: block; margin-top: 20px; }

/* Lista */
.row a { display: grid; grid-template-columns: 1fr 200px; gap: 48px; align-items: center; padding: 36px 0; border-top: 1px solid var(--rule); }
.row .cover { order: 2; }
.row .side { display: none; }
.row h3 { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: clamp(26px, 3vw, 36px); line-height: 1.08; margin: 6px 0 10px; }
.row p { font-family: var(--serif-text); color: var(--ink-soft); margin: 0; max-width: 60ch; }
.rows { border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) {
  .row a { grid-template-columns: 1fr 96px; gap: 20px; padding: 28px 0; }
  .row h3 { font-size: 24px; }
  .row p { display: none; }
}

/* Secciones */
.cat-strip { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.cat-strip a { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--serif-display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; transition: opacity .2s; font-weight: var(--display-weight, 400); }
.cat-strip a:hover { opacity: .5; }
.cat-strip .count { font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* ---------- Cabecera de página ---------- */
.page-head { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(52px, 9vw, 120px); margin-top: 12px; letter-spacing: -.025em; }
.page-head p.lead { font-family: var(--serif-text); font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft); max-width: 48ch; margin: 24px 0 0; }

/* Filtros */
.filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding: 0 0 56px; }
.filters > * { min-width: 0; }
.chips { display: flex; gap: 6px 22px; flex-wrap: wrap; min-width: 0; }
.chip { font: 400 15px var(--sans); background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer; transition: color .2s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.search { order: 2; margin-left: auto; min-width: 200px; font: 400 15px var(--sans); padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--ink); }
.search:focus { outline: none; border-color: var(--ink); }
@media (max-width: 760px) {
  .filters { flex-direction: column; align-items: stretch; padding-bottom: 32px; }
  .search { order: 0; margin: 0; width: 100%; }
  .chips { width: calc(100% + 2 * var(--gutter)); flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chip { white-space: nowrap; }
}
.empty { padding: 80px 0; font-family: var(--serif-text); color: var(--muted); font-style: italic; }
#cat-title { font-family: var(--serif-display); font-size: 32px; font-weight: var(--display-weight, 400); }

/* ---------- Artículo ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--ink); width: 0; z-index: 40; }
.article-head { max-width: 900px; margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gutter) 48px; }
.article-head h1 { font-size: clamp(44px, 7vw, 92px); margin: 16px 0 24px; letter-spacing: -.025em; }
.article-head .dek { font-family: var(--serif-text); font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--ink-soft); margin: 0 0 32px; max-width: 44ch; }
.byline { display: inline-flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.byline .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; font: 500 13px var(--sans); }
.byline b { color: var(--ink); font-weight: 500; }
.article-cover { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.article-cover .cover { aspect-ratio: 16 / 8; }
.article-cover .cover .art { font-size: clamp(56px, 8vw, 120px); }
.article-cover figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }

.prose { max-width: var(--read); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 32px; font-family: var(--serif-text); font-size: 20px; line-height: 1.75; color: #1d1d1d; }
.prose p { margin: 0 0 1.4em; }
.prose h2 { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: 36px; line-height: 1.1; margin: 2em 0 .6em; }
.prose h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; margin: 2.4em 0 .8em; }
.prose blockquote { margin: 2em 0; padding: 0; font-family: var(--serif-display); font-style: italic; font-weight: var(--display-weight, 400); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose figure { margin: 2.4em -80px; }
@media (max-width: 860px) { .prose figure { margin-inline: 0; } }
.prose figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); padding-top: 10px; }
.prose hr { border: 0; height: 1px; width: 48px; background: var(--ink); margin: 3em 0; }
.prose ul, .prose ol { padding-left: 1.1em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .5em; }
.prose strong { font-weight: 600; }
.endmark { display: none; }
@media (max-width: 760px) { .prose { font-size: 18px; } }

.article-foot { max-width: var(--read); margin: 0 auto; padding: 0 var(--gutter) var(--space); }
.tags { display: flex; gap: 8px 20px; flex-wrap: wrap; padding: 0 0 24px; }
.tags .chip { padding: 0; cursor: default; }
.share { display: flex; gap: 24px; font-size: 14px; color: var(--ink-soft); }
.share .meta { font-size: 14px; }
.share a:hover { color: var(--ink); }
.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: center; padding: 40px 0 0; margin-top: 40px; border-top: 1px solid var(--rule); }
.author-box .avatar { width: 56px; height: 56px; font-size: 16px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 500; }
.author-box h4 { margin: 0 0 2px; font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: 24px; }
.author-box p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Visión y valores ---------- */
.manifesto { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.015em; max-width: 20ch; margin: 0; }
.manifesto em { font-style: italic; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.body-text { font-family: var(--serif-text); font-size: 19px; line-height: 1.7; color: var(--ink-soft); }
.body-text p { margin: 0 0 1.2em; }

.values { counter-reset: v; }
.value { display: grid; grid-template-columns: 64px 1fr 1.2fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--rule); counter-increment: v; }
.value:last-child { border-bottom: 1px solid var(--rule); }
.value::before { content: counter(v, decimal-leading-zero); font-size: 13px; color: var(--muted); padding-top: 10px; }
.value h3 { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: 34px; line-height: 1.05; margin: 0; }
.value p { font-family: var(--serif-text); font-size: 18px; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .value { grid-template-columns: 1fr; gap: 10px; } .value::before { padding: 0; } }

.interests { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--serif-display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; font-weight: var(--display-weight, 400); }
.interests span:nth-child(even) { font-style: italic; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 56px; } }
.collab { padding: 28px 0; border-top: 1px solid var(--rule); }
.collab:last-child { border-bottom: 1px solid var(--rule); }
.collab h3 { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: 28px; margin: 4px 0 6px; }
.collab p { margin: 0; font-family: var(--serif-text); color: var(--ink-soft); font-size: 17px; }
.big-mail { display: inline-block; font-family: var(--serif-display); font-size: clamp(30px, 3.8vw, 48px); margin: 8px 0 48px; word-break: break-all; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; font-weight: var(--display-weight, 400); }
.big-mail:hover { opacity: .6; }

form.form { display: grid; gap: 32px; align-content: start; }
.field { display: grid; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 17px var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--rule); padding: 10px 0; border-radius: 0; width: 100%; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: start; font: 500 15px var(--sans); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 999px; padding: 14px 28px; cursor: pointer; transition: opacity .2s; }
.btn:hover { opacity: .8; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Newsletter ---------- */
.newsletter { padding: var(--space) 0; border-top: 1px solid var(--rule); }
.newsletter .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.newsletter h2 { font-family: var(--serif-display); font-weight: var(--display-weight, 400); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; margin: 8px 0 0; letter-spacing: -.015em; }
.newsletter form { display: flex; border-bottom: 1px solid var(--ink); }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 400 18px var(--sans); padding: 14px 0; }
.newsletter input::placeholder { color: var(--muted); }
.newsletter input:focus { outline: none; }
.newsletter button { background: none; border: 0; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
@media (max-width: 760px) { .newsletter .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .logo { font-family: var(--serif-display); font-size: 32px; font-weight: var(--display-weight, 400); }
.footer p { color: var(--muted); max-width: 32ch; font-size: 14px; }
.footer h4 { font-size: 13px; margin: 8px 0 16px; color: var(--muted); font-weight: 400; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer ul a:hover { opacity: .6; }
.footer .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Entrada suave ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
