/* PDF */
.contenedor-responsivo-pdf {
  width: 100%;
  max-width: 900px; /* Tamaño máximo en escritorio */
  margin: 20px auto;
  aspect-ratio: 4 / 3; /* Mantiene una proporción clásica de documento */
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Estilo para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  .contenedor-responsivo-pdf {
      aspect-ratio: 1 / 1.4; /* Más vertical para celulares */
      width: 95%;
  }
}

/* Botón de respaldo por si el navegador no soporta el visor */
.mensaje-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: #f8f9fa;
  padding: 20px;
  text-align: center;
}

.boton-descarga {
  background-color: #d9534f;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}
/* Short */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "video text"
      "extra extra";
    gap: 1.5rem;
    max-width: 900px;
    margin: auto;
    padding: 2rem;
  }
  
  .video {
    grid-area: video;
  }
  
  .video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
  }
  
  .text ul,
  .extra ul {
    list-style: none;
    padding-left: 0;
  }
  
  .text li,
  .extra li {
    list-style-type: none !important;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
  }
  
  .text li::before,
  .extra li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .2em;
    width: 0.6em;
    height: 0.6em;
    background-color: #2e7d32; /* Verde UNAM */
    border-radius: 50%;
  }
  



  .text {
    grid-area: text;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .text h2 {
    margin: 2rem auto;
    color: #2e7d32;
  }
  
  .text ul {
    padding-left: 1.2rem;
    margin-top: 1rem;
  }
  
  .text li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
  }
  
  .extra {
    grid-area: extra;
    background-color: #e8f5e9;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
  }
  
  .extra h3 {
    margin-top: 0;
    color: #1b5e20;
  }
  
  .extra p {
    font-size: 1rem;
    color: #333;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .info-grid {
      grid-template-columns: 1fr;
      grid-template-areas:
        "video"
        "text"
        "extra";
    }
  
    .extra {
      text-align: left;
    }
  }
  
  


/* Video Youtube */

  .video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 90%;
    margin: 2rem auto;
    position: relative;
  }
  
  .video-thumbnail {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 560px;
    display: block;
  }
  
  .video-thumbnail img {
    width: 100%;
    border-radius: 12px;
    display: block;
  }
  
  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 1rem 1.2rem;
    pointer-events: none;
  }
  
  .video-embed {
    display: none;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
  }
  
  .video-embed iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }
  