/*body:not(.elementor-editor-active) .elementor-element:has(.woga-inline-popup),
body:not(.elementor-editor-active) .elementor-element:has(.woga-inline-popup) *:not(.pi--trigger):not(.woga-inline-popup){
    position: static;
}*/

.pi--container {
    /*display: none;*/
    width: 100%;
    height: 100%;
    position: absolute!important; /* Volvemos a Fixed para bordes perfectos */
    padding: 0;
    border: none;
    background: transparent;
    margin: 0;
    align-items: center;
    justify-content: center;
    overflow: initial;
    transition: .15s transform ease-in;
    top: -1000%;
    left: -1000%;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: scale(0, 0);
}

.pi--container:not(:popover-open):not(dialog[open]) {
  display: flex;
}

.pi--trigger{
    display: inline-block;
    position: relative!important;
}

.pi--trigger::before,
.pi--trigger::after{
    transition: .35s all ease-in;
    content: " ";
    position: absolute;
    left: 0;
    bottom: 0;
}

.pi--trigger.pointer{
    z-index: 6;
    /*pointer-events: none;*/
}

.pi--content{
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    width: 100%;
    height: 100%;
}

.pi--container.show {
    visibility: inherit;
    display: flex;
    opacity: 1;
    z-index: 5;
    pointer-events: all;
    transform: scale(1, 1);
}

.close-x {
    /* 1. RESET TOTAL */
    all: unset; /* Borra casi todas las propiedades heredadas del navegador */
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;

    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #fff;
    
    position: absolute;
    transition: background-color 0.2s ease, transform 0.1s active;

    filter: drop-shadow(0px 0px 5px rgba(0,0,0,.5));
    backdrop-filter: invert(10%);
    
    /*position: absolute;*/
    z-index: 2;
    top: 10px;
    right: 10px;
}

/* Efectos de estado */
.close-x:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.close-x:active {
    transform: scale(0.95);
}

/* 4. LAS LÍNEAS DE LA X (BEFORE Y AFTER) */
.close-x::before, 
.close-x::after {
    content: '';
    position: absolute;
    width: 16px;       /* Longitud de cada rama de la X */
    height: 3px;       /* Grosor de la línea */
    background-color: #fff;
    border-radius: 1px;
}

/* Rotaciones exactas desde el centro */
.close-x::before {
    transform: rotate(45deg);
}

.close-x::after {
    transform: rotate(-45deg);
}

/*others*/
/* Estilos para las líneas internas */
@media (min-width: 920px) {
    .close-x{
        /*display: none!important;*/
    }
}
@media (max-width: 919px) {
    .pi--content{
        position: relative!important;
        box-shadow: 0px 0px 280px 100px rgba(0, 0, 0, .54);
        height: auto;
    }

    .pi--container{
        padding: 40px;
    }

    .pi--container video{
        display: block;
    }
}