.novedades-title {
  margin-top: 68px;
  margin-bottom: 4rem;
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  background: url("/bundles/frontend/img/novedades/banner.png");
  text-transform: uppercase;
}

.novedades-title h1 {
  margin-left: 8rem;
  color: white;
  font-weight: 600;
}

.novedades-container {
  display: flex;
  gap: 20px;
}

/* Menú lateral en desktop */
.categorias {
  flex: 0 0 250px; /* ancho fijo */
}

.categorias-nav > ul > li > a {
  text-decoration: none;
  color: black;
}

.categorias-nav > ul > li {
  margin: 0.5rem 0rem;
  font-size: 1.2rem;
}

/* Contenido principal */
.novedades-list {
  flex: 1;
}

.categorias-nav {
  margin: 0 2rem 0 8rem;
}

.cards-grid {
  display: flex;
  gap: 0rem 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 3rem 0rem;
}

.pagination > li {
  min-width: 2rem;
}

.pagination > li > a {
  text-decoration: none;
  color: black;
}

.pagination > li.active {
  background-color: #ff1e1e;
  color: white;
}

/* Mostrar lista en desktop, select en mobile */
.categorias-select {
  display: none;
}

aside {
  min-width: fit-content;
}

.novedades-main {
  width: 100%;
  margin-bottom: 6rem;
}

.novedades-main img {
  width: 70%;
}

.novedad-header {
  width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.novedad-header h3 {
  font-size: 2.5rem;
  color: #ff1e1e;
  font-weight: 600;
  text-transform: uppercase;
}

.novedad-header a {
  font-size: 1.5rem;
  color: #ff1e1e;
}

.detalle-date {
  color: #ff1e1e;
  margin: 2rem 0;
}

.detalle-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  width: 70%;
}

.detalle-content {
  margin: 3rem 0rem;
  width: 70%;
}

.tags {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 4rem 0rem;
}

.tag {
  padding: 0.5rem 1rem;
  background-color: #ff1e1e;
  text-decoration: none;
  font-weight: 600;
  color: white;
}

/* Mobile: menú como desplegable arriba */
@media (max-width: 768px) {
  .novedades-container {
    flex-direction: column;
  }

  .categorias {
    flex: none;
    width: 100%;
    margin-bottom: 15px;
  }
  .categorias-list {
    display: none;
  }
  .categorias-select {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
  }

  .categorias-nav {
    margin: 0 5rem;
  }

  .categorias-nav .active {
    font-weight: 600;
  }

  .novedades-main {
    width: 80%;
    margin: 0rem 2rem;
    margin-bottom: 6rem;
  }

  .novedades-main img {
    width: 100%;
  }

  .novedad-header {
    width: 100%;
  }
  .novedad-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
  }

  .novedad-header a {
    font-size: 1rem;
  }

  .detalle-content {
    width: 100%;
  }

  .detalle-title {
    width: 100%;
  }
}
