/* Paneles y banner de error / reintento — Caja y Garzón */
.ui-error-host {
    margin-bottom: 10px;
}

.ui-error-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--text-primary, #262626);
}

.ui-error-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.ui-error-retry {
    align-self: flex-start;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: var(--primary, #C0392B);
    color: #fff;
}

.ui-error-retry:active {
    background: var(--primary-hover, #A93226);
}

.ui-banner-servidor {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    background: #991b1b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ui-banner-servidor[hidden] {
    display: none !important;
}

.ui-banner-text {
    text-align: center;
    line-height: 1.35;
}

.ui-banner-retry {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.ui-banner-retry:active {
    background: rgba(255, 255, 255, 0.15);
}
