/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Tarjetas del blog */
.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card h2 {
  font-size: 20px;
  margin: 15px;
  color: #333;
}

.blog-card p {
  font-size: 15px;
  color: #555;
  margin: 0 15px 15px;
}

.blog-card .btn-go {
  display: block;
  margin: 0 15px 15px;
  padding: 10px 12px;
  background: #e60000;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.blog-card .btn-go:hover {
  background: #b30000;
}

/* Responsive título principal */
.content h1 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

/* Botón volver */
.btn-back {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 15px;
  background: #e60000;
  color: #fff !important;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.2s;
}
.btn-back:hover {
  background: #b30000;
  transform: scale(1.05);
}

/* Artículos individuales */
.content ul {
  margin-top: 20px;
  padding-left: 20px;
}
.content ul li {
  margin-bottom: 10px;
  font-size: 16px;
}
.content a {
  color: #e60000;
  text-decoration: underline;
}
.content a:hover {
  color: #b30000;
}

/* Responsive en móvil */
@media (max-width: 600px) {
  .blog-card img {
    height: 150px;
  }
  .content h1 {
    font-size: 22px;
  }
}
