/* Archivo /noticias/ — búsqueda y filtros en vivo */

/* Cabecera de página (anula altura fija 40px de Enfold en .title_container) */
.noticias-page .title_container .container {
  min-height: auto !important;
  height: auto !important;
  padding: 1.35rem 0 1.4rem !important;
}

.noticias-page .title_container .main-title {
  margin: 0 !important;
  font-size: clamp(1.45rem, 3.5vw, 2rem) !important;
  line-height: 1.2 !important;
}

.noticias-page__intro-wrap {
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
}

.noticias-page__intro {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #555;
}

.noticias-page__content {
  padding-bottom: 2rem;
}

.noticias-browse {
  margin: 0 0 3rem;
}

.noticias-browse__toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.noticias-browse__search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.noticias-browse__search {
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.85rem;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.9rem center;
  background-size: 1.15rem 1.15rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* Evitar estilos globales de forms.css / Enfold en el buscador */
.noticias-browse__search-wrap .noticias-browse__search {
  max-width: none;
}

.noticias-browse__search:focus {
  outline: none;
  border-color: #c3512f;
  box-shadow: 0 0 0 3px rgba(195, 81, 47, 0.15);
}

.noticias-browse__search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.noticias-browse__search-clear.is-visible {
  display: block;
}

.noticias-browse__search-clear:hover {
  color: #333;
}

.noticias-browse__cats-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}

.noticias-browse__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.noticias-browse__cat {
  padding: 0.4rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fafafa;
  color: #444;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.noticias-browse__cat:hover {
  border-color: #c3512f;
  color: #c3512f;
}

.noticias-browse__cat.is-active {
  background: #c3512f;
  border-color: #c3512f;
  color: #fff;
  font-weight: 600;
}

.noticias-browse__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #eee;
  font-size: 0.92rem;
  color: #666;
}

.noticias-browse__meta strong {
  color: #222;
}

.noticias-browse__reset {
  border: none;
  background: none;
  color: #c3512f;
  font-size: 0.9rem;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.noticias-browse__reset:hover {
  color: #a84328;
}

.noticias-browse__reset[hidden] {
  display: none;
}

.noticias-browse__grid {
  display: grid;
  gap: 1.25rem;
}

.noticias-browse__card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.1rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.noticias-browse__card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.noticias-browse__thumb {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f3f3;
  aspect-ratio: 1;
}

.noticias-browse__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noticias-browse__body {
  min-width: 0;
}

.noticias-browse__badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.55rem;
  background: #f5ebe8;
  color: #a84328;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
  text-decoration: none;
}

.noticias-browse__badge:hover {
  background: #eed9d2;
}

.noticias-browse__date {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.noticias-browse__title {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
}

.noticias-browse__title a {
  color: #222;
  text-decoration: none;
}

.noticias-browse__title a:hover {
  color: #c3512f;
}

.noticias-browse__excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noticias-browse__empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: #666;
}

.noticias-browse__empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.noticias-browse__more {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 1.5rem auto 0;
  padding: 0.7rem 1.25rem;
  background: #fff;
  border: 1px solid #c3512f;
  border-radius: 6px;
  color: #c3512f;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.noticias-browse__more:hover {
  background: #c3512f;
  color: #fff;
}

.noticias-browse__more[hidden] {
  display: none;
}

.noticias-browse__status {
  min-height: 1.25rem;
}

@media (max-width: 640px) {
  .noticias-browse__card {
    grid-template-columns: 88px 1fr;
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .noticias-browse__title {
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .noticias-browse__grid {
    gap: 1rem;
  }
}
