* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
.boot-page {
    overflow: hidden;
    font-family: "DM Sans", system-ui, sans-serif;
    background: radial-gradient(ellipse 90% 70% at 50% 42%, #0c3a35 0%, #082420 45%, #050f0e 100%);
    color: #eafaf6;
}
.app-root { min-height: 100vh; }

.boot-screen {
    position: relative; display: grid; place-items: center; min-height: 100vh; overflow: hidden; isolation: isolate;
    transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.25,1), filter 650ms ease;
}
.boot-screen.is-leaving { opacity: 0; transform: scale(1.08); filter: blur(6px); }

.boot-aurora { position: absolute; z-index: -2; border-radius: 50%; filter: blur(90px); mix-blend-mode: screen; animation: boot-aurora 9s ease-in-out infinite alternate; }
.boot-aurora.b1 { top: -25%; left: 10%; width: 70vmax; height: 40vmax; background: radial-gradient(ellipse, rgba(31,217,198,0.42), transparent 65%); }
.boot-aurora.b2 { bottom: -30%; right: 0; width: 60vmax; height: 45vmax; background: radial-gradient(ellipse, rgba(55,182,255,0.24), transparent 65%); animation-direction: alternate-reverse; }
@keyframes boot-aurora { to { transform: translate(-4vmax, 3vmax) scale(1.12); } }

.boot-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

.boot-content { position: relative; display: grid; justify-items: center; gap: 14px; padding: 0 20px; text-align: center; }

.boot-emblem { position: relative; display: grid; place-items: center; width: 190px; height: 190px; margin-bottom: 10px; }
.boot-halo { position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(95,242,227,0.5) 0%, rgba(31,217,198,0.16) 45%, transparent 70%); filter: blur(8px); animation: boot-respirar 2.4s ease-in-out infinite; }
@keyframes boot-respirar { 50% { transform: scale(1.18); opacity: 0.75; } }

.boot-orbit { position: absolute; inset: 0; border: 1px solid rgba(110,243,226,0.24); border-radius: 50%; animation: boot-orbita 6s linear infinite; }
.boot-orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #8ff7ea; box-shadow: 0 0 14px #1fd9c6, 0 0 4px #ffffff; }
.boot-orbit.o2 { inset: 18px; border-color: rgba(55,182,255,0.3); border-style: dashed; transform: rotateX(62deg); animation-duration: 4.2s; animation-direction: reverse; }
.boot-orbit.o2 i { background: #9bd6ff; box-shadow: 0 0 14px #37b6ff; }
.boot-orbit.o3 { inset: -18px; border-color: rgba(31,217,198,0.14); animation-duration: 11s; }
.boot-orbit.o3 i { background: #5ff2e3; box-shadow: 0 0 14px #1fd9c6; }
@keyframes boot-orbita { to { rotate: 360deg; } }

.boot-logo { position: relative; width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(31,217,198,0.4)); animation: boot-aparecer 900ms cubic-bezier(.34,1.56,.64,1) both, boot-flotar 3.2s ease-in-out 900ms infinite; }
@keyframes boot-aparecer { from { opacity: 0; transform: scale(0.6); filter: brightness(2.2) blur(6px); } }
@keyframes boot-flotar { 50% { transform: translateY(-7px); } }

.boot-title { display: flex; margin: 0; font-family: "Manrope", system-ui, sans-serif; font-size: clamp(40px, 6vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.boot-title span, .boot-title b { display: inline-block; animation: boot-letra 700ms cubic-bezier(.2,.75,.25,1) both; }
.boot-title b { font-weight: 800; background: linear-gradient(120deg, #5ff2e3, #1fd9c6); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 24px rgba(31,217,198,0.5); }
.boot-title > :nth-child(1) { animation-delay: 250ms; }
.boot-title > :nth-child(2) { animation-delay: 300ms; }
.boot-title > :nth-child(3) { animation-delay: 350ms; }
.boot-title > :nth-child(4) { animation-delay: 400ms; }
.boot-title > :nth-child(5) { animation-delay: 450ms; }
.boot-title > :nth-child(6) { animation-delay: 500ms; }
.boot-title > :nth-child(7) { animation-delay: 550ms; }
.boot-title > :nth-child(8) { animation-delay: 600ms; }
@keyframes boot-letra { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

.boot-tagline { margin: 0; color: #9fc9c1; font-size: 14.5px; animation: boot-letra 800ms cubic-bezier(.2,.75,.25,1) 750ms both; }

.boot-progress { position: relative; width: min(260px, 70vw); height: 4px; margin-top: 18px; border-radius: 99px; background: rgba(110,243,226,0.16); overflow: visible; animation: boot-letra 800ms cubic-bezier(.2,.75,.25,1) 850ms both; }
.boot-progress span { position: relative; display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #37b6ff, #1fd9c6 50%, #5ff2e3); box-shadow: 0 0 14px rgba(31,217,198,0.6); }
.boot-progress span::after { content: ""; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 12px #1fd9c6, 0 0 26px #1fd9c6; transform: translateY(-50%); }

.boot-status { min-height: 20px; margin: 4px 0 0; color: #7fa39c; font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; transition: opacity 180ms ease, transform 180ms ease; animation: boot-letra 800ms cubic-bezier(.2,.75,.25,1) 900ms both; }
.boot-status.is-changing { opacity: 0; transform: translateY(-4px); }

.boot-flash { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -60px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle, #d9fff8, rgba(31,217,198,0.6) 40%, transparent 70%); opacity: 0; pointer-events: none; }
.boot-screen.is-leaving .boot-flash { animation: boot-destello 650ms ease-out forwards; }
@keyframes boot-destello { 40% { opacity: 0.9; } to { opacity: 0; transform: scale(60); } }

@media (prefers-reduced-motion: reduce) { .boot-screen *, .boot-screen::before { animation: none !important; } }

html[data-theme="light"] .boot-page { background: radial-gradient(ellipse 90% 70% at 50% 42%, #ffffff 0%, #e7f6f3 45%, #d4ece8 100%); color: #0b2b27; }
html[data-theme="light"] .boot-aurora { mix-blend-mode: multiply; }
html[data-theme="light"] .boot-aurora.b1 { background: radial-gradient(ellipse, rgba(10,158,142,0.22), transparent 65%); }
html[data-theme="light"] .boot-aurora.b2 { background: radial-gradient(ellipse, rgba(31,130,196,0.2), transparent 65%); }
html[data-theme="light"] .boot-halo { background: radial-gradient(circle, rgba(31,217,198,0.5) 0%, rgba(31,217,198,0.18) 45%, transparent 70%); }
html[data-theme="light"] .boot-orbit { border-color: rgba(10,158,142,0.24); }
html[data-theme="light"] .boot-orbit.o2 { border-color: rgba(31,130,196,0.32); }
html[data-theme="light"] .boot-orbit i { background: #0a9e8e; box-shadow: 0 0 12px rgba(10,158,142,0.8); }
html[data-theme="light"] .boot-orbit.o2 i { background: #1f82c4; box-shadow: 0 0 12px rgba(31,130,196,0.7); }
html[data-theme="light"] .boot-tagline { color: #4c6f69; }
html[data-theme="light"] .boot-progress { background: rgba(10,158,142,0.16); }
html[data-theme="light"] .boot-progress span { background: linear-gradient(90deg, #1f82c4, #0a9e8e 50%, #19c3b1); box-shadow: 0 0 12px rgba(10,158,142,0.45); }
html[data-theme="light"] .boot-progress span::after { box-shadow: 0 0 10px #0a9e8e, 0 0 20px rgba(10,158,142,0.6); }
html[data-theme="light"] .boot-status { color: #4c6f69; }
html[data-theme="light"] .boot-flash { background: radial-gradient(circle, #ffffff, rgba(31,217,198,0.5) 40%, transparent 70%); }
