/* Alerta base */
.custom-alert {
    position: relative;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
    transition: all 0.3s ease;
}

.custom-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--alert-color) 0%, var(--alert-color-dark) 100%);
}

.custom-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Variante de error */
.custom-alert.alert-error {
    --alert-color: #dc3545;
    --alert-color-dark: #b02a37;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

/* Versión compacta */
.custom-alert.compact {
    padding: 16px 20px;
}

.compact .alert-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.compact .alert-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--alert-color) 0%, var(--alert-color-dark) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.compact .alert-body {
    flex: 1;
    padding-top: 2px;
}

.compact .alert-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--alert-color-dark);
    margin: 0 0 4px 0;
}

.compact .alert-message {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
}

/* Botón cerrar */
.alert-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
    color: var(--alert-color);
}

/* Animación */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.alert-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

