/* =============================================================
   Trayectoria — Archetype: Newspaper Editorial
   Periódico clásico: densidad, columnas, drop cap, filetes finos.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #faf7f0;
  --ink: #16140e;
  --mute: #4a4739;
  --faint: #7a7666;
  --accent: #960018;
  --line: #16140e;
  --line-soft: rgba(22, 20, 14, 0.18);

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 920px;
  --gutter: 1.25rem;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
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; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; color: var(--ink); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem;
}
.hairline-top, .hairline-bottom { border-top: 1px solid var(--line); }
.hairline-bottom { margin-top: 0.9rem; }

section { padding-block: clamp(2.6rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line-soft); }
.hero { border-bottom: none; padding-top: 0; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 1rem; }
.section-lede { font-family: var(--serif); color: var(--mute); max-width: 70ch; margin-bottom: 2rem; }

/* =============================================================
   4. Reading progress (única animación permitida por el arquetipo)
   ============================================================= */
.reading-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 900; background: transparent; }
.reading-progress span { display: block; height: 100%; width: 0%; background: var(--accent); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav { position: sticky; top: 0; z-index: 500; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: center; gap: 1.6rem; padding: 0.75rem var(--gutter); font-family: var(--sans); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.nav-link:hover { color: var(--accent); }
.nav-link--cta { color: var(--accent); border: 1px solid var(--accent); padding: 0.35rem 0.8rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 0.5rem; margin-left: auto; }
.nav-burger span { width: 20px; height: 2px; background: var(--ink); }
.nav-mobile { display: none; flex-direction: column; padding: 0.6rem var(--gutter) 1rem; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.nav-mobile[data-open="true"] { display: flex; }
.nav-mobile-link { padding: 0.6rem 0; border-top: 1px solid var(--line-soft); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.nav-mobile-link:first-child { border-top: none; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-burger { display: flex; }
}

/* =============================================================
   6. Splash
   ============================================================= */
.splash { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--bg); transition: opacity .4s ease, visibility .4s; }
.splash-mark { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--ink); }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }

/* =============================================================
   7. Buttons
   ============================================================= */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-family: var(--sans); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7a0013; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* =============================================================
   8. Masthead + hero article
   ============================================================= */
.masthead { text-align: center; padding-block: 2rem 1.2rem; }
.brand-newspaper { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.01em; }
.issue { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-top: 0.6rem; }

.hero-article { padding-block: 2.4rem clamp(2.6rem, 6vw, 4.5rem); }
.huge-serif { font-size: clamp(1.9rem, 4.6vw, 3rem); font-style: italic; max-width: 20ch; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.2rem; }

.multi-column { column-count: 2; column-gap: 2.4rem; column-rule: 1px solid var(--line); }
.multi-column p { margin-bottom: 1.1rem; break-inside: avoid; }
.multi-column p.has-dropcap::first-letter {
  font-family: var(--display); font-weight: 700; font-size: 4.6rem; line-height: 0.8;
  float: left; padding: 0.05em 0.08em 0 0; color: var(--accent);
}
.story-personal { font-style: italic; color: var(--faint); }

.cutout { float: left; width: 42%; margin: 0 1.4rem 0.8rem 0; break-inside: avoid; }
.cutout img { width: 100%; filter: grayscale(1) contrast(1.08); }
.cutout--standalone { float: none; width: min(100%, 380px); margin: 2rem 0 0; }

.pull-quote { column-span: all; margin-block: 1.8rem; padding-block: 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.pull-quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem); max-width: 60ch; position: relative; padding-left: 1.6rem; }
.pull-quote p::before { content: "“"; position: absolute; left: -0.3rem; top: -0.3rem; font-size: 2.4rem; color: var(--accent); font-family: var(--display); }

.byline { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-top: 1.6rem; clear: both; }

@media (max-width: 760px) {
  .multi-column { column-count: 1; }
  .cutout { float: none; width: 100%; margin: 0 0 1.2rem; }
}

/* =============================================================
   9. Stats band
   ============================================================= */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 1.6rem 1.8rem; border-left: 1px solid var(--line-soft); text-align: center; }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 2.8rem); color: var(--accent); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.2rem; }
.stat-note { font-family: var(--sans); color: var(--faint); font-size: 0.78rem; }

@media (max-width: 700px) { .stat { border-left: none; border-top: 1px solid var(--line-soft); } .stat:first-child { border-top: none; } }

/* =============================================================
   10. Timeline
   ============================================================= */
.timeline { display: flex; flex-direction: column; margin-top: 1.6rem; }
.tl-item { display: grid; grid-template-columns: 190px 1fr; gap: 1.6rem; padding-block: 1.4rem; border-top: 1px solid var(--line-soft); }
.tl-item:first-child { border-top: none; }
.tl-item--current .tl-year { color: var(--accent); }
.tl-year { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--mute); }
.tl-body p { color: var(--mute); margin-top: 0.4rem; }
.tl-tags { font-family: var(--sans); font-size: 0.8rem; color: var(--faint); margin-top: 0.6rem; }

@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; } }

/* =============================================================
   11. Talks / ponencias
   ============================================================= */
.talk-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 2.2rem; margin-top: 1.6rem; }
.talk-category { padding-block: 1.4rem; border-top: 1px solid var(--line-soft); }
.talk-cat-head { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.6rem; }
.talk-cat-icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; align-self: center; }
.talk-cat-head h3 { font-size: 1.05rem; flex: 1; }
.talk-cat-count { font-family: var(--sans); font-weight: 700; color: var(--faint); font-size: 0.85rem; }
.talk-cat-examples li { font-family: var(--serif); font-size: 0.92rem; color: var(--mute); padding-block: 0.35rem; border-top: 1px solid var(--line-soft); }
.talk-cat-examples li:first-child { border-top: none; }

/* =============================================================
   12. Education
   ============================================================= */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 2.2rem; margin-top: 1.6rem; }
.education-list li { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding-block: 0.7rem; border-top: 1px solid var(--line-soft); }
.education-list li:first-child { border-top: none; }
.edu-period { font-family: var(--sans); color: var(--faint); font-size: 0.78rem; font-weight: 700; }
.edu-body { color: var(--mute); font-size: 0.9rem; }
.edu-body strong { color: var(--ink); font-family: var(--serif); }

/* =============================================================
   13. Articles (further reading)
   ============================================================= */
.articles-list { margin-top: 1.6rem; margin-bottom: 1.6rem; }
.article-row { padding-block: 1.2rem; border-top: 1px solid var(--line-soft); }
.article-row:first-child { border-top: none; }
.article-row h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.article-row p { color: var(--mute); font-size: 0.94rem; }
.link-arrow { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 0.85rem; color: var(--accent); margin-right: 1.6rem; }
.link-arrow:hover { text-decoration: underline; }

/* =============================================================
   14. Press / pull-quote
   ============================================================= */
.press-grid { display: block; }
.press-text { max-width: 74ch; }
.pull-quote--press { column-span: none; }
.press-source { font-family: var(--sans); font-style: normal; color: var(--faint); font-size: 0.8rem; margin-top: 0.6rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* =============================================================
   15. Colaboraciones — lista estática
   ============================================================= */
.collab-list { font-family: var(--sans); font-size: 0.95rem; color: var(--mute); line-height: 2.1; }
.collab-sep { color: var(--accent); }

/* =============================================================
   16. Contact — anuncios clasificados
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-block: 1.8rem; border: 1px solid var(--line); }
.contact-card { display: block; padding: 1.6rem; border-left: 1px solid var(--line); }
.contact-card:first-child { border-left: none; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-card p { color: var(--mute); font-size: 0.9rem; margin-bottom: 0.7rem; }
.contact-card-cta { font-family: var(--sans); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent); }
.contact-direct { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { border-left: none; border-top: 1px solid var(--line); } .contact-card:first-child { border-top: none; } }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { padding-block: 1.8rem; border-bottom: none; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; font-family: var(--sans); color: var(--faint); font-size: 0.8rem; }
.footer-top { color: var(--accent); font-weight: 700; }
.trayectoria-credit { display: inline-flex; align-items: center; gap: 0.35rem; opacity: 0.8; transition: opacity .2s; }
.trayectoria-credit:hover { opacity: 1; }
.trayectoria-credit img { display: block; border-radius: 2px; }
