.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  justify-content: center;
  padding: 20px;
}

.card.blog-card {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.card.blog-card:hover {
  border-color: #3258A6;
  transform: scale(1.03);
  box-shadow: 0 0 2px 0 #3258A6;
}

.card.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.card-body {
  padding: 18px;
  text-align: left;
}

.card-date {
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
}

.card-description {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 18px;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  border-radius: 0 0 12px 12px;
}

.card-stats.centered-stat {
  justify-content: center;
  text-align: center;
}

.card-stats.centered-stat span {
  display: block;
  font-size: 15px;
}

.card-date.pink,
.card-stats.pink {
  background-color: #F23545;
}

.card-date.orange,
.card-stats.orange {
  background-color: #03A64A;
}

.card-date.green,
.card-stats.green {
  background-color: #4A708E;
}

/* Secciones "Nosotros" y "Nuestra Empresa" */
.info-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: center;
}

.info-section.reverse {
  direction: rtl;
}

.info-section.reverse .info-text {
  direction: ltr;
}

.info-text h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #222;
}

.info-text p {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
}

.info-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-section-title {
  text-align: center;
  font-size: 2em;
  color: #2c3e50;
  margin: 40px 0 20px;
  font-weight: bold;
}
@media (max-width: 768px) {
  .info-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .info-section.reverse {
    direction: ltr;
  }

  .info-image img {
    width: 100%;
    height: auto;
    margin-top: 15px;
  }

  .info-text {
    padding: 0 10px;
  }
}

