/* ===================================================================
   Blog Redesign — listado, categoria, busqueda, detalle
   =================================================================== */

/* ── Título de sección ─────────────────────────────────────────── */
.blog-redesign .section-heading h2:before,
.blog-redesign .section-heading h2:after { content: none !important; }
.blog-redesign .section-heading h2 {
  position: relative; display: inline-block;
  font-weight: 700; color: #1d1d1d; padding-bottom: 18px;
}
.blog-redesign .section-heading h2:after {
  content: "" !important; position: absolute;
  left: 50%; bottom: 0; width: 64px; height: 3px;
  margin-left: -32px; background: #e0ab4a;
}
.blog-redesign .section-heading p { color: #5c7893; max-width: 640px; margin: 0 auto; }

/* ── Tarjeta de blog ───────────────────────────────────────────── */
.blog-card {
  display: flex;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(17,17,17,.08);
  margin-bottom: 24px;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17,17,17,.14);
  text-decoration: none; color: inherit;
}

/* Imagen: columna izquierda en desktop */
.blog-card-img {
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
  overflow: hidden;
  background: #111;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

/* Contenido: columna derecha */
.blog-card-body {
  flex: 1; padding: 24px 24px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.blog-card-title {
  font-size: 1.2rem; font-weight: 700; color: #111;
  line-height: 1.35; margin: 0 0 10px;
}
.blog-card-excerpt {
  font-size: .92rem; color: #555; line-height: 1.6;
  flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.blog-card-date {
  font-size: .8rem; color: #9aa3a8;
  display: flex; align-items: center; gap: 5px;
}
.blog-card-date i { color: #e0ab4a; }
.blog-card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #111; color: #e0ab4a;
  border: 2px solid #e0ab4a;
  border-radius: 999px; padding: 7px 18px;
  font-size: .82rem; font-weight: 700; letter-spacing: .5px;
  text-decoration: none; transition: background .2s, color .2s;
  white-space: nowrap;
}
.blog-card-btn:hover { background: #e0ab4a; color: #111; text-decoration: none; }

/* ── Sidebar ───────────────────────────────────────────────────── */
.blog-redesign .col-md-4 .card {
  border: none; border-radius: 14px;
  box-shadow: 0 8px 22px rgba(17,17,17,.06); overflow: hidden;
  margin-bottom: 20px;
}
.blog-redesign .col-md-4 .card-header {
  background: #111; color: #e0ab4a;
  font-weight: 700; letter-spacing: .5px;
  border-bottom: 3px solid #e0ab4a;
  font-size: .85rem; text-transform: uppercase;
}
.blog-redesign .col-md-4 .card-body ul.list-unstyled li {
  padding: 7px 0; border-bottom: 1px dashed #ececec;
}
.blog-redesign .col-md-4 .card-body ul.list-unstyled li:last-child { border-bottom: none; }
.blog-redesign .col-md-4 .card-body ul.list-unstyled li a {
  color: #333; font-size: .9rem; transition: color .2s;
}
.blog-redesign .col-md-4 .card-body ul.list-unstyled li a:hover { color: #e0ab4a; }

.blog-redesign #busquedaEspecifica {
  background: #111; border-color: #111; color: #e0ab4a;
  border-radius: 0 8px 8px 0;
}
.blog-redesign #busquedaEspecifica:hover { background: #e0ab4a; border-color: #e0ab4a; color: #111; }
.blog-redesign #search { border-radius: 8px 0 0 8px; border-color: #ddd; }

/* ── Paginación ────────────────────────────────────────────────── */
.blog-redesign .paginacion { margin-top: 8px; }
.blog-redesign .paginacion .page-link {
  color: #111; border-radius: 8px; margin: 0 3px; border-color: #e7e7e7;
}
.blog-redesign .paginacion .page-item.active .page-link {
  background: #e0ab4a; border-color: #e0ab4a; color: #111;
}

/* ── Detalle de blog ───────────────────────────────────────────── */
.blog-redesign.detalle .blog-detail-img-wrap {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 32px rgba(17,17,17,.12);
  margin-bottom: 20px; aspect-ratio: 16 / 7;
}
.blog-redesign.detalle .blog-detail-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.blog-redesign.detalle h1.mt-4 { font-weight: 800; color: #111; line-height: 1.25; }
.blog-redesign.detalle p.lead { color: #5c7893; }
.blog-redesign.detalle p.lead a { color: #111; font-weight: 600; }
.blog-redesign.detalle .share {
  background: #f7f7f7; border-radius: 10px; padding: .8em 1em; margin: 1.2em 0;
}
.blog-redesign.detalle .card.my-4 {
  border: none; border-radius: 14px; box-shadow: 0 8px 22px rgba(17,17,17,.06);
}
.blog-redesign.detalle .card.my-4 .card-header {
  background: #111; color: #e0ab4a;
  border-bottom: 3px solid #e0ab4a; font-weight: 700;
}
.blog-redesign.detalle .media {
  background: #f9f9f9; border-radius: 12px; padding: 1em;
}
.blog-redesign.detalle .media + hr { display: none; }
.blog-redesign.detalle .media .rounded-circle { border: 2px solid #e0ab4a; }
.blog-redesign.detalle .btn-secundary {
  background: #111; border-color: #111; color: #e0ab4a;
  border: 2px solid #e0ab4a; border-radius: 999px;
  padding: 8px 22px; font-weight: 700;
}
.blog-redesign.detalle .btn-secundary:hover {
  background: #e0ab4a; border-color: #e0ab4a; color: #111;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .blog-card { flex-direction: column; }
  .blog-card-img { flex: none; max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
  .blog-card-img img { height: 100%; }
  .blog-card-body { padding: 16px; }
  .blog-card-title { font-size: 1.05rem; }

  .blog-redesign.detalle .share .col-sm-5,
  .blog-redesign.detalle .share .col-sm-7 { text-align: center !important; }
}

@media (min-width: 768px) {
  .blog-card-img { min-height: 200px; }
}
