/* Estilo para las burbujas del Bubble Map y visor de historias */
.stories-wrapper {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Luces indicadoras de actividad en vivo (Radar) */
@keyframes activeRadarPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.radar-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.radar-live-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: activeRadarPulse 2s infinite;
}


/* Burbujas del Mapa de Categorías */
.bubble-item {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bubble-item:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.15);
}

.bubble-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.bubble-name {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Burbujas del Mapa de Comercios */
.bubble-biz {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.bubble-biz:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.bubble-biz img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble-biz-name {
    position: absolute;
    bottom: -18px;
    left: -20px;
    right: -20px;
    font-size: 8px;
    font-weight: 800;
    color: #E2E8F0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Animaciones flotantes para burbujas */
@keyframes float-bubble {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes pop-bubble-effect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}


/* ==========================================================================
   17. ESTILOS DEL BUBBLE MAP MODAL (EXPLORAR HISTORIAS)
   ========================================================================== */
.bubble-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: none; /* Se activa como flex por JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bubble-modal-content {
    background: #0F172A; /* Slate 900 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 320px;
    min-height: 380px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: bubbleModalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubbleModalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.bubble-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    outline: none;
}

.bubble-close-btn:hover {
    color: #fff;
}

.bubble-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.bubble-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.bubble-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 10px 0 4px 0;
}

.bubble-subtitle {
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 20px;
}

.bubble-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-top: 10px;
    overflow: visible;
}

