
/* ═══════════════════════════════
   VARIABLES & RESET
═══════════════════════════════ */
:root {
  --cream:      #faf8f3;
  --white:      #ffffff;
  --ink:        #1a1108;
  --ink2:       #3d3525;
  --ink3:       #7a6e60;
  --border:     #e8e2d8;
  --border2:    #d5cdc0;

  --red:        #d62b1f;
  --red-dark:   #a81f15;
  --red-bg:     #fff2f1;
  --yellow:     #f5c400;
  --yellow-bg:  #fffbea;
  --yellow-dark:#b38a00;
  --blue:       #1e5fa8;
  --blue-light: #eaf1fb;

  --f-display: 'Fraunces', Georgia, serif;
  --f-body:    'Instrument Sans', system-ui, sans-serif;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 18px rgba(0,0,0,.09);
  --shadow-lg: 0 14px 44px rgba(0,0,0,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ═══════════════════════════════
   TOP NAV
═══════════════════════════════ */
.top-nav {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-nav-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.top-nav-inner a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.top-nav-inner a:hover {
  color: var(--yellow);
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero { background: var(--red-dark); }

.hero-img-wrap {
  width: 100%; line-height: 0; overflow: hidden;
  box-shadow: inset 0 -8px 24px rgba(0,0,0,.25);
}
.hero-img {
  width: 100%; height: auto; display: block;
  max-height: 420px; object-fit: cover; object-position: center top;
}

.hero--text { padding: 64px 0 48px; text-align: center; }
.hero-kicker {
  display: inline-block; background: rgba(255,255,255,.15);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 900; letter-spacing: -3px; line-height: .9;
  color: var(--yellow); margin-bottom: 20px;
}
.hero-sub {
  font-family: var(--f-display); font-style: italic;
  font-size: 22px; color: rgba(255,255,255,.85);
  max-width: 600px; margin: 0 auto;
}

.hero-strip { background: var(--blue); padding: 12px 0; }
.hero-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  color: #fff; font-size: 13px; font-weight: 600;
  padding-top: 0; padding-bottom: 0;
}
.hero-strip-inner span:nth-child(even) { opacity: .35; font-weight: 400; }

/* ═══════════════════════════════
   FECHA BADGE
═══════════════════════════════ */
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--yellow-bg);
  border: 1px solid #f0d060;
  color: var(--yellow-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ═══════════════════════════════
   SECTION TAG
═══════════════════════════════ */
.section-tag {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--red); margin-bottom: 10px;
}

/* ═══════════════════════════════
   INTRO
═══════════════════════════════ */
.intro-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.intro-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px; align-items: start;
}
.intro-heading {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.05;
  margin-bottom: 20px;
}
.intro-body { font-size: 18px; color: var(--ink2); line-height: 1.8; }

.aside-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.aside-card--accent { background: var(--red-bg); border-color: #f5c4bf; }
.aside-icon { font-size: 22px; margin-bottom: 8px; }
.aside-card strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.aside-card p { font-size: 14px; color: var(--ink3); line-height: 1.6; }

/* ═══════════════════════════════
   STATS
═══════════════════════════════ */
.stats-section { background: var(--ink); }
.stats-row { display: flex; padding-top: 0; padding-bottom: 0; }
.stat-item {
  flex: 1; padding: 44px 28px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
  animation: fadeUp .5s calc(var(--i,0)*80ms) both;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--f-display); font-size: 52px; font-weight: 900;
  color: var(--yellow); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,.4);
}

/* ═══════════════════════════════
   MANIFESTO
═══════════════════════════════ */
.manifesto-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.manifesto-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 60px; align-items: start;
}
.manifesto-left h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700; letter-spacing: -.5px; line-height: 1.1;
}
.manifesto-right p {
  font-size: 18px; color: var(--ink2); line-height: 1.85;
  border-left: 3px solid var(--red); padding-left: 24px;
}

/* ═══════════════════════════════
   REFERENCIAS
═══════════════════════════════ */
.ref-row {
  display: flex; flex-wrap: wrap;
  align-items: flex-start; gap: 8px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ref-text {
  font-size: 11px; color: var(--ink3); line-height: 1.5;
  flex: 1 1 100%;
}
.ref-links { display: flex; flex-wrap: wrap; gap: 6px; }
.boe-link {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid #c0d8f5;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.boe-link:hover { background: #d0e6fc; border-color: var(--blue); }

/* ═══════════════════════════════
   CARDS
═══════════════════════════════ */
.cards-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 40px; }
.section-header h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700; letter-spacing: -.5px; line-height: 1.1;
}
.cards-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  animation: fadeUp .45s calc(var(--i,0)*80ms) both;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border2); }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-num {
  font-size: 11px; font-weight: 600; color: var(--ink3);
  background: var(--cream); padding: 4px 10px;
  border-radius: 100px; border: 1px solid var(--border);
}
.card-emoji { font-size: 28px; }
.card h3 {
  font-family: var(--f-display); font-size: 20px; font-weight: 700;
  line-height: 1.2; margin-bottom: 12px;
}
.card-body { font-size: 15px; color: var(--ink3); line-height: 1.65; flex: 1; }
.card-punch {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--red); line-height: 1.45;
}
.card-punch svg { flex-shrink: 0; margin-top: 2px; }

/* ═══════════════════════════════
   ARTICLE
═══════════════════════════════ */
.article-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.article-title {
  font-family: var(--f-display);
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 900; letter-spacing: -2px; line-height: .95;
  margin-bottom: 24px; max-width: 820px;
}
.article-intro {
  font-family: var(--f-display); font-style: italic;
  font-size: 22px; color: var(--ink2); line-height: 1.55;
  max-width: 720px; margin-bottom: 52px;
}
.article-blocks { display: flex; flex-direction: column; gap: 16px; }

.ablock {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.ablock-title {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px; background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.ablock-num {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--red); padding: 3px 10px;
  border-radius: 100px; letter-spacing: .5px; flex-shrink: 0;
}
.ablock-title h3 {
  font-family: var(--f-display);
  font-size: clamp(17px, 2.2vw, 23px); font-weight: 700; line-height: 1.2;
}
.ablock-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ablock-cell {
  padding: 20px 26px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ablock-cell:nth-child(2n) { border-right: none; }
.ablock-cell:nth-last-child(-n+2) { border-bottom: none; }
.cell-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--ink3); margin-bottom: 8px;
}
.ablock-cell p { font-size: 15px; color: var(--ink2); line-height: 1.7; }
.ablock-cell--punch { background: var(--yellow-bg); }
.ablock-cell--punch .cell-label { color: var(--yellow-dark); }
.ablock-cell--punch p {
  font-family: var(--f-display); font-style: italic;
  font-size: 16px; color: #7a4f00;
}

.ablock > .ref-row {
  margin: 0; border-top: 1px solid var(--border);
  padding: 14px 26px; background: var(--cream);
  border-radius: 0;
}
.ablock > .ref-row .ref-text { color: var(--ink3); }

.article-close {
  display: flex; gap: 22px; align-items: flex-start;
  margin-top: 48px; padding: 34px 38px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.close-icon { font-size: 36px; flex-shrink: 0; line-height: 1; margin-top: 4px; }
.article-close h3 {
  font-family: var(--f-display); font-size: 26px; font-weight: 700;
  margin-bottom: 12px; line-height: 1.2;
}
.article-close p { font-size: 17px; color: var(--ink2); line-height: 1.75; }

/* ═══════════════════════════════
   FUENTES
═══════════════════════════════ */
.sources-section { padding: 72px 0; border-bottom: 1px solid var(--border); background: var(--white); }
.sources-title {
  font-family: var(--f-display); font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; letter-spacing: -.5px; margin-bottom: 12px;
}
.sources-intro { font-size: 16px; color: var(--ink3); margin-bottom: 32px; }

.sources-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.sources-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.sources-table thead {
  background: var(--cream);
}
.sources-table th {
  padding: 13px 18px; text-align: left;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink3); border-bottom: 1px solid var(--border);
}
.sources-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.sources-table tbody tr:last-child td { border-bottom: none; }
.sources-table tbody tr:hover { background: var(--cream); }

td.src-num {
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700;
  width: 40px; text-align: center;
  border-radius: 0;
}
.src-title { font-weight: 600; color: var(--ink); max-width: 280px; }
.src-ref   { color: var(--ink3); font-size: 13px; max-width: 240px; }
.src-links { white-space: nowrap; }
.src-link {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid #c0d8f5;
  text-decoration: none; margin: 2px 2px 2px 0;
  transition: background .15s;
}
.src-link:hover { background: #d0e6fc; }

/* ═══════════════════════════════
   SUMMARY
═══════════════════════════════ */
.summary-section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.summary-box {
  background: var(--red-dark); border-radius: 20px;
  padding: 56px 60px; position: relative; overflow: hidden;
}
.summary-box::before {
  content: '"'; position: absolute; top: -30px; right: 36px;
  font-family: var(--f-display); font-size: 260px;
  color: rgba(255,255,255,.06); line-height: 1; pointer-events: none;
}
.summary-pill {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.summary-box h3 {
  font-family: var(--f-display); font-size: clamp(22px, 3vw, 34px);
  font-weight: 700; color: #fff; margin-bottom: 18px;
  line-height: 1.15; letter-spacing: -.5px;
}
.summary-box p {
  font-family: var(--f-display); font-style: italic;
  font-size: 19px; color: rgba(255,255,255,.8);
  line-height: 1.75; max-width: 760px;
}

/* ═══════════════════════════════
   ARCHIVE
═══════════════════════════════ */
.archive-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 18px;
}
.archive-intro {
  font-size: 18px;
  color: var(--ink2);
  margin-bottom: 28px;
  max-width: 760px;
}
.archive-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.archive-list li a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.archive-list li a:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.footer {
  background: var(--ink);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: -.3px;
}
.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--yellow);
}

/* ═══════════════════════════════
   ANIMACIONES
═══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 960px) {
  .intro-grid, .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,.07); }
  .hero-img { max-height: 300px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .cards-grid { grid-template-columns: 1fr; }
  .ablock-grid { grid-template-columns: 1fr; }
  .ablock-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .ablock-cell:last-child { border-bottom: none; }
  .ablock-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .summary-box { padding: 36px 26px; }
  .article-close { flex-direction: column; gap: 12px; padding: 26px 22px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
  .stat-item { flex: 1 1 100%; }
  .hero-strip-inner { gap: 10px; font-size: 12px; }
  .intro-section, .manifesto-section, .cards-section,
  .article-section, .sources-section, .summary-section { padding: 52px 0; }
  .sources-title { font-size: 24px; }
}
