:root {
  --max-width: 1200px;
  --space-s: 12px;
  --space-m: 16px;
  --space-l: 24px;
  --radius: 12px;

  --color-text: #0a1a2a;
  --color-primary: #0099e6;
  --color-bg-card: #ffffff;
  --color-bg-section: #f5f7f9;
}

.blog {
  padding: var(--space-l) var(--space-m);
}

.blog__header {
  text-align: center;
  margin-bottom: var(--space-l);
}

.blog__title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text);
}

.blog__title--highlight {
  font-weight: 300;
}

.blog__list {
  display: grid;
  gap: var(--space-m);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Card */
.blog__card {
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* El enlace cubre toda la tarjeta */
.blog__link {
  display: flex;
  color: inherit;
  text-decoration: none;
  height: 100%;
  outline: none;
}


.blog__image-wrapper {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.blog__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 12px;
}

.blog__card-title {
  font-size: 16px;
  line-height: normal;
  margin: 0 0 var(--space-s);
  color: var(--color-primary);
}

.blog__excerpt {
  font-size: 14px;
  line-height: normal;
  margin: 0;
  color: var(--color-text);
  opacity: 0.85;
}

/* Footer */
.blog__footer {
  text-align: center;
  margin-top: var(--space-l);
}

.blog__footer a {
  color: var(--color-primary);
  font-size: 1.1rem;
  text-decoration: underline;
}

.blog__footer i {
  display: inline-block;
  vertical-align: middle;
  font-size: 80%;
}

/* ---------- Desktop (768px+) ---------- */
@media (max-width: 767px) {
  .blog__image-wrapper {
    width: 83px;
    height: 88px;
  }

  .blog__content {
    width: 86%;
  }

  .blog__card-title {
    font-size: .8rem;
  }

  .blog__excerpt {
    display: none;
  }
}

@media (min-width: 768px) {
  .blog__title {
    font-size: 32px;
  }

  .blog__list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
  }

  .blog__card-title {
    font-size: 18px;
  }
}