:root {
  --color-rojo-aprode: #b52e23;
  --color-azul-aprode: #1e1e64;
  --color-titulo: #000000;

  --tamaño-celular-p: 12px;
  --tamaño-celular-h3: 15px;
}

/* Estilos para el banner */
.banner-noticia-reciente {
  margin-top: 10rem;
  width: 100%;
  height: auto;
  position: relative;
}

.imagen-noticia-principal {
  width: 100%;
  filter: brightness(60%);
}

.c-info-noticia {
  position: absolute;
  bottom: 2em;
  left: 2em;
  right: 1em;
}

.estado-de-noticia {
  font-style: italic;
  letter-spacing: 0.5em;
  color: #b52e23;
}

.estado-de-publicacion {
  font-family: "Roboto", sans-serif;
  color: #ffffff;
  font-weight: 900;
  font-size: 2em;
  font-style: italic;
  letter-spacing: 0.25em;
}

.descripcion-de-noticia {
  font-family: "Roboto", sans-serif;
  color: #ffffff;
  font-weight: 400;
  font-size: 1.25em;
}

/* Estilos para el buscador */

.c-buscador {
  display: flex;
  gap: 1em;
  width: 400px;
  margin: auto;
  margin-block: 2em;
}

.c-buscador input {
  flex: 1;
  width: 100%;
}

@media screen and (max-width: 600px) {
  .c-buscador {
    flex-direction: column;
    margin-inline: 0;
    width: 100%;
  }

  .c-buscador input,
  .c-buscador select,
  .c-buscador select option {
    box-sizing: border-box !important;
    flex: 1;
  }

  .c-buscador select > option {
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .c-buscador select {
    padding-block: 0.8em;
  }
}

.filtro {
  /* display: none; */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.c-tarjetas-noticias {
  width: 100%;
  place-items: center;
  margin-top: 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.tarjet-noticias {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 550px;
  overflow: hidden;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tarjet-noticia-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.tarjet-noticias p {
  font-size: 1em;

  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  /* A modificar la cantidad de lineas a mostrar */
}

.descripcion-noticia {
  padding: 1em;
}

.descripcion-noticia h3 {
  margin-block: 0;
  color: var(--color-azul-aprode);

  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.linea-separadora {
  margin-block: 0.5em 1em;
  background-color: var(--color-azul-aprode);
  height: 1px;
  border: none;
  color: var(--color-azul-aprode);
}

.palabras-span {
  text-transform: uppercase;
  color: var(--color-rojo-aprode);
  font-weight: 600;
}

.btn-conoce-mas {
  width: 8em;
  display: inline-flex;
  align-items: center;
  background-color: var(--color-rojo-aprode);
  color: white;
  text-decoration: none;
  padding: 0.5em 1.5em;
  margin-top: 1em;
  font-weight: bold;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease-in-out;
}

.btn-conoce-mas::before {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.btn-conoce-mas:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.btn-conoce-mas:hover {
  padding-left: -1.5em;
}

.btn-conoce-mas:hover span {
  transform: translateX(10px);
}

.btn-conoce-mas span {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

/* main */
.estilos-main {
  padding-inline: 12rem;
}

@media screen and (min-width: 1600px) {
  .estilos-main {
    padding-inline: 20%;
  }
}

@media screen and (max-width: 1600px) {
  .estilos-main {
    padding-inline: 12rem;
  }
}

@media screen and (max-width: 1220px) {
  .estilos-main {
    padding-inline: 8rem;
  }
}

@media screen and (max-width: 1000px) {
  .estilos-main {
    padding-inline: 5rem;
  }
}

@media screen and (max-width: 1400px) {
  .c-info-noticia {
    bottom: 1.5em;
    left: 1.5em;
  }
}

@media screen and (max-width: 768px) {
  .c-info-noticia {
    bottom: 1em;
    left: 1em;
  }

  .banner-noticia-reciente {
    margin-top: 7rem;
  }
}

@media screen and (max-width: 690px) {
  .estado-de-publicacion {
    font-weight: 900;
    font-size: 1.5em;
    font-style: italic;
    letter-spacing: 0.15em;
  }

  .descripcion-de-noticia {
    font-family: "Roboto", sans-serif;
    color: #ffffff;
    font-weight: 400;
    font-size: 1em;
  }
}

@media screen and (max-width: 680px) {
  .descripcion-noticia > h3 {
    font-size: var(--tamaño-celular-h3);
  }

  .descripcion-noticia > p {
    font-size: var(--tamaño-celular-p);
  }

  .btn-conoce-mas {
    font-size: var(--tamaño-celular-p);
    width: 100%;
    box-sizing: border-box !important;
    text-align: center;
    justify-content: center;
  }

  .c-tarjetas-noticias {
    width: 100%;
    place-items: center;
    margin-top: 2em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .estado-de-publicacion {
    font-size: 18px;
  }

  .descripcion-de-noticia {
    font-size: 12px;
  }

  .fecha-publicacion{
    font-size: var(--tamaño-celular-p);
  }
}

@media screen and (max-width: 450px) {
  .estilos-main {
    padding-inline: 3rem;
  }
}