/* v3-blog.css — identidad v3 para artículos del blog
   Superpone sobre blog.css: cambia nav, footer, fondo y acento
   Colores: crema #FFF4E8 · coral #C4361B · tinta #1A1410          */

/* ── Fondo y texto ───────────────────────────────────────────── */
body {
  background: #FFF4E8;
  color: #1A1410;
  padding-top: 0; /* la nueva nav es sticky, no fixed */
}

/* ── Ocultar nav v2 ──────────────────────────────────────────── */
.nav,
.nav-mobile { display: none !important; }

/* ── Nav v3 ──────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  background: #FFF4E8;
  border-bottom: 0.5px solid rgba(26,20,16,0.1);
  display: flex;
  align-items: center;
}

.blog-nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blog-nav-logo {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
  line-height: 0;
}
.blog-nav-logo img { display: block; height: 44px; width: auto; }

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
}
.blog-nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(26,20,16,0.6);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  position: relative;
}
.blog-nav-links a:hover { color: #1A1410; text-decoration: none; }
.blog-nav-links a[aria-current="page"] { color: #1A1410; }
.blog-nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1.5px;
  background: #C4361B;
  border-radius: 2px;
}

.blog-nav-cta {
  display: inline-flex;
  align-items: center;
  background: #C4361B;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  text-decoration: none !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.blog-nav-cta:hover { background: #AC2F18; }

/* Hamburger button */
.blog-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  border-radius: 6px;
  margin-left: 0.25rem;
}
.blog-nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #1A1410;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.blog-nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.blog-nav-hamburger.open span:nth-child(2) { opacity: 0; }
.blog-nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.blog-nav-panel {
  display: none;
  position: fixed;
  top: 76px;
  left: 0; right: 0;
  background: #FFF4E8;
  border-bottom: 0.5px solid rgba(26,20,16,0.1);
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  flex-direction: column;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(26,20,16,0.08);
}
.blog-nav-panel.open { display: flex; }
.blog-nav-panel a {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(26,20,16,0.7);
  padding: 0.75rem 0;
  border-bottom: 0.5px solid rgba(26,20,16,0.08);
  text-decoration: none;
}
.blog-nav-panel a:hover { color: #1A1410; text-decoration: none; }
.blog-nav-panel .blog-nav-cta-mobile {
  display: block;
  margin-top: 1rem;
  background: #C4361B;
  color: #fff !important;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: none;
}
.blog-nav-panel .blog-nav-cta-mobile:hover { background: #AC2F18; }

@media (max-width: 768px) {
  .blog-nav-links { display: none; }
  .blog-nav-cta  { display: none; }
  .blog-nav-hamburger { display: flex; }
}

/* ── Acentos del artículo: de amarillo a coral ───────────────── */
.article-category-badge {
  background: #C4361B;
  color: #ffffff;
}

a { color: #C4361B; }
a:hover { color: #AC2F18; }

/* ── Footer v3 ───────────────────────────────────────────────── */
.footer {
  background: #FFF4E8;
  border-top: 0.5px solid rgba(26,20,16,0.1);
}
.footer p { color: rgba(26,20,16,0.4); }
.footer a { color: rgba(26,20,16,0.5); }
.footer a:hover { color: #C4361B; text-decoration: none; }
