/* CTNetwork Brand Loader */
#ctn-brand-loader,
#contenedor_carga.ctn-brand-loader-legacy {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(255, 207, 0, 0.16), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(228, 0, 43, 0.16), transparent 45%),
                rgba(10, 14, 23, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

#ctn-brand-loader.ctn-visible,
#contenedor_carga.ctn-brand-loader-legacy.ctn-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.ctn-loader-core {
    position: relative;
    width: 146px;
    height: 146px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctn-loader-ring,
.ctn-loader-ring-2 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.ctn-loader-ring {
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-top-color: #ffd200;
    border-right-color: #e4002b;
    animation: ctn-spin 1.15s linear infinite;
}

.ctn-loader-ring-2 {
    inset: 10px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-bottom-color: #ffd200;
    border-left-color: #e4002b;
    animation: ctn-spin-reverse 1.6s linear infinite;
}

.ctn-loader-glow {
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 210, 0, 0.15) 40%, transparent 70%);
    animation: ctn-pulse 1.8s ease-in-out infinite;
}

.ctn-loader-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    animation: ctn-float 1.9s ease-in-out infinite;
}

.ctn-loader-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 14px);
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

#contenedor_carga #carga,
#contenedor_carga_modal #carga {
    display: none;
}

@keyframes ctn-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ctn-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes ctn-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes ctn-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 768px) {
    .ctn-loader-core {
        width: 124px;
        height: 124px;
    }

    .ctn-loader-logo {
        width: 56px;
        height: 56px;
    }

    .ctn-loader-label {
        font-size: 0.8rem;
    }
}
