/* ======================================
   BLOG LIST — Categorías 3×3 + Modal
   Dominican To Do
====================================== */

/* HERO SUPERIOR */
.blog-list-hero {
  background: #ffffff;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.blog-list-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.blog-pill {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2850ff;
  margin-bottom: 10px;
}

.blog-list-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 10px;
  color: #111111;
}

.blog-list-sub {
  max-width: 620px;
  font-size: 1rem;
  color: #555;
}

/* BUSCADOR */

.blog-search-section {
  background: #ffffff;
  padding: 20px 0 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.blog-search-label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
}

.blog-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fafafa;
}

.blog-search-bar i {
  color: #777;
  font-size: 0.95rem;
}

.blog-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
  color: #222;
}

.blog-search-hint {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
}

/* SECCIONES DE BLOG */

.blog-section {
  background: #ffffff;
  padding: 32px 0 40px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.blog-section-header {
  max-width: 900px;
  margin: 0 auto 18px;
}

.blog-section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: #111;
}

.blog-section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* GRID 4×2 (8 cards por página) */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 750px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD DEL BLOG */

.blog-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.blog-card-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,76,255,0.95);
  color: #ffffff;
  font-size: 0.78rem;
}

.blog-card-body {
  padding: 14px 14px 12px;
}

.blog-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #111;
}

.blog-card-body p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #555;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #777;
}

.blog-card-meta span i {
  margin-right: 4px;
  color: #2850ff;
}

/* PAGINACIÓN */

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(40, 80, 255, 0.12);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 24px rgba(40, 80, 255, 0.12), 0 1px 4px rgba(0,0,0,0.05);
}

.blog-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: #f0f4ff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  color: #2850ff;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.blog-page-btn:hover:not(:disabled) {
  background: #2850ff;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(40, 80, 255, 0.32);
  transform: translateY(-1px);
}

.blog-page-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.blog-page-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  background: #f9fafb;
  color: #9ca3af;
}

.blog-page-indicator {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  padding: 8px 16px;
  white-space: nowrap;
  user-select: none;
  background: #f0f4ff;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* RESULTADOS DE BÚSQUEDA */

.blog-results {
  background: #f9fbff;
}

.blog-results-empty {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #777;
}

/* MODAL */

.blog-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.blog-modal.show {
  display: flex;
}

.blog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}

/* diálogo */

.blog-modal-dialog {
  position: relative;
  width: 92%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
  z-index: 1;
}

.blog-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #ffffff;
  cursor: pointer;
  z-index: 2;
}

/* imagen */

.blog-modal-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-modal-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15,76,255,0.95);
  color: #fff;
  font-size: 0.8rem;
}

/* cuerpo */

.blog-modal-body {
  padding: 18px 20px 20px;
}

.blog-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.blog-modal-meta i {
  color: #2850ff;
  margin-right: 4px;
}

.blog-modal-body h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #111;
}

.blog-modal-body p {
  margin: 0 0 16px;
  font-size: 0.96rem;
  color: #444;
}

/* botón */

.blog-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #2850ff;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.blog-modal-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(40,80,255,0.35);
}

@media (max-width: 600px) {
  .blog-modal-dialog {
    max-width: 95%;
  }

  .blog-modal-image-wrapper {
    height: 200px;
  }
}

/* ======================================
   BLOG POST CARDS (Image-based design)
====================================== */

.blog-post-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.blog-post-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
}

.blog-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-img img {
  transform: scale(1.05);
}

.blog-post-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 85, 255, 0.95);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.blog-post-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-excerpt {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-post-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: #999;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-post-meta i {
  font-size: 0.7rem;
}
