.pcw-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    font-family: 'Arial';
}

.pcw-popup-content {
    background: #af8fda;
    width: 90%;
    max-width: 900px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    position: relative;
    padding-bottom: 0;
    
}
button#pcw-close {
    position: absolute;
    right: 20px;
    top: 20px;
    border-radius: 100px;
    width: 45px;
    height: 45px;
    font-size: 35px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pcw-popup-content h2 {
    margin: 0 0 10px;
    font-family: 'Arial';
}

.pcw-popup-content p {
    margin-bottom: 20px;
    font-family: 'Arial';
}


#pcw-submit, #pcw-submit-close {
    width: 100%;
    padding: 0px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: white;
    font-size: 16px;
}

#pcw-submit:hover, #pcw-submit-close:hover {
    opacity: .9;
}

#pcw-message {
    margin-top: 15px;
    font-size: 14px;
}

.pcw-success {
    color: green;
}

.pcw-error {
    color: #ffffff;
    margin-bottom: 20px;
}

.pcw-hidden {
    display: none;
}

.pcw-popup-form button{

    height:70px;
    font-size:2rem;
    font-weight:700;

}
.pcw-popup-form input{

    height:45px;
    border-radius:0;
    font-size:14px;
    padding:0 24px;
    border: none;
    box-sizing: border-box;
    background-color: #fff!important;
    border: none!important;
    padding: 2px!important;
    color: #402569!important;
    padding-left: 10px!important;
    padding-right: 10px!important;

}
.grilla-popup{
    display: grid;
    grid-template-columns: 2fr 3fr;
    color: #402569;
    align-items: end;
    gap: 40px;
}
.grilla-popup img{
    width: 100%;
    display: block;
}
.grilla-popup h2{
    font-size: 24px;
    color: #402569;
    width: 100%;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}
.grilla-popup h2::before{
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.6 7'%3E%3Cline x1='0.5' y1='6.4' x2='3.7' y2='6.5' stroke='%23fff' stroke-linecap='round'/%3E%3Cline x1='1.9' y1='2.8' x2='4.4' y2='4.8' stroke='%23fff' stroke-linecap='round'/%3E%3Cline x1='4.7' y1='0.5' x2='6.1' y2='3.4' stroke='%23fff' stroke-linecap='round'/%3E%3C/svg%3E");
}
.grilla-popup p{
    font-size: 12px;
    margin-bottom: 0;
}
.grilla-popup p a{
    font-weight: bold;
    text-decoration: none;
    color: #402569;
}
.grilla-popup p.legal{
    font-size: 12px;
}
.grilla-popup h2 span{
    color: #ffffff;
}
.pcw-popup-form{
    margin-top: 20px;
}
.pcw-popup img.emoji {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin: 0 0.07em;
    vertical-align: -0.1em;
    object-fit: contain;
}
.grilla-popup label{
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}
.grilla-popup label, .grilla-popup input{
    display: block;
    width: 100%;
    border-radius: 10px;
    font-family: 'Arial';
}
.grilla-popup input{
    margin-bottom: 20px;
    height: 30px;
}
.grilla-popup #pcw-submit, .grilla-popup #pcw-submit-close{
    margin: 0 auto;
    display: block;
    margin-top: 20px;
    width: 250px;
}
.grilla-popup #pcw-submit img,  .grilla-popup #pcw-submit-close img{
    width: 100%;
}
.pcw-popup-layout img{
    width: 100%;
    display: block;
    margin: 0 auto;
}
.grilla-popup .emoji{
    display: inline;
    width: 30px;
}
/* ==================================================
   ESTADOS DEL POPUP
================================================== */

/* Estado inicial */
#lado-a {
    display: block;
}

#lado-a-result {
    display: none;
}

.grilla-popup .lado-b .pre {
    display: block;
}

.grilla-popup .lado-b .post {
    display: none;
}


/* Estado posterior al registro exitoso */
.pcw-popup-content.is-success #lado-a {
    display: none;
}

.pcw-popup-content.is-success #lado-a-result {
    display: block;
    margin-bottom: 30px;
}

.pcw-popup-content.is-success .lado-b .pre {
    display: none;
}

.pcw-popup-content.is-success .lado-b .post {
    display: block;
}
.pcw-popup-content.is-success {
    background-color: #ae8ad9!important;
}
/* Honeypot anti-spam */
.pcw-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
@media screen AND (max-width: 991px) {
    .grilla-popup{
        grid-template-columns: 1fr;
    }
    .grilla-popup .lado-b{
        display: none;
    }
    
    button#pcw-close{
        width: 40px;
        height: 40px;
        right: 10px;
    }
    .grilla-popup input{
        margin-bottom: 10px;
    }
    .grilla-popup #pcw-submit,.grilla-popup #pcw-submit-close{
        margin-top: 10px;
    }
    .pcw-popup-layout img {
        width: 90%;
    }
    .grilla-popup h2{
        font-size: 20px;
    }
}