/* ERP.Web — estilos globales residuales de Blazor */
#blazor-error-ui {
    color-scheme: light only;
    background: #fef2f2;
    border-top: 2px solid #dc2626;
    bottom: 0; left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed; width: 100%; z-index: 2000;
    display: none; font-size: .85rem; color: #dc2626;
    box-shadow: 0 -2px 8px rgba(0,0,0,.1);
}
#blazor-error-ui .dismiss {
    cursor: pointer; position: absolute;
    right: 0.75rem; top: 0.5rem; font-weight: 700;
}
.blazor-error-boundary {
    background: #fef2f2; padding: 1rem 1rem 1rem 3.7rem;
    color: #dc2626; border-radius: 8px;
}
.blazor-error-boundary::after { content: "Ha ocurrido un error." }
/* ── Splash screen ─────────────────────────────────────────────── */
.splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.splash-bg {
    position: absolute; inset: 0;
    background: linear-gradient(-45deg, #ffffff, #f8fafc, #f1f5f9, #ffffff);
    background-size: 400% 400%;
    animation: splashShift 14s ease infinite;
}
.splash-bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 500px 500px at 25% 35%, rgba(37,99,235,.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 75% 65%, rgba(99,102,241,.05) 0%, transparent 70%);
    animation: splashPulse 8s ease-in-out infinite alternate;
}
@keyframes splashShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes splashPulse {
    0%   { opacity: .5; }
    100% { opacity: 1; }
}
.splash-content {
    position: relative; z-index: 1;
    text-align: center;
    animation: splashFadeIn .8s ease-out both;
}
@keyframes splashFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.splash-logo { margin-bottom: 48px; }
.splash-icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    color: #2563eb;
    animation: splashIconFloat 3s ease-in-out infinite;
}
@keyframes splashIconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.splash-icon svg { width: 100%; height: 100%; }
.splash-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem; font-weight: 800;
    color: #1e293b;
    letter-spacing: -.03em;
    margin: 0 0 6px;
}
.splash-sub {
    font-size: .88rem; font-weight: 400;
    color: #64748b;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
}
.splash-loader { width: 220px; margin: 0 auto; }
.splash-bar {
    height: 3px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.splash-bar-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #3b82f6, #818cf8);
    border-radius: 4px;
    animation: splashProgress 1.8s ease-in-out infinite;
}
@keyframes splashProgress {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
.splash-status {
    font-size: .75rem; color: #94a3b8;
    margin-top: 14px;
    letter-spacing: .02em;
}
