.pdf-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Fondo oscuro con transparencia */
    display: none; /* Por defecto está oculto */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurar que esté por encima de todo */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
}

.pdf-viewer-modal.is-open {
    display: flex;
    opacity: 1;
}

.pdf-viewer-content {
    position: relative;
    width: 90%; /* Ancho del contenido */
    height: 90%; /* Altura del contenido */
    max-width: 1200px; /* Máximo ancho */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pdf-viewer-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

#close-pdf-modal {
    position: absolute;
    top: -40px; /* Posición fuera de la caja blanca del PDF */
    right: 0px; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white; /* Color del icono de cerrar */
    z-index: 1010;
}

#close-pdf-modal svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
}