/* =========================
   NOTICIAS
========================= */

.news-section {
  padding: 80px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(45,83,172,.08), transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(229,123,38,.08), transparent 60%),
    #fff;
}

/* Header */
.news-head {
  text-align: center;
  margin-bottom: 40px;
}

.news-head h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  color: #2D53AC;
  letter-spacing: -0.6px;
}

.news-head p {
  margin-top: 8px;
  color: rgba(45,83,172,.65);
  font-size: 16px;
}

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* Card */
.news-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(45,83,172,.12);
  box-shadow: 0 18px 55px rgba(45,83,172,.10);
  display: flex;
  flex-direction: column;
  transition: .3s;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(45,83,172,.18);
}

/* Media */
.news-media {
  height: 220px;
  background: #f5f7fb;
  position: relative;
}

.news-media img,
.news-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* Body */
.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  font-size: 12px;
  color: rgba(45,83,172,.65);
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #111;
}

.news-body p {
  color: #555;
  line-height: 1.6;
  font-size: 14.5px;
}

/* Tags */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.news-tag {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(45,83,172,.1);
  color: #2D53AC;
  font-weight: 700;
}

/* Botón */
.news-btn {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #2D53AC, #1b3f8f);
  box-shadow: 0 14px 35px rgba(45,83,172,.25);
  transition: .25s;
}

.news-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(45,83,172,.35);
}

/* Mensaje */
.news-msg {
  margin-top: 24px;
  text-align: center;
  color: rgba(45,83,172,.7);
}

/* Tipo */
.news-type {
  font-size: 12px;
  font-weight: 900;
  color: #2D53AC;
  margin-bottom: 6px;
  display: inline-block;
}

.news-type.event {
  color: #16a34a;
}

/* Evento */
.news-card.is-evento {
  border-left: 5px solid #16a34a;
}

.news-card.is-noticia {
  border-left: 5px solid #2D53AC;
}

.news-btn.event {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}

/* =========================
   BADGE GRATIS (EVENTOS)
========================= */

.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;

  padding: 8px 14px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;

  color: #166534;
  background: rgba(34,197,94);

  box-shadow:
    0 8px 24px rgba(34,197,94,.45),
    0 0 0 3px rgba(255,255,255,.9);

  text-transform: uppercase;
}

/* ───────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .news-section {
    padding: 60px 0;
  }
  
  .news-grid {
    gap: 24px;
  }
  
  .news-media {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .news-section {
    padding: 50px 0;
  }
  
  .news-head h2 {
    font-size: clamp(26px, 5.5vw, 38px);
  }
  
  .news-head p {
    font-size: 15px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .news-media {
    height: 220px; /* mantenemos altura decente en móvil */
  }
  
  .news-body {
    padding: 20px;
  }
  
  .news-body h3 {
    font-size: 19px;
  }
  
  .news-body p {
    font-size: 14px;
  }
  
  .news-btn {
    padding: 13px;
  }
  
  .event-badge {
    top: 12px;
    left: 12px;
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .news-section {
    padding: 40px 0;
  }
  
  .news-head {
    margin-bottom: 32px;
  }
  
  .news-head h2 {
    font-size: clamp(24px, 6.8vw, 32px);
  }
  
  .news-media {
    height: 180px;
  }
  
  .news-body {
    padding: 18px;
  }
  
  .news-meta {
    font-size: 11.5px;
  }
  
  .news-type {
    font-size: 11.5px;
  }
  
  .news-btn {
    padding: 12px;
    font-size: 15px;
  }
}