@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0f14;
  --surface: #141a22;
  --surface-2: #1a222c;
  --text: #edeff2;
  --text-muted: #93a0af;
  --text-faint: #5c6773;
  --gold: #c9a227;
  --blue: #4c7ea8;
  --rule: #26303b;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Masthead */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 20px;
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.wordmark .dot { color: var(--gold); }
nav.primary-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
nav.primary-nav a:hover { color: var(--text); }
.datestrip {
  font-size: 12px;
  color: var(--text-faint);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.hero-main .kicker {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-main h1 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 15ch;
}
.hero-main p.dek {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 20px;
}
.hero-main .meta {
  font-size: 13px;
  color: var(--text-faint);
}

.hero-side { display: flex; flex-direction: column; gap: 26px; }
.side-item .kicker {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}
.side-item h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 6px;
}
.side-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.side-item + .side-item { padding-top: 26px; border-top: 1px solid var(--rule); }

/* Section blocks */
.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}
.section-head h2 .tag-mercados { color: var(--gold); }
.section-head h2 .tag-ia { color: var(--blue); }
.section-head a.view-all {
  font-size: 13px;
  color: var(--text-muted);
}
.section-head a.view-all:hover { color: var(--text); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.article-card .kicker {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.article-card.mercados .kicker { color: var(--gold); }
.article-card.ia .kicker { color: var(--blue); }
.article-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 10px;
}
.article-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
footer {
  padding: 40px 0 60px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-faint);
}
footer a:hover { color: var(--text-muted); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-main h1 { font-size: 32px; }
  .article-grid { grid-template-columns: 1fr; }
  nav.primary-nav { gap: 18px; font-size: 13px; }
}

/* Article page */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.article-page .kicker {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.article-page h1 {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 20px;
}
.article-page .byline {
  font-size: 13px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.article-page p {
  font-size: 17px;
  line-height: 1.75;
  color: #d7dbe0;
  margin: 0 0 22px;
}
.article-page .disclaimer {
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  margin-top: 36px;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--text); }
