/* ═══ Blog Taller Eléctrico Martínez — estilos compartidos ═══
   Mismos tokens de diseño que index.html. Las rutas de fuentes
   se resuelven relativas a este archivo (/blog/blog.css → /fonts/). */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/montserrat.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-300.woff2') format('woff2');
}

:root {
  --ink:     #1a1a18;
  --ink2:    #3a3a38;
  --mid:     #6e6e68;
  --rule:    #e0ddd8;
  --paper:   #f8f6f1;
  --white:   #ffffff;
  --gold:    #a08050;
  --gold-lt: #c8a870;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Montserrat', sans-serif;
  --ff-mono:  'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--ink); font-family: var(--ff-sans); font-weight: 300; overflow-x: hidden; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.nav-logo-name { font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.05em; color: var(--ink); line-height: 1; }
.nav-logo-sub { font-size: 0.55rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--mid); text-decoration: none;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: var(--white) !important; background: var(--ink); padding: 0.65rem 1.6rem; letter-spacing: 0.14em; transition: background 0.25s !important; }
.nav-cta:hover { background: var(--gold) !important; }
@media (max-width: 700px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.4rem; }
  .nav-links .nav-plain { display: none; } /* en móvil solo queda el CTA */
}

/* ─── LAYOUT ARTÍCULO ─── */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 9rem 1.5rem 5rem; }
.post-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
}
.post-eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--gold); }
.post-wrap h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.post-wrap h1 em { font-style: italic; color: var(--gold); }
.post-sub { font-size: 0.92rem; line-height: 1.9; color: var(--mid); margin-bottom: 2.5rem; }

/* Bloque de respuesta directa — lo primero que lee humano o máquina */
.post-answer {
  padding: 2rem;
  background: var(--paper);
  border-left: 2px solid var(--gold);
  margin-bottom: 3.5rem;
}
.post-answer-label {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.post-answer p { font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 300; line-height: 1.65; color: var(--ink2); }
.post-answer p + p { margin-top: 0.9rem; }

/* Prosa */
.post-body h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 300; line-height: 1.2;
  margin: 3rem 0 1.2rem;
}
.post-body h2 em { font-style: italic; color: var(--gold); }
.post-body h3 { font-size: 0.95rem; font-weight: 500; margin: 2rem 0 0.7rem; }
.post-body p { font-size: 0.9rem; line-height: 1.95; color: var(--ink2); margin-bottom: 1.2rem; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.2rem; }
.post-body li { font-size: 0.9rem; line-height: 1.9; color: var(--ink2); margin-bottom: 0.6rem; }
.post-body li strong, .post-body p strong { font-weight: 500; color: var(--ink); }
.post-body a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-lt); }
.post-body a:hover { color: var(--ink); }
.post-body blockquote {
  margin: 2rem 0; padding: 1.5rem 2rem;
  border-left: 2px solid var(--rule);
  font-family: var(--ff-serif); font-style: italic;
  font-size: 1.05rem; color: var(--ink2); line-height: 1.6;
}
.post-note {
  margin: 2rem 0; padding: 1.2rem 1.5rem;
  background: var(--paper); border: 1px solid var(--rule);
  font-size: 0.78rem; color: var(--mid); line-height: 1.7;
}

/* ─── FAQ ─── */
.faq { margin-top: 3.5rem; border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.faq-label {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.faq-label::before { content: ''; width: 1.5rem; height: 1px; background: var(--gold); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.3rem 2rem 1.3rem 0;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--ff-mono); color: var(--gold); font-size: 1rem; font-weight: 300;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 0.85rem; line-height: 1.9; color: var(--ink2); padding: 0 0 1.4rem; max-width: 62ch; }
.faq details p a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-lt); }

/* ─── CTA ─── */
.post-cta {
  margin-top: 3.5rem;
  background: var(--ink); color: var(--white);
  padding: 2.5rem;
}
.post-cta-title { font-family: var(--ff-serif); font-size: 1.6rem; font-weight: 300; line-height: 1.25; margin-bottom: 0.8rem; }
.post-cta-title em { font-style: italic; color: var(--gold-lt); }
.post-cta p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 1.8rem; max-width: 55ch; }
.post-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold); color: var(--white);
  padding: 0.95rem 1.9rem; text-decoration: none;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s;
}
.btn-gold:hover { background: var(--gold-lt); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.95rem 1.9rem; text-decoration: none;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transition: all 0.3s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 500px) {
  .post-cta { padding: 1.8rem 1.4rem; }
  .post-cta-actions { flex-direction: column; }
  .post-cta-actions a { justify-content: center; }
}

/* ─── RELACIONADOS ─── */
.post-related { margin-top: 3rem; }
.post-related-label {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 1.2rem;
}
.post-related a {
  display: block; padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
  font-family: var(--ff-serif); font-size: 1.05rem; font-weight: 400;
  transition: color 0.2s;
}
.post-related a:last-child { border-bottom: 1px solid var(--rule); }
.post-related a:hover { color: var(--gold); }
.post-related a span { font-family: var(--ff-mono); font-size: 0.65rem; color: var(--gold); margin-right: 0.8rem; }

/* ─── ÍNDICE DEL BLOG ─── */
.blog-list { max-width: 760px; margin: 0 auto; padding: 9rem 1.5rem 5rem; }
.blog-card {
  display: block; padding: 2.2rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: opacity 0.2s;
}
.blog-card:first-of-type { border-top: 1px solid var(--rule); }
.blog-card:hover .blog-card-title { color: var(--gold); }
.blog-card-date { font-family: var(--ff-mono); font-size: 0.62rem; color: var(--gold); letter-spacing: 0.1em; }
.blog-card-title {
  font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 400;
  color: var(--ink); line-height: 1.3; margin: 0.6rem 0;
  transition: color 0.2s;
}
.blog-card-desc { font-size: 0.85rem; color: var(--mid); line-height: 1.8; max-width: 60ch; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.72);
  padding: 3rem 4rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
@media (max-width: 768px) { footer { padding: 2.5rem 1.5rem; flex-direction: column; align-items: flex-start; } }
.foot-logo { font-family: var(--ff-serif); font-size: 1rem; font-weight: 400; color: var(--white); }
.foot-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,0.65); font-size: 0.65rem; text-decoration: none; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.2s; }
.foot-links a:hover { color: var(--white); }
.foot-copy { font-size: 0.65rem; font-weight: 300; }
