:root {
    --primary-50: #E7EEF5;
    --primary-100: #B5CBE0;
    --primary-200: #91B2D1;
    --primary-300: #5F8EBC;
    --primary-400: #4079AF;
    --primary-500: #10579B;
    --primary-600: #0F4F8D;
    --primary-700: #0B3E6E;
    --primary-800: #093055;
    --primary-900: #072541;



    --animation-duration: 3s;
    --stroke-color: var(--primary-100);
    --fill-color: var(--primary-100);
    --stroke-width: 6;

    --bg-loading:var(--primary-800);
}


body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-loading);
    color: #F9FAFB;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body fuse-splash-screen img {
    width: 120px;
    max-width: 120px;
}

body fuse-splash-screen .spinner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    width: 56px;
}

body fuse-splash-screen .spinner>div {
    width: 12px;
    height: 12px;
    background-color: #109589;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: fuse-bouncedelay 1s infinite ease-in-out both;
    animation: fuse-bouncedelay 1s infinite ease-in-out both;
}

body fuse-splash-screen .spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

body fuse-splash-screen .spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes fuse-bouncedelay {

    0%,
    80%,
    100% {
        -webkit-transform: scale(0)
    }

    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes fuse-bouncedelay {

    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}




.unexa-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.unexa-spinner .spinner-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 300px;
    aspect-ratio: 225 / 287;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.8);
    animation: spinner-enter 0.4s ease-out forwards;
}

.unexa-spinner .spinner-inner {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 15px;
    box-sizing: border-box;
    transform: scale(0.9);
}

.unexa-spinner .animation-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-style: inset;
    border-color: rgba(16, 87, 155, 0.1);
    opacity: 0;
    animation: fade-in 0.4s ease-out 0.2s forwards;
}

.unexa-spinner .spinner-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    border-style: inset;
    top: 0;
    left: 0;
    display: block;
}

.unexa-spinner .outline-path {
    fill: transparent;
    stroke: var(--stroke-color);
    stroke-width: var(--stroke-width);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
    transform-origin: center;
    animation-duration: var(--animation-duration);
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.unexa-spinner .outline-path.piece-1 {
    animation-name: draw-piece-1;
}

.unexa-spinner .outline-path.piece-2 {
    animation-name: draw-piece-2;
}

.unexa-spinner .outline-path.piece-3 {
    animation-name: draw-piece-3;
}

.unexa-spinner .fill-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: fill-container-show var(--animation-duration) ease-in-out infinite;
}

.unexa-spinner .fill-path {
    fill: var(--fill-color);
    opacity: 0;
    transform: scale(0.98);
    transform-origin: center;
    animation-duration: var(--animation-duration);
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.unexa-spinner .fill-path.fill-1 {
    animation-name: fill-piece-1;
}

.unexa-spinner .fill-path.fill-2 {
    animation-name: fill-piece-2;
}

.unexa-spinner .fill-path.fill-3 {
    animation-name: fill-piece-3;
}

/* ==== Animaciones ==== */
@keyframes spinner-enter {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes draw-piece-1 {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20%,
    60% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    80% {
        stroke-dashoffset: 1000;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
}

@keyframes draw-piece-2 {

    0%,
    10% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    25%,
    60% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    80% {
        stroke-dashoffset: 1000;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
}

@keyframes draw-piece-3 {

    0%,
    20% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    35%,
    60% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    80% {
        stroke-dashoffset: 1000;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
}

@keyframes fill-container-show {

    0%,
    40% {
        opacity: 0;
    }

    48% {
        opacity: 0.3;
    }

    56%,
    65% {
        opacity: 1;
    }

    73% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fill-piece-1 {

    0%,
    46% {
        opacity: 0;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.5;
        transform: scale(1);
    }

    56%,
    65% {
        opacity: 1;
        transform: scale(1.02);
    }

    71% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.98);
    }
}

@keyframes fill-piece-2 {

    0%,
    48% {
        opacity: 0;
        transform: scale(0.98);
    }

    52% {
        opacity: 0.5;
        transform: scale(1);
    }

    58%,
    65% {
        opacity: 1;
        transform: scale(1.02);
    }

    73% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.98);
    }
}

@keyframes fill-piece-3 {

    0%,
    50% {
        opacity: 0;
        transform: scale(0.98);
    }

    54% {
        opacity: 0.5;
        transform: scale(1);
    }

    60%,
    65% {
        opacity: 1;
        transform: scale(1.02);
    }

    75% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.98);
    }
}

/* Tamaños */
.unexa-spinner.small .spinner-container {
    max-width: 200px;
}

.unexa-spinner.small .spinner-inner {
    padding: 10px;
}

.unexa-spinner.large .spinner-container {
    max-width: 400px;
}

.unexa-spinner.large .spinner-inner {
    padding: 20px;
}

/* Pausa */
.unexa-spinner.paused .outline-path,
.unexa-spinner.paused .fill-path,
.unexa-spinner.paused .fill-container {
    animation-play-state: paused;
}

/* Colores personalizados */
.unexa-spinner.red .outline-path,
.unexa-spinner.red .fill-path {
    stroke: #dc2626;
    fill: #dc2626;
}

.unexa-spinner.green .outline-path,
.unexa-spinner.green .fill-path {
    stroke: #16a34a;
    fill: #16a34a;
}

/* Responsive */
@media (max-width: 768px) {
    .unexa-spinner .spinner-container {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .unexa-spinner .spinner-container {
        max-width: 200px;
    }
}