/* Popups Generales */
.maxima-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--popup-overlay, rgba(0,0,0,0.8));
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.maxima-popup-wrapper.is-open {
    display: flex;
    opacity: 1;
}

.maxima-popup-content {
    background: transparent;
    position: relative;
    max-height: 100%;
    overflow-y: auto;
    z-index: 100000;
}

.maxima-popup-inner {
    background: #fff;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    /* Evitar conflictos si el usuario pone sombras/márgenes en Elementor */
}

.maxima-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 100001;
    color: #333;
    line-height: 1;
    padding: 5px 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.maxima-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}
