/* ══════════════════════════════════════════════════════════════════
   NOTICIAS (Conexo News) — sección del portal
   Hereda tokens de style.css
   ══════════════════════════════════════════════════════════════════ */

/* Color por categoría (chips + acento) */
.cat-bienestar            { --cat: #1f9d57; }
.cat-emprendimientos      { --cat: #ff585f; }
.cat-equipo               { --cat: #2563eb; }
.cat-conociendo-personas  { --cat: #7c3aed; }
.cat-aprende-como-se-hace { --cat: #d97706; }
.cat-proyectos            { --cat: #172641; }
.news-card, .news-featured { --cat: #6f6a60; }

/* ── Sección ─────────────────────────────────────────────────── */
.section-news {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 56px;
}

.news-head { max-width: 720px; margin-bottom: 22px; }
.news-title {
  margin: 8px 0 10px;
  font-size: clamp(24px, 5.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.news-subtitle { margin: 0; font-size: 15px; color: var(--gray); }

/* ── Filtros ─────────────────────────────────────────────────── */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.news-filter {
  appearance: none;
  background: #fff;
  border: 1px solid var(--sand);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 38px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.news-filter:hover { border-color: var(--coral); color: var(--coral-dark); }
.news-filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ── Chip de categoría ───────────────────────────────────────── */
.news-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--cat) 30%, #fff);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
/* fallback si el navegador no soporta color-mix */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .news-chip { background: #f2f0eb; border-color: var(--sand); }
}

/* ── Destacada ───────────────────────────────────────────────── */
.news-featured {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.news-featured-media {
  position: relative;
  min-height: 132px;
  background:
    radial-gradient(120% 120% at 15% 15%, color-mix(in srgb, var(--cat) 88%, #fff) 0%, var(--cat) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-featured-media span {
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  line-height: 1;
}
.news-featured-media .mf-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.22) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  opacity: 0.7;
}
.news-featured-body { padding: 24px 22px; }
.news-featured-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 4.4vw, 27px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
}
.news-featured-body p { margin: 0 0 14px; font-size: 15.5px; color: var(--gray); line-height: 1.55; }

/* ── Grid de tarjetas ────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.news-card::before {
  content: "";
  position: absolute;
  left: 20px; right: 20px; top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--cat);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.news-card p { margin: 0 0 14px; font-size: 14.5px; color: var(--gray); flex: 1 1 auto; }

.news-meta {
  font-size: 12px;
  color: var(--gray-dark);
  letter-spacing: 0.01em;
  margin: 0;
}

.news-empty {
  text-align: center;
  color: var(--gray-dark);
  font-size: 14px;
  padding: 26px 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 620px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .news-featured { grid-template-columns: 280px 1fr; }
  .news-featured-media { min-height: 100%; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .news-featured-body { padding: 30px 32px; }
}
