/* === BLOG PREVIEWS – Estilo limpio tipo Security Partners === */

.sp-blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
}

.sp-blog-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.sp-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.sp-blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sp-blog-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.sp-blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #252525;
}

.sp-blog-excerpt {
  font-size: .9rem;
  color: #555;
  line-height: 1.4;
  max-height: 4.2em;
  overflow: hidden;
}

.sp-blog-button {
  display: inline-block;
  margin-top: auto;
  font-size: .9rem;
  padding: .6rem 1.2rem;
  background-color: #07005B;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sp-blog-button:hover {
  background-color: #0f0a7d;
  color: #fff;
}

.sp-blog-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.sp-blog-nav button {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  background-color: #f3f3f3;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'Nunito', sans-serif;
}

.sp-blog-nav button:hover {
  background-color: #07005B;
  color: #fff;
}

/* === RESPONSIVE – 2 columnas en móvil === */
@media (max-width: 768px) {
  .sp-blog-grid {
    justify-content: space-around;
  }

  .sp-blog-card {
    max-width: 47%;
  }
}

/* === RESPONSIVE – 1 columna en pantallas muy pequeñas === */
@media (max-width: 480px) {
  .sp-blog-card {
    max-width: 100%;
  }
}
