.afib-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.afib-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    opacity: 0.5;
    z-index: 0;
}

.afib-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer; /* Hace que el cursor sea de "clic" */
    transition: transform 0.3s ease-in-out;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.5);
}

/* Efecto de cierre */
.modal.hide {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
