/* ── BLOG CSS — fusgement.com ── */

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }

/* Meta del post */
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}
.post-category {
  background: #e6f0fb;
  color: #083079;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
}
.post-date { color: var(--muted); }
.post-author { color: var(--muted); }
.post-author::before { content: "· "; }

/* Imagen hero del post */
.post-hero-image {
  margin: 1rem 0 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}
.post-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

/* Contenido del artículo */
.post-content {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2 {
  font-size: 1.2rem;
  color: var(--primary-700);
  margin: 1.8rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #e6f0fb;
}
.post-content h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 1.4rem 0 0.5rem;
}
.post-content p { margin-bottom: 1rem; }
.post-content ul,
.post-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  line-height: 1.7;
}
.post-content li { margin-bottom: 0.3rem; }
.post-content strong { color: var(--primary-700); }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: #fff8e6;
  margin: 1.2rem 0;
  padding: 0.8rem 1.2rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}
.post-content code {
  background: #f0f4fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: monospace;
  color: var(--primary-700);
}
.post-content pre {
  background: #0b2545;
  color: #e2e8f0;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}
.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.5rem 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
}
.post-content th {
  background: #e6f0fb;
  color: var(--primary-700);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
}
.post-content td {
  padding: 7px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.post-content tr:last-child td { border-bottom: none; }

/* CTA al final del artículo */
.post-cta {
  background: linear-gradient(90deg, var(--primary), var(--primary-700));
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}
.post-cta p {
  margin: 0;
  color: white;
  font-size: 0.93rem;
  font-weight: 600;
}
.btn-cta {
  background: var(--accent);
  color: var(--primary-700);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.btn-cta:hover { opacity: 0.88; }

/* Enlace volver */
.post-back {
  margin-top: 1rem;
  font-size: 0.88rem;
}
.post-back a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.post-back a:hover { text-decoration: underline; }

/* ── LISTADO DEL BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.blog-card {
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid #dde4ef;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-card:hover {
  box-shadow: 0 6px 20px rgba(11,37,69,0.1);
  transform: translateY(-2px);
}
.blog-card-img-link img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.blog-card-meta time {
  font-size: 0.75rem;
  color: var(--muted);
}
.blog-card-body h2 {
  font-size: 0.97rem;
  color: var(--primary-700);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.blog-card-body h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-card-body h2 a:hover { color: var(--primary); }
.blog-card-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 0.75rem;
  flex: 1;
}
.blog-read-more {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}
.blog-read-more:hover { text-decoration: underline; }

/* Sección label (reutilizada de la home) */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
