body {
    margin: 0;
    background: #f8f9fa;
}

.alerta-texto {
    flex: 1;
    margin: 0;
}

.alerta-cuenta {
    position: relative;
    flex: none;
    width: 26px;
    height: 26px;
    color: inherit;
}

.alerta-cuenta svg {
    display: block;
    width: 26px;
    height: 26px;
    transform: rotate(-90deg);
}

.alerta-cuenta-pista,
.alerta-cuenta-arco {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.alerta-cuenta-pista {
    opacity: 0.28;
}

.alerta-cuenta-arco {
    stroke-dasharray: 56.55;
    stroke-linecap: round;
    animation: alerta-arco var(--alerta-segundos, 3s) linear forwards;
}

.alerta-cuenta-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.alerta-cerrar {
    flex: none;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.alerta-cerrar:hover,
.alerta-cerrar:focus-visible {
    background: color-mix(in srgb, currentColor 12%, transparent);
}

@keyframes alerta-arco {
    to {
        stroke-dashoffset: 56.55;
    }
}
