#return-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

select {
  width: 100%;
  height: 100%;
}

.select-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 13rem;
  padding: 0.5rem 0.7rem;
  border: 1px var(--gris-oscuro) solid;
  border-radius: 6px;
}

.coleccion-info {
  margin: 2% 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 50%;
  gap: 0.5rem;
}

.coleccion-info h1 {
  color: var(--blanco);
  font-weight: bold;
  font-size: 2rem;
}

.coleccion-info p {
  margin-bottom: 2rem;
}

.coleccion-info .anotacion-gris {
  scale: 0.8;
}

.coleccion-info .total-hechos {
  display: flex;
  gap: 0.2rem;
}

.coleccion-info .total-hechos span {
  display: flex;
  font-weight: bold;
  gap: 0.2rem;
}

.filter-section {
  width: 100%;
  margin: 1rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* allow items to wrap on small screens */
}

.select-filters {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap; /* wrap selects to next line when needed */
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 40%;
  height: 2.5rem;
  padding: 0.3rem 0.7rem;
  background-color: none;
  border: 1px var(--gris-oscuro) solid;
  border-radius: 6px;
  color: var(--blanco);
}

.search-bar input {
  width: 100%;
  height: 100%;
}

.hecho-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 2rem 1rem 2rem;
  border-radius: 8px;
  border: var(--gris-oscuro) 0.1px solid;
  background-color: var(--gris-mas-oscuro);
  transition: all 0.4s;
}

.hecho-main-info {
  display: flex;
  gap: 1rem;
}

.hecho-card .titulo {
  color: var(--blanco);
  font-weight: bold;
  font-size: 1.2rem;
}

.hecho-card .hecho-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  font-size: 2rem;
  height: 3.5rem;
  width: 3.5rem;
  color: var(--naranja);
  background-color: var(--naranja-secundario);
  border-radius: 6px;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.hecho-card:hover {
  border: var(--naranja) 0.1px solid;
  cursor: pointer;
}

.hecho-card:hover .hecho-icon {
  background-color: #f5a52359;
}

.hecho-card .hecho-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.hecho-card .hecho-meta-info {
  font-size: small;
  display: flex;
  width: 100%;
  justify-content: space-around;
  transition: all 0.4s;
}

.hecho-card:hover .hecho-meta-info {
  color: var(--naranja);
}

.hecho-card .anotacion-gris {
  margin: 0.5rem 0;
  scale: 0.8;
  transition: all 0.4s;
}

.hecho-card:hover .anotacion-gris {
  border: 1px solid var(--naranja);
  background-color: var(--naranja-secundario);
}

.hecho-card .titulo {
  transition: all 0.4s;
}

.hecho-card:hover .titulo {
  color: var(--naranja);
}

.hecho-card .bottom-info i {
  transition: all 0.4s;
}

.hecho-card:hover .bottom-info i {
  color: var(--naranja);
  scale: 1.3;
}

.hechos-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1500px;
}

.hechos-list {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 3rem;
}

#listado-hechos-banner {
  justify-content: flex-start;
}

@media (max-width: 1400px) {
  .hecho-card .hecho-meta-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 1200px) {
  .coleccion-info {
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .filter-section {
    margin: 1rem 4%;
  }

  .search-bar {
    width: 100%;
    order: 1;
  }

  .select-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 0.7rem;
    width: 100%;
    order: 2;
    justify-items: end;
  }

  .select-container {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .filter-section {
    margin: 0.8rem 1rem;
    align-items: stretch;
  }

  .search-bar {
    width: 100%;
    height: 2.8rem;
    padding: 0.4rem 0.6rem;
  }

  .select-filters {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .select-container {
    width: 100%;
    padding: 0.45rem 0.6rem;
  }

  .anotacion-gris {
    display: inline-block;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 550px) {
  .orange-button {
    display: none;
  }

  .hecho-card .hecho-main-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 850px) {
  .header-container {
    padding: 1rem;
  }

  .hechos-list ul {
    display: flex;
    flex-direction: column;
  }
}
