/* --- Buscador y Filtros --- */
.search-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-input-group {
  position: relative;
  background: var(--gr-card-bg);
  border: 1px solid var(--gr-border);
  border-radius: 20px;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.search-input-group:focus-within {
  border-color: var(--gr-muted);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.search-input-group input {
  background: transparent;
  border: none;
  color: white;
  padding: 15px;
  width: 100%;
  outline: none;
  font-weight: 500;
}

/* --- Filtros tipo “pills” --- */
.filter-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--gr-border);
  color: var(--gr-muted);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: white;
  color: black;
  border-color: white;
}

/* --- Grid de Noticias --- */
.news-card {
  background: var(--gr-card-bg);
  border: 1px solid var(--gr-border);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: #444;
}

.news-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  position: relative;
}

.news-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: white;
  color: black;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--gr-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.news-title {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 15px;
}

.news-excerpt {
  color: var(--gr-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
