/* =======================================
   ALERTAS - Compatible con Bootstrap 5
   ======================================= */

/* Alerta base */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert i {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Variantes */
.alert-error,
.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

/* Dismissible */
.alert-dismissible {
    position: relative;
    padding-right: 3rem;
}

.alert-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
    color: inherit;
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}
