/* Capa bloqueante (overlay) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 999; 
    display: none; 
}

/* Estilos para la alerta */
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #4CAF50; 
    color: white;
    border-radius: 5px;
    font-size: 16px;
    z-index: 1000;
    width: 300px; 
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Estilos para el icono dentro de la alerta */
.alert::before {
    content: "✔"; 
    font-size: 24px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

/* Estilo del texto */
.alert span {
    margin-left: 30px; /* Espaciado para el texto */
}

/* Botón de cerrar alerta */
.alert .close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #fff;
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Efecto hover sobre el botón de cerrar */
.alert .close:hover {
    color: #ffdddd;
}