/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.blog-latest { background: #f7f7f7; }

.post-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.post-card .post-card-img {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #151515;
}
.post-card .post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card .post-card-img .placeholder-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffc451;
  font-size: 48px;
}
.post-card .post-card-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffc451;
  color: #151515;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  font-family: "Poppins", sans-serif;
}
.post-card .post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.post-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}
.post-meta a { color: #b88a1b; font-weight: 600; }
.post-meta a:hover { color: #151515; }
.post-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.post-card h3 a { color: #151515; }
.post-card h3 a:hover { color: #b88a1b; }
.post-card p { font-size: 15px; flex: 1; }
.post-card .read-more {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #151515;
}
.post-card .read-more i { transition: margin-left 0.3s; }
.post-card .read-more:hover { color: #b88a1b; }
.post-card .read-more:hover i { margin-left: 4px; }

.btn-blog {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 28px;
  border: 2px solid #ffc451;
  color: #151515;
  transition: 0.3s;
}
.btn-blog:hover { background: #ffc451; color: #151515; }

/* Listado */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.blog-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-categories a {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  padding: 6px 16px;
  border: 1px solid #ddd;
  color: #444;
  transition: 0.3s;
}
.blog-categories a:hover, .blog-categories a.active {
  background: #ffc451;
  border-color: #ffc451;
  color: #151515;
}
.blog-search { display: flex; max-width: 320px; width: 100%; }
.blog-search input {
  flex: 1;
  border: 1px solid #ddd;
  border-right: 0;
  padding: 8px 12px;
  min-width: 0;
}
.blog-search input:focus { outline: none; border-color: #ffc451; }
.blog-search button {
  border: 0;
  background: #ffc451;
  color: #151515;
  padding: 0 16px;
}
.blog-empty { text-align: center; padding: 60px 0; color: #888; }
.blog-pagination { margin-top: 40px; display: flex; justify-content: center; }
.blog-pagination .page-link { color: #151515; }
.blog-pagination .page-item.active .page-link {
  background: #ffc451;
  border-color: #ffc451;
  color: #151515;
}

/* Detalle */
.post-preview-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #b02a37;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}
.post-detail { max-width: 820px; margin: 0 auto; }
.post-detail .post-header h1 {
  font-size: 38px;
  font-weight: 700;
  color: #151515;
  margin-bottom: 14px;
}
.post-detail .post-cover { margin: 24px 0 32px; }
.post-detail .post-cover img { width: 100%; height: auto; }
.post-detail .post-excerpt {
  font-size: 19px;
  font-style: italic;
  color: #555;
  border-left: 3px solid #ffc451;
  padding-left: 16px;
  margin-bottom: 28px;
}
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  overflow-wrap: break-word;
}
.post-content h2, .post-content h3, .post-content h4 {
  color: #151515;
  font-weight: 700;
  margin: 36px 0 14px;
}
.post-content img, .post-content iframe, .post-content video { max-width: 100%; height: auto; }
.post-content figure { margin: 24px 0; }
.post-content figcaption { font-size: 14px; color: #888; text-align: center; margin-top: 6px; }
.post-content blockquote {
  border-left: 3px solid #ffc451;
  padding: 8px 20px;
  margin: 24px 0;
  font-style: italic;
  color: #555;
  background: #fafafa;
}
.post-content a { color: #b88a1b; text-decoration: underline; }
.post-content table { width: 100%; margin: 20px 0; }
.post-content table td, .post-content table th { border: 1px solid #ddd; padding: 8px; }

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-family: "Poppins", sans-serif;
}
.post-share a, .post-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #f1f1f1;
  color: #151515;
  font-size: 17px;
  transition: 0.3s;
}
.post-share a:hover, .post-share button:hover { background: #ffc451; }
.post-share .copied { font-size: 13px; color: #198754; }

.post-course-cta {
  background: #151515;
  color: #ddd;
  padding: 32px;
  margin: 40px 0;
  border-left: 4px solid #ffc451;
}
.post-course-cta .cta-label {
  color: #ffc451;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.post-course-cta h3 { color: #fff; font-weight: 700; margin: 8px 0 12px; }
.post-course-cta ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 15px; }
.post-course-cta ul i { color: #ffc451; margin-right: 6px; }
.post-course-cta .btn-cta {
  display: inline-block;
  background: #ffc451;
  color: #151515;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 10px 26px;
  transition: 0.3s;
}
.post-course-cta .btn-cta:hover { background: #fff; }
.post-course-cta .btn-cta-outline {
  background: transparent;
  color: #ffc451;
  border: 1px solid #ffc451;
}
.post-course-cta .btn-cta-outline:hover { background: #ffc451; color: #151515; }

.post-related { background: #f7f7f7; }

@media (max-width: 768px) {
  .post-detail .post-header h1 { font-size: 28px; }
  .post-content { font-size: 16px; }
  .blog-search { max-width: none; }
}
