/* ─── TOKENS (idénticos a los de index.html) ─────────────── */
:root {
  --cream: #F4F1EB;
  --ink: #1A1714;
  --mid: #5C574F;
  --muted: #9E998F;
  --alt: #E8E4DB;
  --line: rgba(26, 23, 20, 0.12);
  --line-cream: rgba(244, 241, 235, 0.15);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --max: 1160px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --amber: #FF8F00;
  --amber-bright: #FFB300;
  --brand-grad: linear-gradient(90deg, #FF6F00 0%, #FFCA28 40%, #FFB300 70%, #FF8F00 100%);
  --text-lysis: 'Nunito', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ─── NAV (misma identidad que index.html, siempre en su estado "scrolled": aquí no hay hero oscuro debajo) ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 23, 20, 0.97);
  border-bottom: 1px solid var(--line-cream);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 235, 0.65);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-bright);
}

.nav-cta {
  padding: 9px 22px;
  border: 1px solid rgba(244, 241, 235, 0.3);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream) !important;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s !important;
}

.nav-cta:hover {
  background: var(--cream) !important;
  color: var(--ink) !important;
  border-color: var(--cream) !important;
}

@media (max-width: 680px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ─── CABECERA DE SECCIÓN (listado y artículo) ─────────────── */
.blog-head {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.blog-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.blog-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--amber);
}

.blog-eyebrow span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 16ch;
}

.blog-head p.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--mid);
  max-width: 46ch;
  margin-top: 1rem;
}

/* ─── LISTADO DE ARTÍCULOS ──────────────────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.post-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
}

.post-list .post-card:last-child { border-bottom: 1px solid var(--line); }

.post-card time {
  font-family: var(--text-lysis);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.post-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.post-card h2 a:hover { color: var(--amber); }

.post-card p {
  color: var(--mid);
  max-width: 62ch;
}

@media (max-width: 560px) {
  .post-card { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ─── ARTÍCULO ───────────────────────────────────────────────── */
.post {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.post-body {
  max-width: 66ch;
  font-size: 1.05rem;
  line-height: 1.85;
}

.post-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.65rem;
  margin: 2.25rem 0 0.9rem;
  text-wrap: balance;
}

.post-body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 1.75rem 0 0.6rem;
}

.post-body p { margin-bottom: 1.15rem; }

.post-body ul,
.post-body ol {
  margin: 0 0 1.15rem 1.25rem;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body a { color: var(--amber); border-bottom: 1px solid rgba(255, 143, 0, 0.35); }
.post-body a:hover { border-color: var(--amber); }

.post-body strong { font-weight: 500; color: var(--ink); }

.post-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--text-lysis);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-back:hover { color: var(--amber); }

/* ─── CTA DE CIERRE ──────────────────────────────────────────── */
.post-cta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--ink);
  border-radius: 3px;
}

.post-cta p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 1.1rem;
  max-width: 40ch;
}

.post-cta a {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(244, 241, 235, 0.3);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.post-cta a:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ─── FOOTER (idéntico a index.html) ────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(244, 241, 235, 0.08);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo-text {
  font-family: var(--text-lysis);
  font-size: 18px;
  font-weight: 400;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-copy {
  font-size: 12px;
  color: rgba(244, 241, 235, 0.3);
  letter-spacing: 0.04em;
}

.footer-links { display: flex; gap: 1.75rem; }

.footer-links a {
  font-size: 12px;
  color: rgba(244, 241, 235, 0.3);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(244, 241, 235, 0.7); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
}
