/**
 * Estilos para CF7 Custom Notifications
 */

/* Overlay con fondo oscuro semitransparente */
.cf7n-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none; /* No permite clicks hasta que esté activo */
    transition: opacity 0.3s ease;
}

.cf7n-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal centrado */
.cf7n-modal {
    background-color: #ffffff;
    color: #333333;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    border-top: 6px solid #46b450; /* Color default, se sobreescribe via JS style */
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cf7n-modal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Logo */
.cf7n-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 15px;
}

/* Icono circular */
.cf7n-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    margin-bottom: 10px;
}

.cf7n-icon {
    line-height: 1;
}

/* Textos */
.cf7n-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.cf7n-message {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

/* Botón de cierre (X) */
.cf7n-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s;
}

.cf7n-close-icon:hover {
    color: #333;
}

/* Botón de cerrar (Acción) */
.cf7n-btn-close {
    margin-top: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cf7n-btn-close:hover {
    background-color: #3e5871;
}

/* Ocultar mensajes defecto de CF7 si se desea (opcional) */
/* Descomentar si se quiere ocultar el feedback inline de CF7 */
/* 
.wpcf7-response-output {
    display: none !important;
} 
*/
