/* =========================================================
   GLOBO AEROSTÁTICO CYBER-NEÓN V2 - ESTILO SOY FL
   TAMAÑO REDUCIDO Y FÍSICA DE CUERDAS REALISTA
========================================================= */

/* --- 1. CONTENEDOR PRINCIPAL --- */
.contenedor-globo-fl {
    position: fixed;
    top: 20%;
    left: -200px;
    z-index: 10000;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.5));
}

.contenedor-globo-fl:hover {
    transform: scale(1.15) translateY(-5px);
}

/* --- LA CUERDA QUE SOSTIENE LA BANDERA A LA CANASTA --- */
/* Se dibuja desde el centro de la bandera hasta el lado izquierdo de la canasta */
.contenedor-globo-fl::before {
    content: '';
    position: absolute;
    top: 130px; /* Alineado con el centro de la bandera */
    left: 10px; /* Cruza el vacío hasta la canasta */
    width: 28px;
    height: 2px;
    background: #94a3b8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: rotate(-8deg); /* Inclinación realista por el viento */
    z-index: 7;
}

/* --- 2. EL CUERPO DEL GLOBO (Tamaño ajustado) --- */
.globo-neon {
    width: 90px;
    height: 110px;
    position: relative;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.9) 0%, transparent 60%),
        repeating-linear-gradient(
            90deg,
            #1e293b 0%,
            #1e293b 16.66%,
            #8b5cf6 16.66%,
            #8b5cf6 33.33%
        );
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow:
        inset -10px -10px 25px rgba(0, 0, 0, 0.8),
        inset 10px 10px 20px rgba(255, 255, 255, 0.3),
        0 0 25px rgba(139, 92, 246, 0.6);
    animation: flotarGloboComplejo 4s ease-in-out infinite;
    z-index: 10;
}

/* --- 3. EL CUELLO DEL GLOBO --- */
.globo-neon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 12px;
    background: #0f172a;
    border: 2px solid #53cc79;
    border-radius: 50%;
    box-shadow: 0 0 10px #53cc79, inset 0 0 8px #000;
    z-index: 12;
}

/* --- 4. EL QUEMADOR DE PLASMA --- */
.globo-neon::before {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 25px;
    background: radial-gradient(ellipse at bottom, #53cc79 0%, transparent 70%);
    border-radius: 50%;
    animation: fuegoPlasma 0.15s infinite alternate;
    z-index: 11;
}

/* --- 5. LA CANASTA METÁLICA --- */
.globo-canasta {
    width: 38px;
    height: 26px;
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f172a;
    background-image:
        linear-gradient(#334155 2px, transparent 2px),
        linear-gradient(90deg, #334155 2px, transparent 2px);
    background-size: 6px 6px;
    border: 2px solid #8b5cf6;
    border-radius: 3px 3px 8px 8px;
    box-shadow:
        0 10px 15px rgba(0,0,0,0.8),
        inset 0 0 15px rgba(139, 92, 246, 0.5);
    z-index: 9;
}

/* --- 6. LAS CUERDAS TENSORAS --- */
.globo-canasta::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -2px;
    width: 110%;
    height: 24px;
    background: linear-gradient(
        90deg,
        #94a3b8 0%, #94a3b8 10%,
        transparent 10%, transparent 45%,
        #94a3b8 45%, #94a3b8 55%,
        transparent 55%, transparent 90%,
        #94a3b8 90%, #94a3b8 100%
    );
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
    z-index: 8;
}

/* --- 7. Borde Brillante de la canasta --- */
.globo-canasta::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: #53cc79;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 8px #53cc79;
}

/* --- 8. LA BANDERA HOLOGRÁFICA (Arrastrada por la canasta) --- */
.globo-bandera {
    position: absolute;
    bottom: -38px; /* A la altura de la canasta */
    right: 75px; /* Extendida hacia atrás (izquierda) */
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    border: 2px solid #53cc79;
    border-right: none;
    color: #53cc79;
    padding: 6px 15px 6px 10px;
    font-weight: 900;
    font-size: 0.95rem;
    white-space: nowrap;
    transform-origin: right center;
    box-shadow:
        0 0 15px rgba(83, 204, 121, 0.5),
        inset 0 0 10px rgba(83, 204, 121, 0.2);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15% 50%);
    animation: ondearCinta 1.2s infinite ease-in-out;
    z-index: 8;
}

/* --- 9. ANIMACIONES MAESTRAS --- */
@keyframes flotarGloboComplejo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(2deg); }
    66% { transform: translateY(-5px) rotate(-2deg); }
}

@keyframes fuegoPlasma {
    0% { opacity: 0.6; height: 16px; filter: hue-rotate(0deg); }
    100% { opacity: 1; height: 28px; filter: hue-rotate(40deg); }
}

@keyframes ondearCinta {
    0%, 100% { transform: rotate(0deg) scaleY(1); }
    50% { transform: rotate(-5deg) scaleY(0.92); }
}

@keyframes cruzarPantalla {
    from { left: -200px; }
    to { left: 110vw; }
}