@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;  
}

body {
  font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template:
        "header header header" 80px
        "aside main side" 1fr
        "footer footer footer" 35px / 15% 1fr 15%;
  background: #e9ecf469;
}

header {
  grid-area: header;
  background: #003077;
  padding: 15px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 23px;
  font-weight: bolder;
  margin-bottom: 20px;
}

main {
  grid-area: main;
}

#contenido {
  display: flex; 
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; 
}

.elemento {
  min-width: 500px;
  margin: 20px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  transition: all .3s;
  box-shadow: 0px 4px 16px -3px rgba(0, 0, 0, 0.178);
}

.datos {
  display: flex;
  justify-content: center;
  padding: 7px;
  align-items: center;
  flex-direction: column;
  font-size: 22px;
  margin-top: 15px;
}

.title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0px 16px 0px;  
}

.container_descript {
  width: 520px;
}

.titulo {
    color: #114b66;
    font-weight: 600;
    font-size: 25px;
}

.fecha {
    color: #474747;
    font-size: 18px;
}

.verMas {
    padding: 8px 15px;
    font-size: 15px;
    border: none;
    color: #fff;
    border-radius: 8px;
    background-color: #114b66;
    margin-bottom: 12px;
    outline: none;
    cursor: pointer;
}

div.VerMasDescript {
  width: 100%;
  max-height: 0px;
  overflow-y: hidden;
  transition: all .4s;
}

div.VerMasDescript::-webkit-scrollbar {

  width: 3px;

}

div.VerMasDescript::-webkit-scrollbar-thumb {

  background-color: #8080809f;
  border-radius: 30px;

}

.mostrar {
  overflow: auto;
  height: 80px;
}

#descripcion {
  color: #1d1d1d;
  font-size: 17px;
}

.imagen {
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen img {
  width: auto; 
  height: 300px; 
  border-radius: 8px;
  transition: all 0.2s;
}

.imagen img:hover {
  transform: scale(1.02) rotate(2deg);
}

.video {
  width: auto;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video video {
  width: auto;
  height: 100%;
  border-radius: 8px;
}

.enlace {
  width: 500px;
  height: 280px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/postnoticias/elrecurso/pdf_mejorado.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.enlace .enlace_a {
  font-size: 22px;
  text-decoration: none;
  padding: 10px 15px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  background: #003077;
  border-radius: 8px;
}

.enlace:hover .enlace_a {
  font-size: 25px;
}

.paginacion {
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.paginacion a {
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  background: #0e2e50;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.paginacion a:hover {
  background: #fff;
  color: #0e2e50;
  border: 1px solid #0e2e50;
  box-shadow: 0px 4px 15px -7px #000; 
}

footer {
  background: #003077;
  grid-area: footer;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
}

.floting {
  position: fixed; 
  bottom: 60px; 
  right: 35px;
  color: #fff;
  background: #0e2e50;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bolder;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.2s;
}

.floting:hover {
  background: #fff;
  color: #0e2e50;
  font-weight: bolder;
  border: 1px solid #0e2e50;
  box-shadow: 0px 4px 15px -7px #000; 
}


/*-------------------------------MEDIAS QUERY------------------------------------*/

@media screen and (max-width: 910px) {

  .container_descript {
    width: 440px;
  }

  .imagen img {
    width: auto; 
    height: 250px; 
    border-radius: 8px;
    transition: all 0.2s;
  }

  .video {
    width: auto;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .video video {
    width: auto;
    height: 100%;
    border-radius: 8px;
  }

}

@media screen and (max-width: 810px) {

  .container_descript {
    width: 100%;
  }

  .imagen img {
    width: auto; 
    height: 250px; 
    border-radius: 8px;
    transition: all 0.2s;
  }

  .video {
    width: auto;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .video video {
    width: auto;
    height: 100%;
    border-radius: 8px;
  }

}

@media screen and (max-width: 780px) {

  body {
    grid-template:
        "header header header" 80px
        "aside main side" 1fr
        "footer footer footer" 35px / 10% 1fr 10%;
  }

}

@media screen and (max-width: 690px) {

  body {
    grid-template:
        "header header header" 80px
        "aside main side" 1fr
        "footer footer footer" 35px / 5% 1fr 5%;
  }

}

@media screen and (max-width: 620px) {

  .container_descript {
    width: 380px;
  }

  .imagen img {
    width: auto; 
    height: 210px; 
    border-radius: 8px;
    transition: all 0.2s;
  }

  .elemento {
    min-width: 300px;
  }

}

@media screen and (max-width: 560px) {

  .container_descript {
    width: 300px;
  }

  .imagen img {
    width: auto; 
    height: 170px; 
    border-radius: 8px;
    transition: all 0.2s;
  }

  .elemento {
    min-width: 200px;
  }

}

@media screen and (max-width: 470px) {

  .container_descript {
    width: 250px;
  }

  .imagen img {
    width: auto; 
    height: 140px; 
    border-radius: 8px;
    transition: all 0.2s;
  }

  .elemento {
    min-width: 200px;
  }

  .titulo {
    font-size: 23px;
  }

  .fecha {
    font-size: 15px;
  }

}

@media screen and (max-width: 420px) {

  body {
    grid-template:
        "header header header" 80px
        "aside main side" 1fr
        "footer footer footer" 35px / 0% 1fr 0%;
  }

  .container_descript {
    width: 240px;
  }

  .imagen img {
    width: auto; 
    height: 135px; 
    border-radius: 8px;
    transition: all 0.2s;
  }

  .elemento {
    min-width: 200px;
  }

}

@media screen and (max-width: 370px) {

  .container_descript {
    width: 220px;
  }

  .imagen img {
    width: auto; 
    height: 110px; 
    border-radius: 8px;
    transition: all 0.2s;
  }

  .elemento {
    min-width: 200px;
  }

  .titulo {
    font-size: 20px;
  }

  .fecha {
    font-size: 13px;
  }

}


@media screen and (max-width: 340px) {

  h2 {
    font-size: 23px;
  }

  .container_descript {
    width: 200px;
  }

  .imagen img {
    width: auto; 
    height: 100px; 
    border-radius: 8px;
    transition: all 0.2s;
  }

  .elemento {
    min-width: 200px;
  }

  .titulo {
    font-size: 19px;
  }

  .fecha {
    font-size: 12px;
  }

}
