.contenedor-alertas{
    display: flex;
    position: absolute;
    top: 80px;
    right: 30px;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    overflow: hidden;
    height: fit-content;
}
.d-none{
    display: none;
}
.alerta {
    max-width: 400px;
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.alerta.active {
    transform: translateX(0%);
}

.alerta .alerta-content {
    display: flex;
    align-items: center;
}

.alerta-content .check {
    height: 50px;
}

.alerta-content .message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
    gap: 6px;
}

.message .text {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
}

.message .text.text-1 {
    font-weight: 600;
    color: #333;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}


.progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px !important;
    width: 100%;
}

.alerta .progress:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #4070f4;
}

.progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

.alertaExito.active~button {
    pointer-events: none;
}


/* Error y exito */

#check-error path{
    fill: #f44040;
}

#check-exito path{
    fill: #4070f4;
}

#progress-error:before {
    background-color: #f44040;
}
#progress-exito:before {
    background-color: #4070f4;
}


/* MOVIL */

@media (max-width: 390px){
    .contenedor-alertas{
        right: 10px;
        max-width: 280px;
    }
    .alerta-content{
        font-size: 12px;
    }
    .alerta{
        padding: 20px
    }
}
