* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.alerta{
    position: absolute;
    top: 60px;
    right: 30px;
    border-radius: 15px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    animation: efecto .3s ease alternate;
    z-index: 999999999;
}

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

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

.alerta_contenido .bien {
    display: flex;
    padding: 5px;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-width: 35px;
    background-color: var(--color-primario);
    border-radius: 50%;
}

.alerta_contenido .mal {
    display: flex;
    padding: 7px;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-width: 35px;
    background-color: #4d4d4d;
    border-radius: 50%;
}

.alerta_contenido .mensaje {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.mensaje.text {
    font-family: var(--fuente-parrafos);
    font-size: 18px;
    font-weight: 400;
    color: #666666;
}

.mensaje .text.text-1 {
    font-family: var(--fuente-parrafos);
    font-size: 19px;
    font-weight: 600;
    color: var(--color-primario);
}

.mensaje .text.text-2 {
    font-family: var(--fuente-parrafos);
    font-weight: 600;
    color: #4d4d4d;
}

.mensaje .text {
    font-family: var(--fuente-parrafos);
}

.alerta .cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.4;
    transition: .5s ease all;
}

.alerta .cerrar:hover {
    opacity: 1;
}

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

.alerta .progress:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-primario);
}

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

.progress.activo:before {
    animation: progress 2s linear forwards;
}

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

.alerta.activo ~ button {
    pointer-events: none;
}

@keyframes efecto {
    0% {transform: translateY(0px);}
    100% {transform: translateY(-15px);}
}

@media (max-width: 600px) {
    .alerta{
        top: 62px;
        right: 16px;
        width: 342px;
    }
}

@media (max-width: 400px) {
    .alerta{
        top: 60px;
        right: 14px;
        width: 338px;
    }
}