/* --- ESTILOS BASE --- */

.section {
  display: flex;
  justify-content: center;
  padding: 2vh 1vw;
}

.div-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  margin-bottom: 15vh;
}

.titulo {
  text-align: center;
  background: rgb(149, 193, 233);
  color: #000;
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.titulo h2 {
  margin: 0.2rem 0;
  font-size: 2rem;
}

.titulo h4 {
  margin: 0.2rem 0;
  font-size: 1.2rem;
}

#pdf-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 1vh 0;
  padding: 1rem;
  width: 100%;
  border-radius: 5px;
  background: rgb(209, 229, 247);
}

.pdf-card {
  width: 150px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: box-shadow 0.3s;
}

.pdf-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.pdf-card img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.pdf-card p {
  font-size: 15px;
  font-weight: bold;
  color: #222;
  margin-top: 10px;
  word-break: break-word;
  text-align: center;
}


/* --- MEDIA QUERIES --- */

/* Pantallas de escritorio estándar (1920x1080) */
@media screen and (min-width: 1280px) and (max-width: 1920px) {
  .div-container {
    width: 60%;
  }

  .titulo h2 {
    font-size: 2rem;
  }

  .titulo h4 {
    font-size: 1.2rem;
  }

  .pdf-card {
    width: 150px;
  }

  .pdf-card p {
    font-size: 15px;
  }
}


/* Escritorio menor (1024x768) */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .div-container {
    width: 75%;
  }

  .titulo h2 {
    font-size: 1.8rem;
  }

  .titulo h4 {
    font-size: 1.1rem;
  }

  .pdf-card {
    width: 140px;
  }

  .pdf-card p {
    font-size: 14px;
  }
}


/* Tablets (768px a 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .div-container {
    width: 90%;
  }

  .titulo h2 {
    font-size: 1.6rem;
  }

  .titulo h4 {
    font-size: 1rem;
  }

  .pdf-card {
    width: 130px;
  }

  .pdf-card p {
    font-size: 13px;
  }
}


/* Celulares (320px a 767px) */
@media screen and (min-width: 320px) and (max-width: 767px) {
  .div-container {
    width: 95%;
  }

  .titulo {
    padding: 0.8rem;
  }

  .titulo h2 {
    font-size: 1.3rem;
  }

  .titulo h4 {
    font-size: 0.9rem;
  }

  .pdf-card {
    width: 100%;
  }

  .pdf-card p {
    font-size: 13px;
  }

  .pdf-card img {
    width: 60px;
  }
}