/* ============ TPP By Servicon — pantalla de carga ============ */

.tppl-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: radial-gradient(1100px 600px at 50% 30%, #0B1A33 0%, #060B16 60%, #04070F 100%);
    color: #E6EEFB;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow: hidden;
    transition: opacity .55s ease;
}

.tppl-wrap.tppl-hide { opacity: 0; pointer-events: none; }

.tppl-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(700px 500px at 50% 45%, #000 20%, transparent 75%);
}

.tppl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    animation: tpplFloat 9s ease-in-out infinite alternate;
}

.tppl-orb-a { width: 340px; height: 340px; background: #0EA5E9; top: 8%; left: 12%; }
.tppl-orb-b { width: 280px; height: 280px; background: #7C6CFF; bottom: 6%; right: 10%; animation-delay: -4s; }

@keyframes tpplFloat {
    from { transform: translateY(-18px) translateX(-10px); }
    to   { transform: translateY(18px) translateX(14px); }
}

/* --- red de nodos --- */
.tppl-network { width: min(320px, 76vw); position: relative; }
.tppl-network svg { width: 100%; height: auto; overflow: visible; }

.tppl-link {
    stroke: #22D3EE;
    stroke-width: 1.6;
    stroke-dasharray: 6 7;
    opacity: .65;
    animation: tpplDash 1.4s linear infinite;
}

.tppl-link-2 { animation-duration: 1.8s; }
.tppl-link-3 { animation-duration: 1.2s; }
.tppl-link-4 { animation-duration: 2.1s; }

@keyframes tpplDash { to { stroke-dashoffset: -26; } }

.tppl-node-core {
    fill: #22D3EE;
    filter: drop-shadow(0 0 14px rgba(34, 211, 238, .8));
}

.tppl-node-sat {
    fill: #7C6CFF;
    filter: drop-shadow(0 0 8px rgba(124, 108, 255, .8));
    animation: tpplBlink 2.4s ease-in-out infinite;
}

.tppl-node-2, .tppl-node-4 { fill: #34D399; filter: drop-shadow(0 0 8px rgba(52, 211, 153, .8)); }
.tppl-node-2 { animation-delay: .5s; }
.tppl-node-3 { animation-delay: 1s; }
.tppl-node-4 { animation-delay: 1.6s; }

@keyframes tpplBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.tppl-pulse {
    fill: none;
    stroke: #22D3EE;
    stroke-width: 2;
    opacity: 0;
    animation: tpplPulse 2.2s ease-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes tpplPulse {
    0%   { opacity: .8; transform: scale(1); }
    100% { opacity: 0;  transform: scale(2.6); }
}

/* --- marca --- */
.tppl-brand { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }

.tppl-tpp {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 10px;
    background: linear-gradient(90deg, #22D3EE, #7C6CFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 34px rgba(34, 211, 238, .35);
}

.tppl-by { font-size: 15px; color: #8AA0C2; letter-spacing: 2px; }
.tppl-by strong { color: #E6EEFB; }

.tppl-tagline { color: #8AA0C2; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; }

/* --- progreso --- */
.tppl-progress {
    width: min(280px, 70vw);
    height: 4px;
    border-radius: 4px;
    background: rgba(148, 183, 255, .14);
    overflow: hidden;
}

.tppl-bar {
    width: 0%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #22D3EE, #7C6CFF);
    box-shadow: 0 0 12px rgba(34, 211, 238, .7);
    transition: width .3s ease;
}

.tppl-pct { font-size: 12px; color: #8AA0C2; letter-spacing: 1px; }
