/* ============================================================
   Cunto Tributario — Revista técnica de derecho tributario
   Identidad: editorial académica · verde forest + cobre
   v2 — Visual enriquecido
   ============================================================ */

:root {
  --forest: #1a3d2e;
  --forest-deep: #0f2a1f;
  --forest-darker: #081711;
  --forest-soft: #2d5a47;
  --forest-mist: #4a7560;
  --copper: #a8623c;
  --copper-light: #c47e58;
  --copper-soft: #d9a585;
  --copper-glow: #e8c4a3;
  --cream: #f7f3ec;
  --cream-warm: #f1ead9;
  --cream-deep: #ebe2cc;
  --paper: #ffffff;
  --ink: #1c1c1c;
  --ink-soft: #3d3d3d;
  --ink-muted: #6b6b6b;
  --ink-faint: #969590;
  --line: #e3ddcc;
  --line-soft: #efe9da;
  --rule: #d4cdb8;
  --shadow-sm: 0 1px 2px rgba(26, 61, 46, 0.05);
  --shadow-md: 0 6px 24px rgba(26, 61, 46, 0.09);
  --shadow-lg: 0 18px 50px rgba(26, 61, 46, 0.14);
  --shadow-xl: 0 30px 80px rgba(26, 61, 46, 0.22);
  --radius: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --container: 1280px;
  --container-read: 740px;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--copper); }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--copper); font-family: var(--sans); font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.container-read {
  width: 100%;
  max-width: var(--container-read);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   Reading progress bar (artículos)
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper) 0%, var(--copper-light) 100%);
  z-index: 1000;
  width: 0;
  transition: width 0.08s linear;
}

/* ============================================================
   Topbar
   ============================================================ */

.topbar {
  background: var(--forest-darker);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 9px 0;
  position: relative;
  z-index: 90;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: 500;
}

.topbar a { color: var(--copper-soft); }
.topbar a:hover { color: var(--paper); }

.topbar-ornament {
  display: inline-block;
  margin: 0 8px;
  color: var(--copper);
}

/* ============================================================
   Masthead
   ============================================================ */

.masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0 0;
  position: relative;
}

.masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--copper);
}

.masthead-inner { text-align: center; }

.masthead-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 14px;
  font-weight: 700;
}

.masthead-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--forest-deep);
  margin: 0;
  letter-spacing: -0.028em;
  line-height: 1;
}

.masthead-title a { color: inherit; }

.masthead-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin: 16px 0 0;
}

.masthead-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 28px 0 0;
}

.masthead-rule-double {
  height: 4px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

/* ============================================================
   Navegación
   ============================================================ */

.site-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(247, 243, 236, 0.96);
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 28px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  display: inline-block;
  padding: 18px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-deep);
  font-weight: 600;
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 2px;
  background: var(--copper);
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  left: 24px;
  right: 24px;
}

.nav-list a:hover,
.nav-list a.active { color: var(--copper); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 14px 28px;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-deep);
  font-weight: 600;
}

/* ============================================================
   HERO IMAGE — Editorial principal
   ============================================================ */

.hero-editorial {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest-darker);
  color: var(--cream);
}

.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}

.hero-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,23,17,0.4) 0%, rgba(8,23,17,0.85) 70%, rgba(8,23,17,0.98) 100%);
  z-index: 1;
}

.hero-editorial-inner {
  position: relative;
  z-index: 2;
  padding: 100px 0 80px;
  width: 100%;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: end;
}

.hero-editorial .kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-glow);
  font-weight: 700;
  margin: 0 0 24px;
}

.hero-editorial .kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--copper);
}

.hero-editorial h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 720px;
}

.hero-editorial h2 a { color: inherit; transition: color 0.25s var(--ease); }
.hero-editorial h2 a:hover { color: var(--copper-glow); }

.hero-editorial .summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(247,243,236,0.82);
  margin: 0 0 32px;
  max-width: 620px;
}

.hero-editorial .meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(247,243,236,0.65);
  letter-spacing: 0.03em;
}

.hero-editorial .meta-dot {
  width: 4px;
  height: 4px;
  background: var(--copper);
  border-radius: 50%;
}

.hero-side {
  background: rgba(247,243,236,0.06);
  border: 1px solid rgba(247,243,236,0.14);
  backdrop-filter: blur(10px);
  padding: 36px;
  border-radius: var(--radius-md);
  position: relative;
}

.hero-side::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--copper);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.hero-side .side-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-glow);
  font-weight: 700;
  margin: 0 0 14px;
}

.hero-side h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin: 0 0 14px;
  line-height: 1.25;
}

.hero-side p {
  font-size: 0.95rem;
  color: rgba(247,243,236,0.72);
  margin: 0 0 18px;
  line-height: 1.55;
}

.hero-side a.link-more {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-glow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-side a.link-more:hover { color: var(--paper); }

.hero-side a.link-more::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.hero-side a.link-more:hover::after { transform: translateX(4px); }

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}

.section-paper { background: var(--paper); }
.section-warm { background: var(--cream-warm); }
.section-dark { background: var(--forest-deep); color: var(--cream); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  margin: 0 0 48px;
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 80px;
  height: 3px;
  background: var(--copper);
}

.section-head h2 {
  margin: 0;
  font-size: 1.7rem;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head .section-link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-head .section-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.section-head .section-link:hover::after { transform: translateX(4px); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 0 0 14px;
}

/* ============================================================
   Image cards (artículos con imagen)
   ============================================================ */

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cream-deep);
}

.feature-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.feature-card:hover .card-image img { transform: scale(1.05); }

.feature-card .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,42,31,0) 60%, rgba(15,42,31,0.45) 100%);
  pointer-events: none;
}

.feature-card .card-cat {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--copper);
  padding: 6px 12px;
  border-radius: 2px;
  font-weight: 700;
}

.feature-card .card-body {
  padding: 28px 28px 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.feature-card h3 a { color: var(--forest-deep); transition: color 0.2s var(--ease); }
.feature-card h3 a:hover { color: var(--copper); }

.feature-card .card-summary {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 20px;
  flex-grow: 1;
  line-height: 1.55;
}

.feature-card .card-meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card .meta-dot {
  width: 3px;
  height: 3px;
  background: var(--copper);
  border-radius: 50%;
}

/* ============================================================
   Topics grid (con SVG icons)
   ============================================================ */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.topic-card {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--copper);
  transition: width 0.35s var(--ease);
}

.topic-card:hover {
  background: var(--cream);
}

.topic-card:hover::before { width: 100%; }

.topic-icon {
  width: 44px;
  height: 44px;
  color: var(--copper);
  margin: 0 0 22px;
}

.topic-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }

.topic-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--forest-deep);
}

.topic-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Recognition strip
   ============================================================ */

.recognition {
  padding: 60px 0;
  background: var(--cream-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.recognition-label {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 36px;
  font-weight: 600;
}

.recognition-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 56px;
}

.recognition-item {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest-deep);
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease);
}

.recognition-item:hover { opacity: 1; }

.recognition-item .ri-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest-deep);
  letter-spacing: 0;
}

.recognition-item .ri-role {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 4px;
  font-weight: 600;
}

/* ============================================================
   Pull stat (highlight numérico grande)
   ============================================================ */

.stat-banner {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=2000&q=70');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: grayscale(80%) sepia(20%);
  z-index: 0;
}

.stat-banner > .container { position: relative; z-index: 1; }

.stat-banner .label {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin: 0 0 16px;
  font-weight: 600;
}

.stat-banner blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--cream);
  margin: 0 auto;
  max-width: 920px;
  line-height: 1.4;
  border: 0;
  padding: 0;
  position: relative;
}

.stat-banner blockquote::before,
.stat-banner blockquote::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--copper);
  margin: 24px auto;
}

.stat-banner .attribution {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-glow);
  margin-top: 4px;
  font-weight: 600;
}

/* ============================================================
   Newsletter
   ============================================================ */

.newsletter {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1568667256549-094345857637?auto=format&fit=crop&w=2000&q=70');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(60%);
  z-index: 0;
}

.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,42,31,0.85) 0%, rgba(8,23,17,0.95) 100%);
  z-index: 1;
}

.newsletter > .container { position: relative; z-index: 2; }

.newsletter .nl-eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper-glow);
  margin: 0 0 18px;
  font-weight: 700;
}

.newsletter h2 {
  color: var(--paper);
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.newsletter p {
  color: rgba(247, 243, 236, 0.78);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.newsletter-form input[type="email"] {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 16px 20px;
  background: var(--paper);
  border: 0;
  color: var(--ink);
  border-radius: 0;
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--copper);
  outline-offset: -2px;
}

.newsletter-form button {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 30px;
  background: var(--copper);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.newsletter-form button:hover { background: var(--copper-light); }

.newsletter-note {
  font-size: 0.78rem;
  color: rgba(247, 243, 236, 0.55);
  margin: 18px 0 0;
}

/* ============================================================
   ARTICLE — Hero con imagen
   ============================================================ */

.article-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background: var(--forest-darker);
  color: var(--cream);
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,23,17,0.35) 0%, rgba(8,23,17,0.85) 75%, rgba(8,23,17,0.97) 100%);
  z-index: 1;
}

.article-hero.hero-hidrocarburos::before {
  background-image: url('https://images.unsplash.com/photo-1589216532372-1c2a367900d9?auto=format&fit=crop&w=2000&q=80');
}

.article-hero.hero-islr::before {
  background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=2000&q=80');
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  padding: 100px 0 64px;
  width: 100%;
}

.article-hero-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-hero .article-cat {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-glow);
  font-weight: 700;
  background: var(--copper);
  color: var(--paper);
  padding: 7px 14px;
  border-radius: 2px;
  margin: 0 0 24px;
}

.article-hero .article-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.article-hero .article-deck {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  color: rgba(247,243,236,0.82);
  margin: 0 0 32px;
  font-style: italic;
  max-width: 780px;
}

.article-hero .article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  color: rgba(247,243,236,0.7);
  letter-spacing: 0.03em;
  padding-top: 22px;
  border-top: 1px solid rgba(247,243,236,0.18);
}

.article-hero .author-name {
  font-weight: 600;
  color: var(--copper-glow);
  letter-spacing: 0;
}

.article-hero .meta-dot {
  width: 4px;
  height: 4px;
  background: var(--copper);
  border-radius: 50%;
}

/* ============================================================
   ARTICLE — Body
   ============================================================ */

.article-body {
  padding: 72px 0 96px;
  background: var(--cream);
}

.article-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* TOC sidebar */
.article-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-family: var(--sans);
  font-size: 0.86rem;
  padding-right: 8px;
}

.article-toc h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 16px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.article-toc li {
  margin-bottom: 10px;
  line-height: 1.4;
  counter-increment: toc;
  padding-left: 24px;
  position: relative;
}

.article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.7rem;
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.article-toc a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  transition: color 0.2s var(--ease);
}

.article-toc a:hover { color: var(--copper); }

.article-toc-share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.2s var(--ease);
}

.share-buttons a:hover { color: var(--copper); }
.share-buttons svg { width: 16px; height: 16px; }

/* Article content */
.article-content { font-family: var(--serif); }

.article-content > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 0.85;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--copper);
  margin: 0;
}

.article-content p {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 1.4em;
}

.article-content h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 2.3em 0 0.7em;
  color: var(--forest-deep);
  scroll-margin-top: 90px;
  position: relative;
  padding-top: 0.4em;
}

.article-content h2::before {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--copper);
  margin-bottom: 16px;
}

.article-content h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 1.9em 0 0.55em;
  color: var(--forest);
}

.article-content ul,
.article-content ol {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--ink-soft);
  padding-left: 26px;
  margin: 0 0 1.4em;
}

.article-content li { margin-bottom: 0.55em; }
.article-content li::marker { color: var(--copper); }

.article-content blockquote {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--forest-deep);
  border-left: 3px solid var(--copper);
  margin: 2em 0;
  padding: 12px 0 12px 32px;
}

.article-content blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-muted);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

.article-content strong { color: var(--forest-deep); font-weight: 700; }

.article-content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--cream-warm);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--forest-deep);
}

.article-content a {
  color: var(--forest-deep);
  border-bottom: 1px solid var(--copper-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.article-content a:hover {
  color: var(--copper);
  border-color: var(--copper);
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
  position: relative;
}

.article-content hr::after {
  content: "❦";
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--copper);
  padding: 0 16px;
  font-size: 1.2rem;
}

.article-content .pull-quote {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.35;
  color: var(--forest-deep);
  text-align: center;
  margin: 2.8em auto;
  max-width: 640px;
  padding: 28px 0;
  border-top: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  font-style: italic;
  position: relative;
}

.article-content .pull-quote::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--copper);
  padding: 0 16px;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  font-style: normal;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.article-content table th,
.article-content table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.article-content table th {
  background: var(--cream-warm);
  font-weight: 700;
  color: var(--forest-deep);
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.article-content table td { color: var(--ink-soft); }

.article-content table tbody tr:hover td { background: var(--cream); }

.article-figure {
  margin: 2.5em 0;
}

.article-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-figure figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.02em;
  font-style: italic;
}

.article-references {
  margin: 56px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
}

.article-references h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 16px;
  font-weight: 700;
}

.article-references ol {
  font-family: var(--sans);
  padding-left: 22px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.article-references li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.article-disclaimer {
  margin: 48px 0 0;
  padding: 26px 30px;
  background: var(--cream-warm);
  border-left: 3px solid var(--copper);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-disclaimer strong { color: var(--forest-deep); }

.article-byline {
  margin: 56px 0 0;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.byline-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--copper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  border: 2px solid var(--copper);
}

.byline-body h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--forest-deep);
}

.byline-body .byline-role {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin: 0 0 12px;
}

.byline-body p {
  font-family: var(--sans);
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Related articles
   ============================================================ */

.related-section {
  padding: 72px 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.related-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease);
  background: var(--cream);
}

.related-card:hover {
  border-color: var(--copper-soft);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.related-card .rc-image {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
}

.related-card .rc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card .rc-body { flex-grow: 1; }

.related-card .rc-cat {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 0 0 8px;
}

.related-card h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.related-card h4 a { color: var(--forest-deep); }
.related-card h4 a:hover { color: var(--copper); }

.related-card .rc-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ============================================================
   Archive list
   ============================================================ */

.archive-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 32px;
}

.archive-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 260px 1fr 200px;
  gap: 36px;
  align-items: center;
}

.archive-item:last-child { border-bottom: 0; }

.archive-image {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-deep);
}

.archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.archive-item:hover .archive-image img { transform: scale(1.05); }

.archive-cat {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 0 0 12px;
}

.archive-body h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0 0 12px;
  line-height: 1.22;
}

.archive-body h2 a { color: var(--forest-deep); }
.archive-body h2 a:hover { color: var(--copper); }

.archive-body p {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

.archive-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  text-align: right;
}

.archive-meta .am-date {
  display: block;
  color: var(--forest-deep);
  font-weight: 600;
  margin-bottom: 4px;
}

/* Filter pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding-bottom: 0;
}

.filter-pill {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-weight: 500;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--paper);
}

/* ============================================================
   Page hero (páginas estáticas)
   ============================================================ */

.page-hero {
  padding: 80px 0 56px;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.page-hero h1 { margin: 0 0 16px; }

.page-hero .lede {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 680px;
  line-height: 1.55;
}

.page-hero .page-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 0 0 18px;
}

/* Page hero con imagen */
.page-hero-image {
  position: relative;
  min-height: 380px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  background: var(--forest-darker);
  color: var(--cream);
  overflow: hidden;
}

.page-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}

.page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,23,17,0.45) 0%, rgba(8,23,17,0.92) 100%);
  z-index: 1;
}

.page-hero-image.bg-sobre::before {
  background-image: url('https://images.unsplash.com/photo-1568667256549-094345857637?auto=format&fit=crop&w=2000&q=80');
}

.page-hero-image.bg-articulos::before {
  background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=2000&q=80');
}

.page-hero-image.bg-contacto::before {
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=2000&q=80');
}

.page-hero-image .container-read,
.page-hero-image .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 56px;
}

.page-hero-image h1 { color: var(--cream); }

.page-hero-image .lede { color: rgba(247,243,236,0.85); }

.page-hero-image .page-eyebrow { color: var(--copper-glow); }

/* ============================================================
   Static page content
   ============================================================ */

.static-page {
  padding: 72px 0 88px;
}

.static-page .container-read p,
.static-page .container-read li {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

.static-page .container-read h2 {
  font-family: var(--serif);
  margin: 2em 0 0.6em;
  padding-top: 0.4em;
}

.static-page .container-read h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--copper);
  margin-bottom: 14px;
}

.static-page .container-read h3 {
  font-family: var(--serif);
  margin: 1.8em 0 0.5em;
}

/* Visual timeline (sobre.html) */
.visual-timeline {
  margin: 48px 0;
  position: relative;
  padding-left: 36px;
}

.visual-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rule);
}

.vt-item {
  position: relative;
  padding-bottom: 36px;
}

.vt-item:last-child { padding-bottom: 0; }

.vt-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--copper);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream);
}

.vt-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 0 0 6px;
}

.vt-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--forest-deep);
}

.vt-item p {
  font-family: var(--serif);
  margin: 0;
}

/* Author stats */
.author-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0;
  border-top: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
}

.author-stat {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--rule);
  position: relative;
}

.author-stat:last-child { border-right: 0; }

.author-stat .stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "lnum";
}

.author-stat .stat-lbl {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Awards grid */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.award-item {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--copper);
  transition: all 0.25s var(--ease);
}

.award-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.award-item .ai-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin: 0 0 4px;
}

.award-item .ai-source {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin: 0 0 12px;
}

.award-item .ai-desc {
  font-family: var(--serif);
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Forms
   ============================================================ */

.form-wrap {
  background: var(--paper);
  padding: 44px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  margin-top: 32px;
  border-radius: var(--radius-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.form-field label {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.form-field label span { color: var(--copper); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--copper);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(168, 98, 60, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--forest-deep);
  background: var(--forest-deep);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  text-align: center;
}

.btn:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--forest-deep);
}

.btn-ghost:hover {
  background: var(--forest-deep);
  color: var(--paper);
}

.btn-copper {
  background: var(--copper);
  border-color: var(--copper);
}

.btn-copper:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--forest-darker);
  color: rgba(247, 243, 236, 0.7);
  padding: 80px 0 0;
  margin-top: 40px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper) 0%, var(--copper-light) 50%, var(--copper) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer-brand .footer-title {
  font-family: var(--serif);
  color: var(--paper);
  font-size: 1.6rem;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-brand .footer-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--copper);
  margin: 14px 0 16px;
}

.footer-brand p {
  color: rgba(247, 243, 236, 0.65);
  font-size: 0.93rem;
  margin: 0;
  max-width: 300px;
  line-height: 1.6;
}

.site-footer h4 {
  font-family: var(--sans);
  color: var(--copper-glow);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.site-footer a {
  color: rgba(247, 243, 236, 0.78);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--copper-glow);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 236, 0.1);
  padding: 26px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(247, 243, 236, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   404
   ============================================================ */

.error-wrap {
  text-align: center;
  padding: 140px 0;
}

.error-num {
  font-family: var(--serif);
  font-size: 7rem;
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.04em;
}

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .article-shell {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 760px;
  }
  .article-toc { display: none; }
}

@media (max-width: 960px) {
  .hero-editorial-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .author-stats { grid-template-columns: 1fr; }
  .author-stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .author-stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-item { grid-template-columns: 1fr; gap: 18px; }
  .archive-meta { text-align: left; }
  .recognition-row { gap: 32px; }
  .related-card { flex-direction: column; }
  .related-card .rc-image { width: 100%; height: 160px; }
}

@media (max-width: 720px) {
  .nav-inner { padding: 0; }
  .nav-toggle { display: block; border-bottom: 1px solid var(--rule); }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0 0 8px;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-list a::after { display: none; }

  .hero-editorial { min-height: auto; }
  .hero-editorial-inner { padding: 64px 0 56px; }
  .article-hero { min-height: auto; }
  .article-hero-inner { padding: 64px 0 48px; }

  .feature-cards { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .form-wrap { padding: 28px 20px; }

  .newsletter-form { flex-direction: column; gap: 8px; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; }

  .article-byline { flex-direction: column; gap: 16px; }

  .article-content > p:first-of-type::first-letter {
    font-size: 3.5rem;
  }

  body { font-size: 16px; }
}

/* ============================================================
   Accesibilidad
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-nav, .topbar, .newsletter, .article-toc, .related-section, .site-footer, .reading-progress { display: none !important; }
  .article-hero { min-height: auto; background: none !important; color: var(--ink) !important; }
  .article-hero::before, .article-hero::after { display: none; }
  .article-hero .article-title, .article-hero .article-deck, .article-hero .article-meta { color: var(--ink); }
  body { background: white; }
}
