/* ===== HERO DE NOTICIAS ===== */
.hero-noticias {
  position: relative;
  height: 70vh;
  background: url('../images/hero/news.jpg') center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-noticias .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-noticias .container {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECCIÓN DE NOTICIAS ===== */
.all-news {
  background-color: #f8f9fa;
}

.all-news h2 {
  font-weight: 700;
  font-size: 1.8rem;
}

/* Tarjetas de noticias */
.noticia-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.noticia-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagen */
.noticia-card .img-wrapper {
  position: relative;
  overflow: hidden;
  height: 230px;
}

.noticia-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.noticia-card:hover img {
  transform: scale(1.05);
}

/* Fecha */
.fecha-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 193, 7, 0.9);
  color: #000;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 8px;
}

/* Contenido */
.noticia-card .card-body {
  padding: 20px 18px;
}

.noticia-card .card-title {
  color: #222;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.noticia-card .card-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* Botón "Leer más" */
.btn-dorado {
  display: inline-block;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid #ffc107;
  background: rgba(255, 193, 7, 0.8);
  border-radius: 30px;
  padding: 7px 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-dorado:hover {
  background: #ffc107;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

/* ===== BUSCADOR ===== */
form input.form-control {
  border-radius: 25px;
  border: 1px solid #ccc;
  padding: 8px 15px;
}

form button {
  border-radius: 25px;
  font-weight: 600;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 992px) {
  .hero-noticias { height: 45vh; }
  .noticia-card .img-wrapper { height: 200px; }
}

@media (max-width: 576px) {
  .hero-noticias { height: 35vh; }
  .noticia-card .img-wrapper { height: 180px; }
  .noticia-card .card-body { text-align: center; }
}


/* ===== PAGINACIÓN ===== */
.pagination .page-link {
  color: #000;
  border: none;
  border-radius: 8px;
  margin: 0 4px;
  padding: 8px 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background: #ffc107;
  color: #000;
}

.pagination .active .page-link {
  background: #ffc107;
  color: #000;
  font-weight: 700;
}

.pagination .disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}


.pdf-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 0, 0, 0.85);
  padding: 6px 8px;
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-icon i {
  font-size: 1.1rem;
}
