@use '../base/variables' as v;
.alerta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: v.$blanco;
    font-weight: 600;

    width: 35%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: .2rem;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.5s ease;

    &--error {
        background-color: v.$rojo;
    }
    &--exito {
        background-color: v.$verde;
    }
    
}
.alerta--desaparecer {
    opacity: 0;
}