/* ================================================================
   MULTISERVICIOS LOS ANDES — noticias.css
   Blog listing + single post
   ================================================================ */

/* ── Category badges ── */
.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.cat-anuncio  { background: #FFF3E0; color: #E65100; }
.cat-promo    { background: #E8F5E9; color: #1B5E20; }
.cat-consejos { background: #E3F2FD; color: #0D47A1; }
.cat-noticias { background: #EDE7F6; color: #4527A0; }

/* ── Filter pills ── */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-pill {
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--gray);
  color: var(--soft);
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
}
.filter-pill:hover,
.filter-pill.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ── Blog listing section ── */
.blog-section {
  background: var(--gbg);
  padding: 64px 20px;
}
.blog-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Blog grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Blog card ── */
.bcard {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--gray);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.bcard:hover { box-shadow: 0 8px 32px rgba(0,48,135,.1); transform: translateY(-2px); }

.bcard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--soft);
}
.bcard-meta time { font-size: 12px; color: var(--gmid); }

.bcard h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--navy);
}

.bcard-excerpt {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.6;
  flex: 1;
}

.bcard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  margin-top: 4px;
}
.bcard-link:hover { gap: 10px; }

/* ── Empty state ── */
.blog-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--soft);
}
.blog-empty p { font-size: 15px; margin-top: 8px; }

/* ── Single post ── */
.post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.post-header { margin-bottom: 32px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.post-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 16px;
}

.post-excerpt {
  font-size: 17px;
  color: var(--soft);
  line-height: 1.6;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

.post-divider { border: none; border-top: 1px solid var(--gray); margin: 32px 0; }

/* ── Post body typography ── */
.post-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.post-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--navy);
  margin: 28px 0 12px;
}
.post-body p  { margin-bottom: 16px; }
.post-body ul { margin: 12px 0 16px 24px; list-style: disc; }
.post-body li { margin-bottom: 6px; }
.post-body b, .post-body strong { font-weight: 700; }
.post-body i, .post-body em { font-style: italic; }
.post-body a  { color: var(--blue); text-decoration: underline; }

/* ── Post nav ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Homepage news widget ── */
.news-section {
  padding: 60px 20px;
  background: #fff;
}
.news-section .container {
  max-width: 1100px;
  margin: 0 auto;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.news-card {
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: 0 6px 24px rgba(0,48,135,.1); transform: translateY(-2px); }
.news-card h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--navy);
  line-height: 1.2;
}
.news-card p { font-size: 13px; color: var(--soft); line-height: 1.5; }
.news-card-footer { font-size: 12px; color: var(--gmid); margin-top: auto; padding-top: 8px; }

@media (max-width: 640px) {
  .blog-grid  { grid-template-columns: 1fr; }
  .news-grid  { grid-template-columns: 1fr; }
  .post-wrap  { padding: 32px 16px 60px; }
}
