
/* =========================================================
   ALERTAS MODERNAS - RANCHO COLOMBIANO
   ========================================================= */

.app-alertas-container {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 390px);
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-alerta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 13px 40px 15px 13px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background: rgba(18,18,18,.96);
    box-shadow: 0 16px 38px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-18px) scale(.97);
    transition: opacity .35s ease, transform .35s ease;
}

.app-alerta.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.app-alerta-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 18px;
}

.app-alerta-success .app-alerta-icon {
    color: #74d99b;
    background: rgba(50,190,110,.13);
}

.app-alerta-danger .app-alerta-icon {
    color: #ff7777;
    background: rgba(230,70,70,.13);
}

.app-alerta-warning .app-alerta-icon {
    color: #e9bc4e;
    background: rgba(225,181,74,.13);
}

.app-alerta-info .app-alerta-icon {
    color: #79b9ff;
    background: rgba(70,140,230,.13);
}

.app-alerta-content {
    min-width: 0;
    flex: 1;
}

.app-alerta-title {
    font-size: .91rem;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 3px;
}

.app-alerta-message {
    color: #a8a8a8;
    font-size: .78rem;
    line-height: 1.4;
}

.app-alerta-close {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .2s ease;
}

.app-alerta-close:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.app-alerta-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform-origin: left center;
    animation: alertaProgress 4.5s linear forwards;
}

.app-alerta-success .app-alerta-progress {
    background: #74d99b;
}

.app-alerta-danger .app-alerta-progress {
    background: #ff7777;
}

.app-alerta-warning .app-alerta-progress {
    background: #e9bc4e;
}

.app-alerta-info .app-alerta-progress {
    background: #79b9ff;
}

@keyframes alertaProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
    .app-alertas-container {
        top: 12px;
        width: calc(100vw - 24px);
    }

    .app-alerta {
        min-height: 68px;
        border-radius: 15px;
    }
}
