/**
 * Estilos para Simple Pop-up
 */

/* Botones (RESTAURADOS AL MODO ORIGINAL / LIGHT) */
.simple-popup-button {
    /* RESTAURADO: Fondo OSCURO/PRINCIPAL (7fd45b1) */
    background-color: var(--e-global-color-7fd45b1);
    font-family: "Articulat", Sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    /* RESTAURADO: Color de texto CLARO/SECUNDARIO (e2e07ba) */
    fill: var(--e-global-color-e2e07ba);
    color: var(--e-global-color-e2e07ba);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    /* RESTAURADO: Borde CLARO/SECUNDARIO (e2e07ba) */
    border-color: var(--e-global-color-e2e07ba);
    border-radius: 20px 20px 20px 20px;
    padding: 5px 15px 5px 15px;
}

.simple-popup-button:hover,.simple-popup-button:active,.simple-popup-button:focus {
    /* RESTAURADO: Fondo en hover CLARO/SECUNDARIO (e2e07ba) */
    background-color: var(--e-global-color-e2e07ba);
    /* RESTAURADO: Color de texto en hover OSCURO/PRINCIPAL (7fd45b1) */
    color: var(--e-global-color-7fd45b1);
    /* RESTAURADO: Borde en hover CLARO/SECUNDARIO (e2e07ba) */
    border-color: var(--e-global-color-e2e07ba);
}

/* Pop-up Overlay (Mantenido en Dark Mode - Sin cambios) */
.simple-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.simple-popup-overlay.active {
    display: flex;
}

/* Contenedor del Pop-up (Mantenido en Dark Mode) */ 
.simple-popup-container {
    /* Fondo del contenedor OSCURO (7fd45b1) */
    background-color:var(--e-global-color-7fd45b1);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.simple-popup-container textarea{height:100px;}
/* Botón de cerrar (Mantenido en Dark Mode) */
.simple-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    /* Color CLARO (e2e07ba) para verse sobre fondo oscuro */
    color: var(--e-global-color-e2e07ba); 
}

.simple-popup-close:hover {
    color: var(--e-global-color-e2e07ba);
}
.simple-popup-content{
    
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}
/* Título del Pop-up (Mantenido en Dark Mode) */
.simple-popup-title {
    margin-top: 0;
    margin-bottom: 10px;
    /* Color de texto CLARO (e2e07ba) */
    color: var(--e-global-color-e2e07ba); 
    text-align: center;
    
    font-family: "Articulat", Sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    /* Color de texto CLARO (e2e07ba) */
    color: var(--e-global-color-e2e07ba);
}

/* Subtítulo del Pop-up (Mantenido en Dark Mode) */
.simple-popup-subtitle {
    
    margin: 0 auto 20px auto;
    /* Color de texto CLARO (e2e07ba) */
    color: var(--e-global-color-e2e07ba); 
    
    font-family: "Articulat", Sans-serif;
    font-size: 1rem;
    font-weight: 400;
    /* Color de texto CLARO (e2e07ba) */
    color: var(--e-global-color-e2e07ba);
    width:80%;
    text-align: center;
}

/* Área del formulario (Mantenido en Dark Mode) */
.simple-popup-form {
    margin-top: 20px;
}
.simple-popup-form *{
    font-family: "Articulat", Sans-serif;
    font-size: 1rem;
    font-weight: 400;
    /* Color de texto CLARO (e2e07ba) */
    color: var(--e-global-color-e2e07ba);
}
.simple-popup-form input, .simple-popup-form textarea, .simple-popup-form select{
    border-radius: 20px;
    border: none;
    margin: 0;
    color: #A6ACB7;
    font-size: 1rem;
}
.wpcf7-spinner{display:none;}
#wpcf7-f8-o1 > form > p:nth-child(7){display:flex;justify-content:center;}
.wpcf7-submit {
    /* Fondo del botón de envío CLARO (e2e07ba) */
    background-color: var(--e-global-color-e2e07ba) !important;
    /* Color de texto del botón de envío OSCURO (7fd45b1) */
    color: var(--e-global-color-7fd45b1) !important;
}
form p{margin:0;}
/* Estilo de animación */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.simple-popup-overlay.active {
    animation: fadeIn 0.3s;
}

/* Responsividad */
@media (max-width: 768px) {
    .simple-popup-container {
        width: 95%;
        padding: 20px;
    }
    .wpcf7 input[type=submit]{
        width:200px!important;
    }
    .simple-popup-title {
        font-size: 20px;
    }
    
    .simple-popup-subtitle {
        font-size: 16px;
        width:100%;
    }
    .wpcf7 form>div, .wpcf7 form>p{
        margin:0!important;
    }
    .simple-popup-form {
        margin-top: 10px!important;
    }
    .wpcf7 select.wpcf7-form-control{
        padding:12px 16px;
    }
}