/* A continuous, decorative universe behind the original professional dossier. */
.cosmic-site {
    --space-accent: 87, 223, 217;
    --space-panel: rgba(9, 18, 34, .86);
    background: #050b18;
    isolation: isolate;
}
.cosmos {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 30%, rgba(76, 53, 143, .26), transparent 52%),
        radial-gradient(ellipse at 37% 65%, rgba(13, 112, 139, .16), transparent 52%),
        #050b18;
}
.cosmos-canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease }
.cosmos-ready .cosmos-canvas { opacity: 1 }
.cosmos-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 11, 24, .43), transparent 60%),
        radial-gradient(ellipse at 50% 45%, transparent 28%, rgba(5, 11, 24, .56) 100%);
}
.cosmic-site .hero { background: transparent; padding-top: 108px }
.cosmic-site .hero-shade {
    background: linear-gradient(180deg, transparent 60%, rgba(5, 11, 24, .32));
}
.cosmic-site .hero-title { text-shadow: 0 2px 32px rgba(5, 11, 24, .85) }
.cosmic-site .hero-title em {
    color: #6be9dd;
    background: linear-gradient(110deg, #6be9dd 10%, #85cfff 55%, #c2adff 94%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cosmic-site .hero-sub { color: #bed0e3; text-shadow: 0 2px 14px #050b18 }
.universe-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 30px;
    color: #8aafc3;
    font-size: .75rem;
    letter-spacing: .18em;
}
.universe-label { display: flex; align-items: center; gap: 12px }
.universe-signal {
    width: 7px; height: 7px; flex: 0 0 7px;
    border-radius: 50%; background: #8ceee5;
    box-shadow: 0 0 0 5px rgba(87, 223, 217, .08), 0 0 22px #57dfd9;
}
.universe-coordinate { color: #91a7c7; letter-spacing: .1em }
.cosmic-site .dochead { border-color: rgba(160, 196, 242, .24) }
.cosmic-site .section { position: relative; background: rgba(5, 11, 24, .24) }
.cosmic-site #trayectoria { --space-accent: 251, 191, 113 }
.cosmic-site #credenciales { --space-accent: 125, 174, 255 }
.cosmic-site #arsenal { --space-accent: 87, 223, 217 }
.cosmic-site #sistemas { --space-accent: 188, 157, 255 }
.cosmic-site #contacto { --space-accent: 104, 235, 195 }
.cosmic-site .sec-head { gap: 22px }
.cosmic-site .sec-index { color: rgb(var(--space-accent)) }
.cosmic-site .sec-rule {
    background: linear-gradient(90deg, rgba(var(--space-accent), .5), rgba(var(--space-accent), .03));
    transform-origin: left;
}
html.js .cosmic-site .sec-head:not(.in) .sec-rule { transform: scaleX(.15) }
.cosmic-site .sec-head.in .sec-rule { transform: scaleX(1); transition: transform 1.5s var(--ease-out) }
.cosmic-site .sec-title { text-shadow: 0 2px 26px #050b18 }
.cosmic-site :is(.pnode, .cred, .pf, .tool, .sys, .log-panel, .terms, .contact-form, .photo-frame) {
    background-color: var(--space-panel);
    border-color: rgba(147, 181, 227, .22);
}
.cosmic-site :is(.pnode, .cred, .pf, .tool, .sys, .photo-frame, .log-panel) {
    position: relative;
    background-image: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(var(--space-accent), var(--spot-alpha, 0)), transparent 75%);
    transition: border-color .3s, box-shadow .3s, transform .35s var(--ease-out), opacity .7s var(--ease-out);
}
.cosmic-site :is(.pnode, .cred, .pf, .tool, .sys, .photo-frame, .log-panel):hover,
.cosmic-site :is(.sys, .log-panel):focus-within {
    border-color: rgba(var(--space-accent), .55);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .2), 0 0 24px rgba(var(--space-accent), .055);
}
.cosmic-site .sys.sys-lab { border-color: rgba(87, 223, 217, .45) }
.cosmic-site .tool-featured { background-color: rgba(8, 21, 39, .88) }
.cosmic-site .stats {
    background: rgba(7, 17, 32, .84);
    border-color: rgba(141, 186, 235, .28);
    box-shadow: 0 18px 65px rgba(0, 0, 0, .2);
}
.cosmic-site .stat { transition: background .3s }
.cosmic-site .stat:hover { background: rgba(87, 223, 217, .055) }
.cosmic-site .stat dt { color: #82e8df }
.cosmic-site .chip { background: rgba(6, 16, 32, .65) }
.cosmic-site .btn-primary {
    background: linear-gradient(115deg, #54e3d2, #49cbd7);
    border-color: #7befe3;
    box-shadow: 0 0 25px rgba(45, 212, 191, .14), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.cosmic-site .btn-ghost { background: rgba(8, 18, 34, .75) }
.cosmic-site .btn { transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s, background .25s }
.cosmic-site .btn:hover { transform: translateY(-3px); box-shadow: 0 7px 34px rgba(45, 212, 191, .18) }
.cosmic-site .btn:active { transform: translateY(0) scale(.98) }
.cosmic-site .navbar { background: rgba(5, 12, 26, .89); border-color: rgba(142, 189, 232, .18) }
.cosmic-site .nav-links a { position: relative }
.cosmic-site .nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: #77e7de; transform: scaleX(0); transform-origin: left;
    transition: transform .3s;
}
.cosmic-site .nav-links a:is(:hover, .active)::after { transform: scaleX(1) }
.cosmic-site .rail a { transition: color .25s, border-color .25s, translate .25s }
.cosmic-site .rail a.active { translate: 4px 0 }
.cosmic-site .scroll-progress { height: 3px; background: linear-gradient(90deg, #54e3d2, #81bbff, #b298ff) }
.cosmic-site .footer { background: rgba(5, 11, 24, .7) }
.motion-dock {
    position: fixed; z-index: 65; left: 18px; bottom: 20px;
    border: 1px solid rgba(151, 189, 231, .3);
    background: rgba(7, 16, 31, .94);
    border-radius: 3px;
    box-shadow: 0 5px 24px rgba(0, 0, 0, .15);
}
.motion-dock[hidden] { display: none }
.motion-dock button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-width: 44px; min-height: 44px; padding: 10px 13px;
    color: #afc9df; cursor: pointer; font-size: .75rem; letter-spacing: .055em;
}
.motion-dock button:hover { color: #89eee4 }
.motion-icon { flex: 0 0 16px; color: #74ddd5 }
.motion-play { display: none }
.motion-paused .motion-play { display: block }
.motion-paused .motion-pause { display: none }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important }
.motion-paused { scroll-behavior: auto }
.motion-paused .cosmic-site *, .motion-paused .cosmic-site *::before, .motion-paused .cosmic-site *::after { transition-duration: 0s !important }
.motion-paused .cosmic-site .rv, .motion-paused .cosmic-site .tool-grid .tool { opacity: 1 !important; transform: none !important }
.motion-paused .cosmic-site :is(.btn, .cred, .pf, .pnode, .sys, .tool, .photo-frame, .tool-featured):hover { transform: none }
@media (max-width: 960px) { .universe-coordinate { display: none } }
@media (max-width: 640px) {
    .cosmic-site .hero { padding-top: 94px }
    .universe-intro { margin-bottom: 24px; letter-spacing: .09em }
    .cosmos-veil { background: rgba(5, 11, 24, .3) }
    .motion-dock { left: 14px; bottom: 18px }
    .motion-dock [data-motion-label] { display: none }
    .motion-dock button { padding: 10px }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    .cosmic-site *, .cosmic-site *::before, .cosmic-site *::after { animation: none !important; transition: none !important }
    .cosmic-site :is(.btn, .cred, .pf, .pnode, .sys, .tool, .photo-frame, .tool-featured):hover,
    .cosmic-site .sys:hover .sys-fig img { transform: none }
}
@media (forced-colors: active) {
    .cosmos { display: none }
    .cosmic-site .hero-title em { background: none; -webkit-text-fill-color: currentColor }
}
@media print {
    .cosmos, .motion-dock, .universe-intro { display: none !important }
    .cosmic-site { background: white }
}
