/* Estilos del popup - Centrado perfecto */
.wp-simple-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
    /* Centrado con Flexbox */
    display: none;
    justify-content: center;
    align-items: center;
}

.wp-simple-popup-overlay.active {
    display: flex !important;
}

.wp-simple-popup-container {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease;
    /* Asegurar centrado */
    margin: auto;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wp-simple-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 22px;
    cursor: pointer;
    color: #333;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wp-simple-popup-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
    border-color: #999;
}

.wp-simple-popup-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.wp-simple-popup-content a {
    display: block;
    line-height: 0;
    /* Eliminar espacio extra */
}

.wp-simple-popup-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 5px;
    /* Centrar imagen */
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .wp-simple-popup-container {
        padding: 15px;
        max-width: 95%;
        max-height: 95%;
    }
    
    .wp-simple-popup-close {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .wp-simple-popup-content img {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .wp-simple-popup-container {
        padding: 10px;
    }
    
    .wp-simple-popup-content img {
        max-height: 60vh;
    }
}