/* Estilos para el Lightbox de Actividades Recientes */
.cendi-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 117, 178, 0.85);
    /* Fondo azul semitransparente solicitado */
    display: none;
    /* Se activa con JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    /* Efecto blur al fondo de la página */
    -webkit-backdrop-filter: blur(8px);
}

.cendi-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    border: 3px solid #000;
}

.lightbox-info {
    margin-top: 20px;
}

.lightbox-title {
    font-family: 'Lobster Two', cursive;
    font-size: 32px;
    color: #2B75B2;
    margin-bottom: 10px;
}

.lightbox-text {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

/* Botones de Navegación */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #2B75B2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background: #ff633c;
    color: #fff;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Botón de Cerrar */
.lightbox-close {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    color: #2B75B2;
    /* Color azul para que se vea sobre el blanco */
    font-size: 45px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ff633c;
}

/* Efecto de Alerta solicitado */
.lightbox-close.alert {
    background: #ff0000 !important;
    /* Cuadro rojo */
    color: #ffffff !important;
    /* X blanca */
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: jump 0.4s ease infinite;
    /* Salto constante mientras dure el clic */
    top: 10px;
    right: 10px;
}

@keyframes jump {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 950px) {
    .lightbox-prev {
        left: 10px;
        top: 40%;
    }

    .lightbox-next {
        right: 10px;
        top: 40%;
    }
}