/* Blog mbb · estilo terracota+sage Fraunces serif */
:root {
  --bg: #fbf6f0;
  --ink: #2b1d17;
  --muted: #6b5a52;
  --terra: #c44d2e;
  --sage: #6f8c6a;
  --gold: #d9a64a;
  --line: #ead7c2;
  --card: #fff8ef;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}
a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.blog-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.4rem;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 239, 0.9);
}
.blog-header .wrap {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.blog-header .logo {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  display: flex; flex-direction: column; line-height: 1;
}
.blog-header .logo small {
  font-size: 0.6rem; color: var(--muted);
  font-style: normal; letter-spacing: 0.15em; margin-top: 2px;
}
.blog-header nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.blog-header nav a { color: var(--ink); font-weight: 500; }
.blog-header .cta {
  background: var(--terra); color: #fff !important;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
}
.blog-header .cta:hover { text-decoration: none; background: #a83d23; }

/* Hero del listado */
.blog-hero {
  max-width: 920px; margin: 4rem auto 2.5rem; padding: 0 1.4rem;
  text-align: center;
}
.blog-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1;
  margin: 0 0 0.7rem;
}
.blog-hero h1 .accent { color: var(--terra); }
.blog-hero p { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.blog-hero .meta { margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.05em; }

/* Listado de posts */
.blog-grid {
  max-width: 1100px; margin: 0 auto 5rem; padding: 0 1.4rem;
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(196, 77, 46, 0.12); }
.post-card a { color: var(--ink); display: block; }
.post-card a:hover { text-decoration: none; }
.post-card .cat {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage);
  background: rgba(111, 140, 106, 0.12); padding: 0.25rem 0.65rem;
  border-radius: 999px; margin-bottom: 0.8rem; font-weight: 600;
}
.post-card h2 {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 1.35rem; line-height: 1.3;
  margin: 0 0 0.7rem;
}
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.post-card time { font-size: 0.8rem; color: var(--muted); }
.post-card .read {
  font-weight: 600; color: var(--terra);
  margin-left: auto; font-size: 0.9rem;
}
.post-card footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.6rem;
}

/* Estado vacío */
.blog-empty {
  max-width: 600px; margin: 4rem auto; padding: 0 1.4rem; text-align: center;
}
.blog-empty p {
  background: var(--card); border: 1px dashed var(--line);
  padding: 2rem; border-radius: 18px; color: var(--muted);
}

/* Página de post individual */
.post-article {
  max-width: 760px; margin: 4rem auto 5rem; padding: 0 1.4rem;
}
.post-article .breadcrumb {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem;
}
.post-article .breadcrumb a { color: var(--muted); }
.post-article h1 {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15; margin: 0 0 0.6rem;
}
.post-article .post-meta {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.post-article .post-meta .cat {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage);
  background: rgba(111, 140, 106, 0.12); padding: 0.25rem 0.65rem;
  border-radius: 999px; font-weight: 600;
}
.post-body h2 {
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-weight: 500; font-size: 1.7rem; line-height: 1.25;
  margin: 2.5rem 0 1rem;
}
.post-body h3 {
  font-weight: 700; font-size: 1.2rem; margin: 1.8rem 0 0.7rem;
  color: var(--ink);
}
.post-body p { margin: 0 0 1.2rem; font-size: 1.06rem; }
.post-body ul, .post-body ol {
  margin: 0 0 1.4rem; padding-left: 1.4rem;
}
.post-body li { margin-bottom: 0.5rem; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body blockquote {
  border-left: 3px solid var(--terra);
  padding: 0.5rem 0 0.5rem 1.2rem;
  margin: 1.6rem 0; color: var(--muted);
  font-style: italic;
}
.post-body code {
  background: var(--card); padding: 0.1em 0.4em;
  border-radius: 4px; font-size: 0.92em;
  border: 1px solid var(--line);
}
.post-body table {
  width: 100%; border-collapse: collapse; margin: 1.6rem 0;
  font-size: 0.95rem;
}
.post-body th, .post-body td {
  padding: 0.7rem 0.9rem; border: 1px solid var(--line);
  text-align: left;
}
.post-body th { background: var(--card); font-weight: 700; }

/* CTA al final de post */
.post-cta {
  margin: 3rem 0 1rem; padding: 2rem;
  background: linear-gradient(135deg, #fff8ef 0%, #f7e6d2 100%);
  border: 1px solid var(--line); border-radius: 18px;
  text-align: center;
}
.post-cta h3 {
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-weight: 500; font-size: 1.5rem; margin: 0 0 0.6rem;
  color: var(--ink);
}
.post-cta p { color: var(--muted); margin: 0 0 1.4rem; }
.post-cta a {
  display: inline-block; background: var(--terra); color: #fff !important;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  transition: background 0.15s;
}
.post-cta a:hover { background: #a83d23; text-decoration: none; }

/* FAQ del post */
.post-faq { margin: 2.5rem 0; }
.post-faq h2 {
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-weight: 500; font-size: 1.7rem; margin-bottom: 1rem;
}
.post-faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: 0.7rem;
}
.post-faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; padding-right: 1.5rem;
}
.post-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--terra); font-weight: 400;
}
.post-faq details[open] summary::after { content: "−"; }
.post-faq details[open] { padding-bottom: 1.3rem; }
.post-faq p { margin: 0.7rem 0 0; color: var(--muted); }

/* Footer */
.blog-footer {
  background: var(--card); border-top: 1px solid var(--line);
  padding: 2.5rem 1.4rem; text-align: center; color: var(--muted);
  font-size: 0.9rem;
}
.blog-footer a { color: var(--muted); }

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;1,400;1,500&display=swap');

@media (max-width: 600px) {
  body { font-size: 16px; }
  .blog-header nav { gap: 0.9rem; }
  .blog-header nav a { font-size: 0.9rem; }
  .post-article { margin-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
